<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN"
"http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head><meta http-equiv="content-type" content="text/html; charset=utf-8" />
<title>[203642] trunk</title>
</head>
<body>

<style type="text/css"><!--
#msg dl.meta { border: 1px #006 solid; background: #369; padding: 6px; color: #fff; }
#msg dl.meta dt { float: left; width: 6em; font-weight: bold; }
#msg dt:after { content:':';}
#msg dl, #msg dt, #msg ul, #msg li, #header, #footer, #logmsg { font-family: verdana,arial,helvetica,sans-serif; font-size: 10pt;  }
#msg dl a { font-weight: bold}
#msg dl a:link    { color:#fc3; }
#msg dl a:active  { color:#ff0; }
#msg dl a:visited { color:#cc6; }
h3 { font-family: verdana,arial,helvetica,sans-serif; font-size: 10pt; font-weight: bold; }
#msg pre { overflow: auto; background: #ffc; border: 1px #fa0 solid; padding: 6px; }
#logmsg { background: #ffc; border: 1px #fa0 solid; padding: 1em 1em 0 1em; }
#logmsg p, #logmsg pre, #logmsg blockquote { margin: 0 0 1em 0; }
#logmsg p, #logmsg li, #logmsg dt, #logmsg dd { line-height: 14pt; }
#logmsg h1, #logmsg h2, #logmsg h3, #logmsg h4, #logmsg h5, #logmsg h6 { margin: .5em 0; }
#logmsg h1:first-child, #logmsg h2:first-child, #logmsg h3:first-child, #logmsg h4:first-child, #logmsg h5:first-child, #logmsg h6:first-child { margin-top: 0; }
#logmsg ul, #logmsg ol { padding: 0; list-style-position: inside; margin: 0 0 0 1em; }
#logmsg ul { text-indent: -1em; padding-left: 1em; }#logmsg ol { text-indent: -1.5em; padding-left: 1.5em; }
#logmsg > ul, #logmsg > ol { margin: 0 0 1em 0; }
#logmsg pre { background: #eee; padding: 1em; }
#logmsg blockquote { border: 1px solid #fa0; border-left-width: 10px; padding: 1em 1em 0 1em; background: white;}
#logmsg dl { margin: 0; }
#logmsg dt { font-weight: bold; }
#logmsg dd { margin: 0; padding: 0 0 0.5em 0; }
#logmsg dd:before { content:'\00bb';}
#logmsg table { border-spacing: 0px; border-collapse: collapse; border-top: 4px solid #fa0; border-bottom: 1px solid #fa0; background: #fff; }
#logmsg table th { text-align: left; font-weight: normal; padding: 0.2em 0.5em; border-top: 1px dotted #fa0; }
#logmsg table td { text-align: right; border-top: 1px dotted #fa0; padding: 0.2em 0.5em; }
#logmsg table thead th { text-align: center; border-bottom: 1px solid #fa0; }
#logmsg table th.Corner { text-align: left; }
#logmsg hr { border: none 0; border-top: 2px dashed #fa0; height: 1px; }
#header, #footer { color: #fff; background: #636; border: 1px #300 solid; padding: 6px; }
#patch { width: 100%; }
#patch h4 {font-family: verdana,arial,helvetica,sans-serif;font-size:10pt;padding:8px;background:#369;color:#fff;margin:0;}
#patch .propset h4, #patch .binary h4 {margin:0;}
#patch pre {padding:0;line-height:1.2em;margin:0;}
#patch .diff {width:100%;background:#eee;padding: 0 0 10px 0;overflow:auto;}
#patch .propset .diff, #patch .binary .diff  {padding:10px 0;}
#patch span {display:block;padding:0 10px;}
#patch .modfile, #patch .addfile, #patch .delfile, #patch .propset, #patch .binary, #patch .copfile {border:1px solid #ccc;margin:10px 0;}
#patch ins {background:#dfd;text-decoration:none;display:block;padding:0 10px;}
#patch del {background:#fdd;text-decoration:none;display:block;padding:0 10px;}
#patch .lines, .info {color:#888;background:#fff;}
--></style>
<div id="msg">
<dl class="meta">
<dt>Revision</dt> <dd><a href="http://trac.webkit.org/projects/webkit/changeset/203642">203642</a></dd>
<dt>Author</dt> <dd>commit-queue@webkit.org</dd>
<dt>Date</dt> <dd>2016-07-23 02:58:15 -0700 (Sat, 23 Jul 2016)</dd>
</dl>

<h3>Log Message</h3>
<pre>Unreviewed, rolling out <a href="http://trac.webkit.org/projects/webkit/changeset/203641">r203641</a>.
https://bugs.webkit.org/show_bug.cgi?id=160116

