<?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>6281</bug_id>
          
          <creation_ts>2005-12-28 22:38:37 -0800</creation_ts>
          <short_desc>window.frames[&quot;frameName&quot;].document does not work in Safari due to security checks</short_desc>
          <delta_ts>2006-03-20 02:48:14 -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>DOM</component>
          <version>420+</version>
          <rep_platform>Mac</rep_platform>
          <op_sys>OS X 10.4</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>WONTFIX</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>P3</priority>
          <bug_severity>Normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Eric Seidel (no email)">eric</reporter>
          <assigned_to name="Nobody">webkit-unassigned</assigned_to>
          
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>27087</commentid>
    <comment_count>0</comment_count>
    <who name="Eric Seidel (no email)">eric</who>
    <bug_when>2005-12-28 22:38:37 -0800</bug_when>
    <thetext>window.frames[&quot;frameName&quot;].document does not work in Safari

See test case.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>27088</commentid>
    <comment_count>1</comment_count>
      <attachid>5347</attachid>
    <who name="Eric Seidel (no email)">eric</who>
    <bug_when>2005-12-28 22:40:30 -0800</bug_when>
    <thetext>Created attachment 5347
Test case</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>27089</commentid>
    <comment_count>2</comment_count>
    <who name="Eric Seidel (no email)">eric</who>
    <bug_when>2005-12-28 22:44:01 -0800</bug_when>
    <thetext>Hum, I&apos;m wondering if this is a security issue... as the code looks like we should support this.  FireFox 
allows this test case to work.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>27090</commentid>
    <comment_count>3</comment_count>
    <who name="Eric Seidel (no email)">eric</who>
    <bug_when>2005-12-28 22:46:37 -0800</bug_when>
    <thetext>Yes, this seems to be due to security checks.  Now the question becomes, why does firefox allow this (at 
least from in the file:// to http://apple.com case).</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>27091</commentid>
    <comment_count>4</comment_count>
    <who name="Geoffrey Garen">ggaren</who>
    <bug_when>2005-12-28 22:55:28 -0800</bug_when>
    <thetext>I think we need to add a check for whether the requesting frame is the parent of the requested frame, and 
allow that. Although I *don&apos;t* think that child frames get access to the parent frame -- in any browser.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>27092</commentid>
    <comment_count>5</comment_count>
    <who name="Geoffrey Garen">ggaren</who>
    <bug_when>2005-12-28 22:56:54 -0800</bug_when>
    <thetext>On the other hand, what if a phishing site opens your bank site in a child frame and then scoops your 
data? Doesn&apos;t seem like we should allow that.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>36984</commentid>
    <comment_count>6</comment_count>
    <who name="Maciej Stachowiak">mjs</who>
    <bug_when>2006-03-20 02:48:14 -0800</bug_when>
    <thetext>This is due to security restrictions. Firefox has a slightly different model. Instead of keeping you from getting the document object at all on a frame where you don&apos;t have access, they give you the document but keep you from accessing most of its properties. I think we should keep the current model because it is simpler and therefore likely to be more robust.</thetext>
  </long_desc>
      
          <attachment
              isobsolete="0"
              ispatch="0"
              isprivate="0"
          >
            <attachid>5347</attachid>
            <date>2005-12-28 22:40:30 -0800</date>
            <delta_ts>2005-12-28 22:40:30 -0800</delta_ts>
            <desc>Test case</desc>
            <filename>WebDebug.html</filename>
            <type>text/html</type>
            <size>410</size>
            <attacher name="Eric Seidel (no email)">eric</attacher>
            
              <data encoding="base64">PGh0bWw+Cjxib2R5PgoKPHA+CllvdSBzaG91bGQgc2VlIGFuIGlGcmFtZSBvZiBBcHBsZS5jb20g
YmVsb3c6CjwvcD4KCjxzY3JpcHQ+CmZ1bmN0aW9uIGRvbmUoKSB7CiAgICB2YXIgc3ViRG9jID0g
d2luZG93LmZyYW1lc1sidGVzdEZyYW1lIl0uZG9jdW1lbnQ7CiAgICB2YXIgcmVzdWx0ID0gKHN1
YkRvYyAhPSB1bmRlZmluZWQpID8gIlN1Y2Nlc3MiIDogIkZhaWx1cmUiOwogICAgYWxlcnQocmVz
dWx0KTsKfQo8L3NjcmlwdD4KCjxwPgo8YSBocmVmPSJqYXZhc2NyaXB0OmRvbmUoKSI+UHJlc3Mg
dG8gVGVzdCBvbmNlIGxvYWRlZDwvYT4KPC9wPgoKPGlmcmFtZSBuYW1lPSJ0ZXN0RnJhbWUiIHdp
ZHRoPSIzMDAiIGhlaWdodD0iMzAwIiBzcmM9Imh0dHA6Ly93d3cuYXBwbGUuY29tLyI+Cgo8L2Jv
ZHk+CjwvaHRtbD4=
</data>

          </attachment>
      

    </bug>

</bugzilla>