Branch: refs/heads/main
Home: https://github.com/WebKit/WebKit
Commit: fbe1369d2a980390c45ef0584ecb3780886ec71b
https://github.com/WebKit/WebKit/commit/fbe1369d2a980390c45ef0584ecb3780886ec71b
Author: Kai Tamkun <[email protected]>
Date: 2026-05-28 (Thu, 28 May 2026)
Changed paths:
A
LayoutTests/http/tests/misc/import-from-srcdoc-iframe-absolute-path-expected.txt
A LayoutTests/http/tests/misc/import-from-srcdoc-iframe-absolute-path.html
A LayoutTests/http/tests/misc/resources/module-srcdoc-absolute.js
M Source/WebCore/bindings/js/ScriptModuleLoader.cpp
Log Message:
-----------
Dynamic import() in srcdoc iframes fails to resolve absolute paths against
document base URL
https://bugs.webkit.org/show_bug.cgi?id=314175
rdar://176334107
Reviewed by Yusuke Suzuki.
This patch allows module specifier resolution to use the document's fallback
base URL
if the original base URL is `about:srcdoc`.
Test: LayoutTests/http/tests/misc/import-from-srcdoc-iframe-absolute-path.html
*
LayoutTests/http/tests/misc/import-from-srcdoc-iframe-absolute-path-expected.txt:
Added.
* LayoutTests/http/tests/misc/import-from-srcdoc-iframe-absolute-path.html:
Added.
* LayoutTests/http/tests/misc/resources/module-srcdoc-absolute.js: Added.
* Source/WebCore/bindings/js/ScriptModuleLoader.cpp:
(WebCore::resolveModuleSpecifier):
Canonical link: https://commits.webkit.org/314063@main
To unsubscribe from these emails, change your notification settings at
https://github.com/WebKit/WebKit/settings/notifications