script: Strip javascript URL scheme using Position::AfterScheme rather than Position::BeforePath (#38599)

This makes the initial split match step 2 of
https://html.spec.whatwg.org/multipage/browsing-the-web.html#evaluate-a-javascript%3A-url.

Testing: Covered by WPT tests.
Fixes: #38547

---------

Signed-off-by: lumiscosity <averyrudelphe@gmail.com>
This commit is contained in:
lumiscosity 2025-08-14 14:49:07 +02:00 committed by GitHub
parent be5e7a982b
commit b747589286
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
4 changed files with 8 additions and 6 deletions

View file

@ -835815,7 +835815,7 @@
]
],
"javascript-urls.window.js": [
"4f617beca17082dc8459acb73bca781900170593",
"3e3a53003dde5fae29ced12ce9f2c26c7520a87c",
[
"url/javascript-urls.window.html",
{}