mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 712517 - Disable ActivityObserver on Android to fix blank screen bugs [r=mfinkle]
This commit is contained in:
parent
2ffb262fd5
commit
0c8484846f
@ -361,12 +361,15 @@ var Browser = {
|
||||
os.addObserver(SessionHistoryObserver, "browser:purge-session-history", false);
|
||||
os.addObserver(ContentCrashObserver, "ipc:content-shutdown", false);
|
||||
os.addObserver(MemoryObserver, "memory-pressure", false);
|
||||
#ifndef ANDROID
|
||||
// Disabled on Android because of bug 712517
|
||||
os.addObserver(ActivityObserver, "application-background", false);
|
||||
os.addObserver(ActivityObserver, "application-foreground", false);
|
||||
os.addObserver(ActivityObserver, "system-active", false);
|
||||
os.addObserver(ActivityObserver, "system-idle", false);
|
||||
os.addObserver(ActivityObserver, "system-display-on", false);
|
||||
os.addObserver(ActivityObserver, "system-display-off", false);
|
||||
#endif
|
||||
|
||||
// Listens for change in the viewable area
|
||||
#if MOZ_PLATFORM_MAEMO == 6
|
||||
@ -534,12 +537,15 @@ var Browser = {
|
||||
os.removeObserver(SessionHistoryObserver, "browser:purge-session-history");
|
||||
os.removeObserver(ContentCrashObserver, "ipc:content-shutdown");
|
||||
os.removeObserver(MemoryObserver, "memory-pressure");
|
||||
#ifndef ANDROID
|
||||
// Disabled on Android because of bug 712517
|
||||
os.removeObserver(ActivityObserver, "application-background", false);
|
||||
os.removeObserver(ActivityObserver, "application-foreground", false);
|
||||
os.removeObserver(ActivityObserver, "system-active", false);
|
||||
os.removeObserver(ActivityObserver, "system-idle", false);
|
||||
os.removeObserver(ActivityObserver, "system-display-on", false);
|
||||
os.removeObserver(ActivityObserver, "system-display-off", false);
|
||||
#endif
|
||||
|
||||
window.controllers.removeController(this);
|
||||
window.controllers.removeController(BrowserUI);
|
||||
|
Loading…
Reference in New Issue
Block a user