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:
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user