Activate kClearCrossSiteCrossBrowsingContextGroupWindowName flag

This commit is contained in:
Carmelo Messina
2023-10-31 17:51:28 +01:00
parent 78e9cfeea2
commit ab0766a035
@@ -7,9 +7,24 @@ See also: https://trac.webkit.org/changeset/209076/webkit
Original License: GPL-2.0-or-later - https://spdx.org/licenses/GPL-2.0-or-later.html
License: GPL-3.0-only - https://spdx.org/licenses/GPL-3.0-only.html
---
content/public/common/content_features.cc | 4 ++--
third_party/blink/renderer/core/loader/document_loader.cc | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
2 files changed, 4 insertions(+), 3 deletions(-)
diff --git a/content/public/common/content_features.cc b/content/public/common/content_features.cc
--- a/content/public/common/content_features.cc
+++ b/content/public/common/content_features.cc
@@ -175,8 +175,8 @@ BASE_FEATURE(kCdmStorageDatabaseMigration,
// Clear the window.name property for the top-level cross-site navigations that
// swap BrowsingContextGroups(BrowsingInstances).
BASE_FEATURE(kClearCrossSiteCrossBrowsingContextGroupWindowName,
- "ClearCrossSiteCrossBrowsingContextGroupWindowName",
- base::FEATURE_DISABLED_BY_DEFAULT);
+ "ClearCrossSiteCrossBrowsingContextGroupWindowName", // enabled
+ base::FEATURE_ENABLED_BY_DEFAULT); // by default
BASE_FEATURE(kCompositeBGColorAnimation,
"CompositeBGColorAnimation",
diff --git a/third_party/blink/renderer/core/loader/document_loader.cc b/third_party/blink/renderer/core/loader/document_loader.cc
--- a/third_party/blink/renderer/core/loader/document_loader.cc
+++ b/third_party/blink/renderer/core/loader/document_loader.cc