Some data is not persisted if the app is killed at the wrong time
Categories
(GeckoView :: Extensions, defect, P1)
Tracking
(firefox79 fixed)
Tracking | Status | |
---|---|---|
firefox79 | --- | fixed |
People
(Reporter: agi, Assigned: agi)
References
Details
(Whiteboard: [geckoview:m78][geckoview:m79])
Attachments
(3 files)
Follow up from Bug 1634493.
Talked about this with :snorp, :mixedpuppy, :aswan.
We have a few cases of Gecko code using DeferredTask
to persist data to disk at a later time which doesn't work on Android since there are no shutdown tasks. We could run some of them when receiving application-background
.
Updated•5 years ago
|
Updated•5 years ago
|
Assignee | ||
Comment 1•5 years ago
|
||
Some tests rely on the order of execution of the blocklist code which cannot be
guaranteed if we don't wait for the enabled state to settle.
In particular, when calling _onUpdate
in
AddonTestUtils.loadBlocklistRawData
in 0 we implicitely assume that all the
actions deriving from updating the blocklist settle before the promise is
completed, this is not true for the enabled state.
Currently the test succedes because ExtensionPermissions.get
is not actually
async in most cases, this is about to change in the next patch.
Assignee | ||
Comment 2•5 years ago
|
||
Assignee | ||
Comment 3•4 years ago
|
||
This is needed so that extensions can access incognito tabs during early
background script startup in tests.
Comment 5•4 years ago
|
||
bugherder |
https://hg.mozilla.org/mozilla-central/rev/116a28847684
https://hg.mozilla.org/mozilla-central/rev/9528ab23db09
https://hg.mozilla.org/mozilla-central/rev/2e2818afa107
Updated•4 years ago
|
Updated•4 years ago
|
Updated•4 years ago
|
Description
•