Closed
Bug 1099096
Opened 11 years ago
Closed 11 years ago
load event doesn't fire in a frame script
Categories
(Core :: DOM: Events, defect)
Tracking
()
RESOLVED
INVALID
People
(Reporter: slash, Unassigned)
Details
User Agent: Mozilla/5.0 (X11; Linux x86_64; rv:33.0) Gecko/20100101 Firefox/33.0 Iceweasel/33.1
Build ID: 20141111034249
Steps to reproduce:
1. Load this frame script:
addEventListener("load", e => dump(e.target.documentURI + "\n"));
2. Load a page
Actual results:
Doesn't print URL
Expected results:
Print URL
Comment 1•11 years ago
|
||
You need to add the listener to capture phase.
Load event dispatched to Window object doesn't bubble, and addEventListener defaults to bubble phase.
So, pass true as the 3rd param.
| Reporter | ||
Comment 2•11 years ago
|
||
You're right. Capture phase works. I mistook load event bubbles or not. Thanks.
Status: UNCONFIRMED → RESOLVED
Closed: 11 years ago
Resolution: --- → INVALID
You need to log in
before you can comment on or make changes to this bug.
Description
•