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

<bugzilla version="5.0.4"
          urlbase="https://www.w3.org/Bugs/Public/"
          
          maintainer="sysbot+bugzilla@w3.org"
>

    <bug>
          <bug_id>28821</bug_id>
          
          <creation_ts>2015-06-16 18:25:45 +0000</creation_ts>
          <short_desc>add rel=newcontext</short_desc>
          <delta_ts>2016-03-08 09:33:36 +0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>WHATWG</product>
          <component>HTML</component>
          <version>unspecified</version>
          <rep_platform>PC</rep_platform>
          <op_sys>All</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>P2</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>Unsorted</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Scott Beardsley">sbeards</reporter>
          <assigned_to name="Ian &apos;Hixie&apos; Hickson">ian</assigned_to>
          <cc>annevk</cc>
    
    <cc>mathias</cc>
    
    <cc>mike</cc>
    
    <cc>sworkman</cc>
          
          <qa_contact>contributor</qa_contact>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>121117</commentid>
    <comment_count>0</comment_count>
    <who name="Scott Beardsley">sbeards</who>
    <bug_when>2015-06-16 18:25:45 +0000</bug_when>
    <thetext>This proposal is an attempt to resolve the window.opener.location.href issue with cross-origin (and same-origin UGC?) navigations when target=&quot;_blank&quot;. This issue has been discussed previously[1] and a bug[2] in chromium has existed since 2013. Besides using &quot;rel=noreferrer&quot; or setting window.opener=null via javascript there appears no clean solution to this problem.

I propose that a new rel=newcontext attribute be added which can be used to inform user agents that the navigation should be done in a new browsing context and, as a result, window.opener should be set to null. Many publishers wish to allow a referrer to be sent and the Referrer Policy[3] is moving towards a spec where there is more granular control over the document-level and even the link-level value of Referer (sic). Many sites wish to send the origin, for instance, and in these cases they cannot use &quot;rel=noreferrer&quot;. This leaves them only Javascript to deal with this issue. I think there should be a way to do this via HTML only.

Here is a quick summary and demo of the issue[4].

I&apos;ve prepared a PR to the spec here[5].

[1] https://lists.w3.org/Archives/Public/public-whatwg-archive/2015Jan/0002.html
[2] https://code.google.com/p/chromium/issues/detail?id=168988
[3] http://w3c.github.io/webappsec/specs/referrer-policy/
[4] http://hardstatics.com/thrower.html
[5] https://github.com/w3c/html/pull/22</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>123007</commentid>
    <comment_count>1</comment_count>
    <who name="Anne">annevk</who>
    <bug_when>2015-09-02 05:38:06 +0000</bug_when>
    <thetext>Sorry for getting back to you so late. Our GitHub repository is actually here: https://github.com/whatwg/html.

Are there any browsers interested in implementing your proposal that you know?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>125380</commentid>
    <comment_count>2</comment_count>
    <who name="Mathias Bynens">mathias</who>
    <bug_when>2016-03-08 09:33:36 +0000</bug_when>
    <thetext>https://github.com/whatwg/html/pull/290</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>