Open
Bug 393908
Opened 18 years ago
Updated 3 years ago
Chrome dialogs should have ondialogcancel called when the app exits and it should be cancellable
Categories
(Core :: DOM: Core & HTML, defect, P5)
Tracking
()
NEW
People
(Reporter: jason.barnabe, Unassigned)
Details
Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9a8pre) Gecko/2007082523 Minefield/3.0a8pre
Chrome windows can cancel a user's request to close the window by returning false from onunload. One example of when this is useful is when the window must run a save routine that has asynchronous parts. The script cancels the user's initial request, lets the asynchronous stuff do its work, and then calls window.close() when it's finished.
When the user chooses to close the app (e.g. via File -> Quit in Firefox) however, chrome windows aren't allowed to cancel the closing of the window. For me and my users, this results in data loss because the save script doesn't get a chance to run. Should this be something chrome windows are allowed to do?
| Reporter | ||
Comment 1•18 years ago
|
||
Sorry, I got the details a bit wrong.
It's not onunload that can be canceled; it's ondialogcancel for dialogs. ondialogcancel isn't called when the app exits. It should be called and should be cancelable.
Summary: Chrome windows should be able to cancel window close on app exit → Chrome dialogs should have ondialogcancel called when the app exits and it should be cancellable
Comment 2•18 years ago
|
||
Is this a regression?
| Reporter | ||
Comment 3•18 years ago
|
||
I don't know. The bug is present in Firefox 2, at least.
Comment 4•7 years ago
|
||
https://bugzilla.mozilla.org/show_bug.cgi?id=1472046
Move all DOM bugs that haven't been updated in more than 3 years and has no one currently assigned to P5.
If you have questions, please contact :mdaly.
Priority: -- → P5
Updated•3 years ago
|
Severity: normal → S3
You need to log in
before you can comment on or make changes to this bug.
Description
•