зеркало из https://github.com/mozilla/gecko-dev.git
d7eecef1e9
The (non-normative) window.open spec does not specify what should happen when window.open is called on a window with a null/discarded browsing context, but in general the lookup and creation rules do not make sense when the window has no BC. It does, however, specify that we should return null when a target BC cannot be found or created, and gives us broad discretion over when we decide to ignore a load request and return null. Since we can't trigger a cross-process load from a discarded BC, simply aborting in that case seems like the logical solution. For Location objects, the spec is more specific, and requires that we ignore load attempts on Location objects whose documents are null, which in our implementation corresponds to a discarded BrowsingContext. LocationBase::SetURI already enforces this, but a second check in BrowsingContext::LoadURI is probably a good idea as well. Differential Revision: https://phabricator.services.mozilla.com/D45635 --HG-- extra : moz-landing-system : lando |
||
---|---|---|
.. | ||
base | ||
build | ||
resources/content | ||
shistory | ||
test | ||
moz.build |