Closed
Bug 950336
Opened 11 years ago
Closed 11 years ago
Add an option to disable onbeforeunload dialogs
Categories
(Core :: DOM: Core & HTML, defect)
Core
DOM: Core & HTML
Tracking
()
VERIFIED
FIXED
mozilla29
People
(Reporter: spamscud2003, Assigned: Gijs)
References
(Blocks 1 open bug)
Details
Attachments
(1 file)
2.77 KB,
patch
|
bzbarsky
:
review+
|
Details | Diff | Splinter Review |
User Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:25.0) Gecko/20100101 Firefox/25.0 (Beta/Release)
Build ID: 20131112160018
Steps to reproduce:
Type in any form data, then try to leave the page. A popup message will stop you from leaving the page, and tell you "This page is asking you to confirm that you want to leave - data you have entered may not be saved."
Actual results:
This popup message interupted my focus and prevented me from performing the action I wanted to perform.
Expected results:
There should be a way to permanently disable this "feature". It is an annoyance and and a clear vector for security exploit. In my opinion, this "feature" should be turned off by default, or just removed completely from Firefox.
Status: UNCONFIRMED → RESOLVED
Closed: 11 years ago
Resolution: --- → DUPLICATE
Reporter | ||
Comment 2•11 years ago
|
||
This issue is not a replica of bug 616853. I don't care if the popup dialog is tab-modal, I'm asking for an option to COMPLETELY REMOVE this "feature". I see the entire "beforeunload" javascript capability as a bug.
Reporter | ||
Comment 3•11 years ago
|
||
BUMP. NOT RESOLVED. NOT A DUPLICATE.
Updated•11 years ago
|
Status: RESOLVED → REOPENED
Ever confirmed: true
Resolution: DUPLICATE → ---
Comment 4•11 years ago
|
||
See bug 578828 for changing the default.
Blocks: eviltraps
Summary: This page is asking you to confirm that you want to leave - data you have entered may not be saved. → Add an option to disable onbeforeunload dialogs
Comment 5•11 years ago
|
||
This doesn't need to stay in Untriaged. There would be a back-end component to this bug, but the summary "Add an option to disable onbeforeunload dialogs" implies a front-end option available to the user, so I'll move it to Preferences.
Status: REOPENED → NEW
Component: Untriaged → Preferences
Assignee | ||
Comment 6•11 years ago
|
||
I think a pref for this is something we should do. Less convinced about UI for this pref as we've removed UI for much more coarse-grained stuff already, so adding a checkbox for this seems like overkill.
Attachment #8349406 -
Flags: review?(bzbarsky)
Assignee | ||
Updated•11 years ago
|
Assignee: nobody → gijskruitbosch+bugs
Status: NEW → ASSIGNED
Comment 7•11 years ago
|
||
Comment on attachment 8349406 [details] [diff] [review]
add a pref to disable onbeforeunload,
r=me of if you fix the spelling of "onbeforeunload" in the comment and add this pref to all.js so it shows up in about:config.
Attachment #8349406 -
Flags: review?(bzbarsky) → review+
Assignee | ||
Comment 8•11 years ago
|
||
OS: Windows 7 → All
Hardware: x86_64 → All
Whiteboard: [fixed-in-inbound]
Version: 25 Branch → Trunk
Updated•11 years ago
|
Component: Preferences → DOM
Product: Firefox → Core
Comment 9•11 years ago
|
||
Status: ASSIGNED → RESOLVED
Closed: 11 years ago → 11 years ago
Resolution: --- → FIXED
Whiteboard: [fixed-in-inbound]
Target Milestone: --- → mozilla29
Reporter | ||
Comment 10•11 years ago
|
||
Wow, impressive. Thank you guys.
Comment 12•11 years ago
|
||
I wasn't able to reproduce this issue with the Nightly from 2013-11-12 on Win 8 x86 (although I did see that the "dom.disable_beforeunload" pref wasn't available in this build).
I tried with both https://myaccount.nytimes.com/register?action=click®ion=Masthead&pgtype=Homepage&module=Registration&contentCollection=Homepage&t=qry746 and
https://bug17447.bugzilla.mozilla.org/attachment.cgi?id=2467 to close the tabs containing them, but I didn't get any pop-up message.
Could you please provide some URLs that reproduce this issue?
Flags: needinfo?(gijskruitbosch+bugs)
Assignee | ||
Comment 13•11 years ago
|
||
(In reply to Manuela Muntean [:Manuela] [QA] from comment #12)
> I wasn't able to reproduce this issue with the Nightly from 2013-11-12 on
> Win 8 x86 (although I did see that the "dom.disable_beforeunload" pref
> wasn't available in this build).
> I tried with both
> https://myaccount.nytimes.com/
> register?action=click®ion=Masthead&pgtype=Homepage&module=Registration&con
> tentCollection=Homepage&t=qry746 and
> https://bug17447.bugzilla.mozilla.org/attachment.cgi?id=2467 to close the
> tabs containing them, but I didn't get any pop-up message.
>
> Could you please provide some URLs that reproduce this issue?
Try the testcase in bug 636374.
Flags: needinfo?(gijskruitbosch+bugs)
Comment 14•11 years ago
|
||
Verified as fixed with latest Aurora and the testcase in bug 636374, on: Win 8 x86, Ubuntu 13.04 x64, Mac 10.8.5.
Status: RESOLVED → VERIFIED
Keywords: verifyme
Assignee | ||
Comment 15•10 years ago
|
||
Boris, I was discussing this earlier with dolske - the implementation here means no "beforeunload" event fires anymore, which I thought might be broken - ie, we should fire the event but just never show the dialog even when the page says it wants us to (so pretend the user says "yes, I really want to leave" every time).
Would you agree that we should change that? (I'll file a followup bug, but am needinfo'ing here for better context)
Flags: needinfo?(bzbarsky)
Updated•6 years ago
|
Component: DOM → DOM: Core & HTML
You need to log in
before you can comment on or make changes to this bug.
Description
•