It broke make-based builds (Requested by youenn on #webkit).

Reverted changeset:

&quot;[Fetch API] Request should be created with any HeadersInit
data&quot;
https://bugs.webkit.org/show_bug.cgi?id=159672
http://trac.webkit.org/changeset/203641</pre>

<h3>Modified Paths</h3>
<ul>
<li><a href="#trunkLayoutTestsChangeLog">trunk/LayoutTests/ChangeLog</a></li>
<li><a href="#trunkLayoutTestsimportedw3cChangeLog">trunk/LayoutTests/imported/w3c/ChangeLog</a></li>
<li><a href="#trunkLayoutTestsimportedw3cwebplatformtestsfetchapicredentialsauthenticationbasicexpectedtxt">trunk/LayoutTests/imported/w3c/web-platform-tests/fetch/api/credentials/authentication-basic-expected.txt</a></li>
<li><a href="#trunkLayoutTestsimportedw3cwebplatformtestsfetchapirequestrequestheadersexpectedtxt">trunk/LayoutTests/imported/w3c/web-platform-tests/fetch/api/request/request-headers-expected.txt</a></li>
<li><a href="#trunkLayoutTestsimportedw3cwebplatformtestsfetchapirequestrequestheadershtml">trunk/LayoutTests/imported/w3c/web-platform-tests/fetch/api/request/request-headers.html</a></li>
<li><a href="#trunkSourceJavaScriptCoreChangeLog">trunk/Source/JavaScriptCore/ChangeLog</a></li>
<li><a href="#trunkSourceJavaScriptCoreScriptsbuiltinsbuiltins_generatorpy">trunk/Source/JavaScriptCore/Scripts/builtins/builtins_generator.py</a></li>
<li><a href="#trunkSourceWebCoreCMakeListstxt">trunk/Source/WebCore/CMakeLists.txt</a></li>
<li><a href="#trunkSourceWebCoreChangeLog">trunk/Source/WebCore/ChangeLog</a></li>
<li><a href="#trunkSourceWebCoreDerivedSourcesmake">trunk/Source/WebCore/DerivedSources.make</a></li>
<li><a href="#trunkSourceWebCoreModulesfetchDOMWindowFetchcpp">trunk/Source/WebCore/Modules/fetch/DOMWindowFetch.cpp</a></li>
<li><a href="#trunkSourceWebCoreModulesfetchDOMWindowFetchh">trunk/Source/WebCore/Modules/fetch/DOMWindowFetch.h</a></li>
<li><a href="#trunkSourceWebCoreModulesfetchDOMWindowFetchidl">trunk/Source/WebCore/Modules/fetch/DOMWindowFetch.idl</a></li>
<li><a href="#trunkSourceWebCoreModulesfetchFetchHeadersh">trunk/Source/WebCore/Modules/fetch/FetchHeaders.h</a></li>
<li><a href="#trunkSourceWebCoreModulesfetchFetchRequestcpp">trunk/Source/WebCore/Modules/fetch/FetchRequest.cpp</a></li>
<li><a href="#trunkSourceWebCoreModulesfetchFetchRequesth">trunk/Source/WebCore/Modules/fetch/FetchRequest.h</a></li>
<li><a href="#trunkSourceWebCoreModulesfetchFetchRequestidl">trunk/Source/WebCore/Modules/fetch/FetchRequest.idl</a></li>
<li><a href="#trunkSourceWebCoreModulesfetchFetchResponsecpp">trunk/Source/WebCore/Modules/fetch/FetchResponse.cpp</a></li>
<li><a href="#trunkSourceWebCoreModulesfetchFetchResponseh">trunk/Source/WebCore/Modules/fetch/FetchResponse.h</a></li>
<li><a href="#trunkSourceWebCoreModulesfetchWorkerGlobalScopeFetchcpp">trunk/Source/WebCore/Modules/fetch/WorkerGlobalScopeFetch.cpp</a></li>
<li><a href="#trunkSourceWebCoreModulesfetchWorkerGlobalScopeFetchh">trunk/Source/WebCore/Modules/fetch/WorkerGlobalScopeFetch.h</a></li>
<li><a href="#trunkSourceWebCoreModulesfetchWorkerGlobalScopeFetchidl">trunk/Source/WebCore/Modules/fetch/WorkerGlobalScopeFetch.idl</a></li>
<li><a href="#trunkSourceWebCorebindingsjsWebCoreBuiltinNamesh">trunk/Source/WebCore/bindings/js/WebCoreBuiltinNames.h</a></li>
<li><a href="#trunkSourceWebCorebindingsscriptsCodeGeneratorpm">trunk/Source/WebCore/bindings/scripts/CodeGenerator.pm</a></li>
<li><a href="#trunkSourceWebCorebindingsscriptsCodeGeneratorJSpm">trunk/Source/WebCore/bindings/scripts/CodeGeneratorJS.pm</a></li>
<li><a href="#trunkSourceWebCorebindingsscriptstestJSJSTestGlobalObjectcpp">trunk/Source/WebCore/bindings/scripts/test/JS/JSTestGlobalObject.cpp</a></li>
<li><a href="#trunkSourceWebCorebindingsscriptstestObjCDOMTestGlobalObjectmm">trunk/Source/WebCore/bindings/scripts/test/ObjC/DOMTestGlobalObject.mm</a></li>
<li><a href="#trunkSourceWebCorebindingsscriptstestTestGlobalObjectidl">trunk/Source/WebCore/bindings/scripts/test/TestGlobalObject.idl</a></li>
</ul>

<h3>Added Paths</h3>
<ul>
<li>trunk/LayoutTests/platform/mac-wk1/imported/</li>
<li>trunk/LayoutTests/platform/mac-wk1/imported/w3c/</li>
<li>trunk/LayoutTests/platform/mac-wk1/imported/w3c/web-platform-tests/</li>
<li>trunk/LayoutTests/platform/mac-wk1/imported/w3c/web-platform-tests/fetch/</li>
<li>trunk/LayoutTests/platform/mac-wk1/imported/w3c/web-platform-tests/fetch/api/</li>
<li>trunk/LayoutTests/platform/mac-wk1/imported/w3c/web-platform-tests/fetch/api/credentials/</li>
<li><a href="#trunkLayoutTestsplatformmacwk1importedw3cwebplatformtestsfetchapicredentialsauthenticationbasicexpectedtxt">trunk/LayoutTests/platform/mac-wk1/imported/w3c/web-platform-tests/fetch/api/credentials/authentication-basic-expected.txt</a></li>
</ul>

<h3>Removed Paths</h3>
<ul>
<li><a href="#trunkSourceWebCoreModulesfetchDOMWindowFetchjs">trunk/Source/WebCore/Modules/fetch/DOMWindowFetch.js</a></li>
<li><a href="#trunkSourceWebCoreModulesfetchFetchRequestjs">trunk/Source/WebCore/Modules/fetch/FetchRequest.js</a></li>
<li><a href="#trunkSourceWebCoreModulesfetchWorkerGlobalScopeFetchjs">trunk/Source/WebCore/Modules/fetch/WorkerGlobalScopeFetch.js</a></li>
</ul>

</div>
<div id="patch">
<h3>Diff</h3>
<a id="trunkLayoutTestsChangeLog"></a>
<div class="modfile"><h4>Modified: trunk/LayoutTests/ChangeLog (203641 => 203642)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/ChangeLog        2016-07-23 08:55:38 UTC (rev 203641)
+++ trunk/LayoutTests/ChangeLog        2016-07-23 09:58:15 UTC (rev 203642)
</span><span class="lines">@@ -1,3 +1,17 @@
</span><ins>+2016-07-23  Commit Queue  &lt;commit-queue@webkit.org&gt;
+
+        Unreviewed, rolling out r203641.
+        https://bugs.webkit.org/show_bug.cgi?id=160116
+
+        It broke make-based builds (Requested by youenn on #webkit).
+
+        Reverted changeset:
+
+        &quot;[Fetch API] Request should be created with any HeadersInit
+        data&quot;
+        https://bugs.webkit.org/show_bug.cgi?id=159672
+        http://trac.webkit.org/changeset/203641
+
</ins><span class="cx"> 2016-07-23  Frederic Wang  &lt;fwang@igalia.com&gt;
</span><span class="cx"> 
</span><span class="cx">         Reset font-style on the &lt;math&gt; element
</span></span></pre></div>
<a id="trunkLayoutTestsimportedw3cChangeLog"></a>
<div class="modfile"><h4>Modified: trunk/LayoutTests/imported/w3c/ChangeLog (203641 => 203642)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/imported/w3c/ChangeLog        2016-07-23 08:55:38 UTC (rev 203641)
+++ trunk/LayoutTests/imported/w3c/ChangeLog        2016-07-23 09:58:15 UTC (rev 203642)
</span><span class="lines">@@ -1,3 +1,17 @@
</span><ins>+2016-07-23  Commit Queue  &lt;commit-queue@webkit.org&gt;
+
+        Unreviewed, rolling out r203641.
+        https://bugs.webkit.org/show_bug.cgi?id=160116
+
+        It broke make-based builds (Requested by youenn on #webkit).
+
+        Reverted changeset:
+
+        &quot;[Fetch API] Request should be created with any HeadersInit
+        data&quot;
+        https://bugs.webkit.org/show_bug.cgi?id=159672
+        http://trac.webkit.org/changeset/203641
+
</ins><span class="cx"> 2016-07-23  Youenn Fablet  &lt;youenn@apple.com&gt;
</span><span class="cx"> 
</span><span class="cx">         [Fetch API] Request should be created with any HeadersInit data
</span></span></pre></div>
<a id="trunkLayoutTestsimportedw3cwebplatformtestsfetchapicredentialsauthenticationbasicexpectedtxt"></a>
<div class="modfile"><h4>Modified: trunk/LayoutTests/imported/w3c/web-platform-tests/fetch/api/credentials/authentication-basic-expected.txt (203641 => 203642)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/imported/w3c/web-platform-tests/fetch/api/credentials/authentication-basic-expected.txt        2016-07-23 08:55:38 UTC (rev 203641)
+++ trunk/LayoutTests/imported/w3c/web-platform-tests/fetch/api/credentials/authentication-basic-expected.txt        2016-07-23 09:58:15 UTC (rev 203642)
</span><span class="lines">@@ -1,5 +1,8 @@
</span><ins>+localhost:8800 - didReceiveAuthenticationChallenge - Simulating cancelled authentication sheet
+localhost:8800 - didReceiveAuthenticationChallenge - Simulating cancelled authentication sheet
+localhost:8800 - didReceiveAuthenticationChallenge - Simulating cancelled authentication sheet
</ins><span class="cx"> 
</span><del>-PASS User-added Authorization header with include mode 
-PASS User-added Authorization header with same-origin mode 
-PASS User-added Authorization header with omit mode 
</del><ins>+FAIL User-added Authorization header with include mode assert_equals: HTTP status is 200 expected 200 but got 401
+FAIL User-added Authorization header with same-origin mode assert_equals: HTTP status is 200 expected 200 but got 401
+FAIL User-added Authorization header with omit mode assert_equals: HTTP status is 200 expected 200 but got 401
</ins><span class="cx"> 
</span></span></pre></div>
<a id="trunkLayoutTestsimportedw3cwebplatformtestsfetchapirequestrequestheadersexpectedtxt"></a>
<div class="modfile"><h4>Modified: trunk/LayoutTests/imported/w3c/web-platform-tests/fetch/api/request/request-headers-expected.txt (203641 => 203642)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/imported/w3c/web-platform-tests/fetch/api/request/request-headers-expected.txt        2016-07-23 08:55:38 UTC (rev 203641)
+++ trunk/LayoutTests/imported/w3c/web-platform-tests/fetch/api/request/request-headers-expected.txt        2016-07-23 09:58:15 UTC (rev 203642)
</span><span class="lines">@@ -53,5 +53,4 @@
</span><span class="cx"> PASS Request should not get its content-type from the init request if init headers are provided 
</span><span class="cx"> PASS Request should get its content-type from the body if none is provided 
</span><span class="cx"> PASS Request should get its content-type from init headers if one is provided 
</span><del>-PASS Testing request header creations with various objects 
</del><span class="cx"> 
</span></span></pre></div>
<a id="trunkLayoutTestsimportedw3cwebplatformtestsfetchapirequestrequestheadershtml"></a>
<div class="modfile"><h4>Modified: trunk/LayoutTests/imported/w3c/web-platform-tests/fetch/api/request/request-headers.html (203641 => 203642)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/imported/w3c/web-platform-tests/fetch/api/request/request-headers.html        2016-07-23 08:55:38 UTC (rev 203641)
+++ trunk/LayoutTests/imported/w3c/web-platform-tests/fetch/api/request/request-headers.html        2016-07-23 09:58:15 UTC (rev 203642)
</span><span class="lines">@@ -145,22 +145,6 @@
</span><span class="cx">         assert_equals(request.headers.get(&quot;Content-Type&quot;), &quot;potato&quot;);
</span><span class="cx">       }, &quot;Request should get its content-type from init headers if one is provided&quot;);
</span><span class="cx"> 
</span><del>-      test(function() {
-        var array = [[&quot;hello&quot;, &quot;worldAHH&quot;]];
-        var object = {&quot;hello&quot;: 'worldOOH'};
-        var headers = new Headers(array);
-
-        assert_equals(headers.get(&quot;hello&quot;), &quot;worldAHH&quot;);
-
-        var request1 = new Request(&quot;&quot;, {&quot;headers&quot;: headers});
-        var request2 = new Request(&quot;&quot;, {&quot;headers&quot;: array});
-        var request3 = new Request(&quot;&quot;, {&quot;headers&quot;: object});
-
-        assert_equals(request1.headers.get(&quot;hello&quot;), &quot;worldAHH&quot;);
-        assert_equals(request2.headers.get(&quot;hello&quot;), &quot;worldAHH&quot;);
-        assert_equals(request3.headers.get(&quot;hello&quot;), &quot;worldOOH&quot;);
-      }, &quot;Testing request header creations with various objects&quot;);
-
</del><span class="cx">     &lt;/script&gt;
</span><span class="cx">   &lt;/body&gt;
</span><span class="cx"> &lt;/html&gt;
</span></span></pre></div>
<a id="trunkLayoutTestsplatformmacwk1importedw3cwebplatformtestsfetchapicredentialsauthenticationbasicexpectedtxt"></a>
<div class="addfile"><h4>Added: trunk/LayoutTests/platform/mac-wk1/imported/w3c/web-platform-tests/fetch/api/credentials/authentication-basic-expected.txt (0 => 203642)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/platform/mac-wk1/imported/w3c/web-platform-tests/fetch/api/credentials/authentication-basic-expected.txt                                (rev 0)
+++ trunk/LayoutTests/platform/mac-wk1/imported/w3c/web-platform-tests/fetch/api/credentials/authentication-basic-expected.txt        2016-07-23 09:58:15 UTC (rev 203642)
</span><span class="lines">@@ -0,0 +1,8 @@
</span><ins>+http://localhost:8800/fetch/api/resources/authentication.py?realm=test - didReceiveAuthenticationChallenge - Simulating cancelled authentication sheet
+http://localhost:8800/fetch/api/resources/authentication.py?realm=test - didReceiveAuthenticationChallenge - Simulating cancelled authentication sheet
+http://localhost:8800/fetch/api/resources/authentication.py?realm=test - didReceiveAuthenticationChallenge - Simulating cancelled authentication sheet
+
+FAIL User-added Authorization header with include mode assert_equals: HTTP status is 200 expected 200 but got 401
+FAIL User-added Authorization header with same-origin mode assert_equals: HTTP status is 200 expected 200 but got 401
+FAIL User-added Authorization header with omit mode assert_equals: HTTP status is 200 expected 200 but got 401
+
</ins></span></pre></div>
<a id="trunkSourceJavaScriptCoreChangeLog"></a>
<div class="modfile"><h4>Modified: trunk/Source/JavaScriptCore/ChangeLog (203641 => 203642)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/JavaScriptCore/ChangeLog        2016-07-23 08:55:38 UTC (rev 203641)
+++ trunk/Source/JavaScriptCore/ChangeLog        2016-07-23 09:58:15 UTC (rev 203642)
</span><span class="lines">@@ -1,3 +1,17 @@
</span><ins>+2016-07-23  Commit Queue  &lt;commit-queue@webkit.org&gt;
+
+        Unreviewed, rolling out r203641.
+        https://bugs.webkit.org/show_bug.cgi?id=160116
+
+        It broke make-based builds (Requested by youenn on #webkit).
+
+        Reverted changeset:
+
+        &quot;[Fetch API] Request should be created with any HeadersInit
+        data&quot;
+        https://bugs.webkit.org/show_bug.cgi?id=159672
+        http://trac.webkit.org/changeset/203641
+
</ins><span class="cx"> 2016-07-23  Youenn Fablet  &lt;youenn@apple.com&gt;
</span><span class="cx"> 
</span><span class="cx">         [Fetch API] Request should be created with any HeadersInit data
</span></span></pre></div>
<a id="trunkSourceJavaScriptCoreScriptsbuiltinsbuiltins_generatorpy"></a>
<div class="modfile"><h4>Modified: trunk/Source/JavaScriptCore/Scripts/builtins/builtins_generator.py (203641 => 203642)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/JavaScriptCore/Scripts/builtins/builtins_generator.py        2016-07-23 08:55:38 UTC (rev 203641)
+++ trunk/Source/JavaScriptCore/Scripts/builtins/builtins_generator.py        2016-07-23 09:58:15 UTC (rev 203642)
</span><span class="lines">@@ -38,7 +38,7 @@
</span><span class="cx"> # These match WK_lcfirst and WK_ucfirst defined in CodeGenerator.pm.
</span><span class="cx"> def WK_lcfirst(str):
</span><span class="cx">     str = str[:1].lower() + str[1:]
</span><del>-    str = str.replace('dOM', 'dom')
</del><ins>+    str = str.replace('hTML', 'html')
</ins><span class="cx">     str = str.replace('uRL', 'url')
</span><span class="cx">     str = str.replace('jS', 'js')
</span><span class="cx">     str = str.replace('xML', 'xml')
</span></span></pre></div>
<a id="trunkSourceWebCoreCMakeListstxt"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/CMakeLists.txt (203641 => 203642)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/CMakeLists.txt        2016-07-23 08:55:38 UTC (rev 203641)
+++ trunk/Source/WebCore/CMakeLists.txt        2016-07-23 09:58:15 UTC (rev 203642)
</span><span class="lines">@@ -3710,12 +3710,9 @@
</span><span class="cx"> # WebCore JS Builtins
</span><span class="cx"> 
</span><span class="cx"> set(WebCore_BUILTINS_SOURCES
</span><del>-    ${WEBCORE_DIR}/Modules/fetch/DOMWindowFetch.js
</del><span class="cx">     ${WEBCORE_DIR}/Modules/fetch/FetchHeaders.js
</span><span class="cx">     ${WEBCORE_DIR}/Modules/fetch/FetchInternals.js
</span><del>-    ${WEBCORE_DIR}/Modules/fetch/FetchRequest.js
</del><span class="cx">     ${WEBCORE_DIR}/Modules/fetch/FetchResponse.js
</span><del>-    ${WEBCORE_DIR}/Modules/fetch/WorkerGlobalScopeFetch.js
</del><span class="cx">     ${WEBCORE_DIR}/Modules/mediastream/MediaDevices.js
</span><span class="cx">     ${WEBCORE_DIR}/Modules/mediastream/NavigatorUserMedia.js
</span><span class="cx">     ${WEBCORE_DIR}/Modules/mediastream/RTCPeerConnection.js
</span></span></pre></div>
<a id="trunkSourceWebCoreChangeLog"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/ChangeLog (203641 => 203642)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/ChangeLog        2016-07-23 08:55:38 UTC (rev 203641)
+++ trunk/Source/WebCore/ChangeLog        2016-07-23 09:58:15 UTC (rev 203642)
</span><span class="lines">@@ -1,3 +1,17 @@
</span><ins>+2016-07-23  Commit Queue  &lt;commit-queue@webkit.org&gt;
+
+        Unreviewed, rolling out r203641.
+        https://bugs.webkit.org/show_bug.cgi?id=160116
+
+        It broke make-based builds (Requested by youenn on #webkit).
+
+        Reverted changeset:
+
+        &quot;[Fetch API] Request should be created with any HeadersInit
+        data&quot;
+        https://bugs.webkit.org/show_bug.cgi?id=159672
+        http://trac.webkit.org/changeset/203641
+
</ins><span class="cx"> 2016-07-23  Youenn Fablet  &lt;youenn@apple.com&gt;
</span><span class="cx"> 
</span><span class="cx">         [Fetch API] Request should be created with any HeadersInit data
</span></span></pre></div>
<a id="trunkSourceWebCoreDerivedSourcesmake"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/DerivedSources.make (203641 => 203642)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/DerivedSources.make        2016-07-23 08:55:38 UTC (rev 203641)
+++ trunk/Source/WebCore/DerivedSources.make        2016-07-23 09:58:15 UTC (rev 203642)
</span><span class="lines">@@ -1283,12 +1283,9 @@
</span><span class="cx"> # WebCore JS Builtins
</span><span class="cx"> 
</span><span class="cx"> WebCore_BUILTINS_SOURCES = \
</span><del>-    ${WebCore}/Modules/fetch/DOMWindowFetch.js \
</del><span class="cx">     $(WebCore)/Modules/fetch/FetchHeaders.js \
</span><span class="cx">     $(WebCore)/Modules/fetch/FetchInternals.js \
</span><del>-    $(WebCore)/Modules/fetch/FetchRequest.js \
</del><span class="cx">     $(WebCore)/Modules/fetch/FetchResponse.js \
</span><del>-    ${WebCore}/Modules/fetch/WorkerGlobalScopeFetch.js \
</del><span class="cx">     $(WebCore)/Modules/mediastream/MediaDevices.js \
</span><span class="cx">     $(WebCore)/Modules/mediastream/NavigatorUserMedia.js \
</span><span class="cx">     $(WebCore)/Modules/mediastream/RTCPeerConnection.js \
</span></span></pre></div>
<a id="trunkSourceWebCoreModulesfetchDOMWindowFetchcpp"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/Modules/fetch/DOMWindowFetch.cpp (203641 => 203642)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/Modules/fetch/DOMWindowFetch.cpp        2016-07-23 08:55:38 UTC (rev 203641)
+++ trunk/Source/WebCore/Modules/fetch/DOMWindowFetch.cpp        2016-07-23 09:58:15 UTC (rev 203642)
</span><span class="lines">@@ -37,13 +37,20 @@
</span><span class="cx"> 
</span><span class="cx"> namespace WebCore {
</span><span class="cx"> 
</span><del>-void DOMWindowFetch::fetch(DOMWindow&amp; window, FetchRequest&amp; request, DeferredWrapper&amp;&amp; promise)
</del><ins>+void DOMWindowFetch::fetch(DOMWindow&amp; window, FetchRequest&amp; input, const Dictionary&amp; dictionary, DeferredWrapper&amp;&amp; promise)
</ins><span class="cx"> {
</span><span class="cx">     if (!window.scriptExecutionContext())
</span><span class="cx">         return;
</span><del>-    FetchResponse::fetch(*window.scriptExecutionContext(), request, WTFMove(promise));
</del><ins>+    FetchResponse::fetch(*window.scriptExecutionContext(), input, dictionary, WTFMove(promise));
</ins><span class="cx"> }
</span><span class="cx"> 
</span><ins>+void DOMWindowFetch::fetch(DOMWindow&amp; window, const String&amp; url, const Dictionary&amp; dictionary, DeferredWrapper&amp;&amp; promise)
+{
+    if (!window.scriptExecutionContext())
+        return;
+    FetchResponse::fetch(*window.scriptExecutionContext(), url, dictionary, WTFMove(promise));
+}
+
</ins><span class="cx"> } // namespace WebCore
</span><span class="cx"> 
</span><span class="cx"> #endif // ENABLE(FETCH_API)
</span></span></pre></div>
<a id="trunkSourceWebCoreModulesfetchDOMWindowFetchh"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/Modules/fetch/DOMWindowFetch.h (203641 => 203642)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/Modules/fetch/DOMWindowFetch.h        2016-07-23 08:55:38 UTC (rev 203641)
+++ trunk/Source/WebCore/Modules/fetch/DOMWindowFetch.h        2016-07-23 09:58:15 UTC (rev 203642)
</span><span class="lines">@@ -25,9 +25,9 @@
</span><span class="cx">  * OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
</span><span class="cx">  * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
</span><span class="cx">  */
</span><ins>+#ifndef DOMWindowFetch_h
+#define DOMWindowFetch_h
</ins><span class="cx"> 
</span><del>-#pragma once
-
</del><span class="cx"> #if ENABLE(FETCH_API)
</span><span class="cx"> 
</span><span class="cx"> #include &lt;wtf/Forward.h&gt;
</span><span class="lines">@@ -41,9 +41,12 @@
</span><span class="cx"> 
</span><span class="cx"> class DOMWindowFetch {
</span><span class="cx"> public:
</span><del>-    static void fetch(DOMWindow&amp;, FetchRequest&amp;, DeferredWrapper&amp;&amp;);
</del><ins>+    static void fetch(DOMWindow&amp;, FetchRequest&amp;, const Dictionary&amp;, DeferredWrapper&amp;&amp;);
+    static void fetch(DOMWindow&amp;, const String&amp;, const Dictionary&amp;, DeferredWrapper&amp;&amp;);
</ins><span class="cx"> };
</span><span class="cx"> 
</span><span class="cx"> } // namespace WebCore
</span><span class="cx"> 
</span><span class="cx"> #endif // ENABLE(FETCH_API)
</span><ins>+
+#endif // DOMWindowFetch_h
</ins></span></pre></div>
<a id="trunkSourceWebCoreModulesfetchDOMWindowFetchidl"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/Modules/fetch/DOMWindowFetch.idl (203641 => 203642)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/Modules/fetch/DOMWindowFetch.idl        2016-07-23 08:55:38 UTC (rev 203641)
+++ trunk/Source/WebCore/Modules/fetch/DOMWindowFetch.idl        2016-07-23 09:58:15 UTC (rev 203642)
</span><span class="lines">@@ -30,7 +30,6 @@
</span><span class="cx">     Conditional=FETCH_API,
</span><span class="cx">     EnabledAtRuntime=FetchAPI,
</span><span class="cx"> ] partial interface DOMWindow {
</span><del>-    [JSBuiltin] Promise fetch(any input, optional Dictionary init);
-
-    [PrivateIdentifier, ImplementedAs=fetch] Promise fetchRequest(FetchRequest request);
</del><ins>+    Promise fetch(FetchRequest input, optional Dictionary init);
+    Promise fetch(DOMString input, optional Dictionary init);
</ins><span class="cx"> };
</span></span></pre></div>
<a id="trunkSourceWebCoreModulesfetchDOMWindowFetchjs"></a>
<div class="delfile"><h4>Deleted: trunk/Source/WebCore/Modules/fetch/DOMWindowFetch.js (203641 => 203642)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/Modules/fetch/DOMWindowFetch.js        2016-07-23 08:55:38 UTC (rev 203641)
+++ trunk/Source/WebCore/Modules/fetch/DOMWindowFetch.js        2016-07-23 09:58:15 UTC (rev 203642)
</span><span class="lines">@@ -1,37 +0,0 @@
</span><del>-/*
- * Copyright (C) 2016 Apple Inc.
- *
- * Redistribution and use in source and binary forms, with or without
- * modification, are permitted provided that the following conditions
- * are met:
- * 1. Redistributions of source code must retain the above copyright
- *    notice, this list of conditions and the following disclaimer.
- * 2. Redistributions in binary form must reproduce the above copyright
- *    notice, this list of conditions and the following disclaimer in the
- *    documentation and/or other materials provided with the distribution.
- *
- * THIS SOFTWARE IS PROVIDED BY APPLE INC. ``AS IS'' AND ANY
- * EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
- * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
- * PURPOSE ARE DISCLAIMED.  IN NO EVENT SHALL APPLE INC. OR
- * CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
- * EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
- * PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
- * PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY
- * OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
- * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
- * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
- */
-
-// @conditional=ENABLE(FETCH_API)
-
-function fetch(input, init)
-{
-    &quot;use strict&quot;;
-
-    try {
-        return @fetchRequest(new @Request(input, init));
-    } catch(e) {
-        return @Promise.@reject(e);
-    }
-}
</del></span></pre></div>
<a id="trunkSourceWebCoreModulesfetchFetchHeadersh"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/Modules/fetch/FetchHeaders.h (203641 => 203642)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/Modules/fetch/FetchHeaders.h        2016-07-23 08:55:38 UTC (rev 203641)
+++ trunk/Source/WebCore/Modules/fetch/FetchHeaders.h        2016-07-23 09:58:15 UTC (rev 203642)
</span><span class="lines">@@ -26,7 +26,8 @@
</span><span class="cx">  * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
</span><span class="cx">  */
</span><span class="cx"> 
</span><del>-#pragma once
</del><ins>+#ifndef FetchHeaders_h
+#define FetchHeaders_h
</ins><span class="cx"> 
</span><span class="cx"> #if ENABLE(FETCH_API)
</span><span class="cx"> 
</span><span class="lines">@@ -78,8 +79,6 @@
</span><span class="cx"> 
</span><span class="cx">     const HTTPHeaderMap&amp; internalHeaders() const { return m_headers; }
</span><span class="cx"> 
</span><del>-    void setGuard(Guard);
-
</del><span class="cx"> private:
</span><span class="cx">     FetchHeaders(Guard guard) : m_guard(guard) { }
</span><span class="cx">     FetchHeaders(Guard guard, const HTTPHeaderMap&amp; headers) : m_guard(guard), m_headers(headers) { }
</span><span class="lines">@@ -88,12 +87,8 @@
</span><span class="cx">     HTTPHeaderMap m_headers;
</span><span class="cx"> };
</span><span class="cx"> 
</span><del>-inline void FetchHeaders::setGuard(Guard guard)
-{
-    ASSERT(!m_headers.size());
-    m_guard = guard;
-}
-
</del><span class="cx"> } // namespace WebCore
</span><span class="cx"> 
</span><span class="cx"> #endif // ENABLE(FETCH_API)
</span><ins>+
+#endif // FetchHeaders_h
</ins></span></pre></div>
<a id="trunkSourceWebCoreModulesfetchFetchRequestcpp"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/Modules/fetch/FetchRequest.cpp (203641 => 203642)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/Modules/fetch/FetchRequest.cpp        2016-07-23 08:55:38 UTC (rev 203641)
+++ trunk/Source/WebCore/Modules/fetch/FetchRequest.cpp        2016-07-23 09:58:15 UTC (rev 203642)
</span><span class="lines">@@ -193,6 +193,40 @@
</span><span class="cx">     return true;
</span><span class="cx"> }
</span><span class="cx"> 
</span><ins>+static RefPtr&lt;FetchHeaders&gt; buildHeaders(const Dictionary&amp; init, const FetchRequest::InternalRequest&amp; request, const FetchHeaders* inputHeaders = nullptr)
+{
+    FetchHeaders::Guard guard = FetchHeaders::Guard::Request;
+    if (request.options.mode == FetchOptions::Mode::NoCors) {
+        const String&amp; method = request.request.httpMethod();
+        if (method != &quot;GET&quot; &amp;&amp; method != &quot;POST&quot; &amp;&amp; method != &quot;HEAD&quot;)
+            return nullptr;
+        if (!request.integrity.isEmpty())
+            return nullptr;
+        guard = FetchHeaders::Guard::RequestNoCors;
+    }
+
+    RefPtr&lt;FetchHeaders&gt; initialHeaders;
+    RefPtr&lt;FetchHeaders&gt; headers = FetchHeaders::create(guard);
+    headers-&gt;fill(init.get(&quot;headers&quot;, initialHeaders) ? initialHeaders.get() : inputHeaders);
+
+    return headers;
+}
+
+static FetchBody buildBody(const Dictionary&amp; init, FetchHeaders&amp; headers, FetchBody* inputBody = nullptr)
+{
+    JSC::JSValue value;
+    bool hasInitBody = init.get(&quot;body&quot;, value);
+    FetchBody body = hasInitBody ? FetchBody::extract(*init.execState(), value) : FetchBody::extractFromBody(inputBody);
+
+    String type = headers.fastGet(HTTPHeaderName::ContentType);
+    if (hasInitBody &amp;&amp; type.isEmpty() &amp;&amp; !body.mimeType().isEmpty()) {
+        type = body.mimeType();
+        headers.fastSet(HTTPHeaderName::ContentType, type);
+    }
+    body.setMimeType(type);
+    return body;
+}
+
</ins><span class="cx"> static bool validateBodyAndMethod(const FetchBody&amp; body, const FetchRequest::InternalRequest&amp; internalRequest)
</span><span class="cx"> {
</span><span class="cx">     if (body.isEmpty())
</span><span class="lines">@@ -200,48 +234,42 @@
</span><span class="cx">     return internalRequest.request.httpMethod() != &quot;GET&quot; &amp;&amp; internalRequest.request.httpMethod() != &quot;HEAD&quot;;
</span><span class="cx"> }
</span><span class="cx"> 
</span><del>-void FetchRequest::initializeOptions(const Dictionary&amp; init, ExceptionCode&amp; ec)
</del><ins>+RefPtr&lt;FetchRequest&gt; FetchRequest::create(ScriptExecutionContext&amp; context, const String&amp; url, const Dictionary&amp; init, ExceptionCode&amp; ec)
</ins><span class="cx"> {
</span><del>-    ASSERT(scriptExecutionContext());
-    if (!buildOptions(m_internalRequest, *scriptExecutionContext(), init)) {
</del><ins>+    // FIXME: Tighten the URL parsing algorithm according https://url.spec.whatwg.org/#concept-url-parser.
+    URL requestURL = context.completeURL(url);
+    if (!requestURL.isValid() || !requestURL.user().isEmpty() || !requestURL.pass().isEmpty()) {
</ins><span class="cx">         ec = TypeError;
</span><del>-        return;
</del><ins>+        return nullptr;
</ins><span class="cx">     }
</span><span class="cx"> 
</span><del>-    if (m_internalRequest.options.mode == FetchOptions::Mode::NoCors) {
-        const String&amp; method = m_internalRequest.request.httpMethod();
-        if (method != &quot;GET&quot; &amp;&amp; method != &quot;POST&quot; &amp;&amp; method != &quot;HEAD&quot;) {
-            ec = TypeError;
-            return;
-        }
-        if (!m_internalRequest.integrity.isEmpty()) {
-            ec = TypeError;
-            return;
-        }
-        m_headers-&gt;setGuard(FetchHeaders::Guard::RequestNoCors);
</del><ins>+    FetchRequest::InternalRequest internalRequest;
+    internalRequest.options.mode = Mode::Cors;
+    internalRequest.options.credentials = Credentials::Omit;
+    internalRequest.referrer = ASCIILiteral(&quot;client&quot;);
+    internalRequest.request.setURL(requestURL);
+
+    if (!buildOptions(internalRequest, context, init)) {
+        ec = TypeError;
+        return nullptr;
</ins><span class="cx">     }
</span><del>-}
</del><span class="cx"> 
</span><del>-FetchHeaders* FetchRequest::initializeWith(const String&amp; url, const Dictionary&amp; init, ExceptionCode&amp; ec)
-{
-    ASSERT(scriptExecutionContext());
-    // FIXME: Tighten the URL parsing algorithm according https://url.spec.whatwg.org/#concept-url-parser.
-    URL requestURL = scriptExecutionContext()-&gt;completeURL(url);
-    if (!requestURL.isValid() || !requestURL.user().isEmpty() || !requestURL.pass().isEmpty()) {
</del><ins>+    RefPtr&lt;FetchHeaders&gt; headers = buildHeaders(init, internalRequest);
+    if (!headers) {
</ins><span class="cx">         ec = TypeError;
</span><span class="cx">         return nullptr;
</span><span class="cx">     }
</span><span class="cx"> 
</span><del>-    m_internalRequest.options.mode = Mode::Cors;
-    m_internalRequest.options.credentials = Credentials::Omit;
-    m_internalRequest.referrer = ASCIILiteral(&quot;client&quot;);
-    m_internalRequest.request.setURL(requestURL);
</del><ins>+    FetchBody body = buildBody(init, *headers);
+    if (!validateBodyAndMethod(body, internalRequest)) {
+        ec = TypeError;
+        return nullptr;
+    }
</ins><span class="cx"> 
</span><del>-    initializeOptions(init, ec);
-    return m_headers.ptr();
</del><ins>+    return adoptRef(*new FetchRequest(context, WTFMove(body), headers.releaseNonNull(), WTFMove(internalRequest)));
</ins><span class="cx"> }
</span><span class="cx"> 
</span><del>-FetchHeaders* FetchRequest::initializeWith(FetchRequest&amp; input, const Dictionary&amp; init, ExceptionCode&amp; ec)
</del><ins>+RefPtr&lt;FetchRequest&gt; FetchRequest::create(ScriptExecutionContext&amp; context, FetchRequest&amp; input, const Dictionary&amp; init, ExceptionCode&amp; ec)
</ins><span class="cx"> {
</span><span class="cx">     if (input.isDisturbed()) {
</span><span class="cx">         ec = TypeError;
</span><span class="lines">@@ -248,29 +276,29 @@
</span><span class="cx">         return nullptr;
</span><span class="cx">     }
</span><span class="cx"> 
</span><del>-    m_internalRequest = input.m_internalRequest;
</del><ins>+    FetchRequest::InternalRequest internalRequest(input.m_internalRequest);
</ins><span class="cx"> 
</span><del>-    initializeOptions(init, ec);
-    return m_headers.ptr();
-}
</del><ins>+    if (!buildOptions(internalRequest, context, init)) {
+        ec = TypeError;
+        return nullptr;
+    }
</ins><span class="cx"> 
</span><del>-void FetchRequest::setBody(JSC::ExecState&amp; execState, JSC::JSValue body, FetchRequest* request, ExceptionCode&amp; ec)
-{
-    if (!body.isNull())
-        m_body = FetchBody::extract(execState, body);
-    else if (request &amp;&amp; !request-&gt;m_body.isEmpty()) {
-        m_body = FetchBody::extractFromBody(&amp;request-&gt;m_body);
-        request-&gt;setDisturbed();
</del><ins>+    RefPtr&lt;FetchHeaders&gt; headers = buildHeaders(init, internalRequest, input.m_headers.ptr());
+    if (!headers) {
+        ec = TypeError;
+        return nullptr;
</ins><span class="cx">     }
</span><span class="cx"> 
</span><del>-    String type = m_headers-&gt;fastGet(HTTPHeaderName::ContentType);
-    if (!body.isUndefined() &amp;&amp; type.isEmpty() &amp;&amp; !m_body.mimeType().isEmpty()) {
-        type = m_body.mimeType();
-        m_headers-&gt;fastSet(HTTPHeaderName::ContentType, type);
</del><ins>+    FetchBody body = buildBody(init, *headers, &amp;input.m_body);
+    if (!validateBodyAndMethod(body, internalRequest)) {
+        ec = TypeError;
+        return nullptr;
</ins><span class="cx">     }
</span><del>-    m_body.setMimeType(type);
-    if (!validateBodyAndMethod(m_body, m_internalRequest))
-        ec = TypeError;
</del><ins>+
+    if (!input.m_body.isEmpty())
+        input.setDisturbed();
+
+    return adoptRef(*new FetchRequest(context, WTFMove(body), headers.releaseNonNull(), WTFMove(internalRequest)));
</ins><span class="cx"> }
</span><span class="cx"> 
</span><span class="cx"> String FetchRequest::referrer() const
</span></span></pre></div>
<a id="trunkSourceWebCoreModulesfetchFetchRequesth"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/Modules/fetch/FetchRequest.h (203641 => 203642)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/Modules/fetch/FetchRequest.h        2016-07-23 08:55:38 UTC (rev 203641)
+++ trunk/Source/WebCore/Modules/fetch/FetchRequest.h        2016-07-23 09:58:15 UTC (rev 203642)
</span><span class="lines">@@ -45,12 +45,9 @@
</span><span class="cx"> 
</span><span class="cx"> class FetchRequest final : public FetchBodyOwner {
</span><span class="cx"> public:
</span><del>-    static Ref&lt;FetchRequest&gt; create(ScriptExecutionContext&amp; context) { return adoptRef(*new FetchRequest(context, { }, FetchHeaders::create(FetchHeaders::Guard::Request), { })); }
</del><ins>+    static RefPtr&lt;FetchRequest&gt; create(ScriptExecutionContext&amp;, FetchRequest&amp;, const Dictionary&amp;, ExceptionCode&amp;);
+    static RefPtr&lt;FetchRequest&gt; create(ScriptExecutionContext&amp;, const String&amp;, const Dictionary&amp;, ExceptionCode&amp;);
</ins><span class="cx"> 
</span><del>-    FetchHeaders* initializeWith(FetchRequest&amp;, const Dictionary&amp;, ExceptionCode&amp;);
-    FetchHeaders* initializeWith(const String&amp;, const Dictionary&amp;, ExceptionCode&amp;);
-    void setBody(JSC::ExecState&amp;, JSC::JSValue, FetchRequest*, ExceptionCode&amp;);
-
</del><span class="cx">     const String&amp; method() const { return m_internalRequest.request.httpMethod(); }
</span><span class="cx">     const String&amp; url() const;
</span><span class="cx">     FetchHeaders&amp; headers() { return m_headers.get(); }
</span><span class="lines">@@ -95,8 +92,6 @@
</span><span class="cx"> private:
</span><span class="cx">     FetchRequest(ScriptExecutionContext&amp;, FetchBody&amp;&amp;, Ref&lt;FetchHeaders&gt;&amp;&amp;, InternalRequest&amp;&amp;);
</span><span class="cx"> 
</span><del>-    void initializeOptions(const Dictionary&amp;, ExceptionCode&amp;);
-
</del><span class="cx">     // ActiveDOMObject API.
</span><span class="cx">     const char* activeDOMObjectName() const final;
</span><span class="cx">     bool canSuspendForDocumentSuspension() const final;
</span></span></pre></div>
<a id="trunkSourceWebCoreModulesfetchFetchRequestidl"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/Modules/fetch/FetchRequest.idl (203641 => 203642)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/Modules/fetch/FetchRequest.idl        2016-07-23 08:55:38 UTC (rev 203641)
+++ trunk/Source/WebCore/Modules/fetch/FetchRequest.idl        2016-07-23 09:58:15 UTC (rev 203642)
</span><span class="lines">@@ -37,13 +37,13 @@
</span><span class="cx"> [
</span><span class="cx">     ActiveDOMObject,
</span><span class="cx">     Conditional=FETCH_API,
</span><del>-    Constructor(any input, optional Dictionary init),
</del><span class="cx">     EnabledAtRuntime=FetchAPI,
</span><ins>+    ConstructorCallWith=ScriptExecutionContext,
+    ConstructorRaisesException,
+    Constructor(FetchRequest input, optional Dictionary init),
+    Constructor(DOMString input, optional Dictionary init),
</ins><span class="cx">     Exposed=(Window,Worker),
</span><del>-    InterfaceName=Request,
-    JSBuiltinConstructor,
-    PrivateIdentifier,
-    PublicIdentifier,
</del><ins>+    InterfaceName=Request
</ins><span class="cx"> ]
</span><span class="cx"> interface FetchRequest {
</span><span class="cx">     readonly attribute DOMString method;
</span><span class="lines">@@ -61,9 +61,5 @@
</span><span class="cx">     readonly attribute DOMString integrity;
</span><span class="cx"> 
</span><span class="cx">     [NewObject, CallWith=ScriptExecutionContext, RaisesException] FetchRequest clone();
</span><del>-
-    [PrivateIdentifier, RaisesException] FetchHeaders initializeWith(FetchRequest input, Dictionary init);
-    [PrivateIdentifier, RaisesException] FetchHeaders initializeWith(DOMString input, Dictionary init);
-    [PrivateIdentifier, RaisesException, CallWith=ScriptState] void setBody(any body, FetchRequest? request);
</del><span class="cx"> };
</span><span class="cx"> FetchRequest implements FetchBody;
</span></span></pre></div>
<a id="trunkSourceWebCoreModulesfetchFetchRequestjs"></a>
<div class="delfile"><h4>Deleted: trunk/Source/WebCore/Modules/fetch/FetchRequest.js (203641 => 203642)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/Modules/fetch/FetchRequest.js        2016-07-23 08:55:38 UTC (rev 203641)
+++ trunk/Source/WebCore/Modules/fetch/FetchRequest.js        2016-07-23 09:58:15 UTC (rev 203642)
</span><span class="lines">@@ -1,50 +0,0 @@
</span><del>-/*
- * Copyright (C) 2016 Apple Inc.
- *
- * Redistribution and use in source and binary forms, with or without
- * modification, are permitted provided that the following conditions
- * are met:
- * 1. Redistributions of source code must retain the above copyright
- *    notice, this list of conditions and the following disclaimer.
- * 2. Redistributions in binary form must reproduce the above copyright
- *    notice, this list of conditions and the following disclaimer in the
- *    documentation and/or other materials provided with the distribution.
- *
- * THIS SOFTWARE IS PROVIDED BY APPLE INC. ``AS IS'' AND ANY
- * EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
- * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
- * PURPOSE ARE DISCLAIMED.  IN NO EVENT SHALL APPLE INC. OR
- * CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
- * EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
- * PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
- * PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY
- * OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
- * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
- * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
- */
-
-// @conditional=ENABLE(FETCH_API)
-
-function initializeFetchRequest(input, init)
-{
-    &quot;use strict&quot;;
-
-    if (init === @undefined)
-        init = { };
-    else if (!@isObject(init))
-        throw new @TypeError(&quot;Request init must be an object&quot;);
-
-    let headers = this.@initializeWith(input, init);
-    @assert(headers instanceof @Headers);
-
-    let inputIsRequest = input instanceof @Request;
-    if (&quot;headers&quot; in init)
-        @fillFetchHeaders(headers, init.headers)
-    else if (inputIsRequest)
-        @fillFetchHeaders(headers, input.headers)
-
-    let hasInitBody = init.body !== @undefined &amp;&amp; init.body !== null;
-    this.@setBody(hasInitBody ? init.body : null, inputIsRequest ? input : null);
-
-    return this;
-}
</del></span></pre></div>
<a id="trunkSourceWebCoreModulesfetchFetchResponsecpp"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/Modules/fetch/FetchResponse.cpp (203641 => 203642)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/Modules/fetch/FetchResponse.cpp        2016-07-23 08:55:38 UTC (rev 203641)
+++ trunk/Source/WebCore/Modules/fetch/FetchResponse.cpp        2016-07-23 09:58:15 UTC (rev 203642)
</span><span class="lines">@@ -102,7 +102,7 @@
</span><span class="cx">     return adoptRef(*new FetchResponse(context, FetchBody(m_body), FetchHeaders::create(headers()), ResourceResponse(m_response)));
</span><span class="cx"> }
</span><span class="cx"> 
</span><del>-void FetchResponse::fetch(ScriptExecutionContext&amp; context, FetchRequest&amp; request, FetchPromise&amp;&amp; promise)
</del><ins>+void FetchResponse::startFetching(ScriptExecutionContext&amp; context, const FetchRequest&amp; request, FetchPromise&amp;&amp; promise)
</ins><span class="cx"> {
</span><span class="cx">     auto response = adoptRef(*new FetchResponse(context, FetchBody::loadingBody(), FetchHeaders::create(FetchHeaders::Guard::Immutable), { }));
</span><span class="cx"> 
</span><span class="lines">@@ -114,6 +114,18 @@
</span><span class="cx">         response-&gt;m_bodyLoader = Nullopt;
</span><span class="cx"> }
</span><span class="cx"> 
</span><ins>+void FetchResponse::fetch(ScriptExecutionContext&amp; context, FetchRequest&amp; input, const Dictionary&amp; dictionary, FetchPromise&amp;&amp; promise)
+{
+    ExceptionCode ec = 0;
+    RefPtr&lt;FetchRequest&gt; fetchRequest = FetchRequest::create(context, input, dictionary, ec);
+    if (ec) {
+        promise.reject(ec);
+        return;
+    }
+    ASSERT(fetchRequest);
+    startFetching(context, *fetchRequest, WTFMove(promise));
+}
+
</ins><span class="cx"> const String&amp; FetchResponse::url() const
</span><span class="cx"> {
</span><span class="cx">     if (m_responseURL.isNull())
</span><span class="lines">@@ -121,6 +133,18 @@
</span><span class="cx">     return m_responseURL;
</span><span class="cx"> }
</span><span class="cx"> 
</span><ins>+void FetchResponse::fetch(ScriptExecutionContext&amp; context, const String&amp; url, const Dictionary&amp; dictionary, FetchPromise&amp;&amp; promise)
+{
+    ExceptionCode ec = 0;
+    RefPtr&lt;FetchRequest&gt; fetchRequest = FetchRequest::create(context, url, dictionary, ec);
+    if (ec) {
+        promise.reject(ec);
+        return;
+    }
+    ASSERT(fetchRequest);
+    startFetching(context, *fetchRequest, WTFMove(promise));
+}
+
</ins><span class="cx"> void FetchResponse::BodyLoader::didSucceed()
</span><span class="cx"> {
</span><span class="cx">     ASSERT(m_response.hasPendingActivity());
</span></span></pre></div>
<a id="trunkSourceWebCoreModulesfetchFetchResponseh"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/Modules/fetch/FetchResponse.h (203641 => 203642)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/Modules/fetch/FetchResponse.h        2016-07-23 08:55:38 UTC (rev 203641)
+++ trunk/Source/WebCore/Modules/fetch/FetchResponse.h        2016-07-23 09:58:15 UTC (rev 203642)
</span><span class="lines">@@ -57,8 +57,10 @@
</span><span class="cx">     static RefPtr&lt;FetchResponse&gt; redirect(ScriptExecutionContext&amp;, const String&amp;, int, ExceptionCode&amp;);
</span><span class="cx"> 
</span><span class="cx">     using FetchPromise = DOMPromise&lt;FetchResponse&gt;;
</span><del>-    static void fetch(ScriptExecutionContext&amp;, FetchRequest&amp;, FetchPromise&amp;&amp;);
</del><ins>+    static void fetch(ScriptExecutionContext&amp;, FetchRequest&amp;, const Dictionary&amp;, FetchPromise&amp;&amp;);
+    static void fetch(ScriptExecutionContext&amp;, const String&amp;, const Dictionary&amp;, FetchPromise&amp;&amp;);
</ins><span class="cx"> 
</span><ins>+
</ins><span class="cx">     void setStatus(int, const String&amp;, ExceptionCode&amp;);
</span><span class="cx">     void initializeWith(JSC::ExecState&amp;, JSC::JSValue);
</span><span class="cx"> 
</span></span></pre></div>
<a id="trunkSourceWebCoreModulesfetchWorkerGlobalScopeFetchcpp"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/Modules/fetch/WorkerGlobalScopeFetch.cpp (203641 => 203642)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/Modules/fetch/WorkerGlobalScopeFetch.cpp        2016-07-23 08:55:38 UTC (rev 203641)
+++ trunk/Source/WebCore/Modules/fetch/WorkerGlobalScopeFetch.cpp        2016-07-23 09:58:15 UTC (rev 203642)
</span><span class="lines">@@ -36,13 +36,20 @@
</span><span class="cx"> 
</span><span class="cx"> namespace WebCore {
</span><span class="cx"> 
</span><del>-void WorkerGlobalScopeFetch::fetch(WorkerGlobalScope&amp; scope, FetchRequest&amp; request, DeferredWrapper&amp;&amp; promise)
</del><ins>+void WorkerGlobalScopeFetch::fetch(WorkerGlobalScope&amp; scope, FetchRequest&amp; input, const Dictionary&amp; dictionary, DeferredWrapper&amp;&amp; promise)
</ins><span class="cx"> {
</span><span class="cx">     if (!scope.scriptExecutionContext())
</span><span class="cx">         return;
</span><del>-    FetchResponse::fetch(*scope.scriptExecutionContext(), request, WTFMove(promise));
</del><ins>+    FetchResponse::fetch(*scope.scriptExecutionContext(), input, dictionary, WTFMove(promise));
</ins><span class="cx"> }
</span><span class="cx"> 
</span><ins>+void WorkerGlobalScopeFetch::fetch(WorkerGlobalScope&amp; scope, const String&amp; url, const Dictionary&amp; dictionary, DeferredWrapper&amp;&amp; promise)
+{
+    if (!scope.scriptExecutionContext())
+        return;
+    FetchResponse::fetch(*scope.scriptExecutionContext(), url, dictionary, WTFMove(promise));
+}
+
</ins><span class="cx"> } // namespace WebCore
</span><span class="cx"> 
</span><span class="cx"> #endif // ENABLE(FETCH_API)
</span></span></pre></div>
<a id="trunkSourceWebCoreModulesfetchWorkerGlobalScopeFetchh"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/Modules/fetch/WorkerGlobalScopeFetch.h (203641 => 203642)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/Modules/fetch/WorkerGlobalScopeFetch.h        2016-07-23 08:55:38 UTC (rev 203641)
+++ trunk/Source/WebCore/Modules/fetch/WorkerGlobalScopeFetch.h        2016-07-23 09:58:15 UTC (rev 203642)
</span><span class="lines">@@ -25,9 +25,9 @@
</span><span class="cx">  * OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
</span><span class="cx">  * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
</span><span class="cx">  */
</span><ins>+#ifndef WorkerGlobalScopeFetch_h
+#define WorkerGlobalScopeFetch_h
</ins><span class="cx"> 
</span><del>-#pragma once
-
</del><span class="cx"> #if ENABLE(FETCH_API)
</span><span class="cx"> 
</span><span class="cx"> #include &quot;JSDOMPromise.h&quot;
</span><span class="lines">@@ -37,13 +37,17 @@
</span><span class="cx"> 
</span><span class="cx"> class WorkerGlobalScope;
</span><span class="cx"> class DeferredWrapper;
</span><ins>+class Dictionary;
</ins><span class="cx"> class FetchRequest;
</span><span class="cx"> 
</span><span class="cx"> class WorkerGlobalScopeFetch {
</span><span class="cx"> public:
</span><del>-    static void fetch(WorkerGlobalScope&amp;, FetchRequest&amp;, DeferredWrapper&amp;&amp;);
</del><ins>+    static void fetch(WorkerGlobalScope&amp;, FetchRequest&amp;, const Dictionary&amp;, DeferredWrapper&amp;&amp;);
+    static void fetch(WorkerGlobalScope&amp;, const String&amp;, const Dictionary&amp;, DeferredWrapper&amp;&amp;);
</ins><span class="cx"> };
</span><span class="cx"> 
</span><span class="cx"> } // namespace WebCore
</span><span class="cx"> 
</span><span class="cx"> #endif // ENABLE(FETCH_API)
</span><ins>+
+#endif // WorkerGlobalScopeFetch_h
</ins></span></pre></div>
<a id="trunkSourceWebCoreModulesfetchWorkerGlobalScopeFetchidl"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/Modules/fetch/WorkerGlobalScopeFetch.idl (203641 => 203642)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/Modules/fetch/WorkerGlobalScopeFetch.idl        2016-07-23 08:55:38 UTC (rev 203641)
+++ trunk/Source/WebCore/Modules/fetch/WorkerGlobalScopeFetch.idl        2016-07-23 09:58:15 UTC (rev 203642)
</span><span class="lines">@@ -30,7 +30,6 @@
</span><span class="cx">     Conditional=FETCH_API,
</span><span class="cx">     EnabledAtRuntime=FetchAPI,
</span><span class="cx"> ] partial interface WorkerGlobalScope {
</span><del>-    [JSBuiltin] Promise fetch(any input, optional Dictionary init);
-
-    [PrivateIdentifier, ImplementedAs=fetch] Promise fetchRequest(FetchRequest request);
</del><ins>+    Promise fetch(DOMString input, optional Dictionary init);
+    Promise fetch(FetchRequest input, optional Dictionary init);
</ins><span class="cx"> };
</span></span></pre></div>
<a id="trunkSourceWebCoreModulesfetchWorkerGlobalScopeFetchjs"></a>
<div class="delfile"><h4>Deleted: trunk/Source/WebCore/Modules/fetch/WorkerGlobalScopeFetch.js (203641 => 203642)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/Modules/fetch/WorkerGlobalScopeFetch.js        2016-07-23 08:55:38 UTC (rev 203641)
+++ trunk/Source/WebCore/Modules/fetch/WorkerGlobalScopeFetch.js        2016-07-23 09:58:15 UTC (rev 203642)
</span><span class="lines">@@ -1,37 +0,0 @@
</span><del>-/*
- * Copyright (C) 2016 Apple Inc.
- *
- * Redistribution and use in source and binary forms, with or without
- * modification, are permitted provided that the following conditions
- * are met:
- * 1. Redistributions of source code must retain the above copyright
- *    notice, this list of conditions and the following disclaimer.
- * 2. Redistributions in binary form must reproduce the above copyright
- *    notice, this list of conditions and the following disclaimer in the
- *    documentation and/or other materials provided with the distribution.
- *
- * THIS SOFTWARE IS PROVIDED BY APPLE INC. ``AS IS'' AND ANY
- * EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
- * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
- * PURPOSE ARE DISCLAIMED.  IN NO EVENT SHALL APPLE INC. OR
- * CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
- * EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
- * PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
- * PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY
- * OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
- * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
- * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
- */
-
-// @conditional=ENABLE(FETCH_API)
-
-function fetch(input, init)
-{
-    &quot;use strict&quot;;
-
-    try {
-        return @fetchRequest(new @Request(input, init));
-    } catch(e) {
-        return @Promise.@reject(e);
-    }
-}
</del></span></pre></div>
<a id="trunkSourceWebCorebindingsjsWebCoreBuiltinNamesh"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/bindings/js/WebCoreBuiltinNames.h (203641 => 203642)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/bindings/js/WebCoreBuiltinNames.h        2016-07-23 08:55:38 UTC (rev 203641)
+++ trunk/Source/WebCore/bindings/js/WebCoreBuiltinNames.h        2016-07-23 09:58:15 UTC (rev 203642)
</span><span class="lines">@@ -41,7 +41,6 @@
</span><span class="cx">     macro(controller) \
</span><span class="cx">     macro(createReadableStreamSource) \
</span><span class="cx">     macro(disturbed) \
</span><del>-    macro(fetchRequest) \
</del><span class="cx">     macro(fillFromJS) \
</span><span class="cx">     macro(firstReadCallback) \
</span><span class="cx">     macro(getUserMediaFromJS) \
</span><span class="lines">@@ -69,7 +68,6 @@
</span><span class="cx">     macro(responseCacheIsValid) \
</span><span class="cx">     macro(retrieveResponse) \
</span><span class="cx">     macro(response) \
</span><del>-    macro(setBody) \
</del><span class="cx">     macro(setStatus) \
</span><span class="cx">     macro(state) \
</span><span class="cx">     macro(started) \
</span><span class="lines">@@ -91,7 +89,6 @@
</span><span class="cx">     macro(ReadableStream) \
</span><span class="cx">     macro(ReadableStreamReader) \
</span><span class="cx">     macro(ReadableStreamController) \
</span><del>-    macro(Request) \
</del><span class="cx">     macro(Response) \
</span><span class="cx">     macro(RTCIceCandidate) \
</span><span class="cx">     macro(RTCSessionDescription) \
</span></span></pre></div>
<a id="trunkSourceWebCorebindingsscriptsCodeGeneratorpm"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/bindings/scripts/CodeGenerator.pm (203641 => 203642)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/bindings/scripts/CodeGenerator.pm        2016-07-23 08:55:38 UTC (rev 203641)
+++ trunk/Source/WebCore/bindings/scripts/CodeGenerator.pm        2016-07-23 09:58:15 UTC (rev 203642)
</span><span class="lines">@@ -559,7 +559,6 @@
</span><span class="cx"> {
</span><span class="cx">     my ($object, $param) = @_;
</span><span class="cx">     my $ret = lcfirst($param);
</span><del>-    $ret =~ s/dOM/dom/ if $ret =~ /^dOM/;
</del><span class="cx">     $ret =~ s/hTML/html/ if $ret =~ /^hTML/;
</span><span class="cx">     $ret =~ s/uRL/url/ if $ret =~ /^uRL/;
</span><span class="cx">     $ret =~ s/jS/js/ if $ret =~ /^jS/;
</span></span></pre></div>
<a id="trunkSourceWebCorebindingsscriptsCodeGeneratorJSpm"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/bindings/scripts/CodeGeneratorJS.pm (203641 => 203642)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/bindings/scripts/CodeGeneratorJS.pm        2016-07-23 08:55:38 UTC (rev 203641)
+++ trunk/Source/WebCore/bindings/scripts/CodeGeneratorJS.pm        2016-07-23 09:58:15 UTC (rev 203642)
</span><span class="lines">@@ -2419,21 +2419,12 @@
</span><span class="cx">             my $functionLength = GetFunctionLength($function);
</span><span class="cx">             my $jsAttributes = ComputeFunctionSpecial($interface, $function);
</span><span class="cx">             push(@implContent, &quot;    if (${enable_function}())\n&quot;);
</span><del>-
-            my $propertyName = &quot;vm.propertyNames-&gt;$functionName&quot;;
-            if ($function-&gt;signature-&gt;extendedAttributes-&gt;{&quot;PrivateIdentifier&quot;}) {
-                $propertyName = &quot;static_cast&lt;JSVMClientData*&gt;(vm.clientData)-&gt;builtinNames().&quot; . $functionName . &quot;PrivateName()&quot;;
-            }
-            if (IsJSBuiltin($interface, $function)) {
-                push(@implContent, &quot;        putDirectBuiltinFunction(vm, this, $propertyName, $implementationFunction(vm), attributesForStructure($jsAttributes));\n&quot;);
-            } else {
-                push(@implContent, &quot;        putDirectNativeFunction(vm, this, $propertyName, $functionLength, $implementationFunction, NoIntrinsic, attributesForStructure($jsAttributes));\n&quot;);
-            }
</del><ins>+            push(@implContent, &quot;        putDirectNativeFunction(vm, this, vm.propertyNames-&gt;$functionName, $functionLength, $implementationFunction, NoIntrinsic, attributesForStructure($jsAttributes));\n&quot;);
</ins><span class="cx">             push(@implContent, &quot;#endif\n&quot;) if $conditionalString;
</span><span class="cx">         }
</span><span class="cx">         push(@implContent, &quot;}\n\n&quot;);
</span><span class="cx">     }
</span><del>-
</del><ins>+    
</ins><span class="cx">     unless (ShouldUseGlobalObjectPrototype($interface)) {
</span><span class="cx">         push(@implContent, &quot;JSObject* ${className}::createPrototype(VM&amp; vm, JSGlobalObject* globalObject)\n&quot;);
</span><span class="cx">         push(@implContent, &quot;{\n&quot;);
</span></span></pre></div>
<a id="trunkSourceWebCorebindingsscriptstestJSJSTestGlobalObjectcpp"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/bindings/scripts/test/JS/JSTestGlobalObject.cpp (203641 => 203642)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/bindings/scripts/test/JS/JSTestGlobalObject.cpp        2016-07-23 08:55:38 UTC (rev 203641)
+++ trunk/Source/WebCore/bindings/scripts/test/JS/JSTestGlobalObject.cpp        2016-07-23 09:58:15 UTC (rev 203642)
</span><span class="lines">@@ -33,10 +33,6 @@
</span><span class="cx"> #include &lt;runtime/JSString.h&gt;
</span><span class="cx"> #include &lt;wtf/GetPtr.h&gt;
</span><span class="cx"> 
</span><del>-#if ENABLE(TEST_FEATURE)
-#include &quot;TestGlobalObjectBuiltins.h&quot;
-#endif
-
</del><span class="cx"> using namespace JSC;
</span><span class="cx"> 
</span><span class="cx"> namespace WebCore {
</span><span class="lines">@@ -47,9 +43,6 @@
</span><span class="cx"> #if ENABLE(TEST_FEATURE)
</span><span class="cx"> JSC::EncodedJSValue JSC_HOST_CALL jsTestGlobalObjectInstanceFunctionEnabledAtRuntimeOperation(JSC::ExecState*);
</span><span class="cx"> #endif
</span><del>-#if ENABLE(TEST_FEATURE)
-JSC::EncodedJSValue JSC_HOST_CALL jsTestGlobalObjectInstanceFunctionTestPrivateFunction(JSC::ExecState*);
-#endif
</del><span class="cx"> 
</span><span class="cx"> // Attributes
</span><span class="cx"> 
</span><span class="lines">@@ -161,14 +154,6 @@
</span><span class="cx">     if (RuntimeEnabledFeatures::sharedFeatures().testFeatureEnabled())
</span><span class="cx">         putDirectNativeFunction(vm, this, vm.propertyNames-&gt;enabledAtRuntimeOperation, 1, jsTestGlobalObjectInstanceFunctionEnabledAtRuntimeOperation, NoIntrinsic, attributesForStructure(JSC::Function));
</span><span class="cx"> #endif
</span><del>-#if ENABLE(TEST_FEATURE)
-    if (RuntimeEnabledFeatures::sharedFeatures().testFeatureEnabled())
-        putDirectNativeFunction(vm, this, static_cast&lt;JSVMClientData*&gt;(vm.clientData)-&gt;builtinNames().testPrivateFunctionPrivateName(), 0, jsTestGlobalObjectInstanceFunctionTestPrivateFunction, NoIntrinsic, attributesForStructure(JSC::Function));
-#endif
-#if ENABLE(TEST_FEATURE)
-    if (RuntimeEnabledFeatures::sharedFeatures().testFeatureEnabled())
-        putDirectBuiltinFunction(vm, this, vm.propertyNames-&gt;testJSBuiltinFunction, testGlobalObjectTestJSBuiltinFunctionCodeGenerator(vm), attributesForStructure(JSC::Builtin));
-#endif
</del><span class="cx"> }
</span><span class="cx"> 
</span><span class="cx"> void JSTestGlobalObject::destroy(JSC::JSCell* cell)
</span><span class="lines">@@ -413,21 +398,6 @@
</span><span class="cx">     return throwVMTypeError(state);
</span><span class="cx"> }
</span><span class="cx"> 
</span><del>-#if ENABLE(TEST_FEATURE)
-EncodedJSValue JSC_HOST_CALL jsTestGlobalObjectInstanceFunctionTestPrivateFunction(ExecState* state)
-{
-    JSValue thisValue = state-&gt;thisValue();
-    auto castedThis = jsDynamicCast&lt;JSTestGlobalObject*&gt;(thisValue);
-    if (UNLIKELY(!castedThis))
-        return throwThisTypeError(*state, &quot;TestGlobalObject&quot;, &quot;testPrivateFunction&quot;);
-    ASSERT_GC_OBJECT_INHERITS(castedThis, JSTestGlobalObject::info());
-    auto&amp; impl = castedThis-&gt;wrapped();
-    impl.testPrivateFunction();
-    return JSValue::encode(jsUndefined());
-}
-
-#endif
-
</del><span class="cx"> bool JSTestGlobalObjectOwner::isReachableFromOpaqueRoots(JSC::Handle&lt;JSC::Unknown&gt; handle, void*, SlotVisitor&amp; visitor)
</span><span class="cx"> {
</span><span class="cx">     UNUSED_PARAM(handle);
</span></span></pre></div>
<a id="trunkSourceWebCorebindingsscriptstestObjCDOMTestGlobalObjectmm"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/bindings/scripts/test/ObjC/DOMTestGlobalObject.mm (203641 => 203642)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/bindings/scripts/test/ObjC/DOMTestGlobalObject.mm        2016-07-23 08:55:38 UTC (rev 203641)
+++ trunk/Source/WebCore/bindings/scripts/test/ObjC/DOMTestGlobalObject.mm        2016-07-23 09:58:15 UTC (rev 203642)
</span><span class="lines">@@ -132,16 +132,6 @@
</span><span class="cx"> 
</span><span class="cx"> #endif
</span><span class="cx"> 
</span><del>-
-#if ENABLE(TEST_FEATURE)
-- (void)testJSBuiltinFunction
-{
-    WebCore::JSMainThreadNullState state;
-    IMPL-&gt;testJSBuiltinFunction();
-}
-
-#endif
-
</del><span class="cx"> @end
</span><span class="cx"> 
</span><span class="cx"> WebCore::TestGlobalObject* core(DOMTestGlobalObject *wrapper)
</span></span></pre></div>
<a id="trunkSourceWebCorebindingsscriptstestTestGlobalObjectidl"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/bindings/scripts/test/TestGlobalObject.idl (203641 => 203642)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/bindings/scripts/test/TestGlobalObject.idl        2016-07-23 08:55:38 UTC (rev 203641)
+++ trunk/Source/WebCore/bindings/scripts/test/TestGlobalObject.idl        2016-07-23 09:58:15 UTC (rev 203642)
</span><span class="lines">@@ -32,7 +32,4 @@
</span><span class="cx">     void regularOperation(DOMString testParam);
</span><span class="cx">     [Conditional=TEST_FEATURE, EnabledAtRuntime=TestFeature] void enabledAtRuntimeOperation(DOMString testParam);
</span><span class="cx">     [Conditional=TEST_FEATURE, EnabledAtRuntime=TestFeature] void enabledAtRuntimeOperation(long testParam);
</span><del>-
-    [PrivateIdentifier, Conditional=TEST_FEATURE, EnabledAtRuntime=TestFeature] void testPrivateFunction();
-    [JSBuiltin, Conditional=TEST_FEATURE, EnabledAtRuntime=TestFeature] void testJSBuiltinFunction();
</del><span class="cx"> };
</span></span></pre>
</div>
</div>

</body>
</html>