[webkit-changes] [WebKit/WebKit] 31e1e5: Add support to return an adjusted URL when accesse...

Charlie Wolfe noreply at github.com
Wed Dec 7 09:51:17 PST 2022


  Branch: refs/heads/main
  Home:   https://github.com/WebKit/WebKit
  Commit: 31e1e52a0454daa2899f75aa1ec6af635a3828ed
      https://github.com/WebKit/WebKit/commit/31e1e52a0454daa2899f75aa1ec6af635a3828ed
  Author: Charlie Wolfe <charliew at apple.com>
  Date:   2022-12-07 (Wed, 07 Dec 2022)

  Changed paths:
    M Source/WebCore/dom/Document.cpp
    M Source/WebCore/dom/Document.h
    M Source/WebCore/page/Location.cpp

  Log Message:
  -----------
  Add support to return an adjusted URL when accessed from JavaScript bindings
https://bugs.webkit.org/show_bug.cgi?id=248490
rdar://100472810

Reviewed by Wenson Hsieh.

This patch adds support to return an adjusted URL for JavaScript bindings
after a cross site top level navigation.

* Source/WebCore/dom/Document.cpp:
(WebCore::Document::setURL):
(WebCore::Document::urlForBindings const):
(WebCore::Document::adjustedURL const):
* Source/WebCore/dom/Document.h:
(WebCore::Document::urlForBindings const): Deleted.
* Source/WebCore/page/Location.cpp:
(WebCore::Location::url const):

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




More information about the webkit-changes mailing list