Remove-window-name-on-cross-origin-navigation.patch 1.3 KB

12345678910111213141516171819202122232425262728293031
  1. From: uazo <uazo@users.noreply.github.com>
  2. Date: Sat, 9 Jul 2022 06:59:18 +0000
  3. Subject: Remove window name on cross origin navigation
  4. see also https://trac.webkit.org/changeset/209076/webkit
  5. ---
  6. third_party/blink/renderer/core/loader/document_loader.cc | 3 ++-
  7. 1 file changed, 2 insertions(+), 1 deletion(-)
  8. diff --git a/third_party/blink/renderer/core/loader/document_loader.cc b/third_party/blink/renderer/core/loader/document_loader.cc
  9. --- a/third_party/blink/renderer/core/loader/document_loader.cc
  10. +++ b/third_party/blink/renderer/core/loader/document_loader.cc
  11. @@ -2412,7 +2412,7 @@ void DocumentLoader::CommitNavigation() {
  12. // that the name would be nulled and if the name is accessed after we will
  13. // fire a UseCounter. If we decide to move forward with this change, we'd
  14. // actually clean the name here.
  15. - // frame_->tree().setName(g_null_atom);
  16. + frame_->Tree().SetName(g_null_atom);
  17. frame_->Tree().ExperimentalSetNulledName();
  18. }
  19. @@ -2423,6 +2423,7 @@ void DocumentLoader::CommitNavigation() {
  20. // TODO(shuuran): CrossSiteCrossBrowsingContextGroupSetNulledName will just
  21. // record the fact that the name would be nulled and if the name is accessed
  22. // after we will fire a UseCounter.
  23. + frame_->Tree().SetName(g_null_atom);
  24. frame_->Tree().CrossSiteCrossBrowsingContextGroupSetNulledName();
  25. }
  26. --
  27. 2.25.1