Flush sharedData between writing ppmm and reading cpmm
Categories
(WebExtensions :: General, defect)
Tracking
(firefox155 fixed)
| Tracking | Status | |
|---|---|---|
| firefox155 | --- | fixed |
People
(Reporter: zombie, Assigned: zombie)
References
Details
(Whiteboard: [addons-jira])
Attachments
(1 external file)
I was working on something else, and ran into this test failure. Not sure if it's actually an issue under less artificial scenarios, but the fix seems logical.
| Assignee | ||
Updated•4 months ago
|
Updated•4 months ago
|
| Assignee | ||
Comment 1•4 months ago
|
||
On startup the parent WebExtensionPolicy is built by
ExtensionProcessScript.initExtension, which reads Services.cpmm.sharedData.
That view only reflects Services.ppmm.sharedData writes after a flush.
initSharedData() writes the extension's restored dynamic content scripts to
ppmm just above, but the extension's own flush (Extension:Startup) happens
later. When several extensions restart together, an earlier extension's flush
also snapshots a later one's not-yet-restored scripts as empty. Either way the
policy can be built without the extension's content scripts, so after a restart
their content_parent contexts are spuriously rejected.
Flush before building the policy so the restored scripts are current.
Updated•4 months ago
|
Updated•4 months ago
|
Comment 3•3 months ago
|
||
| bugherder | ||
Description
•