Truly independent web browser
LibWeb: Mask ancestor origins only when they are not same origin
Andreas Kling5fd3eb094843
diff --git a/Libraries/LibWeb/DOM/Document.cpp b/Libraries/LibWeb/DOM/Document.cppindex 087631d86c9..3b290287d12 100644--- a/Libraries/LibWeb/DOM/Document.cpp+++ b/Libraries/LibWeb/DOM/Document.cpp@@ -12128,7 +12128,7 @@ Vector<URL::Origin> Document::internal_ancestor_origin_objects_list_creation_stemasked = true;// 9. Otherwise, if referrerPolicy is "same-origin" and parentDoc's origin is not same origin with document's origin, then set masked to true.- else if (referrer_policy == ReferrerPolicy::ReferrerPolicy::SameOrigin && parent_doc->origin().is_same_origin(origin()))+ else if (referrer_policy == ReferrerPolicy::ReferrerPolicy::SameOrigin && !parent_doc->origin().is_same_origin(origin()))masked = true;// 10. If masked is true, then append a new opaque origin to output.