Disallow calling window.close from onbeforeunload

NEW
Unassigned

Status

()

Core
Document Navigation
3 years ago
3 years ago

People

(Reporter: Gijs, Unassigned)

Tracking

Trunk
Points:
---

Firefox Tracking Flags

(firefox41 affected)

Details

(Reporter)

Description

3 years ago
Chrome seems to already do this, IE asks the user. Without doing this, you get odd cases where if window.open or clicking a _blank link opens a new tab, the page in that tab can nuke the tab for you if you try to navigate it elsewhere. That seems wrong.
You need to log in before you can comment on or make changes to this bug.