Closed
Bug 445330
Opened 16 years ago
Closed 16 years ago
document.loaded XML documents fire onload before DOMContentLoaded
Categories
(Core :: DOM: UI Events & Focus Handling, defect)
Tracking
()
RESOLVED
FIXED
People
(Reporter: mrbkap, Assigned: smaug)
Details
(Keywords: testcase)
Attachments
(2 files)
740 bytes,
application/xml
|
Details | |
5.01 KB,
patch
|
bzbarsky
:
review+
bzbarsky
:
superreview+
|
Details | Diff | Splinter Review |
The problem is that XMLDocument::EndLoad fires onload sync. before we even dispatch the event to fire DOMContentLoaded. See http://hg.mozilla.org/mozilla-central/index.cgi/annotate/6db0b5d30af1/content/xml/document/src/nsXMLDocument.cpp#l539
Reporter | ||
Comment 1•16 years ago
|
||
Oh, the expected output of the testcase is: ...DOMContentLoaded called... ...onload called...
Assignee | ||
Updated•16 years ago
|
Assignee: nobody → Olli.Pettay
Assignee | ||
Comment 2•16 years ago
|
||
Hmm, I took this too fast :) - making load event dispatch asynchronous (so that it happens after DOMContentLoaded) breaks many XBL testcases. Perhaps I should take another approach, dispatch DOMContentLoaded synchronously right before load event.
Assignee | ||
Comment 3•16 years ago
|
||
Not sure we want this though :/
Assignee | ||
Comment 4•16 years ago
|
||
Comment on attachment 329719 [details] [diff] [review] Sync DOMContentLoaded Bz, IIRC you changed DOMContentLoaded to be async. This patch shouldn't cause any new problems since load event is anyway synchronous for data and XBL documents.
Attachment #329719 -
Flags: review?(bzbarsky)
Comment 5•16 years ago
|
||
Comment on attachment 329719 [details] [diff] [review] Sync DOMContentLoaded Makes sense.
Attachment #329719 -
Flags: superreview+
Attachment #329719 -
Flags: review?(bzbarsky)
Attachment #329719 -
Flags: review+
Assignee | ||
Updated•16 years ago
|
Keywords: checkin-needed
Assignee | ||
Updated•16 years ago
|
Status: NEW → RESOLVED
Closed: 16 years ago
Flags: in-testsuite+
Keywords: checkin-needed
Resolution: --- → FIXED
Updated•5 years ago
|
Component: Event Handling → User events and focus handling
You need to log in
before you can comment on or make changes to this bug.
Description
•