document generated with document.write() does not create onLoad-Event
Categories
(Core :: DOM: Core & HTML, defect)
Tracking
()
People
(Reporter: Peter.Nabbefeld, Unassigned)
References
Details
Attachments
(5 files)
Comment 1•22 years ago
|
||
| Reporter | ||
Comment 2•22 years ago
|
||
| Reporter | ||
Comment 3•22 years ago
|
||
Updated•22 years ago
|
Comment 4•22 years ago
|
||
Comment 5•21 years ago
|
||
Comment 6•21 years ago
|
||
Comment 7•21 years ago
|
||
Comment 8•21 years ago
|
||
Comment 9•21 years ago
|
||
Comment 10•21 years ago
|
||
Comment 11•21 years ago
|
||
Updated•16 years ago
|
Comment 12•7 years ago
|
||
Updated•3 years ago
|
Updated•1 year ago
|
Comment 13•1 year ago
•
|
||
Link to jira: https://mozilla-hub.atlassian.net/browse/FFXP-1821
Also adding tentative scheduled info to the user story.
Comment 14•1 year ago
•
|
||
I'm unsure if there still is a problem here.
For me, the testcases behave the same on Firefox, Safari and Chrome. I tried both MacOS and Windows.
Regarding why no load event is fired. In general, we are loading a page and during the load handler, synchronously write to the document, but no second load event is fired. As noted in c11, if the write happens asynchronously, there is a second load event. From stepping through the execution paths, they differ by the return value of SkipLoadEventAfterClose() in this line. This flag is intentionally set in document.open() iff open is called during the load event.
This does align with the spec, but there is an open issue about it: spec issue 4292
Comment 15•1 year ago
|
||
Thanks Vincent.
Which test cases were you testing? I am particularly curious about the testing results of the test cases from bug 1885937 and bug 1840932, which are believed related with this bug.
Comment 16•1 year ago
|
||
I tried testcase one through four from this bug and looked at the other two bugs, though these do not have testcases. It seems like the load event is fired correctly on open/write/close.
The webcompat data shows only one broken page, i.e. Bug 1840932. I can verify the page is still broken, but I would not know how to diagnose the issue. It appears that the load event is not fired on the iframe on that page, but when I attach a debugger, the page starts working.
Comment 17•1 year ago
|
||
After Vincent's investigation, we believe this is not a webcompat:platform-bug or blocks the site report bug 1840932. I clear the keyword and dependency field to reflect the findings.
Updated•1 year ago
|
Description
•