<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "https://bugs.webkit.org/page.cgi?id=bugzilla.dtd">

<bugzilla version="5.0.4.1"
          urlbase="https://bugs.webkit.org/"
          
          maintainer="admin@webkit.org"
>

    <bug>
          <bug_id>311286</bug_id>
          
          <creation_ts>2026-04-01 14:08:06 -0700</creation_ts>
          <short_desc>[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</short_desc>
          <delta_ts>2026-04-03 11:12:04 -0700</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>WebKit</product>
          <component>New Bugs</component>
          <version>WebKit Nightly Build</version>
          <rep_platform>Unspecified</rep_platform>
          <op_sys>Unspecified</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords>InRadar</keywords>
          <priority>P2</priority>
          <bug_severity>Normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Anthony Tarbinian">a.tarbinian</reporter>
          <assigned_to name="Nobody">webkit-unassigned</assigned_to>
          <cc>webkit-bug-importer</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>2196001</commentid>
    <comment_count>0</comment_count>
    <who name="Anthony Tarbinian">a.tarbinian</who>
    <bug_when>2026-04-01 14:08:06 -0700</bug_when>
    <thetext>In http/tests/security/block-top-level-navigations-by-sandboxed-iframe-with-propagated-user-gesture.html, with site isolation enabled the console message logging &quot;Unsafe JavaScript attempt to initiate navigation&quot; 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 &apos;http://127.0.0.1:8000/security/block-top-level-navigations-by-sandboxed-iframe-with-propagated-user-gesture.html&apos; from frame with URL &apos;http://localhost:8000/security/resources/navigate-top-level-frame-to-failure-page-via-message-handler.html&apos;. The frame attempting navigation of the top-level window is sandboxed, but the &apos;allow-top-navigation&apos; flag is not set.
+CONSOLE MESSAGE: Unsafe JavaScript attempt to initiate navigation for frame with URL &apos;http://127.0.0.1:8000/&apos; from frame with URL &apos;http://localhost:8000/security/resources/navigate-top-level-frame-to-failure-page-via-message-handler.html&apos;. The frame attempting navigation of the top-level window is sandboxed, but the &apos;allow-top-navigation&apos; 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.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2196002</commentid>
    <comment_count>1</comment_count>
    <who name="Radar WebKit Bug Importer">webkit-bug-importer</who>
    <bug_when>2026-04-01 14:08:13 -0700</bug_when>
    <thetext>&lt;rdar://problem/173883912&gt;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2196008</commentid>
    <comment_count>2</comment_count>
    <who name="Anthony Tarbinian">a.tarbinian</who>
    <bug_when>2026-04-01 14:30:44 -0700</bug_when>
    <thetext>Pull request: https://github.com/WebKit/WebKit/pull/61851</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2196636</commentid>
    <comment_count>3</comment_count>
    <who name="EWS">ews-feeder</who>
    <bug_when>2026-04-03 11:12:03 -0700</bug_when>
    <thetext>Committed 310523@main (80a2f83fa96b): &lt;https://commits.webkit.org/310523@main&gt;

Reviewed commits have been landed. Closing PR #61851 and removing active labels.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>