forked from mozilla/gecko-dev
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Bug 1588259: Part 1 - Suspend windows when spinning event loop for wi…
…ndow.open. r=smaug This doesn't solve all problems with potential reentrancy during window.open nested event loops, but it does improve the situation somewhat. Since any window in the same BrowsingContextGroup can target any window in the same group, we need to suspend all windows in the group, not just the root of the new window's parent. We also need to make sure we suspend all in-process windows, even if we have out-of-process frames somewhere in the parent chain. This patch takes care of suspending timeouts and input event handling in all of these cases. It doesn't block all potential paths for running code in the suspended windows, though, so the next patch explicitly prevents the problematic reentrancy. Differential Revision: https://phabricator.services.mozilla.com/D57666 --HG-- extra : moz-landing-system : lando
- Loading branch information
Showing
3 changed files
with
72 additions
and
19 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters