Logcat says `[JavaScript Error: "Error restoring service: TypeError: can't access property "uninit", pushService.service is undefined" {file: "http://mochi.test:8888/tests/dom/push/test/mockpushserviceparent.js" line: 195}]`. Turns out we are using a different PushService module for GeckoView. We use [PushComponents.sys.mjs](https://searchfox.org/mozilla-central/rev/4044c34031d035fadb588143297ba5421419d44b/dom/push/PushComponents.sys.mjs) for desktop and [GeckoViewPush.sys.mjs](https://hg.mozilla.org/mozilla-central/log/tip/mobile/android/components/geckoview/GeckoViewPush.sys.mjs) for GeckoView. Somehow those modules have diffferent members and thus the mocked module fails to use the latter.
Bug 1214362 Comment 61 Edit History
Note: The actual edited comment in the bug view page will always show the original commenter’s name and original timestamp.
Logcat says: * `[JavaScript Error: "TypeError: pushService.replaceServiceBackend is not a function" {file: "http://mochi.test:8888/tests/dom/push/test/mockpushserviceparent.js" line: 75}]` * `[JavaScript Error: "Error restoring service: TypeError: can't access property "uninit", pushService.service is undefined" {file: "http://mochi.test:8888/tests/dom/push/test/mockpushserviceparent.js" line: 195}]`. Turns out we are using a different PushService module for GeckoView. We use [PushComponents.sys.mjs](https://searchfox.org/mozilla-central/rev/4044c34031d035fadb588143297ba5421419d44b/dom/push/PushComponents.sys.mjs) for desktop and [GeckoViewPush.sys.mjs](https://hg.mozilla.org/mozilla-central/log/tip/mobile/android/components/geckoview/GeckoViewPush.sys.mjs) for GeckoView. Somehow those modules have diffferent members and thus the mocked module fails to use the latter.
Logcat says: * `[JavaScript Error: "TypeError: pushService.replaceServiceBackend is not a function" {file: "http://mochi.test:8888/tests/dom/push/test/mockpushserviceparent.js" line: 75}]` * `[JavaScript Error: "Error restoring service: TypeError: can't access property "uninit", pushService.service is undefined" {file: "http://mochi.test:8888/tests/dom/push/test/mockpushserviceparent.js" line: 195}]`. Turns out we are using a different PushService module for GeckoView. We use [PushComponents.sys.mjs](https://searchfox.org/mozilla-central/rev/4044c34031d035fadb588143297ba5421419d44b/dom/push/PushComponents.sys.mjs) for desktop and [GeckoViewPush.sys.mjs](https://hg.mozilla.org/mozilla-central/log/tip/mobile/android/components/geckoview/GeckoViewPush.sys.mjs) for GeckoView. Somehow those modules have diffferent members and thus the mocked module fails to use the latter. (It's fun, didn't know live_backing does not cover every log on GeckoView)