[webkit-changes] [WebKit/WebKit] e1614b: Implement URL.parse()

Anne van Kesteren noreply at github.com
Mon Mar 25 15:21:06 PDT 2024


  Branch: refs/heads/main
  Home:   https://github.com/WebKit/WebKit
  Commit: e1614bd8c992e7e6e162fff5143f3a4932226ae5
      https://github.com/WebKit/WebKit/commit/e1614bd8c992e7e6e162fff5143f3a4932226ae5
  Author: Anne van Kesteren <annevk at annevk.nl>
  Date:   2024-03-25 (Mon, 25 Mar 2024)

  Changed paths:
    A LayoutTests/imported/w3c/web-platform-tests/url/url-statics-parse.any-expected.txt
    A LayoutTests/imported/w3c/web-platform-tests/url/url-statics-parse.any.html
    A LayoutTests/imported/w3c/web-platform-tests/url/url-statics-parse.any.js
    A LayoutTests/imported/w3c/web-platform-tests/url/url-statics-parse.any.worker-expected.txt
    A LayoutTests/imported/w3c/web-platform-tests/url/url-statics-parse.any.worker.html
    M LayoutTests/imported/w3c/web-platform-tests/url/w3c-import.log
    M Source/WebCore/html/DOMURL.cpp
    M Source/WebCore/html/DOMURL.h
    M Source/WebCore/html/DOMURL.idl

  Log Message:
  -----------
  Implement URL.parse()
https://bugs.webkit.org/show_bug.cgi?id=271636

Reviewed by Alex Christensen.

This was standardized in https://github.com/whatwg/url/pull/825 and test
coverage was added here:
https://github.com/web-platform-tests/wpt/pull/45248

As a drive-by fix we remove m_baseURL from DOMURL as it does not need it.

* LayoutTests/imported/w3c/web-platform-tests/url/url-statics-parse.any-expected.txt: Added.
* LayoutTests/imported/w3c/web-platform-tests/url/url-statics-parse.any.html: Added.
* LayoutTests/imported/w3c/web-platform-tests/url/url-statics-parse.any.js: Added.
(forEach):
(test):
* LayoutTests/imported/w3c/web-platform-tests/url/url-statics-parse.any.worker-expected.txt: Added.
* LayoutTests/imported/w3c/web-platform-tests/url/url-statics-parse.any.worker.html: Added.
* LayoutTests/imported/w3c/web-platform-tests/url/w3c-import.log:
* Source/WebCore/html/DOMURL.cpp:
(WebCore::DOMURL::DOMURL):
(WebCore::DOMURL::create):
(WebCore::parseInternal):
(WebCore::DOMURL::parse):
(WebCore::DOMURL::canParse):
* Source/WebCore/html/DOMURL.h:
* Source/WebCore/html/DOMURL.idl:

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



To unsubscribe from these emails, change your notification settings at https://github.com/WebKit/WebKit/settings/notifications


More information about the webkit-changes mailing list