[webkit-changes] [WebKit/WebKit] 778e35: Navigating a cross-origin iframe to the same URL s...

Chris Dumez noreply at github.com
Fri Sep 16 10:53:53 PDT 2022


  Branch: refs/heads/main
  Home:   https://github.com/WebKit/WebKit
  Commit: 778e351efb2f883b957255017712151e3fffa629
      https://github.com/WebKit/WebKit/commit/778e351efb2f883b957255017712151e3fffa629
  Author: Chris Dumez <cdumez at apple.com>
  Date:   2022-09-16 (Fri, 16 Sep 2022)

  Changed paths:
    M LayoutTests/TestExpectations
    M LayoutTests/imported/w3c/web-platform-tests/html/browsers/browsing-the-web/navigating-across-documents/navigate-cross-origin-iframe-to-same-url-expected.txt
    M LayoutTests/imported/w3c/web-platform-tests/html/browsers/browsing-the-web/navigating-across-documents/navigate-cross-origin-iframe-to-same-url-with-fragment-expected.txt
    R LayoutTests/platform/mac-wk1/imported/w3c/web-platform-tests/html/browsers/browsing-the-web/navigating-across-documents/navigate-cross-origin-iframe-to-same-url-expected.txt
    M Source/WebCore/loader/FrameLoader.cpp
    M Source/WebCore/loader/FrameLoader.h

  Log Message:
  -----------
  Navigating a cross-origin iframe to the same URL should not replace the current HistoryItem
https://bugs.webkit.org/show_bug.cgi?id=245246

Reviewed by Darin Adler.

Navigating a cross-origin iframe to the same URL should not replace the current HistoryItem.
This aligns our behavior with Blink and Gecko.

* LayoutTests/TestExpectations:
* LayoutTests/imported/w3c/web-platform-tests/html/browsers/browsing-the-web/navigating-across-documents/navigate-cross-origin-iframe-to-same-url-expected.txt:
* LayoutTests/imported/w3c/web-platform-tests/html/browsers/browsing-the-web/navigating-across-documents/navigate-cross-origin-iframe-to-same-url-with-fragment-expected.txt:
* Source/WebCore/loader/FrameLoader.cpp:
(WebCore::FrameLoader::loadArchive):
(WebCore::FrameLoader::loadInSameDocument):
(WebCore::FrameLoader::loadURL):
(WebCore::FrameLoader::load):
(WebCore::FrameLoader::loadWithDocumentLoader):
(WebCore::FrameLoader::continueFragmentScrollAfterNavigationPolicy):
(WebCore::FrameLoader::shouldTreatURLAsSameAsCurrent const):
(WebCore::FrameLoader::loadSameDocumentItem):
* Source/WebCore/loader/FrameLoader.h:

Canonical link: https://commits.webkit.org/254563@main




More information about the webkit-changes mailing list