[wpt-sync] Sync PR 63487 - WebKit export of https://bugs.webkit.org/show_bug.cgi?id=326654
Categories
(Core :: DOM: Core & HTML, task, P4)
Tracking
()
| Tracking | Status | |
|---|---|---|
| firefox162 | --- | fixed |
People
(Reporter: wpt-sync, Unassigned)
References
()
Details
(Whiteboard: [wptsync downstream])
Sync web-platform-tests PR 63487 into mozilla-central (this bug is closed when the sync is complete).
PR: https://github.com/web-platform-tests/wpt/pull/63487
Details from upstream follow.
Ahmad Saleem <ahmad.saleem792+github@gmail.com> wrote:
WebKit export of https://bugs.webkit.org/show_bug.cgi?id=326654
WebKit export from bug: Script elements with an ASCII-whitespace-only src are treated as having an empty src
<pre>
Script elements with an ASCII-whitespace-only src are treated as having an empty srcThis patch aligns WebKit with Gecko / Firefox.
"Prepare the script element" [1] only special-cases the exact empty string:
"If src is the empty string, then queue an element task on the DOM manipulation task source given el to fire an event named error at el, and return."Any other value, including one made up only of ASCII whitespace, is
encoding-parsed as a URL. The URL parser strips leading and trailing C0
control or space and removes tabs and newlines, so a whitespace-only src
resolves to the document's base URL and is fetched.requestClassicScript() and requestModuleScript() treated a whitespace-only
src as empty and fired an error event instead. Check isEmpty() in both to
match the spec.WebKit-Bug: <a href="https://bugs.webkit.org/show_bug.cgi?id=326654">https://bugs.webkit.org/show_bug.cgi?id=326654</a>
WebKit-Canonical-Link: <a href="https://commits.webkit.org/323236@main">https://commits.webkit.org/323236@main</a>
</pre>
| Assignee | ||
Updated•1 month ago
|
| Assignee | ||
Comment 1•8 days ago
|
||
Pushed to try (stability) https://treeherder.mozilla.org/jobs?repo=try&landoInstance=lando-prod-2025&landoCommitID=117902
| Assignee | ||
Comment 2•7 days ago
|
||
CI Results
Ran 9 Firefox configurations based on mozilla-central, and Firefox, Chrome, and Safari on GitHub CI
Total 7 tests and 1 subtests
Status Summary
Firefox
OK : 2[GitHub] 7[Gecko-android-em-14-x86_64-debug-geckoview, Gecko-android-em-14-x86_64-lite-opt-geckoview, Gecko-android-em-14-x86_64-opt-geckoview, Gecko-linux2404-64-debug, Gecko-linux2404-64-opt, Gecko-windows11-32-25h2-debug, Gecko-windows11-32-25h2-opt, Gecko-windows11-64-25h2-debug, Gecko-windows11-64-25h2-opt]
PASS: 2[GitHub] 8[Gecko-android-em-14-x86_64-debug-geckoview, Gecko-android-em-14-x86_64-lite-opt-geckoview, Gecko-android-em-14-x86_64-opt-geckoview, Gecko-linux2404-64-debug, Gecko-linux2404-64-opt, Gecko-windows11-32-25h2-debug, Gecko-windows11-32-25h2-opt, Gecko-windows11-64-25h2-debug, Gecko-windows11-64-25h2-opt]
Chrome
OK : 2
FAIL: 2
Safari
OK : 2
PASS: 2
Links
Comment 4•4 days ago
|
||
| bugherder | ||
Description
•