Open
Bug 1770834
Opened 2 years ago
Updated 2 years ago
Feature request: add a notification for JS window.close() attempt
Categories
(Core :: DOM: Core & HTML, enhancement)
Tracking
()
UNCONFIRMED
People
(Reporter: Stehlampe2020, Unassigned)
Details
Attachments
(1 file)
135.98 KB,
application/zip
|
Details |
User Agent: Mozilla/5.0 (X11; Linux x86_64; rv:100.0) Gecko/20100101 Firefox/100.0
Steps to reproduce:
issue window.close();
in console
Actual results:
Nothing, except a console warning that scripts may only close windows they have created.
Expected results:
Everything behaves as programmed, but what I would like is a popup (like the Ctrl+Q popup, if turned on) that asks if the script is allowed to close the current tab. What could also be nice: that it straight-out closes the tab if issued by an onClick EventHandler within 2000ms of the click.
Comment 1•2 years ago
|
||
The Bugbug bot thinks this bug should belong to the 'Core::Widget: Gtk' component, and is moving the bug to that component. Please correct in case you think the bot is wrong.
Component: Untriaged → Widget: Gtk
Product: Firefox → Core
Updated•2 years ago
|
Component: Widget: Gtk → DOM: Core & HTML
You need to log in
before you can comment on or make changes to this bug.
Description
•