Branch: refs/heads/main Home: https://github.com/WebKit/WebKit Commit: 8bc5fdc4f9897b714d6627c48b5d6f0c54c735e5 https://github.com/WebKit/WebKit/commit/8bc5fdc4f9897b714d6627c48b5d6f0c54c735e5 Author: Anne van Kesteren <ann...@annevk.nl> Date: 2025-08-07 (Thu, 07 Aug 2025)
Changed paths: M LayoutTests/TestExpectations M LayoutTests/imported/w3c/resources/resource-files.json M LayoutTests/imported/w3c/web-platform-tests/html/browsers/history/the-location-interface/assign-replace-from-top-to-nested-iframe.html M LayoutTests/imported/w3c/web-platform-tests/html/browsers/history/the-location-interface/location-protocol-setter-non-broken-expected.txt A LayoutTests/imported/w3c/web-platform-tests/html/browsers/history/the-location-interface/location_hash_set_empty_string-expected.txt A LayoutTests/imported/w3c/web-platform-tests/html/browsers/history/the-location-interface/location_hash_set_empty_string.html A LayoutTests/imported/w3c/web-platform-tests/html/browsers/history/the-location-interface/location_hashchange_infinite_loop-expected.txt A LayoutTests/imported/w3c/web-platform-tests/html/browsers/history/the-location-interface/location_hashchange_infinite_loop.html M LayoutTests/imported/w3c/web-platform-tests/html/browsers/history/the-location-interface/resources/w3c-import.log M LayoutTests/imported/w3c/web-platform-tests/html/browsers/history/the-location-interface/w3c-import.log M Source/WebCore/page/Location.cpp Log Message: ----------- Restrict location.protocol setter to HTTP(S) schemes https://bugs.webkit.org/show_bug.cgi?id=296972 rdar://157607342 Reviewed by Alex Christensen. As of 292443@main you can no longer change a URL's scheme from special to non-special and vice versa. As a side effect of disallowing non-special to special we would end up navigating to the current scheme, which would not always work. So instead let's align with the HTML standard and return early if the resulting scheme is not an HTTP(S) scheme, which are essentially the only two schemes for which switching between them makes sense when it comes to navigation. As part of this we synchronize WPT html/browsers/history/the-location-interface and mark the relevant test that regressed as passing. Upstream commit: https://github.com/web-platform-tests/wpt/commit/3c34dafeba8c993b3e32ad06450fe4b50499c02e Canonical link: https://commits.webkit.org/298349@main To unsubscribe from these emails, change your notification settings at https://github.com/WebKit/WebKit/settings/notifications _______________________________________________ webkit-changes mailing list webkit-changes@lists.webkit.org https://lists.webkit.org/mailman/listinfo/webkit-changes