[webkit-changes] [WebKit/WebKit] 777ad4: Ignore public suffixes when checking whether to ap...

Wenson Hsieh noreply at github.com
Thu May 4 23:04:00 PDT 2023


  Branch: refs/heads/main
  Home:   https://github.com/WebKit/WebKit
  Commit: 777ad4c846a81579abb195e0e87b52b6ccd4b6a1
      https://github.com/WebKit/WebKit/commit/777ad4c846a81579abb195e0e87b52b6ccd4b6a1
  Author: Wenson Hsieh <wenson_hsieh at apple.com>
  Date:   2023-05-04 (Thu, 04 May 2023)

  Changed paths:
    M Source/WebCore/dom/Document.cpp

  Log Message:
  -----------
  Ignore public suffixes when checking whether to apply adjustments in `Document::urlForBindings`
https://bugs.webkit.org/show_bug.cgi?id=256329
rdar://108691950

Reviewed by Aditya Keerthi.

In a similar vein to 262965 at main, discount public suffixes when determining whether or not we should
adjust `urlForBindings`, as long as the top level domain otherwise matches. This patch pulls that
previously introduced logic out into a separate lambda function, and consults it in both places.

* Source/WebCore/dom/Document.cpp:
(WebCore::Document::urlForBindings const):

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




More information about the webkit-changes mailing list