load event is not fired for iframes blocked by browser.webRequest.onBeforeRequest
Categories
(Core :: DOM: Navigation, defect, P2)
Tracking
()
People
(Reporter: kzar, Unassigned)
References
(Depends on 1 open bug)
Details
Attachments
(1 file, 1 obsolete file)
802 bytes,
application/gzip
|
Details |
Reporter | ||
Comment 1•7 years ago
|
||
Comment 2•7 years ago
|
||
Updated•7 years ago
|
Updated•7 years ago
|
Comment 3•7 years ago
|
||
Comment 4•7 years ago
|
||
Comment 5•7 years ago
|
||
Comment 6•7 years ago
|
||
Updated•7 years ago
|
I found this again through bug 1584998 have been looking into this a little bit trying to understand what is going on.
Updated•5 years ago
|
Comment on attachment 9112527 [details]
Bug 1418975 - Dispatch load event for failed iframe loads
This seems to match Chrome's behavior. Chrome always fires the load
event even for failed iframe loads.
I tried using an error
event instead, but there seems to be special handling to forward load
events from the iframe's window to the parent window in nsGlobalWindowInner::PostHandleEvent
.
I haven't run any tests yet, but I suspect this is going to cause a number of test failures ... I am mostly just curious what we think of doing this.
Comment 10•5 years ago
|
||
Comment on attachment 9112527 [details]
Bug 1418975 - Dispatch load event for failed iframe loads
So there are two separate questions:
-
Should a load event fire inside the document itself? For example, if the network drops during the pageload (before all the HTML is received), should it still fire a load event? I don't believe we do; does Chrome?
-
Should a load event fire on the iframe element (which we can do independently of the load event firing on the window inside the iframe)?
Really, this is a spec issue and we should get this sorted out there, ideally. I needinfo'd Anne on bug 1599256 already.
Updated•5 years ago
|
Comment 11•5 years ago
|
||
Seems like Christoph implemented something like this for XFO in bug 1601887.
Comment 12•5 years ago
|
||
I am interested in getting back to this. I am going to try and see if bug 1601887 can be extended to also cover iframes blocked by webextensions.
Updated•2 years ago
|
Description
•