Branch: refs/heads/main
Home: https://github.com/WebKit/WebKit
Commit: 6cc340adc68dbe2b5baa0f77d638731fc577746a
https://github.com/WebKit/WebKit/commit/6cc340adc68dbe2b5baa0f77d638731fc577746a
Author: Kai Tamkun <[email protected]>
Date: 2026-06-12 (Fri, 12 Jun 2026)
Changed paths:
A
LayoutTests/js/dom/modules/import-from-javascript-url-new-window-expected.txt
A LayoutTests/js/dom/modules/import-from-javascript-url-new-window.html
M Source/WebCore/bindings/js/ScriptModuleLoader.cpp
Log Message:
-----------
Importing modules from a document with no base URL causes null deref
https://bugs.webkit.org/show_bug.cgi?id=316862
rdar://179143870
Reviewed by Yusuke Suzuki.
This replaces an assertion that the base URL is valid when dynamically
importing a module
from ScriptModuleLoader with an actual validation.
Test: js/dom/modules/import-from-javascript-url-new-window.html
*
LayoutTests/js/dom/modules/import-from-javascript-url-new-window-expected.txt:
Added.
* LayoutTests/js/dom/modules/import-from-javascript-url-new-window.html: Added.
* Source/WebCore/bindings/js/ScriptModuleLoader.cpp:
(WebCore::ScriptModuleLoader::importModule):
Canonical link: https://commits.webkit.org/315109@main
To unsubscribe from these emails, change your notification settings at
https://github.com/WebKit/WebKit/settings/notifications