<?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>43504</bug_id>
          
          <creation_ts>2010-08-04 12:51:38 -0700</creation_ts>
          <short_desc>location.href does not throw SECURITY_ERR when accessed across origins</short_desc>
          <delta_ts>2017-03-30 08:52:58 -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>WebCore JavaScript</component>
          <version>528+ (Nightly build)</version>
          <rep_platform>All</rep_platform>
          <op_sys>All</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>DUPLICATE</resolution>
          <dup_id>161368</dup_id>
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords>EasyFix, HasReduction, HTML5</keywords>
          <priority>P2</priority>
          <bug_severity>Normal</bug_severity>
          <target_milestone>---</target_milestone>
          <dependson>43891</dependson>
    
    <dependson>43892</dependson>
          <blocked>98408</blocked>
          <everconfirmed>1</everconfirmed>
          <reporter name="Mihai Parparita">mihaip</reporter>
          <assigned_to name="Chris Dumez">cdumez</assigned_to>
          <cc>abarth</cc>
    
    <cc>annevk</cc>
    
    <cc>ap</cc>
    
    <cc>bugs.webkit.org</cc>
    
    <cc>dpranke</cc>
    
    <cc>j</cc>
    
    <cc>levin</cc>
    
    <cc>mkwst</cc>
    
    <cc>sam</cc>
    
    <cc>tonyg</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>260161</commentid>
    <comment_count>0</comment_count>
    <who name="Mihai Parparita">mihaip</who>
    <bug_when>2010-08-04 12:51:38 -0700</bug_when>
    <thetext>The HTML5 spec is pretty clear about this:

http://www.whatwg.org/specs/web-apps/current-work/multipage/history.html#security-location

For a test case, see the frames[0].location.href line of:

http://persistent.info/webkit/test-cases/iframe-location-href.html?http://example.com

It just shows that the return value is undefined, with no exception being thrown.

Gecko and IE do throw the exception.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>260162</commentid>
    <comment_count>1</comment_count>
    <who name="Mihai Parparita">mihaip</who>
    <bug_when>2010-08-04 12:53:04 -0700</bug_when>
    <thetext>Alexey, adding you to the cc list since you mentioned this in comment 5 of bug 17627. I couldn&apos;t find another bug filed for this issue, but perhaps you&apos;re aware of one.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>263561</commentid>
    <comment_count>2</comment_count>
    <who name="Mihai Parparita">mihaip</who>
    <bug_when>2010-08-11 18:35:42 -0700</bug_when>
    <thetext>Since fixing the V8 bindings is significantly more complex than the JSC ones (see http://groups.google.com/group/v8-users/browse_thread/thread/e73680b6ca97a46d), I&apos;ve split this bug into two (bug 43891 and bug 43892), since it&apos;ll be two pretty different patches.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>585847</commentid>
    <comment_count>3</comment_count>
    <who name="David Levin">levin</who>
    <bug_when>2012-03-22 16:25:23 -0700</bug_when>
    <thetext>*** Bug 81973 has been marked as a duplicate of this bug. ***</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>730312</commentid>
    <comment_count>4</comment_count>
    <who name="Mike West">mkwst</who>
    <bug_when>2012-09-28 00:35:11 -0700</bug_when>
    <thetext>Mihai, I&apos;m going to pick this up if you don&apos;t mind.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>824270</commentid>
    <comment_count>5</comment_count>
    <who name="Mike West">mkwst</who>
    <bug_when>2013-02-04 05:12:23 -0800</bug_when>
    <thetext>Poking the webkit-dev bear again: https://lists.webkit.org/pipermail/webkit-dev/2013-February/023636.html</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1292721</commentid>
    <comment_count>6</comment_count>
    <who name="Anne van Kesteren">annevk</who>
    <bug_when>2017-03-30 00:04:49 -0700</bug_when>
    <thetext>Chris, I think you fixed this and some of the other bugs here too right? I can&apos;t reproduce comment 0 anymore in Safari TP anyway.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1292791</commentid>
    <comment_count>7</comment_count>
    <who name="Chris Dumez">cdumez</who>
    <bug_when>2017-03-30 08:52:39 -0700</bug_when>
    <thetext>

*** This bug has been marked as a duplicate of bug 161368 ***</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1292794</commentid>
    <comment_count>8</comment_count>
    <who name="Chris Dumez">cdumez</who>
    <bug_when>2017-03-30 08:52:58 -0700</bug_when>
    <thetext>(In reply to Anne van Kesteren from comment #6)
&gt; Chris, I think you fixed this and some of the other bugs here too right? I
&gt; can&apos;t reproduce comment 0 anymore in Safari TP anyway.

Yes, thanks.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>