Closed Bug 796848 Opened 12 years ago Closed 3 years ago

When closing a tab via the tabs tray or Firefox via quit onbeforeunload is not fired

Categories

(Firefox for Android Graveyard :: General, defect)

All
Android
defect
Not set
normal

Tracking

(firefox15 affected, firefox16 affected, firefox17 affected, firefox18 affected, firefox19 affected)

RESOLVED INCOMPLETE
Tracking Status
firefox15 --- affected
firefox16 --- affected
firefox17 --- affected
firefox18 --- affected
firefox19 --- affected

People

(Reporter: froidure_nicolas, Unassigned)

References

Details

Attachments

(1 file)

Attached file test.html
User Agent: Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.4 (KHTML, like Gecko) Chrome/22.0.1229.79 Safari/537.4

Steps to reproduce:

Register a function to window.onbeforeunload
Use the menu button, choose Quit
(Did it in Firefox for Andoird Beta but earlier versions are also impacted)


Actual results:

Firefox is not closed, it's just put to the background and going back to the Firefox view shows the unbeforeunload message but it doesn't respond anymore to any action.
The only way to get Firefox back is to kill him.


Expected results:

Firefox should show the onbeforeunload dialog before closing.
Component: General → DOM
Product: Firefox for Android → Core
Version: Firefox 18 → Trunk
Moving back to Android product since I think this is Android-specific. In particular, when the user selects Quit from the menu we change sLaunchState to LaunchState.GeckoExiting, which causes us to queue any further events sent to gecko. Gecko, meanwhile, is probably expecting the UI to continue to be responsive; java and gecko are out of sync and this causes the observed behaviour.
Component: DOM → General
OS: Linux → Android
Product: Core → Firefox for Android
Hardware: x86_64 → All
Attachment #666896 - Attachment mime type: text/plain → text/html
Status: UNCONFIRMED → NEW
Ever confirmed: true
Summary: onbeforeunload set firefox for Android close unusable → When closing a tab via the tabs tray or Firefox via quit onbeforeunload is not fired
We have completed our launch of our new Firefox on Android. The development of the new versions use GitHub for issue tracking. If the bug report still reproduces in a current version of [Firefox on Android nightly](https://play.google.com/store/apps/details?id=org.mozilla.fenix) an issue can be reported at the [Fenix GitHub project](https://github.com/mozilla-mobile/fenix/). If you want to discuss your report please use [Mozilla's chat](https://wiki.mozilla.org/Matrix#Connect_to_Matrix) server https://chat.mozilla.org and join the [#fenix](https://chat.mozilla.org/#/room/#fenix:mozilla.org) channel.
Status: NEW → RESOLVED
Closed: 3 years ago
Resolution: --- → INCOMPLETE
Product: Firefox for Android → Firefox for Android Graveyard
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: