Closed Bug 131034 Opened 24 years ago Closed 24 years ago

image not displayed if the image is under htaccess directory and displayed using javascript.

Categories

(Core :: Graphics: ImageLib, defect)

x86
Linux
defect
Not set
normal

Tracking

()

RESOLVED WORKSFORME

People

(Reporter: itter, Assigned: pavlov)

References

()

Details

From Bugzilla Helper: User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:0.9.8) Gecko/20020204 BuildID: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:0.9.8) Gecko/20020204 If you display an image using javascript, and that image in under a directory protected with a .htaccess file. The image doesn't load, and no authorization box is displayed to access the image. The image is listed under the page info, but with no height, width If you have already logged into the protected directory, then go to the page, the image is displayed properly. Reproducible: Always Steps to Reproduce: 1.Create a page that displays the html for an image in javascript, and displays that. The image should be under a directory protected by a .htaccess file (under apache) 2.Load the page - the image will not appear, and no box is displayed. Expected Results: An authorization box should appear, asking you to log into the site. After you have logged in, the image should appear properly. <script language="JavaScript1.2"> <!-- var htmlstylin = "<img border=0 src=http://site.com/image.gif>"; document.write(htmlstylin); --> </script> <!-- The image.gif must be under a htaccess protected directory -->
When I try that link I get a login box (linux build 2002-03-11-08). Please test a recent build -- I believe this has been fixed since 0.9.8.
I'm 99% sure this was fixed as a result of bug 62108 (on March 6) so it's not fixed in 0.9.9 either, most likely.
I just upgraded to version 0.9.9 from mozilla.org and still have the same problem. Are you running a more recent version that is available on the website? In the weblogs, your browser string shows up as: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:0.9.9+) Gecko/20020311 Where as mine is: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:0.9.9) Gecko/20020313 I also tried under windows, which also didn't pop up the box: Mozilla/5.0 (Windows; U; Win98; en-US; rv:0.9.9) Gecko/20020311
Yeah. I'm running a post-0.9.9 version which you can get from ftp://ftp.mozilla.org/pub/mozilla/nightly/latest/ As I say in comment #2, this was likely fixed after 0.9.9 branched....
->imagelib?
Assignee: trudelle → pavlov
Component: XP Apps → ImageLib
QA Contact: paw → tpreston
Dava, still in RC1? If not, set the bug to worksforme
It works now for me with RC1
Status: UNCONFIRMED → RESOLVED
Closed: 24 years ago
Resolution: --- → WORKSFORME
You need to log in before you can comment on or make changes to this bug.