Closed Bug 406515 Opened 17 years ago Closed 3 years ago

HTMLLinkElements with javascript: URLs lead to early onload firing and complete browser hang

Categories

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

defect

Tracking

()

RESOLVED WORKSFORME

People

(Reporter: fick_el, Unassigned)

References

Details

Attachments

(1 file)

User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.2; en-US; rv:1.9b2pre) Gecko/2007120105 Minefield/3.0b2pre Build Identifier: Refreshing a page with the following HTML: <link rel="stylesheet" href="javascript:''" type="text/css"> Will often, but not always, fire onload before document.body even exists (first bug). Once such a page reloads and onload misfires, it's impossible to navigate anywhere else, the browser effectively hangs (second bug). This issue does not apply to FF2. It only occurs in FF3 (testing in latest nightly). Marking as major because of the browser hang. Reproducible: Always
Attached file Minimal testcase
Refreshing this page will often alert "ONLOAD MISFIRED" onload, when it detects that there's no body yet. If it does not work immediately, refreshing the page a couple of times should trigger it. Once the issue triggers, it's often impossible to navigate anywhere else.
This issue does *not* seem to occur when the javascript code doesn't return anything. The code <link rel="stylesheet" href="javascript:void(0)" type="text/css"> will not cause the described errors. However, any other non-undefined result will.
Regression range appears to be http://bonsai.mozilla.org/cvsquery.cgi?module=PhoenixTinderbox&date=explicit&mindate=1185321120&maxdate=1185325559 but like the reporter said it doesn't always happen so it might not be correct. (It happens here on first reload or not at all.)
Blocks: 389151
Status: UNCONFIRMED → NEW
Ever confirmed: true
Component: DOM: HTML → DOM: Core & HTML
https://bugzilla.mozilla.org/show_bug.cgi?id=1472046 Move all DOM bugs that haven’t been updated in more than 3 years and has no one currently assigned to P5. If you have questions, please contact :mdaly.
Priority: -- → P5

This is no longer reproducible on all the latest Firefox versions, tested on MacOS 10.15. (Release 92.0.1, Beta 93.0, Nightly 94).

Status: NEW → RESOLVED
Closed: 3 years ago
Resolution: --- → WORKSFORME
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: