Summary: | <iframe src=""> load event is dispatched synchronously unlike Chrome Canary and Firefox | ||||||
---|---|---|---|---|---|---|---|
Product: | WebKit | Reporter: | Alexey Proskuryakov <ap> | ||||
Component: | DOM | Assignee: | Nobody <webkit-unassigned> | ||||
Status: | NEW --- | ||||||
Severity: | Normal | CC: | ahmad.saleem792, ap, bfulgham, cdumez, ian, rniwa, techrazy.yang, webkit-bug-importer | ||||
Priority: | P2 | Keywords: | BrowserCompat, HasReduction, InRadar | ||||
Version: | 420+ | ||||||
Hardware: | Mac | ||||||
OS: | OS X 10.4 | ||||||
Attachments: |
|
Description
Alexey Proskuryakov
2006-02-09 11:30:32 PST
Created attachment 6367 [details]
test case
Starts to work if the iframe is moved below <p>. "onclick handler" in the alert was supposed to be "onload handler", of course. It is there to indicate that the handler is called at all (didn't fire before, bug 3609). I am able to reproduce this bug in Safari 15.6 on macOS 12.5 using attached test case and Safari is only browser - which shows "FAILURE" while all other browsers return "SUCCESS" on this test case. I tested it in "Private Window" to avoid any cache issue as well. Just wanted to share updated test results. Thanks! Other browsers which show "SUCCESS" - Chrome Canary 106 and Firefox Nightly 105. Forgot to add them. Ah, this is an issue of when load event is fired. Safari is loading iframe synchronously before p element has been inserted into the document. Hm... Chrome stable (103.0.5060.134) also fails the test. I suppose Chrome changed its behavior very recently. So I just tested this in Chrome Beta (104.0.5112.65) and Chrome Dev (105.0.5195.10) and both also show "FAILURE" for this test case, so indeed, it is something which got fixed in Chrome just in Canary branch. I tried to also look for some such iframe related bugs and only came across following (This is just guess work - so ignore, if irrelevant): -> Fixed just 19 days ago: https://chromium.googlesource.com/chromium/src/+/cf2f72ac8431c836b7ecb92a87018ee7f3c2db64 Is this code segment in question: https://searchfox.org/wubkat/source/Source/WebCore/loader/PolicyChecker.cpp#259 // We ignore the response from the client for initial empty document loads and proceed with the load synchronously. |