mirror of
https://github.com/mozilla/gecko-dev.git
synced 2025-01-26 23:23:33 +00:00
eb598b2ae9
In the bug which introduced mIsDiscarded, the code was changed to not set mClosed during Detach, and only set mIsDiscarded. This was a mistake because a bunch of places are only reading mClosed. Specifically when creating a BrowsingContext for an iframe, we check GetClosed() to see whether to skip creating it. Not doing this check can lead to assertions like the one in this bug. This patch changes the behaviour to continue setting `mClosed`, and also updates the relevant `GetClosed()` checks to correctly check `IsDiscarded()` Differential Revision: https://phabricator.services.mozilla.com/D37267 --HG-- extra : moz-landing-system : lando