<?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>31425</bug_id>
          
          <creation_ts>2009-11-12 11:39:38 -0800</creation_ts>
          <short_desc>file:// documents should not be able to open WebSocket connections</short_desc>
          <delta_ts>2016-05-18 21:34:57 -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 Misc.</component>
          <version>528+ (Nightly build)</version>
          <rep_platform>All</rep_platform>
          <op_sys>All</op_sys>
          <bug_status>NEW</bug_status>
          <resolution></resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords>InRadar</keywords>
          <priority>P2</priority>
          <bug_severity>Normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Alexey Proskuryakov">ap</reporter>
          <assigned_to name="Nobody">webkit-unassigned</assigned_to>
          <cc>abarth</cc>
    
    <cc>bfulgham</cc>
    
    <cc>joe</cc>
    
    <cc>joenotcharles</cc>
    
    <cc>ukai</cc>
    
    <cc>wilander</cc>
    
    <cc>yael</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>162983</commentid>
    <comment_count>0</comment_count>
    <who name="Alexey Proskuryakov">ap</who>
    <bug_when>2009-11-12 11:39:38 -0800</bug_when>
    <thetext>XMLHttpRequest is now forbidden from local files, and WebSocket should be, too.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>168854</commentid>
    <comment_count>1</comment_count>
    <who name="Alexey Proskuryakov">ap</who>
    <bug_when>2009-12-04 11:23:49 -0800</bug_when>
    <thetext>&lt;rdar://problem/7444841&gt;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>169732</commentid>
    <comment_count>2</comment_count>
    <who name="Alexey Proskuryakov">ap</who>
    <bug_when>2009-12-08 11:05:40 -0800</bug_when>
    <thetext>It&apos;s not true that XHR is forbidden - it just becomes cross-origin. So, WebSocket behavior matches current XHR behavior.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>366691</commentid>
    <comment_count>3</comment_count>
    <who name="Joe Andrieu">joe</who>
    <bug_when>2011-03-13 00:39:44 -0800</bug_when>
    <thetext>XHR is not necessarily cross-origin from a file. It could be accessing another file URL or localhost or a non-standard scheme like data: or javascript (which may or may not have a parsable origin encoded in the URL).</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>366693</commentid>
    <comment_count>4</comment_count>
    <who name="Adam Barth">abarth</who>
    <bug_when>2011-03-13 00:52:07 -0800</bug_when>
    <thetext>We support a number of different policies for the security origin of file URLs, including treating every file URL as a different origin (which is the most secure option).</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>