Branch: refs/heads/main
  Home:   https://github.com/WebKit/WebKit
  Commit: 8328992f273c7ac81d6c3f7180fb8d68154131f0
      
https://github.com/WebKit/WebKit/commit/8328992f273c7ac81d6c3f7180fb8d68154131f0
  Author: Youenn Fablet <[email protected]>
  Date:   2025-01-15 (Wed, 15 Jan 2025)

  Changed paths:
    M 
LayoutTests/imported/w3c/web-platform-tests/urlpattern/urlpattern.any-expected.txt
    M 
LayoutTests/imported/w3c/web-platform-tests/urlpattern/urlpattern.any.serviceworker-expected.txt
    M 
LayoutTests/imported/w3c/web-platform-tests/urlpattern/urlpattern.any.sharedworker-expected.txt
    M 
LayoutTests/imported/w3c/web-platform-tests/urlpattern/urlpattern.any.worker-expected.txt
    M 
LayoutTests/imported/w3c/web-platform-tests/urlpattern/urlpattern.https.any-expected.txt
    M 
LayoutTests/imported/w3c/web-platform-tests/urlpattern/urlpattern.https.any.serviceworker-expected.txt
    M 
LayoutTests/imported/w3c/web-platform-tests/urlpattern/urlpattern.https.any.sharedworker-expected.txt
    M 
LayoutTests/imported/w3c/web-platform-tests/urlpattern/urlpattern.https.any.worker-expected.txt
    M Source/WebCore/Modules/url-pattern/URLPatternCanonical.cpp

  Log Message:
  -----------
  Align URLPattern path canonicalisation to spec
https://bugs.webkit.org/show_bug.cgi?id=285982
rdar://problem/142952620

Reviewed by Anne van Kesteren.

An empty scheme should trigger pathname canonicalization and not opaque 
pathname canonicalization,
as per https://urlpattern.spec.whatwg.org/#process-pathname-for-init step 2.

In addition, to disable percent encoding of pathname for opaque path names, we 
use the URL parser via URL constructor and not via URL::setPath.
And we use a non special scheme as part of it.

* 
LayoutTests/imported/w3c/web-platform-tests/urlpattern/urlpattern.any-expected.txt:
* 
LayoutTests/imported/w3c/web-platform-tests/urlpattern/urlpattern.any.serviceworker-expected.txt:
* 
LayoutTests/imported/w3c/web-platform-tests/urlpattern/urlpattern.any.sharedworker-expected.txt:
* 
LayoutTests/imported/w3c/web-platform-tests/urlpattern/urlpattern.any.worker-expected.txt:
* 
LayoutTests/imported/w3c/web-platform-tests/urlpattern/urlpattern.https.any-expected.txt:
* 
LayoutTests/imported/w3c/web-platform-tests/urlpattern/urlpattern.https.any.serviceworker-expected.txt:
* 
LayoutTests/imported/w3c/web-platform-tests/urlpattern/urlpattern.https.any.sharedworker-expected.txt:
* 
LayoutTests/imported/w3c/web-platform-tests/urlpattern/urlpattern.https.any.worker-expected.txt:
* Source/WebCore/Modules/url-pattern/URLPatternCanonical.cpp:
(WebCore::canonicalizeOpaquePathname):
(WebCore::processPathname):

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



To unsubscribe from these emails, change your notification settings at 
https://github.com/WebKit/WebKit/settings/notifications
_______________________________________________
webkit-changes mailing list
[email protected]
https://lists.webkit.org/mailman/listinfo/webkit-changes

Reply via email to