Closed Bug 1570383 Opened 6 years ago Closed 6 years ago

Call GeckoThread.onPause() and onResume() on activity lifecycle events

Categories

(GeckoView :: General, enhancement)

All
Android
enhancement
Not set
normal

Tracking

(firefox69 wontfix, firefox70 fixed)

RESOLVED FIXED
mozilla70
Tracking Status
firefox69 --- wontfix
firefox70 --- fixed

People

(Reporter: mortimergoro, Assigned: mortimergoro)

References

Details

(Whiteboard: [geckoview:fxr:p1])

Attachments

(1 file)

I needed to detect when the browser goes to background in a Gecko cpp class, but I found the application-background event isn't triggered in GeckoView. The event is triggered from nsAppShell::onPause().

We can call GeckoThread.onPause() and GeckoThread.onResume() to trigger the pause/resume logic from nsAppShell.

Assignee: nobody → imanol

Call GeckoThread.onPause() and onResume() on GeckoRuntime lifecycle events.

Whiteboard: [geckoview:fxr:p1]
Pushed by igorostizaga@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/4b40f7fa9db2 Call GeckoThread.onPause() and onResume() on GeckoRuntime lifecycle events. r=snorp,rbarker
Status: NEW → RESOLVED
Closed: 6 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla70

firefox69=wontfix because I assume we don't need to uplift these GeckoThread changes to GV 69 Beta.

You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: