WebKit Bugzilla
New
Browse
Search+
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
RESOLVED FIXED
311286
[Site Isolation] Console log is intentionally missing the full URL of a RemoteFrame for http/tests/security/block-top-level-navigations-by-sandboxed-iframe-with-propagated-user-gesture.html
https://bugs.webkit.org/show_bug.cgi?id=311286
Summary
[Site Isolation] Console log is intentionally missing the full URL of a Remot...
Anthony Tarbinian
Reported
2026-04-01 14:08:06 PDT
In http/tests/security/block-top-level-navigations-by-sandboxed-iframe-with-propagated-user-gesture.html, with site isolation enabled the console message logging "Unsafe JavaScript attempt to initiate navigation" will not contain the full URL (including resource path) of RemoteFrames. This is the diff: ``` @@ -1,4 +1,4 @@ -CONSOLE MESSAGE: Unsafe JavaScript attempt to initiate navigation for frame with URL '
http://127.0.0.1:8000/security/block-top-level-navigations-by-sandboxed-iframe-with-propagated-user-gesture.html
' from frame with URL '
http://localhost:8000/security/resources/navigate-top-level-frame-to-failure-page-via-message-handler.html
'. The frame attempting navigation of the top-level window is sandboxed, but the 'allow-top-navigation' flag is not set. +CONSOLE MESSAGE: Unsafe JavaScript attempt to initiate navigation for frame with URL '
http://127.0.0.1:8000/
' from frame with URL '
http://localhost:8000/security/resources/navigate-top-level-frame-to-failure-page-via-message-handler.html
'. The frame attempting navigation of the top-level window is sandboxed, but the 'allow-top-navigation' flag is not set. CONSOLE MESSAGE: SecurityError: The operation is insecure. Test blocking of top-level navigations by an iframe with `sandbox=allow-top-navigation-by-user-activation` when the user gesture is propagated from another context. ``` This difference is thanks to
https://commits.webkit.org/310093@main
where we decided to prevent frames from fetching the full URL path of remote frames in different processes. http/tests/security/block-top-level-navigations-by-sandboxed-iframe-with-propagated-user-gesture.html also has the same inconsistency in behavior with site isolation enabled vs disabled.
Attachments
Add attachment
proposed patch, testcase, etc.
Radar WebKit Bug Importer
Comment 1
2026-04-01 14:08:13 PDT
<
rdar://problem/173883912
>
Anthony Tarbinian
Comment 2
2026-04-01 14:30:44 PDT
Pull request:
https://github.com/WebKit/WebKit/pull/61851
EWS
Comment 3
2026-04-03 11:12:03 PDT
Committed
310523@main
(80a2f83fa96b): <
https://commits.webkit.org/310523@main
> Reviewed commits have been landed. Closing PR #61851 and removing active labels.
Note
You need to
log in
before you can comment on or make changes to this bug.
Top of Page
Format For Printing
XML
Clone This Bug