Closed Bug 113498 Opened 23 years ago Closed 23 years ago

.src on new Image()'s not absolute.

Categories

(Core :: DOM: Core & HTML, defect, P2)

defect

Tracking

()

VERIFIED FIXED
mozilla0.9.9

People

(Reporter: shrir, Assigned: jst)

References

()

Details

(Keywords: testcase, Whiteboard: [HAVE FIX])

Attachments

(4 files, 1 obsolete file)

on build 1203, win NT go to the above site move the mouse over the links at the center of the page where it says "Flight Status", "Airport Guide" ...select any 'sub-link' from these link and click.. observe that no page loads.
Summary: links on site do not work, get javascript error → links on site do not work
Blocks: 113492
document.ImageName.src is the problem. --> Evangelism
Assignee: asa → piskozub
Component: Browser-General → Europe: Central
Keywords: testcase
Product: Browser → Tech Evangelism
QA Contact: doronr → pali
Version: other → unspecified
Another German site mis-componented as Central Europe. -> Europe: West
Now really changing to Europe: West (where Germany belongs according to Mozilla tech evanelism work division)
Assignee: piskozub → nitot
Component: Europe: Central → Europe: West
QA Contact: pali → caillon
Confirming with Moz 097. Contact: info@fraport.de Mats : can you elaborate why this is not working, and suggest a fix, so I can send this to the webmaster? Thanks. Setting P2.
Priority: -- → P2
No longer blocks: 113492
I am really sorry, I see now that my first analyse of the problem is wrong. This is actually a Mozilla bug. The page uses javascript to create a bunch of Image objects initialized with object.src="/foo.gif", these are later used to determine which "link" was clicked on and select the correct URL to go to. This later test is of the form: if (document.imgName.src == object.src) ... This is where Mozilla goes wrong, the document.imgName.src will be an absoulte URL ("http://www.frankfurt-airport.de/foo.gif") but the object.src is relative ("/foo.gif") so the test will always be false. Sending back to Browser for further triage. I will attach a minimal testcase to illustrate the problem. The testcase works fine in IE6, Opera 5.12, Navigator 3.04 and 4.7, and Mozilla m18 (2001-01-05), but not in Mozilla 2002-01-19-08 (trunk). All on Windows 98.
Assignee: nitot → jst
Component: Europe: West → DOM HTML
Priority: P2 → P3
Product: Tech Evangelism → Browser
QA Contact: caillon → stummala
Version: unspecified → other
Status: NEW → ASSIGNED
OS: Windows NT → All
Priority: P3 → P2
Hardware: PC → All
Whiteboard: [HAVE FIX]
Target Milestone: --- → mozilla0.9.9
Summary: links on site do not work → .src on new Image()'s not absolute.
Oops, I attached the wrong patch, here's the right one...
Attachment #66030 - Attachment is obsolete: true
Comment on attachment 66032 [details] [diff] [review] Proposed fix, also eliminates on member from nsHTMLImageElement that's not really needed. in nsHTMLImageElement::Initialize please remove the NS_SUCCEEDED(result) from if (NS_SUCCEEDED(result) && (argc > 0)) {
Attachment #66032 - Flags: review+
Attachment #66032 - Attachment description: Proposed fix, also eliminates on member from nsHTMLInputElement that's not really needed. → Proposed fix, also eliminates on member from nsHTMLImageElement that's not really needed.
err, other then that, r=sicking
Comment on attachment 66041 [details] [diff] [review] fix sicking's nit (by rearranging some code) sorry for taking so long :(
Keywords: nsbeta1
Status: ASSIGNED → RESOLVED
Closed: 23 years ago
Resolution: --- → FIXED
verified fixed, build 03-22-05
Status: RESOLVED → VERIFIED
Component: DOM: HTML → DOM: Core & HTML
QA Contact: stummala → general
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: