SwapDocShells event fires twice for one swap
Categories
(WebExtensions :: General, defect)
Tracking
(firefox51 wontfix, firefox68 fixed)
People
(Reporter: robwu, Assigned: robwu)
References
Details
Attachments
(1 file)
| Assignee | ||
Comment 1•9 years ago
|
||
Comment 2•9 years ago
|
||
| Assignee | ||
Comment 4•7 years ago
|
||
Bug 1279086 introduced the "EndSwapDocShells" event:
https://hg.mozilla.org/mozilla-central/rev/cfcd8c4f3a36b958002010a9c6d461a7769996d5#l36.2
That can be used to avoid the double-docswapping issue, by deferring the registration of the SwapDocShells event until the EndSwapDocShells event, similarly to how bug 1515077 was fixed.
That needs to be done here too:
https://searchfox.org/mozilla-central/rev/6dab6dad9cc852011a14275a8b2c2c03ed7600a7/toolkit/components/extensions/MessageManagerProxy.jsm#167,192,195
| Assignee | ||
Comment 5•7 years ago
|
||
The "SwapDocShells" event should be deferred until "EndSwapDocShells".
Otherwise the event MessageManagerProxy may swap the event listeners
twice, and end up having the listeners on the incorrect message manager.
Depends on D27288
Comment 7•7 years ago
|
||
| bugherder | ||
Comment 8•7 years ago
|
||
Can you please provide some STR for this issue so we can check it manually? If no manual testing is needed please mark it as "qe-verify- "
| Assignee | ||
Updated•7 years ago
|
Updated•7 years ago
|
Description
•