FactoryOp::ActorDestroy needs to do cleanup if the actor was waiting for the PermissionRetry message
Categories
(Core :: Storage: IndexedDB, defect)
Tracking
()
People
(Reporter: janv, Assigned: janv)
References
Details
Crash Data
Attachments
(1 file)
47 bytes,
text/x-phabricator-request
|
pascalc
:
approval-mozilla-beta+
|
Details | Review |
Ok, this is not a sec issue, because gFactoryOps holds strong references to FactoryOp objects, but if we don't do the cleanup, the op is not removed from gFactoryOps array and that leads to a shutdown hang.
This all can happen when parent sends PermissionChallenge to the child and the child dies instead of sending PermissionRetry back to the parent.
I guess the permission stuff is still used by extensions.
I can definitely simulate this issue with dom/indexedDB/test/browser_permissionsPromptAllow.js test.
We should fix it.
Assignee | ||
Updated•6 years ago
|
Assignee | ||
Comment 1•6 years ago
|
||
Assignee | ||
Updated•6 years ago
|
Updated•6 years ago
|
Comment 3•6 years ago
|
||
bugherder |
Assignee | ||
Updated•6 years ago
|
Assignee | ||
Comment 4•6 years ago
|
||
There's a chance that this has had an impact on IDB shutdown hangs. We'll see next week.
Assignee | ||
Comment 5•6 years ago
|
||
Comment on attachment 9056357 [details]
Bug 1542541 - FactoryOp::ActorDestroy needs to do cleanup if the actor was waiting for the PermissionRetry message; r=asuth
Beta/Release Uplift Approval Request
- Feature/Bug causing the regression: This has been an issue for long time
- User impact if declined: The number of shutdown hangs stays high. This patch should reduce them.
- Is this code covered by automated tests?: Yes
- Has the fix been verified in Nightly?: Yes
- Needs manual test from QE?: No
- If yes, steps to reproduce:
- List of other uplifts needed: None
- Risk to taking this patch: Low
- Why is the change risky/not risky? (and alternatives if risky): A simple patch, verified on Nightly, covered by tests.
- String changes made/needed: None
Comment 6•6 years ago
|
||
Comment on attachment 9056357 [details]
Bug 1542541 - FactoryOp::ActorDestroy needs to do cleanup if the actor was waiting for the PermissionRetry message; r=asuth
Low risk patch with tests that may reduce our shutdown hangs crashes, uplift approved for 67 beta 12, thanks.
Assignee | ||
Updated•6 years ago
|
Comment 7•6 years ago
|
||
bugherder uplift |
Updated•6 years ago
|
Assignee | ||
Updated•6 years ago
|
Description
•