Bug 1949805 - Window opener heuristic with user interaction should not only work for trackers - r=timhuang

Differential Revision: https://phabricator.services.mozilla.com/D239165
This commit is contained in:
Benjamin VanderSloot
2025-02-23 13:40:19 +00:00
parent c2839cbb75
commit 5d1e346b26
2 changed files with 8 additions and 7 deletions

View File

@@ -17575,11 +17575,6 @@ void Document::MaybeAllowStorageForOpenerAfterUserInteraction() {
return;
}
// We care about first-party tracking resources only.
if (!nsContentUtils::IsFirstPartyTrackingResourceWindow(inner)) {
return;
}
auto* outer = nsGlobalWindowOuter::Cast(inner->GetOuterWindow());
if (NS_WARN_IF(!outer)) {
return;