<?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>14248</bug_id>
          
          <creation_ts>2007-06-20 15:36:14 -0700</creation_ts>
          <short_desc>Webkit shows &quot;Unsafe Javascript attempt to acesss the frame.......... . Domains must match&quot;</short_desc>
          <delta_ts>2009-12-07 13:00: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>Frames</component>
          <version>523.x (Safari 3)</version>
          <rep_platform>Mac</rep_platform>
          <op_sys>OS X 10.4</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>---</target_milestone>
          
          
          <everconfirmed>0</everconfirmed>
          <reporter name="Madhu M">madhu.mukund</reporter>
          <assigned_to name="Nobody">webkit-unassigned</assigned_to>
          <cc>abarth</cc>
    
    <cc>fiedler.andre</cc>
    
    <cc>grahamperrin</cc>
    
    <cc>sam</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>6991</commentid>
    <comment_count>0</comment_count>
    <who name="Madhu M">madhu.mukund</who>
    <bug_when>2007-06-20 15:36:14 -0700</bug_when>
    <thetext>Webkit shows &quot;Unsafe Javascript attempt to acesss the frame.......... . Domains must match&quot; error while accessing a child frame which has domain name similar to that of the parent domain.

For eg. if the parent domain is &apos;myloc.app.server.com&apos; and child frame is having domain as &quot;app.server.com&quot; it shows this javascript error and denies the permission to access the child frame. It is allowed in IE and Firefox.

In WebKit also it allows to assign a new domain name to the child frame (through some domain relaxation script) provided it is a valid part of the parent domain name.

So a child frame can have a new domain name like &apos;app.server.com&apos;. But later it denies the permission to access this frame as the domain is not matching with the parent.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>6975</commentid>
    <comment_count>1</comment_count>
      <attachid>15150</attachid>
    <who name="Madhu M">madhu.mukund</who>
    <bug_when>2007-06-20 17:39:04 -0700</bug_when>
    <thetext>Created attachment 15150
Sample html showing the error of domain mismatch

This html shows the error due to domain mismatch. It is not allowing to access the  child frame once the domain is changed for it. It is allowing to change the domain, since the new domain is a substring of the parent domain.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>169388</commentid>
    <comment_count>2</comment_count>
    <who name="">fiedler.andre</who>
    <bug_when>2009-12-07 11:16:12 -0800</bug_when>
    <thetext>Same error for me in Safari 4.0.4... no JavaScript. Take a look at:

http://www.eazyshoppinglist.com/

just HTML &amp; CSS</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>169425</commentid>
    <comment_count>3</comment_count>
    <who name="Adam Barth">abarth</who>
    <bug_when>2009-12-07 12:26:33 -0800</bug_when>
    <thetext>This is fixed at TOT.  Please confirm by trying a nightly build from http://nightly.webkit.org/</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>169435</commentid>
    <comment_count>4</comment_count>
    <who name="">fiedler.andre</who>
    <bug_when>2009-12-07 13:00:14 -0800</bug_when>
    <thetext>Yes, works for me! Thx! :o)</thetext>
  </long_desc>
      
          <attachment
              isobsolete="0"
              ispatch="0"
              isprivate="0"
          >
            <attachid>15150</attachid>
            <date>2007-06-20 17:39:04 -0700</date>
            <delta_ts>2007-06-20 17:39:04 -0700</delta_ts>
            <desc>Sample html showing the error of domain mismatch</desc>
            <filename>domain_relax.html</filename>
            <type>text/html</type>
            <size>1307</size>
            <attacher name="Madhu M">madhu.mukund</attacher>
            
              <data encoding="base64">PGh0bWw+CjxoZWFkPgoJPHRpdGxlPlNhZmFyaSBUZXN0PC90aXRsZT4KCTx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