Closed Bug 612751 Opened 15 years ago Closed 15 years ago

Window and Tab.close() callbacks should be informed of success or failure

Categories

(Add-on SDK Graveyard :: General, defect)

defect
Not set
normal

Tracking

(Not tracked)

RESOLVED WONTFIX

People

(Reporter: myk, Unassigned)

Details

Attempts to close a window or tab can fail, f.e. because content prompts the user to confirm the attempt due to potential dataloss, and the user denies it. So the Window.close() and Tab.close() callbacks (the latter to be added in bug 612747) should be informed whether or not the attempt to close the window/tab was successful via a boolean parameter.
My believe is that callback won't be called in that case, which is a kind of informative that window / tab was not closed. Users on the other hand can use timeouts to do something if the window was not closed during that time. Myk do you have any pointers on how to track that close operation was interrupted ?
(In reply to comment #1) > My believe is that callback won't be called in that case, which is a kind of > informative that window / tab was not closed. That's too ambiguous a statement about the success of the attempt, especially since it can take a long time for the decision to be made. > Myk do you have any pointers on how to track that close operation was > interrupted ? No, unfortunately I don't know how to do so or if it's even possible at the moment. It might need platform fixes. Note: this bug is not an SDK 1.0beta1 blocker.
I haven't seen any requests for this, and it would be unwise to change the semantics of "close" events at this point, so we shouldn't do this.
Status: NEW → RESOLVED
Closed: 15 years ago
Resolution: --- → WONTFIX
You need to log in before you can comment on or make changes to this bug.