Bug 1681457 - Allow non-auxiliary BrowsingContexts created by script to close themselves, r=smaug

Differential Revision: https://phabricator.services.mozilla.com/D211792
This commit is contained in:
Nika Layzell
2024-05-31 17:27:15 +00:00
parent dbd72c849d
commit 7025bc892e
13 changed files with 88 additions and 25 deletions

View File

@@ -18988,7 +18988,7 @@ bool Document::IsLikelyContentInaccessibleTopLevelAboutBlank() const {
// really reliable but doesn't affect the correctness of our page probes, so
// it's not too terrible.
BrowsingContext* bc = GetBrowsingContext();
return bc && bc->IsTop() && !bc->HadOriginalOpener();
return bc && bc->IsTop() && !bc->GetTopLevelCreatedByWebContent();
}
bool Document::ShouldIncludeInTelemetry() const {