<?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>206521</bug_id>
          
          <creation_ts>2020-01-21 02:18:44 -0800</creation_ts>
          <short_desc>WKWebview: Unable to control HTTP Referer policy</short_desc>
          <delta_ts>2020-02-19 01:43:33 -0800</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>WebKit</product>
          <component>WebKit2</component>
          <version>WebKit Nightly Build</version>
          <rep_platform>iPhone / iPad</rep_platform>
          <op_sys>Unspecified</op_sys>
          <bug_status>NEW</bug_status>
          <resolution></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>sam</reporter>
          <assigned_to name="Nobody">webkit-unassigned</assigned_to>
          <cc>beidson</cc>
    
    <cc>krzysztof.modras</cc>
    
    <cc>mjs</cc>
    
    <cc>sam</cc>
    
    <cc>webkit-bug-importer</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>1608970</commentid>
    <comment_count>0</comment_count>
    <who name="">sam</who>
    <bug_when>2020-01-21 02:18:44 -0800</bug_when>
    <thetext>In testing we observe that WKWebview currently sends full Referers to all origins (including third-parties) on page load. This this a [known tracking a security vulnerability](https://webkit.org/blog/9521/intelligent-tracking-prevention-2-3/) that all apps using WKWebview are susceptible to. There is currently no way (that we are aware of) to override this behavior.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1609548</commentid>
    <comment_count>1</comment_count>
    <who name="Radar WebKit Bug Importer">webkit-bug-importer</who>
    <bug_when>2020-01-22 08:26:41 -0800</bug_when>
    <thetext>&lt;rdar://problem/58797376&gt;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1620555</commentid>
    <comment_count>2</comment_count>
    <who name="Maciej Stachowiak">mjs</who>
    <bug_when>2020-02-19 00:16:22 -0800</bug_when>
    <thetext>Would it be satisfactory if WebKit always sent origin-only Referers, instead of exposing a policy? (Safari does this already, but I think it may be tied to ITP, perhaps unnecessarily.)</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1620575</commentid>
    <comment_count>3</comment_count>
    <who name="Krzysztof Jan Modras [:chrmod]">krzysztof.modras</who>
    <bug_when>2020-02-19 01:43:33 -0800</bug_when>
    <thetext>Just for reference - Firefox comes with advanced set of configuration options for referers https://wiki.mozilla.org/Security/Referrer

Most important parameters are:
- when to send (all requests, on interaction, never)
- trimming (removing path/query)
- origin control (don&apos;t send to 3rd parties)

Perhaps changing the default behaviour would be fine, but I&apos;m not aware of all usecases. From privacy oriented web browser (like Cliqz) perspective it&apos;s definitely a way forward, but I could imagine some apps could experience breakage or may prefer to have referes. It&apos;s more for WebKit team to decide how much of general purpose tool the WKWebView should be.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>