<?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>169846</bug_id>
          
          <creation_ts>2017-03-18 10:15:36 -0700</creation_ts>
          <short_desc>Safari does not send HTTP_REFERER from iframe injected into parent iframe that has no src attribute</short_desc>
          <delta_ts>2026-03-31 06:10:37 -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>Page Loading</component>
          <version>Safari 18</version>
          <rep_platform>All</rep_platform>
          <op_sys>All</op_sys>
          <bug_status>NEW</bug_status>
          <resolution></resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords>BrowserCompat, InRadar</keywords>
          <priority>P2</priority>
          <bug_severity>Normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Adam Podolnick">adam</reporter>
          <assigned_to name="Nobody">webkit-unassigned</assigned_to>
          <cc>achristensen</cc>
    
    <cc>adam</cc>
    
    <cc>beidson</cc>
    
    <cc>cdumez</cc>
    
    <cc>dbates</cc>
    
    <cc>hello</cc>
    
    <cc>jeremy.massel</cc>
    
    <cc>lars.kuhnt</cc>
    
    <cc>webkit-bug-importer</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>1289282</commentid>
    <comment_count>0</comment_count>
    <who name="Adam Podolnick">adam</who>
    <bug_when>2017-03-18 10:15:36 -0700</bug_when>
    <thetext>Safari / WebKit doesn&apos;t send the HTTP_REFERER header when loading an iframe that has been injected into a parent iframe that has no src attribute. This seems to be an issue unique to Safari. Chrome, Firefox, IE, Edge, Opera and Yandex all send the HTTP_REFERER header.

Steps to reproduce:
1) I set up a test case here: https://sproutvideo-examples.s3.amazonaws.com/iframe_problem.html . This page displays the request headers.

Expected Results:
The browser should send the HTTP_REFERER header with the request and the test case should display https://sproutvideo-examples.s3.amazonaws.com/iframe_problem.html as the HTTP_REFERER.

Actual Results:
The browser does not send the HTTP_REFERER header.


Platform:
All versions of Safari on all operating systems.

Other Platforms:
Every single browser (IE, Edge, Firefox, Chrome, Opera, Yandex) going back many versions and operating systems (Windows, MacOS/OSX, iOS, Android, etc) also going back several versions, behaves as expected and sends the HTTP_REFERER</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1289396</commentid>
    <comment_count>1</comment_count>
    <who name="Radar WebKit Bug Importer">webkit-bug-importer</who>
    <bug_when>2017-03-19 13:54:13 -0700</bug_when>
    <thetext>&lt;rdar://problem/31137534&gt;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1747495</commentid>
    <comment_count>2</comment_count>
    <who name="Adam Podolnick">adam</who>
    <bug_when>2021-04-06 10:14:13 -0700</bug_when>
    <thetext>Just checking in. It&apos;s been 4 years, and this still is broken in the current version of Safari. Is there any chance someone will take a look at this?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2120415</commentid>
    <comment_count>3</comment_count>
    <who name="Adam Podolnick">adam</who>
    <bug_when>2025-05-29 10:38:46 -0700</bug_when>
    <thetext>Incredibly, this is still broken another 4 years later. Please fix this!</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2159297</commentid>
    <comment_count>4</comment_count>
    <who name="Jeremy Massel">jeremy.massel</who>
    <bug_when>2025-11-17 09:40:23 -0800</bug_when>
    <thetext>YouTube is now enforcing the referrer requirements in https://developers.google.com/youtube/terms/revision-history#july-7,-2025, causing every WordPress site&apos;s editor to display an error in Safari.

https://github.com/WordPress/gutenberg/issues/73288</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2195512</commentid>
    <comment_count>5</comment_count>
    <who name="">lars.kuhnt</who>
    <bug_when>2026-03-31 06:10:37 -0700</bug_when>
    <thetext>I think Safari orders the referrer policy in a different way than other browsers so. If your page has e.g. &lt;meta name=&quot;referrer&quot; content=&quot;no-referrer&quot; /&gt; the iframe attribute referrerpolicy=&quot;strict-origin-when-cross-origin&quot; is ignored and the referrer is not sent in iframe requests. The page meta tag needs to define  &lt;meta name=&quot;referrer&quot; content=&quot;strict-origin-when-cross-origin&quot; /&gt; to allow referrer headers in iframe requests.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>