[webkit-changes] [WebKit/WebKit] 4b1b13: Continue to refine heuristics around when URL adju...
Wenson Hsieh
noreply at github.com
Fri Apr 14 07:55:55 PDT 2023
Branch: refs/heads/main
Home: https://github.com/WebKit/WebKit
Commit: 4b1b13515de2e5eaca1f52b315e98b84fd437cc3
https://github.com/WebKit/WebKit/commit/4b1b13515de2e5eaca1f52b315e98b84fd437cc3
Author: Wenson Hsieh <wenson_hsieh at apple.com>
Date: 2023-04-14 (Fri, 14 Apr 2023)
Changed paths:
M Source/WebCore/dom/Document.cpp
M Source/WebCore/dom/Document.h
Log Message:
-----------
Continue to refine heuristics around when URL adjustment should be applied
https://bugs.webkit.org/show_bug.cgi?id=255405
rdar://107939119
Reviewed by Tim Horton.
Use `topPrivatelyControlledDomain` to relax some scenarios in which we currently apply adjustment
underneath `Document::urlForBindings`. We currently avoid adjustment in the case where the current
script triggering the bindings call is first-party (i.e. same origin as the current document), but
this leaves out some cases where it makes more sense to treat certain script is first party; refer
to the new API test case and bug for more information.
* Source/WebCore/dom/Document.cpp:
(WebCore::Document::urlForBindings const):
(WebCore::Document::mayBeExecutingThirdPartyScript const): Deleted.
* Source/WebCore/dom/Document.h:
Canonical link: https://commits.webkit.org/262965@main
More information about the webkit-changes
mailing list