If you think a bug might affect users in the 57 release, please set the correct tracking and status flags for Release Management.

load event doesn't fire in a frame script

RESOLVED INVALID

Status

()

Core
DOM: Events
RESOLVED INVALID
3 years ago
3 years ago

People

(Reporter: Kusanagi Kouichi, Unassigned)

Tracking

33 Branch
x86_64
Linux
Points:
---

Firefox Tracking Flags

(Not tracked)

Details

(Reporter)

Description

3 years ago
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

3 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

3 years ago
You're right. Capture phase works. I mistook load event bubbles or not. Thanks.
Status: UNCONFIRMED → RESOLVED
Last Resolved: 3 years ago
Resolution: --- → INVALID
You need to log in before you can comment on or make changes to this bug.