Closed Bug 1899523 Opened 1 year ago Closed 5 months ago

Window opened as about:blank immediately fires unload event

Categories

(Core :: DOM: Events, defect)

Firefox 126
defect

Tracking

()

RESOLVED FIXED

People

(Reporter: benjpas, Unassigned)

References

Details

Steps to reproduce:

Open https://bpasero.github.io/firefox-window-open/ and observe the console for a "unload" message.

The sourcecode is available here: https://github.com/bpasero/firefox-window-open/blob/main/index.html

Actual results:

The window "onunload" event fired.

Expected results:

No unload event should have fired. Chrome and Safari do not fire this event.

If the code changes to "window.open("", undefined, "width=800,height=600");", the event is not fired.

The Bugbug bot thinks this bug should belong to the 'Core::DOM: Events' component, and is moving the bug to that component. Please correct in case you think the bot is wrong.

Component: Untriaged → DOM: Events
Product: Firefox → Core

Hi Henri, is this related to your about:blank work?

Severity: -- → S3
Flags: needinfo?(hsivonen)

This is a symptom of bug 543435 remaining unfixed, yes.

Status: UNCONFIRMED → NEW
Depends on: sync-about-blank
Ever confirmed: true
Flags: needinfo?(hsivonen)

Reproducible on 146.0b7 and fixed on Nightly after bug 543435 was merged

Status: NEW → RESOLVED
Closed: 5 months ago
Resolution: --- → FIXED
You need to log in before you can comment on or make changes to this bug.