Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Continue to refine heuristics around when URL adjustment should be ap…
…plied 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
- Loading branch information