before unload, prompt user if they really want to close?
49 views
Skip to first unread message
Nathan Pierce
unread,
Feb 4, 2023, 9:58:54 AM2/4/23
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to Chromium Extensions
I've tried many versions of triggering a confirmation to the user if they close the extension window and none seem to work. Is beforeunload still allowed, or has it been disabled to prevent abuse?
Nathan Pierce
unread,
Feb 4, 2023, 10:18:23 AM2/4/23
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
> The beforeunload dialog will only be shown if the frame attempting to display it has received a user gesture or user interaction (or if any embedded frame has received such a gesture). (There will be no change to the dispatch of the beforeunload event, just a change to whether the dialog is shown.)
hrg...@gmail.com
unread,
Feb 4, 2023, 11:02:33 AM2/4/23
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message