Closed Bug 356965 Opened 18 years ago Closed 18 years ago

No image shown when URI for img tag href attrtibute contains two dots before extension

Categories

(Firefox :: General, defect)

x86
Windows XP
defect
Not set
normal

Tracking

()

VERIFIED INVALID

People

(Reporter: paul.e.cormier, Unassigned)

Details

Attachments

(4 files)

User-Agent:       Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.0.7) Gecko/20060909 Firefox/1.5.0.7
Build Identifier: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.0.7) Gecko/20060909 Firefox/1.5.0.7

I noticed that when an IMG tag references a URI with two dots (periods) in the href attribute, the referenced image is not rendered.

Reproducible: Always

Steps to Reproduce:
1. Create an HTML page which contains an IMG tag whose href points to an image file matching the pattern: /.*\.\.jpg/
2. View the page in Firefox 1.5.0.7, note that the image is not rendered.
3. Confirm that another browser (IE6 for example) does render the image.

Actual Results:  
No image is rendered in Firefox.  Images were rendered as expected in IE6.

Expected Results:  
I expected the browser to render the images similarly to IE6.

Firefox was able to view the images directly when 'View Image' was selected from the context menu.
Version: unspecified → 1.5.0.x Branch
http://gavinsharp.com/tmp/356965.html loads fine for me, using both 1.5.0.7 and a recent Firefox 2 branch build.

Could you provide a testcase that shows the problem?
Version: 1.5.0.x Branch → unspecified
Image files to follow.
Attached image Image 1
Attached image Image 2
Attached image Image 3
I added a test case, and tested the scope of the problem.
It only seems to be the case that when the URI is an absolute path to a local file in the form 'c:\folder\maybe another folder\image..jpg'.  'file:///c:/' and relative URIs work fine.
Upon furthur inspection...

The two dots in the URI are irrelevant to the problem, Firefox doesn't render any images specified with platform specific absolute URIs.

Sorry for the trouble.
Status: UNCONFIRMED → RESOLVED
Closed: 18 years ago
Resolution: --- → INVALID
Thanks for following up :)
Status: RESOLVED → VERIFIED
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: