From f77ac33155abc0a922be14976d4bf550dfd47d1b Mon Sep 17 00:00:00 2001 From: Carmelo Messina Date: Sat, 9 Jul 2022 09:31:45 +0200 Subject: [PATCH] Remove window name on cross origin navigation --- ...ndow-name-on-cross-origin-navigation.patch | 31 +++++++++++++++++++ 1 file changed, 31 insertions(+) create mode 100644 build/patches/Remove-window-name-on-cross-origin-navigation.patch diff --git a/build/patches/Remove-window-name-on-cross-origin-navigation.patch b/build/patches/Remove-window-name-on-cross-origin-navigation.patch new file mode 100644 index 00000000..ff473344 --- /dev/null +++ b/build/patches/Remove-window-name-on-cross-origin-navigation.patch @@ -0,0 +1,31 @@ +From: uazo +Date: Sat, 9 Jul 2022 06:59:18 +0000 +Subject: Remove window name on cross origin navigation + +see also https://trac.webkit.org/changeset/209076/webkit +--- + third_party/blink/renderer/core/loader/document_loader.cc | 3 ++- + 1 file changed, 2 insertions(+), 1 deletion(-) + +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 +@@ -2412,7 +2412,7 @@ void DocumentLoader::CommitNavigation() { + // that the name would be nulled and if the name is accessed after we will + // fire a UseCounter. If we decide to move forward with this change, we'd + // actually clean the name here. +- // frame_->tree().setName(g_null_atom); ++ frame_->Tree().SetName(g_null_atom); + frame_->Tree().ExperimentalSetNulledName(); + } + +@@ -2423,6 +2423,7 @@ void DocumentLoader::CommitNavigation() { + // TODO(shuuran): CrossSiteCrossBrowsingContextGroupSetNulledName will just + // record the fact that the name would be nulled and if the name is accessed + // after we will fire a UseCounter. ++ frame_->Tree().SetName(g_null_atom); + frame_->Tree().CrossSiteCrossBrowsingContextGroupSetNulledName(); + } + +-- +2.25.1