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)
Core
DOM: Core & HTML
Tracking
()
VERIFIED
FIXED
mozilla0.9.9
People
(Reporter: shrir, Assigned: jst)
References
()
Details
(Keywords: testcase, Whiteboard: [HAVE FIX])
Attachments
(4 files, 1 obsolete file)
1.78 KB,
text/html
|
Details | |
437 bytes,
text/html
|
Details | |
7.11 KB,
patch
|
sicking
:
review+
|
Details | Diff | Splinter Review |
8.70 KB,
patch
|
sicking
:
review+
|
Details | Diff | Splinter Review |
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.
Reporter | ||
Updated•23 years ago
|
Summary: links on site do not work, get javascript error → links on site do not work
Comment 1•23 years ago
|
||
Comment 2•23 years ago
|
||
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
Comment 3•23 years ago
|
||
Another German site mis-componented as Central Europe.
-> Europe: West
Comment 4•23 years ago
|
||
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
Comment 5•23 years ago
|
||
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
Comment 6•23 years ago
|
||
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
Comment 7•23 years ago
|
||
Assignee | ||
Comment 8•23 years ago
|
||
Assignee | ||
Updated•23 years ago
|
Status: NEW → ASSIGNED
OS: Windows NT → All
Priority: P3 → P2
Hardware: PC → All
Whiteboard: [HAVE FIX]
Target Milestone: --- → mozilla0.9.9
Assignee | ||
Updated•23 years ago
|
Summary: links on site do not work → .src on new Image()'s not absolute.
Assignee | ||
Comment 9•23 years ago
|
||
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+
Assignee | ||
Updated•23 years ago
|
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
Assignee | ||
Comment 12•23 years ago
|
||
Attachment #66041 -
Flags: review+
Comment on attachment 66041 [details] [diff] [review]
fix sicking's nit (by rearranging some code)
sorry for taking so long :(
Assignee | ||
Comment 14•23 years ago
|
||
Fixed (rs=rpotts@netscape.com)
Status: ASSIGNED → RESOLVED
Closed: 23 years ago
Resolution: --- → FIXED
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.
Description
•