<?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>171666</bug_id>
          
          <creation_ts>2017-05-04 09:25:53 -0700</creation_ts>
          <short_desc>CORS execution from file:// scheme not allowed by default in STP 29</short_desc>
          <delta_ts>2017-05-12 08:48:56 -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>JavaScriptCore</component>
          <version>Safari Technology Preview</version>
          <rep_platform>Mac</rep_platform>
          <op_sys>macOS 10.12</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>INVALID</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>1</everconfirmed>
          <reporter name="David Richardson">d.i.richardson</reporter>
          <assigned_to name="Nobody">webkit-unassigned</assigned_to>
          <cc>bfulgham</cc>
    
    <cc>dbates</cc>
    
    <cc>jond</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>1304658</commentid>
    <comment_count>0</comment_count>
      <attachid>309055</attachid>
    <who name="David Richardson">d.i.richardson</who>
    <bug_when>2017-05-04 09:25:53 -0700</bug_when>
    <thetext>Created attachment 309055
A simple html file with XHR to fetch and display http://webkit.org

Beginning with Safari Technology Preview release 29, all CORS requests from file:// are blocked unless Disable Local File Restrictions or Disable Cross-Origin Restrictions selected from Develop menu.
This behaviour is new, and not present in release versions of Safari or Webkit Nightly r216177.

Load attached file in browser to test.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1304665</commentid>
    <comment_count>1</comment_count>
    <who name="Daniel Bates">dbates</who>
    <bug_when>2017-05-04 09:43:19 -0700</bug_when>
    <thetext>As it turns out the behavior change is intentional. In STP 29 we changed Develop &gt; Disable Local File Restrictions to toggle granting universal access for non-quarantined file URLs. Formerly file URLs for non-quarantined files would be granted universal access by default and Develop &gt; Disable Local File Restrictions did nothing. So, to opt into the old behavior enable Disable Local File Restrictions.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1304666</commentid>
    <comment_count>2</comment_count>
    <who name="Daniel Bates">dbates</who>
    <bug_when>2017-05-04 09:44:06 -0700</bug_when>
    <thetext>We should update the STP 29 release notes to mention the behavior change.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1304667</commentid>
    <comment_count>3</comment_count>
    <who name="Daniel Bates">dbates</who>
    <bug_when>2017-05-04 09:46:04 -0700</bug_when>
    <thetext>For Apple employees, see &lt;rdar://problem/30383804&gt; for more details on this change in behavior.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1307886</commentid>
    <comment_count>4</comment_count>
    <who name="Brent Fulgham">bfulgham</who>
    <bug_when>2017-05-12 08:48:56 -0700</bug_when>
    <thetext>Note that WebKit&apos;s behavior for this now matches Chrome and Firefox.</thetext>
  </long_desc>
      
          <attachment
              isobsolete="0"
              ispatch="0"
              isprivate="0"
          >
            <attachid>309055</attachid>
            <date>2017-05-04 09:25:53 -0700</date>
            <delta_ts>2017-05-04 09:25:53 -0700</delta_ts>
            <desc>A simple html file with XHR to fetch and display http://webkit.org</desc>
            <filename>CORS Test.html</filename>
            <type>text/html</type>
            <size>699</size>
            <attacher name="David Richardson">d.i.richardson</attacher>
            
              <data encoding="base64">PCFET0NUWVBFIGh0bWw+CjxodG1sPgogICAgPGJvZHk+CiAgICAgICAgPGgyPlRlc3QgQ09SUyBm
cm9tIGZpbGU6Ly88L2gyPgogICAgICAgIDxkaXYgaWQ9ImRlbW8iPgogICAgICAgICAgICA8YnV0
dG9uIHR5cGU9ImJ1dHRvbiIgb25jbGljaz0ibG9hZFhNTERvYygpIj5GZXRjaCBodHRwOi8vd2Vi
a2l0Lm9yZzwvYnV0dG9uPgogICAgICAgIDwvZGl2PgogICAgICAgIDxzY3JpcHQ+CiAgICAgICAg
ICAgIGZ1bmN0aW9uIGxvYWRYTUxEb2MoKSB7CiAgICAgICAgICAgICAgICB2YXIgeGh0dHAgPSBu
ZXcgWE1MSHR0cFJlcXVlc3QoKTsKICAgICAgICAgICAgICAgIHhodHRwLm9ucmVhZHlzdGF0ZWNo
YW5nZSA9IGZ1bmN0aW9uKCkgewogICAgICAgICAgICAgICAgaWYgKHRoaXMucmVhZHlTdGF0ZSA9
PSA0ICYmIHRoaXMuc3RhdHVzID09IDIwMCkgewogICAgICAgICAgICAgICAgICAgIGRvY3VtZW50
LmdldEVsZW1lbnRCeUlkKCJkZW1vIikuaW5uZXJIVE1MID0KICAgICAgICAgICAgICAgICAgICB0
aGlzLnJlc3BvbnNlVGV4dDsKICAgICAgICAgICAgICAgIH0KICAgICAgICAgICAgfTsKICAgICAg
ICAgICAgeGh0dHAub3BlbigiR0VUIiwgImh0dHA6Ly93ZWJraXQub3JnIiwgdHJ1ZSk7CiAgICAg
ICAgICAgIHhodHRwLnNlbmQoKTsKICAgICAgICAgICAgfQogICAgICAgIDwvc2NyaXB0PgogICAg
PC9ib2R5Pgo8L2h0bWw+
</data>

          </attachment>
      

    </bug>

</bugzilla>