<?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>20012</bug_id>
          
          <creation_ts>2012-11-20 02:11:09 +0000</creation_ts>
          <short_desc>Security section of Location spec is all broken now</short_desc>
          <delta_ts>2012-11-20 07:45:29 +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>Other</rep_platform>
          <op_sys>other</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</resolution>
          
          
          <bug_file_loc>http://www.whatwg.org/specs/web-apps/current-work/#security-3</bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>P3</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>Unsorted</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter>contributor</reporter>
          <assigned_to name="Ian &apos;Hixie&apos; Hickson">ian</assigned_to>
          <cc>bobbyholley</cc>
    
    <cc>bzbarsky</cc>
    
    <cc>ian</cc>
    
    <cc>mike</cc>
    
    <cc>w3c</cc>
          
          <qa_contact>contributor</qa_contact>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>78503</commentid>
    <comment_count>0</comment_count>
    <who name="">contributor</who>
    <bug_when>2012-11-20 02:11:09 +0000</bug_when>
    <thetext>Specification: http://www.whatwg.org/specs/web-apps/current-work/multipage/history.html
Multipage: http://www.whatwg.org/C#security-3
Complete: http://www.whatwg.org/c#security-3

Comment:
Security section of Location spec is all broken now

Posted from: 173.48.81.109 by bzbarsky@mit.edu
User agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.8; rv:19.0) Gecko/19.0 Firefox/19.0</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>78504</commentid>
    <comment_count>1</comment_count>
    <who name="Boris Zbarsky">bzbarsky</who>
    <bug_when>2012-11-20 02:12:03 +0000</bug_when>
    <thetext>Given http://html5.org/r/7513 doing security checks based on the associtated document just doesn&apos;t work.  The security section needs to be changed to reflect reality...</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>78509</commentid>
    <comment_count>2</comment_count>
    <who name="Boris Zbarsky">bzbarsky</who>
    <bug_when>2012-11-20 07:07:38 +0000</bug_when>
    <thetext>For example, reading .href on the location reads the URI of the &quot;relevant Document&quot;.  But the security checks are all done against the &quot;associated Document&quot;, which is a totally different document, and might not be same-origin with the &quot;relevant document&quot;.  This trivially allows cross-origin location reads if actually implemented.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>78511</commentid>
    <comment_count>3</comment_count>
    <who name="Ian &apos;Hixie&apos; Hickson">ian</who>
    <bug_when>2012-11-20 07:44:55 +0000</bug_when>
    <thetext>Oh, right. The idea here is that you can access your own properties (e.g. to implement a shim for new features), but that you can&apos;t access the attributes that the spec defines if the URL is one you shouldn&apos;t be able to read. But ok, forget the shimmed properties while the document is cross-origin, we&apos;ll just block those. The real ones would be blocked anyway.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>78512</commentid>
    <comment_count>4</comment_count>
    <who name="">contributor</who>
    <bug_when>2012-11-20 07:45:29 +0000</bug_when>
    <thetext>Checked in as WHATWG revision r7516.
Check-in comment: Location&apos;s security model is actually different than Window&apos;s.
http://html5.org/tools/web-apps-tracker?from=7515&amp;to=7516</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>