<!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>[211962] 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/211962">211962</a></dd>
<dt>Author</dt> <dd>eric.carlson@apple.com</dd>
<dt>Date</dt> <dd>2017-02-09 09:29:58 -0800 (Thu, 09 Feb 2017)</dd>
</dl>

<h3>Log Message</h3>
<pre>[MediaStream] Remove legacy Navigator.webkitGetUserMedia
https://bugs.webkit.org/show_bug.cgi?id=168016
Source/WebCore:

Reviewed by Youenn Fablet.

No new tests, existing tests updated.

* WebCore.xcodeproj/project.pbxproj: NavigatorUserMedia.
* DerivedSources.make: Ditto.
* CMakeLists.txt: Ditto.
* Modules/mediastream/NavigatorUserMedia.idl: Removed.
* Modules/mediastream/NavigatorUserMedia.js: Removed.
* WebCore.xcodeproj/project.pbxproj:
* page/Navigator.idl: Add some whitespace to force derived sources to be rebuild correctly.

Source/WebInspectorUI:

Reviewed by Youenn Fablet.

* UserInterface/Models/NativeFunctionParameters.js:

LayoutTests:

&lt;rdar://problem/30431544&gt;

Reviewed by Youenn Fablet.

Update valid tests to use navigator.mediaDevices.getUserMedia. Remove tests
specific to Navigator.webkitGetUserMedia.

* fast/mediastream/RTCPeerConnection-AddRemoveStream.html:
* fast/mediastream/argument-types.html: Removed.
* fast/mediastream/delayed-permission-allowed.html:
* fast/mediastream/delayed-permission-denied.html:
* fast/mediastream/enabled-expected.txt:
* fast/mediastream/error.html:
* fast/mediastream/getusermedia.html: Removed.
* fast/mediastream/script-tests/argument-types.js: Removed.
* fast/mediastream/script-tests/enabled.js:
(hasGetUserMediaProperty):
* fast/mediastream/success.html:
* fast/mediastream/webkitGetUserMedia-shadowing-then.html: Removed.
* http/tests/media/media-stream/disconnected-frame-already-expected.txt:
* http/tests/media/media-stream/disconnected-frame-already.html:
* http/tests/media/media-stream/disconnected-frame-permission-denied.html:
* http/tests/media/media-stream/disconnected-frame.html:</pre>

<h3>Modified Paths</h3>
<ul>
<li><a href="#trunkLayoutTestsChangeLog">trunk/LayoutTests/ChangeLog</a></li>
<li><a href="#trunkLayoutTestsfastmediastreamRTCPeerConnectionAddRemoveStreamhtml">trunk/LayoutTests/fast/mediastream/RTCPeerConnection-AddRemoveStream.html</a></li>
<li><a href="#trunkLayoutTestsfastmediastreamdelayedpermissionallowedhtml">trunk/LayoutTests/fast/mediastream/delayed-permission-allowed.html</a></li>
<li><a href="#trunkLayoutTestsfastmediastreamdelayedpermissiondeniedhtml">trunk/LayoutTests/fast/mediastream/delayed-permission-denied.html</a></li>
<li><a href="#trunkLayoutTestsfastmediastreamenabledexpectedtxt">trunk/LayoutTests/fast/mediastream/enabled-expected.txt</a></li>
<li><a href="#trunkLayoutTestsfastmediastreamerrorhtml">trunk/LayoutTests/fast/mediastream/error.html</a></li>
<li><a href="#trunkLayoutTestsfastmediastreamscripttestsenabledjs">trunk/LayoutTests/fast/mediastream/script-tests/enabled.js</a></li>
<li><a href="#trunkLayoutTestsfastmediastreamsuccesshtml">trunk/LayoutTests/fast/mediastream/success.html</a></li>
<li><a href="#trunkLayoutTestshttptestsmediamediastreamdisconnectedframealreadyexpectedtxt">trunk/LayoutTests/http/tests/media/media-stream/disconnected-frame-already-expected.txt</a></li>
<li><a href="#trunkLayoutTestshttptestsmediamediastreamdisconnectedframealreadyhtml">trunk/LayoutTests/http/tests/media/media-stream/disconnected-frame-already.html</a></li>
<li><a href="#trunkLayoutTestshttptestsmediamediastreamdisconnectedframepermissiondeniedhtml">trunk/LayoutTests/http/tests/media/media-stream/disconnected-frame-permission-denied.html</a></li>
<li><a href="#trunkLayoutTestshttptestsmediamediastreamdisconnectedframehtml">trunk/LayoutTests/http/tests/media/media-stream/disconnected-frame.html</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="#trunkSourceWebCoreDerivedSourcescpp">trunk/Source/WebCore/DerivedSources.cpp</a></li>
<li><a href="#trunkSourceWebCoreDerivedSourcesmake">trunk/Source/WebCore/DerivedSources.make</a></li>
<li><a href="#trunkSourceWebCoreWebCorexcodeprojprojectpbxproj">trunk/Source/WebCore/WebCore.xcodeproj/project.pbxproj</a></li>
<li><a href="#trunkSourceWebCorepageNavigatoridl">trunk/Source/WebCore/page/Navigator.idl</a></li>
<li><a href="#trunkSourceWebInspectorUIChangeLog">trunk/Source/WebInspectorUI/ChangeLog</a></li>
<li><a href="#trunkSourceWebInspectorUIUserInterfaceModelsNativeFunctionParametersjs">trunk/Source/WebInspectorUI/UserInterface/Models/NativeFunctionParameters.js</a></li>
</ul>

<h3>Removed Paths</h3>
<ul>
<li><a href="#trunkLayoutTestsfastmediastreamargumenttypeshtml">trunk/LayoutTests/fast/mediastream/argument-types.html</a></li>
<li><a href="#trunkLayoutTestsfastmediastreamgetusermediahtml">trunk/LayoutTests/fast/mediastream/getusermedia.html</a></li>
<li><a href="#trunkLayoutTestsfastmediastreamscripttestsargumenttypesjs">trunk/LayoutTests/fast/mediastream/script-tests/argument-types.js</a></li>
<li><a href="#trunkLayoutTestsfastmediastreamwebkitGetUserMediashadowingthenhtml">trunk/LayoutTests/fast/mediastream/webkitGetUserMedia-shadowing-then.html</a></li>
<li><a href="#trunkSourceWebCoreModulesmediastreamNavigatorUserMediaidl">trunk/Source/WebCore/Modules/mediastream/NavigatorUserMedia.idl</a></li>
<li><a href="#trunkSourceWebCoreModulesmediastreamNavigatorUserMediajs">trunk/Source/WebCore/Modules/mediastream/NavigatorUserMedia.js</a></li>
</ul>

</div>
<div id="patch">
<h3>Diff</h3>
<a id="trunkLayoutTestsChangeLog"></a>
<div class="modfile"><h4>Modified: trunk/LayoutTests/ChangeLog (211961 => 211962)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/ChangeLog        2017-02-09 17:13:12 UTC (rev 211961)
+++ trunk/LayoutTests/ChangeLog        2017-02-09 17:29:58 UTC (rev 211962)
</span><span class="lines">@@ -1,3 +1,31 @@
</span><ins>+2017-02-09  Eric Carlson  &lt;eric.carlson@apple.com&gt;
+
+        [MediaStream] Remove legacy Navigator.webkitGetUserMedia
+        https://bugs.webkit.org/show_bug.cgi?id=168016
+        &lt;rdar://problem/30431544&gt;
+
+        Reviewed by Youenn Fablet.
+
+        Update valid tests to use navigator.mediaDevices.getUserMedia. Remove tests
+        specific to Navigator.webkitGetUserMedia.
+
+        * fast/mediastream/RTCPeerConnection-AddRemoveStream.html:
+        * fast/mediastream/argument-types.html: Removed.
+        * fast/mediastream/delayed-permission-allowed.html:
+        * fast/mediastream/delayed-permission-denied.html:
+        * fast/mediastream/enabled-expected.txt:
+        * fast/mediastream/error.html:
+        * fast/mediastream/getusermedia.html: Removed.
+        * fast/mediastream/script-tests/argument-types.js: Removed.
+        * fast/mediastream/script-tests/enabled.js:
+        (hasGetUserMediaProperty):
+        * fast/mediastream/success.html:
+        * fast/mediastream/webkitGetUserMedia-shadowing-then.html: Removed.
+        * http/tests/media/media-stream/disconnected-frame-already-expected.txt:
+        * http/tests/media/media-stream/disconnected-frame-already.html:
+        * http/tests/media/media-stream/disconnected-frame-permission-denied.html:
+        * http/tests/media/media-stream/disconnected-frame.html:
+
</ins><span class="cx"> 2017-02-09  Antoine Quint  &lt;graouts@apple.com&gt;
</span><span class="cx"> 
</span><span class="cx">         [Modern Media Controls] Tapping the skip back button on iOS inline media controls make the controls disappear
</span></span></pre></div>
<a id="trunkLayoutTestsfastmediastreamRTCPeerConnectionAddRemoveStreamhtml"></a>
<div class="modfile"><h4>Modified: trunk/LayoutTests/fast/mediastream/RTCPeerConnection-AddRemoveStream.html (211961 => 211962)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/fast/mediastream/RTCPeerConnection-AddRemoveStream.html        2017-02-09 17:13:12 UTC (rev 211961)
+++ trunk/LayoutTests/fast/mediastream/RTCPeerConnection-AddRemoveStream.html        2017-02-09 17:29:58 UTC (rev 211962)
</span><span class="lines">@@ -2,6 +2,7 @@
</span><span class="cx"> &lt;html&gt;
</span><span class="cx">     &lt;head&gt;
</span><span class="cx">         &lt;script src=&quot;../../resources/js-test-pre.js&quot;&gt;&lt;/script&gt;
</span><ins>+        &lt;script src=&quot;./resources/getUserMedia-helper.js&quot;&gt;&lt;/script&gt;
</ins><span class="cx">     &lt;/head&gt;
</span><span class="cx">     &lt;body&gt;
</span><span class="cx">         &lt;script&gt;
</span><span class="lines">@@ -20,7 +21,9 @@
</span><span class="cx">             function getUserMedia(dictionary, callback)
</span><span class="cx">             {
</span><span class="cx">                 try {
</span><del>-                    navigator.webkitGetUserMedia(dictionary, callback, error);
</del><ins>+                    navigator.mediaDevices.getUserMedia(dictionary)
+                        .then(callback)
+                        .catch(error);
</ins><span class="cx">                 } catch (e) {
</span><span class="cx">                     testFailed('webkitGetUserMedia threw exception :' + e);
</span><span class="cx">                     finishJSTest();
</span></span></pre></div>
<a id="trunkLayoutTestsfastmediastreamargumenttypeshtml"></a>
<div class="delfile"><h4>Deleted: trunk/LayoutTests/fast/mediastream/argument-types.html (211961 => 211962)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/fast/mediastream/argument-types.html        2017-02-09 17:13:12 UTC (rev 211961)
+++ trunk/LayoutTests/fast/mediastream/argument-types.html        2017-02-09 17:29:58 UTC (rev 211962)
</span><span class="lines">@@ -1,10 +0,0 @@
</span><del>-&lt;!DOCTYPE HTML PUBLIC &quot;-//IETF//DTD HTML//EN&quot;&gt;
-&lt;html&gt;
-    &lt;head&gt;
-        &lt;script src=&quot;../../resources/js-test-pre.js&quot;&gt;&lt;/script&gt;
-    &lt;/head&gt;
-    &lt;body&gt;
-        &lt;script src=&quot;script-tests/argument-types.js&quot;&gt;&lt;/script&gt;
-        &lt;script src=&quot;../../resources/js-test-post.js&quot;&gt;&lt;/script&gt;
-    &lt;/body&gt;
-&lt;/html&gt;
</del></span></pre></div>
<a id="trunkLayoutTestsfastmediastreamdelayedpermissionallowedhtml"></a>
<div class="modfile"><h4>Modified: trunk/LayoutTests/fast/mediastream/delayed-permission-allowed.html (211961 => 211962)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/fast/mediastream/delayed-permission-allowed.html        2017-02-09 17:13:12 UTC (rev 211961)
+++ trunk/LayoutTests/fast/mediastream/delayed-permission-allowed.html        2017-02-09 17:29:58 UTC (rev 211962)
</span><span class="lines">@@ -15,17 +15,19 @@
</span><span class="cx"> }
</span><span class="cx"> 
</span><span class="cx"> var options = {audio: true, video: true};
</span><del>-navigator.webkitGetUserMedia(options, function(stream) {
-   if (permissionSet) {
-        testPassed('Success callback invoked');
</del><ins>+navigator.mediaDevices.getUserMedia(options)
+    .then(stream =&gt; {
+       if (permissionSet) {
+            testPassed('Success callback invoked');
+            finishJSTest();
+            return;
+        }
+        testFailed('Success callback invoked unexpectedly');
+    })
+    .catch(err =&gt; {
+        testFailed('Error callback invoked unexpectedly');
</ins><span class="cx">         finishJSTest();
</span><del>-        return;
-    }
-    testFailed('Success callback invoked unexpectedly');
-}, function(e) {
-    testFailed('Error callback invoked unexpectedly');
-    finishJSTest();
-});
</del><ins>+    });
</ins><span class="cx"> 
</span><span class="cx"> window.setTimeout(allowPermission, 100);
</span><span class="cx"> &lt;/script&gt;
</span></span></pre></div>
<a id="trunkLayoutTestsfastmediastreamdelayedpermissiondeniedhtml"></a>
<div class="modfile"><h4>Modified: trunk/LayoutTests/fast/mediastream/delayed-permission-denied.html (211961 => 211962)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/fast/mediastream/delayed-permission-denied.html        2017-02-09 17:13:12 UTC (rev 211961)
+++ trunk/LayoutTests/fast/mediastream/delayed-permission-denied.html        2017-02-09 17:29:58 UTC (rev 211962)
</span><span class="lines">@@ -16,19 +16,19 @@
</span><span class="cx"> 
</span><span class="cx"> var error;
</span><span class="cx"> var options = {audio: true, video: true};
</span><del>-navigator.webkitGetUserMedia(options, function(stream) {
-    testFailed('Success callback invoked unexpectedly');
-    finishJSTest();
-}, function(e) {
-    if (permissionSet) {
-        error = e;
-        shouldBeEqualToString('error.name', 'NotAllowedError');
</del><ins>+navigator.mediaDevices.getUserMedia(options)
+    .then(stream =&gt; {
+        testFailed('Success callback invoked unexpectedly');
</ins><span class="cx">         finishJSTest();
</span><del>-        return;
-    }
-    testFailed('Error callback invoked unexpectedly');
-    finishJSTest();
-});
</del><ins>+    })
+    .catch(err =&gt; {
+        if (permissionSet) {
+            error = err;
+            shouldBeEqualToString('error.name', 'NotAllowedError');
+        } else
+            testFailed('Error callback invoked unexpectedly');
+        finishJSTest();
+    });
</ins><span class="cx"> 
</span><span class="cx"> window.setTimeout(denyPermission, 100);
</span><span class="cx"> &lt;/script&gt;
</span></span></pre></div>
<a id="trunkLayoutTestsfastmediastreamenabledexpectedtxt"></a>
<div class="modfile"><h4>Modified: trunk/LayoutTests/fast/mediastream/enabled-expected.txt (211961 => 211962)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/fast/mediastream/enabled-expected.txt        2017-02-09 17:13:12 UTC (rev 211961)
+++ trunk/LayoutTests/fast/mediastream/enabled-expected.txt        2017-02-09 17:29:58 UTC (rev 211962)
</span><span class="lines">@@ -3,10 +3,12 @@
</span><span class="cx"> On success, you will see a series of &quot;PASS&quot; messages, followed by &quot;TEST COMPLETE&quot;.
</span><span class="cx"> 
</span><span class="cx"> 
</span><del>-PASS typeof navigator.webkitGetUserMedia == 'function' is true
</del><ins>+PASS typeof navigator.mediaDevices == 'object' is true
+PASS typeof navigator.mediaDevices.getUserMedia == 'function' is true
</ins><span class="cx"> PASS hasGetUserMediaProperty() is true
</span><del>-PASS 'webkitGetUserMedia' in navigator is true
-PASS navigator.hasOwnProperty('webkitGetUserMedia') is false
</del><ins>+PASS 'mediaDevices' in navigator is true
+PASS 'getUserMedia' in navigator.mediaDevices is true
+PASS navigator.hasOwnProperty('mediaDevices') is false
</ins><span class="cx"> PASS successfullyParsed is true
</span><span class="cx"> 
</span><span class="cx"> TEST COMPLETE
</span></span></pre></div>
<a id="trunkLayoutTestsfastmediastreamerrorhtml"></a>
<div class="modfile"><h4>Modified: trunk/LayoutTests/fast/mediastream/error.html (211961 => 211962)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/fast/mediastream/error.html        2017-02-09 17:13:12 UTC (rev 211961)
+++ trunk/LayoutTests/fast/mediastream/error.html        2017-02-09 17:29:58 UTC (rev 211962)
</span><span class="lines">@@ -15,14 +15,16 @@
</span><span class="cx"> 
</span><span class="cx"> var error;
</span><span class="cx"> var options = {audio:false, video:true};
</span><del>-navigator.webkitGetUserMedia(options, function(stream) {
-    testFailed('Success callback invoked unexpectedly');
-    finishJSTest();
-}, function(e) {
-    error = e;
-    shouldBeEqualToString('error.name', 'NotAllowedError');
-    finishJSTest();
-});
</del><ins>+navigator.mediaDevices.getUserMedia(options)
+    .then(stream =&gt; {
+        testFailed('Success callback invoked unexpectedly');
+        finishJSTest();
+    })
+    .catch(err =&gt; {
+        error = err;
+        shouldBeEqualToString('error.name', 'NotAllowedError');
+        finishJSTest();
+    });
</ins><span class="cx"> &lt;/script&gt;
</span><span class="cx"> &lt;script src=&quot;../../resources/js-test-post.js&quot;&gt;&lt;/script&gt;
</span><span class="cx"> &lt;/body&gt;
</span></span></pre></div>
<a id="trunkLayoutTestsfastmediastreamgetusermediahtml"></a>
<div class="delfile"><h4>Deleted: trunk/LayoutTests/fast/mediastream/getusermedia.html (211961 => 211962)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/fast/mediastream/getusermedia.html        2017-02-09 17:13:12 UTC (rev 211961)
+++ trunk/LayoutTests/fast/mediastream/getusermedia.html        2017-02-09 17:29:58 UTC (rev 211962)
</span><span class="lines">@@ -1,105 +0,0 @@
</span><del>-&lt;!DOCTYPE HTML PUBLIC &quot;-//IETF//DTD HTML//EN&quot;&gt;
-&lt;html&gt;
-    &lt;head&gt;
-        &lt;script src=&quot;../../resources/js-test-pre.js&quot;&gt;&lt;/script&gt;
-    &lt;/head&gt;
-    &lt;body&gt;
-        &lt;p id=&quot;description&quot;&gt;&lt;/p&gt;
-        &lt;div id=&quot;console&quot;&gt;&lt;/div&gt;
-        &lt;script&gt;
-            description(&quot;Tests webkitGetUserMedia.&quot;);
-
-            function setUserMediaPermission(isGranted) {
-                if (window.testRunner)
-                    testRunner.setUserMediaPermission(isGranted);
-                else
-                    debug(&quot;This test can not be run without the testRunner&quot;);
-            }
-
-            var stream;
-            var errorArg;
-
-            function error() {
-                testFailed('Error callback called.');
-                finishJSTest();
-            }
-
-            function expectedError() {
-                testPassed('Error callback called.');
-            }
-
-            function gotStreamInError(s) {
-                testFailed('Stream generated.');
-                finishJSTest();
-            }
-
-            function gotStream5(s) {
-                stream = s;
-                testPassed('Stream generated.');
-                shouldBe('stream.getAudioTracks().length', '1');
-                shouldBe('stream.getVideoTracks().length', '1');
-                finishJSTest();
-            }
-
-            function error1(e) {
-                errorArg = e;
-                testPassed('Error callback called.');
-                shouldBeEqualToString('errorArg.name', 'OverconstrainedError');
-                shouldBeEqualToString('errorArg.message', 'Invalid constraint');
-
-                shouldThrow(&quot;navigator.webkitGetUserMedia({audio:{volume:{exact:1}}, video:true}, gotStream5, 0);&quot;);
-                shouldNotThrow(&quot;navigator.webkitGetUserMedia({audio:{volume:{exact:1}}, video:true}, gotStream5, error);&quot;);
-            }
-
-            function gotStream4(s) {
-                stream = s;
-                testPassed('Stream generated.');
-                shouldBe('stream.getAudioTracks().length', '1');
-                shouldBe('stream.getVideoTracks().length', '1');
-
-                shouldThrow(&quot;navigator.webkitGetUserMedia({audio:true, video:{width:{exact:11}}}, gotStreamInError, null);&quot;);
-                shouldNotThrow(&quot;navigator.webkitGetUserMedia({audio:true, video:{width:{exact:11}}}, gotStreamInError, error1);&quot;);
-            }
-
-            function gotStream3(s) {
-                stream = s;
-                testPassed('Stream generated.');
-                shouldBe('stream.getAudioTracks().length', '1');
-                shouldBe('stream.getVideoTracks().length', '1');
-
-                shouldThrow(&quot;navigator.webkitGetUserMedia({audio:{}, video:true}, gotStream4, null);&quot;);
-                shouldNotThrow(&quot;navigator.webkitGetUserMedia({audio:{}, video:true}, gotStream4, error);&quot;);
-            }
-
-            function gotStream2(s) {
-                stream = s;
-                testPassed('Stream generated.');
-                shouldBe('stream.getAudioTracks().length', '0');
-                shouldBe('stream.getVideoTracks().length', '1');
-
-                shouldThrow(&quot;navigator.webkitGetUserMedia({audio:true, video:true}, gotStream3, null);&quot;);
-                shouldNotThrow(&quot;navigator.webkitGetUserMedia({audio:true, video:true}, gotStream3, error);&quot;);
-            }
-
-            function gotStream1(s) {
-                stream = s;
-                testPassed('Stream generated.');
-                shouldBe('stream.getAudioTracks().length', '1');
-                shouldBe('stream.getVideoTracks().length', '0');
-
-                shouldThrow(&quot;navigator.webkitGetUserMedia({video:true}, gotStream2, null);&quot;)
-                shouldNotThrow(&quot;navigator.webkitGetUserMedia({video:true}, gotStream2, error);&quot;)
-            }
-
-            shouldNotThrow(&quot;navigator.webkitGetUserMedia({audio:false, video:false}, error, expectedError);&quot;)
-            shouldThrow(&quot;navigator.webkitGetUserMedia({audio:false, video:false}, error, null);&quot;)
-
-            setUserMediaPermission(true);
-            shouldNotThrow(&quot;navigator.webkitGetUserMedia({audio:true}, gotStream1, error);&quot;);
-
-            window.jsTestIsAsync = true;
-            window.successfullyParsed = true;
-        &lt;/script&gt;
-        &lt;script src=&quot;../../resources/js-test-post.js&quot;&gt;&lt;/script&gt;
-    &lt;/body&gt;
-&lt;/html&gt;
</del></span></pre></div>
<a id="trunkLayoutTestsfastmediastreamscripttestsargumenttypesjs"></a>
<div class="delfile"><h4>Deleted: trunk/LayoutTests/fast/mediastream/script-tests/argument-types.js (211961 => 211962)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/fast/mediastream/script-tests/argument-types.js        2017-02-09 17:13:12 UTC (rev 211961)
+++ trunk/LayoutTests/fast/mediastream/script-tests/argument-types.js        2017-02-09 17:29:58 UTC (rev 211962)
</span><span class="lines">@@ -1,70 +0,0 @@
</span><del>-description(&quot;Tests the acceptable types for arguments to navigator.getUserMedia methods.&quot;);
-
-function test(expression, expressionShouldThrow, expectedException) {
-    if (expressionShouldThrow) {
-        if (expectedException)
-            shouldThrow(expression, '&quot;' + expectedException + '&quot;');
-        else
-            shouldThrow(expression, '&quot;TypeError: Not enough arguments&quot;');
-    } else {
-        shouldNotThrow(expression);
-    }
-}
-
-var errorCallbackError = new TypeError(&quot;Argument 3 ('errorCallback') to Navigator.webkitGetUserMedia must be a function&quot;)
-var invalidDictionaryError = new TypeError('First argument of webkitGetUserMedia must be a valid Dictionary')
-var notSupportedError = new Error('NotSupportedError: DOM Exception 9');
-var successCallbackError = new TypeError(&quot;Argument 2 ('successCallback') to Navigator.webkitGetUserMedia must be a function&quot;)
-var typeError = new TypeError('Type error');
-var typeNotAnObjectError = new TypeError('Not an object.');
-
-var emptyFunction = function() {};
-
-// No arguments
-test('navigator.webkitGetUserMedia()', true);
-
-// 1 Argument (Navigtor.webkitGetUserMedia requires at least 3 arguments).
-test('navigator.webkitGetUserMedia(undefined)', true);
-test('navigator.webkitGetUserMedia(null)', true);
-test('navigator.webkitGetUserMedia({ })', true);
-test('navigator.webkitGetUserMedia({video: true})', true);
-test('navigator.webkitGetUserMedia(true)', true);
-test('navigator.webkitGetUserMedia(42)', true);
-test('navigator.webkitGetUserMedia(Infinity)', true);
-test('navigator.webkitGetUserMedia(-Infinity)', true);
-test('navigator.webkitGetUserMedia(emptyFunction)', true);
-
-// 2 Arguments.
-test('navigator.webkitGetUserMedia({video: true}, emptyFunction)', true);
-test('navigator.webkitGetUserMedia(undefined, emptyFunction)', true);
-test('navigator.webkitGetUserMedia(null, emptyFunction)', true);
-test('navigator.webkitGetUserMedia({ }, emptyFunction)', true);
-test('navigator.webkitGetUserMedia(true, emptyFunction)', true);
-test('navigator.webkitGetUserMedia(42, emptyFunction)', true);
-test('navigator.webkitGetUserMedia(Infinity, emptyFunction)', true);
-test('navigator.webkitGetUserMedia(-Infinity, emptyFunction)', true);
-test('navigator.webkitGetUserMedia(emptyFunction, emptyFunction)', true);
-test('navigator.webkitGetUserMedia({video: true}, &quot;foobar&quot;)', true);
-test('navigator.webkitGetUserMedia({video: true}, undefined)', true);
-test('navigator.webkitGetUserMedia({video: true}, null)', true);
-test('navigator.webkitGetUserMedia({video: true}, {})', true);
-test('navigator.webkitGetUserMedia({video: true}, true)', true);
-test('navigator.webkitGetUserMedia({video: true}, 42)', true);
-test('navigator.webkitGetUserMedia({video: true}, Infinity)', true);
-test('navigator.webkitGetUserMedia({video: true}, -Infinity)', true);
-
-// 3 Arguments.
-test('navigator.webkitGetUserMedia({ }, emptyFunction, emptyFunction)', false);
-test('navigator.webkitGetUserMedia({video: true}, emptyFunction, emptyFunction)', false);
-test('navigator.webkitGetUserMedia({video: true}, emptyFunction, undefined)', true, errorCallbackError);
-test('navigator.webkitGetUserMedia({audio:true, video:true}, emptyFunction, undefined)', true, errorCallbackError);
-test('navigator.webkitGetUserMedia({audio:true}, emptyFunction, undefined)', true, errorCallbackError);
-test('navigator.webkitGetUserMedia({video: true}, emptyFunction, &quot;video&quot;)', true, errorCallbackError);
-test('navigator.webkitGetUserMedia({video: true}, emptyFunction, null)', true, errorCallbackError );
-test('navigator.webkitGetUserMedia({video: true}, emptyFunction, {})', true, errorCallbackError);
-test('navigator.webkitGetUserMedia({video: true}, emptyFunction, true)', true, errorCallbackError);
-test('navigator.webkitGetUserMedia({video: true}, emptyFunction, 42)', true, errorCallbackError);
-test('navigator.webkitGetUserMedia({video: true}, emptyFunction, Infinity)', true, errorCallbackError);
-test('navigator.webkitGetUserMedia({video: true}, emptyFunction, -Infinity)', true, errorCallbackError);
-
-window.jsTestIsAsync = false;
</del></span></pre></div>
<a id="trunkLayoutTestsfastmediastreamscripttestsenabledjs"></a>
<div class="modfile"><h4>Modified: trunk/LayoutTests/fast/mediastream/script-tests/enabled.js (211961 => 211962)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/fast/mediastream/script-tests/enabled.js        2017-02-09 17:13:12 UTC (rev 211961)
+++ trunk/LayoutTests/fast/mediastream/script-tests/enabled.js        2017-02-09 17:29:58 UTC (rev 211962)
</span><span class="lines">@@ -3,15 +3,22 @@
</span><span class="cx"> function hasGetUserMediaProperty()
</span><span class="cx"> {
</span><span class="cx">     for (var property in navigator) {
</span><del>-        if (property == &quot;webkitGetUserMedia&quot;)
-            return true;
</del><ins>+        if (property == &quot;mediaDevices&quot;) {
+            var devices = navigator[property];
+            for (property in devices) {
+                if (property == &quot;getUserMedia&quot;)
+                    return true;
+            }
+        }
</ins><span class="cx">     }
</span><span class="cx">     return false;
</span><span class="cx"> }
</span><span class="cx"> 
</span><del>-shouldBeTrue(&quot;typeof navigator.webkitGetUserMedia == 'function'&quot;);
</del><ins>+shouldBeTrue(&quot;typeof navigator.mediaDevices == 'object'&quot;);
+shouldBeTrue(&quot;typeof navigator.mediaDevices.getUserMedia == 'function'&quot;);
</ins><span class="cx"> shouldBeTrue(&quot;hasGetUserMediaProperty()&quot;);
</span><del>-shouldBeTrue(&quot;'webkitGetUserMedia' in navigator&quot;);
-shouldBeFalse(&quot;navigator.hasOwnProperty('webkitGetUserMedia')&quot;);
</del><ins>+shouldBeTrue(&quot;'mediaDevices' in navigator&quot;);
+shouldBeTrue(&quot;'getUserMedia' in navigator.mediaDevices&quot;);
+shouldBeFalse(&quot;navigator.hasOwnProperty('mediaDevices')&quot;);
</ins><span class="cx"> 
</span><span class="cx"> window.jsTestIsAsync = false;
</span></span></pre></div>
<a id="trunkLayoutTestsfastmediastreamsuccesshtml"></a>
<div class="modfile"><h4>Modified: trunk/LayoutTests/fast/mediastream/success.html (211961 => 211962)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/fast/mediastream/success.html        2017-02-09 17:13:12 UTC (rev 211961)
+++ trunk/LayoutTests/fast/mediastream/success.html        2017-02-09 17:29:58 UTC (rev 211962)
</span><span class="lines">@@ -14,12 +14,14 @@
</span><span class="cx">     debug('This test can not be run without the testRunner');
</span><span class="cx"> 
</span><span class="cx"> var options = {audio: true, video: true};
</span><del>-navigator.webkitGetUserMedia(options, function(stream) {
-    finishJSTest();
-}, function(e) {
-    testFailed('Error callback invoked unexpectedly');
-    finishJSTest();
-});
</del><ins>+navigator.mediaDevices.getUserMedia(options)
+    .then(stream =&gt; {
+        finishJSTest();
+    })
+    .catch(err =&gt; {
+        testFailed('Error callback invoked unexpectedly');
+        finishJSTest();
+    });
</ins><span class="cx"> &lt;/script&gt;
</span><span class="cx"> &lt;script src=&quot;../../resources/js-test-post.js&quot;&gt;&lt;/script&gt;
</span><span class="cx"> &lt;/body&gt;
</span></span></pre></div>
<a id="trunkLayoutTestsfastmediastreamwebkitGetUserMediashadowingthenhtml"></a>
<div class="delfile"><h4>Deleted: trunk/LayoutTests/fast/mediastream/webkitGetUserMedia-shadowing-then.html (211961 => 211962)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/fast/mediastream/webkitGetUserMedia-shadowing-then.html        2017-02-09 17:13:12 UTC (rev 211961)
+++ trunk/LayoutTests/fast/mediastream/webkitGetUserMedia-shadowing-then.html        2017-02-09 17:29:58 UTC (rev 211962)
</span><span class="lines">@@ -1,44 +0,0 @@
</span><del>-&lt;!DOCTYPE html&gt;
-&lt;html lang=&quot;en&quot;&gt;
-&lt;head&gt;
-    &lt;meta charset=&quot;UTF-8&quot;&gt;
-    &lt;title&gt;Shadowing then()&lt;/title&gt;
-&lt;/head&gt;
-&lt;body&gt;
-&lt;!--
-This test verifies that the implementation of navigator.webkitGetUserMedia does not use public promise APIs.
---&gt;
-&lt;p id=&quot;output&quot;&gt;&lt;/p&gt;
-&lt;script&gt;
-    if (window.testRunner) {
-        testRunner.dumpAsText();
-        testRunner.waitUntilDone();
-    }
-
-    function endTest(testStatus) {
-        document.getElementById(&quot;output&quot;).textContent = testStatus;
-        testRunner.notifyDone();
-    }
-
-    // Shadow Promise.prototype.then
-    Promise.prototype.then = (function () {
-        const realThen = Promise.prototype.then;
-        return function () {
-            endTest(&quot;FAIL: Executed shadowed, public .then()&quot;);
-        }
-    })();
-
-    function gotUserMedia(mediaStream) {
-        endTest(&quot;FAIL: Got user media&quot;);
-    }
-
-    function userMediaError(error) {
-        endTest(&quot;PASS&quot;);
-    }
-
-    var options = { audio: false, video: false };
-    navigator.webkitGetUserMedia(options, gotUserMedia, userMediaError);
-
-&lt;/script&gt;
-&lt;/body&gt;
-&lt;/html&gt;
</del></span></pre></div>
<a id="trunkLayoutTestshttptestsmediamediastreamdisconnectedframealreadyexpectedtxt"></a>
<div class="modfile"><h4>Modified: trunk/LayoutTests/http/tests/media/media-stream/disconnected-frame-already-expected.txt (211961 => 211962)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/http/tests/media/media-stream/disconnected-frame-already-expected.txt        2017-02-09 17:13:12 UTC (rev 211961)
+++ trunk/LayoutTests/http/tests/media/media-stream/disconnected-frame-already-expected.txt        2017-02-09 17:29:58 UTC (rev 211962)
</span><span class="lines">@@ -1,10 +1,10 @@
</span><del>-CONSOLE MESSAGE: line 24: TypeError: Can only call Navigator.webkitGetUserMedia on instances of Navigator
</del><ins>+CONSOLE MESSAGE: line 24: TypeError: null is not an object (evaluating 'iframeNavigator.mediaDevices.getUserMedia')
</ins><span class="cx"> Tests that when a getUserMedia request is made after its frame has been disconnected, no callbacks are made and no crash occurs.
</span><span class="cx"> 
</span><span class="cx"> On success, you will see a series of &quot;PASS&quot; messages, followed by &quot;TEST COMPLETE&quot;.
</span><span class="cx"> 
</span><span class="cx"> 
</span><del>-webkitGetUserMedia called on object with disconnected Frame.
</del><ins>+getUserMedia called on object with disconnected Frame.
</ins><span class="cx"> PASS successfullyParsed is true
</span><span class="cx"> 
</span><span class="cx"> TEST COMPLETE
</span></span></pre></div>
<a id="trunkLayoutTestshttptestsmediamediastreamdisconnectedframealreadyhtml"></a>
<div class="modfile"><h4>Modified: trunk/LayoutTests/http/tests/media/media-stream/disconnected-frame-already.html (211961 => 211962)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/http/tests/media/media-stream/disconnected-frame-already.html        2017-02-09 17:13:12 UTC (rev 211961)
+++ trunk/LayoutTests/http/tests/media/media-stream/disconnected-frame-already.html        2017-02-09 17:29:58 UTC (rev 211962)
</span><span class="lines">@@ -21,17 +21,19 @@
</span><span class="cx"> function onSecondIframeLoaded() {
</span><span class="cx">     setTimeout(finishTest, 100);
</span><span class="cx"> 
</span><del>-    iframeNavigator.webkitGetUserMedia(options, function(stream) {
-        testFailed('Success callback invoked unexpectedly');
-        finishJSTest();
-    }, function(e) {
-        testFailed('Error callback invoked unexpectedly');
-        finishJSTest();
-    });
</del><ins>+    iframeNavigator.mediaDevices.getUserMedia(options)
+        .then(stream =&gt; {
+            testFailed('Success callback invoked unexpectedly');
+            finishJSTest();
+        })
+        .catch(err =&gt; {
+            testFailed('Error callback invoked unexpectedly');
+            finishJSTest();
+        });
</ins><span class="cx"> }
</span><span class="cx"> 
</span><span class="cx"> function finishTest() {
</span><del>-    debug('webkitGetUserMedia called on object with disconnected Frame.');
</del><ins>+    debug('getUserMedia called on object with disconnected Frame.');
</ins><span class="cx">     finishJSTest();
</span><span class="cx"> }
</span><span class="cx"> 
</span></span></pre></div>
<a id="trunkLayoutTestshttptestsmediamediastreamdisconnectedframepermissiondeniedhtml"></a>
<div class="modfile"><h4>Modified: trunk/LayoutTests/http/tests/media/media-stream/disconnected-frame-permission-denied.html (211961 => 211962)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/http/tests/media/media-stream/disconnected-frame-permission-denied.html        2017-02-09 17:13:12 UTC (rev 211961)
+++ trunk/LayoutTests/http/tests/media/media-stream/disconnected-frame-permission-denied.html        2017-02-09 17:29:58 UTC (rev 211962)
</span><span class="lines">@@ -17,26 +17,30 @@
</span><span class="cx"> var options = {audio: true, video: true};
</span><span class="cx"> function onIframeLoaded() {
</span><span class="cx">     iframeNavigator = iframe.contentWindow.navigator;
</span><del>-    iframeNavigator.webkitGetUserMedia(options, function(stream) {
-        testFailed('Success callback invoked unexpectedly');
-        finishJSTest();
-    }, function(e) {
-        error = e;
-        shouldBeEqualToString('error.name', 'NotAllowedError');
-        debug('');
-        iframe.src = 'data:text/html,This frame should be visible when the test completes';
-    });
</del><ins>+    iframeNavigator.mediaDevices.getUserMedia(options)
+        .then(stream =&gt; {
+            testFailed('Success callback invoked unexpectedly');
+            finishJSTest();
+        })
+        .catch(err =&gt; {
+            error = err;
+            shouldBeEqualToString('error.name', 'NotAllowedError');
+            debug('');
+            iframe.src = 'data:text/html,This frame should be visible when the test completes';
+        });
</ins><span class="cx"> }
</span><span class="cx"> 
</span><span class="cx"> function onIframeUnloaded() {
</span><span class="cx">     // Make another request, with permission already denied.
</span><del>-    iframeNavigator.webkitGetUserMedia(options, function(stream) {
-        testFailed('Success callback invoked unexpectedly');
-        finishJSTest();
-    }, function(e) {
-        testFailed('Error callback invoked unexpectedly');
-        finishJSTest();
-    });
</del><ins>+    iframeNavigator.mediaDevices.getUserMedia(options)
+        .then(stream =&gt; {
+            testFailed('Success callback invoked unexpectedly');
+            finishJSTest();
+        })
+        .catch(err =&gt; {
+            testFailed('Error callback invoked unexpectedly');
+            finishJSTest();
+        });
</ins><span class="cx">     setTimeout(function() {
</span><span class="cx">         testPassed('No callbacks invoked');
</span><span class="cx">         finishJSTest();
</span></span></pre></div>
<a id="trunkLayoutTestshttptestsmediamediastreamdisconnectedframehtml"></a>
<div class="modfile"><h4>Modified: trunk/LayoutTests/http/tests/media/media-stream/disconnected-frame.html (211961 => 211962)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/http/tests/media/media-stream/disconnected-frame.html        2017-02-09 17:13:12 UTC (rev 211961)
+++ trunk/LayoutTests/http/tests/media/media-stream/disconnected-frame.html        2017-02-09 17:29:58 UTC (rev 211962)
</span><span class="lines">@@ -18,13 +18,15 @@
</span><span class="cx"> 
</span><span class="cx"> function onIframeUnloaded() {
</span><span class="cx">     var options = {audio: true, video: true};
</span><del>-    iframeNavigator.webkitGetUserMedia(options, function (stream) {
-        testFailed('Success callback invoked unexpectedly');
-        finishJSTest();
-    }, function(e) {
-        testFailed('Error callback invoked unexpectedly');
-        finishJSTest();
-    });
</del><ins>+    iframeNavigator.mediaDevices.getUserMedia(options)
+        .then(stream =&gt; {
+            testFailed('Success callback invoked unexpectedly');
+            finishJSTest();
+        })
+        .catch(err =&gt; {
+            testFailed('Error callback invoked unexpectedly');
+            finishJSTest();
+        });
</ins><span class="cx"> 
</span><span class="cx">     setTimeout(function() {
</span><span class="cx">         testPassed('No callbacks invoked');
</span></span></pre></div>
<a id="trunkSourceWebCoreCMakeListstxt"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/CMakeLists.txt (211961 => 211962)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/CMakeLists.txt        2017-02-09 17:13:12 UTC (rev 211961)
+++ trunk/Source/WebCore/CMakeLists.txt        2017-02-09 17:29:58 UTC (rev 211962)
</span><span class="lines">@@ -222,7 +222,6 @@
</span><span class="cx">     Modules/mediastream/MediaTrackConstraints.idl
</span><span class="cx">     Modules/mediastream/MediaTrackSupportedConstraints.idl
</span><span class="cx">     Modules/mediastream/NavigatorMediaDevices.idl
</span><del>-    Modules/mediastream/NavigatorUserMedia.idl
</del><span class="cx">     Modules/mediastream/OverconstrainedError.idl
</span><span class="cx">     Modules/mediastream/OverconstrainedErrorEvent.idl
</span><span class="cx">     Modules/mediastream/RTCConfiguration.idl
</span><span class="lines">@@ -3672,7 +3671,6 @@
</span><span class="cx">     ${WEBCORE_DIR}/Modules/fetch/FetchRequest.js
</span><span class="cx">     ${WEBCORE_DIR}/Modules/fetch/FetchResponse.js
</span><span class="cx">     ${WEBCORE_DIR}/Modules/fetch/WorkerGlobalScopeFetch.js
</span><del>-    ${WEBCORE_DIR}/Modules/mediastream/NavigatorUserMedia.js
</del><span class="cx">     ${WEBCORE_DIR}/Modules/mediastream/RTCPeerConnection.js
</span><span class="cx">     ${WEBCORE_DIR}/Modules/mediastream/RTCPeerConnectionInternals.js
</span><span class="cx">     ${WEBCORE_DIR}/Modules/streams/ByteLengthQueuingStrategy.js
</span></span></pre></div>
<a id="trunkSourceWebCoreChangeLog"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/ChangeLog (211961 => 211962)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/ChangeLog        2017-02-09 17:13:12 UTC (rev 211961)
+++ trunk/Source/WebCore/ChangeLog        2017-02-09 17:29:58 UTC (rev 211962)
</span><span class="lines">@@ -1,3 +1,20 @@
</span><ins>+2017-02-09  Eric Carlson  &lt;eric.carlson@apple.com&gt;
+
+        [MediaStream] Remove legacy Navigator.webkitGetUserMedia
+        https://bugs.webkit.org/show_bug.cgi?id=168016
+
+        Reviewed by Youenn Fablet.
+
+        No new tests, existing tests updated.
+
+        * WebCore.xcodeproj/project.pbxproj: NavigatorUserMedia.
+        * DerivedSources.make: Ditto.
+        * CMakeLists.txt: Ditto.
+        * Modules/mediastream/NavigatorUserMedia.idl: Removed.
+        * Modules/mediastream/NavigatorUserMedia.js: Removed.
+        * WebCore.xcodeproj/project.pbxproj:
+        * page/Navigator.idl: Add some whitespace to force derived sources to be rebuild correctly.
+
</ins><span class="cx"> 2017-02-09  Antoine Quint  &lt;graouts@apple.com&gt;
</span><span class="cx"> 
</span><span class="cx">         [Modern Media Controls] Tapping the skip back button on iOS inline media controls make the controls disappear
</span></span></pre></div>
<a id="trunkSourceWebCoreDerivedSourcescpp"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/DerivedSources.cpp (211961 => 211962)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/DerivedSources.cpp        2017-02-09 17:13:12 UTC (rev 211961)
+++ trunk/Source/WebCore/DerivedSources.cpp        2017-02-09 17:29:58 UTC (rev 211962)
</span><span class="lines">@@ -350,7 +350,6 @@
</span><span class="cx"> #include &quot;JSNavigatorContentUtils.cpp&quot;
</span><span class="cx"> #include &quot;JSNavigatorGeolocation.cpp&quot;
</span><span class="cx"> #include &quot;JSNavigatorMediaDevices.cpp&quot;
</span><del>-#include &quot;JSNavigatorUserMedia.cpp&quot;
</del><span class="cx"> #include &quot;JSNavigatorVibration.cpp&quot;
</span><span class="cx"> #include &quot;JSNode.cpp&quot;
</span><span class="cx"> #include &quot;JSNodeFilter.cpp&quot;
</span></span></pre></div>
<a id="trunkSourceWebCoreDerivedSourcesmake"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/DerivedSources.make (211961 => 211962)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/DerivedSources.make        2017-02-09 17:13:12 UTC (rev 211961)
+++ trunk/Source/WebCore/DerivedSources.make        2017-02-09 17:29:58 UTC (rev 211962)
</span><span class="lines">@@ -163,7 +163,6 @@
</span><span class="cx">     $(WebCore)/Modules/mediastream/MediaTrackConstraints.idl \
</span><span class="cx">     $(WebCore)/Modules/mediastream/MediaTrackSupportedConstraints.idl \
</span><span class="cx">     $(WebCore)/Modules/mediastream/NavigatorMediaDevices.idl \
</span><del>-    $(WebCore)/Modules/mediastream/NavigatorUserMedia.idl \
</del><span class="cx">     $(WebCore)/Modules/mediastream/OverconstrainedError.idl \
</span><span class="cx">     $(WebCore)/Modules/mediastream/OverconstrainedErrorEvent.idl \
</span><span class="cx">     $(WebCore)/Modules/mediastream/RTCConfiguration.idl \
</span><span class="lines">@@ -1344,7 +1343,6 @@
</span><span class="cx">     $(WebCore)/Modules/fetch/FetchRequest.js \
</span><span class="cx">     $(WebCore)/Modules/fetch/FetchResponse.js \
</span><span class="cx">     ${WebCore}/Modules/fetch/WorkerGlobalScopeFetch.js \
</span><del>-    $(WebCore)/Modules/mediastream/NavigatorUserMedia.js \
</del><span class="cx">     $(WebCore)/Modules/mediastream/RTCPeerConnection.js \
</span><span class="cx">     $(WebCore)/Modules/mediastream/RTCPeerConnectionInternals.js \
</span><span class="cx">     $(WebCore)/Modules/streams/ByteLengthQueuingStrategy.js \
</span></span></pre></div>
<a id="trunkSourceWebCoreModulesmediastreamNavigatorUserMediaidl"></a>
<div class="delfile"><h4>Deleted: trunk/Source/WebCore/Modules/mediastream/NavigatorUserMedia.idl (211961 => 211962)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/Modules/mediastream/NavigatorUserMedia.idl        2017-02-09 17:13:12 UTC (rev 211961)
+++ trunk/Source/WebCore/Modules/mediastream/NavigatorUserMedia.idl        2017-02-09 17:29:58 UTC (rev 211962)
</span><span class="lines">@@ -1,25 +0,0 @@
</span><del>-/*
- * Copyright (C) 2012 Google Inc. All rights reserved.
- *
- * This library is free software; you can redistribute it and/or
- * modify it under the terms of the GNU Library General Public
- * License as published by the Free Software Foundation; either
- * version 2 of the License, or (at your option) any later version.
- *
- * This library is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
- * Library General Public License for more details.
- *
- * You should have received a copy of the GNU Library General Public License
- * along with this library; see the file COPYING.LIB.  If not, write to
- * the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
- * Boston, MA 02110-1301, USA.
- */
-
-[
-    Conditional=MEDIA_STREAM,
-    EnabledAtRuntime=MediaStream,
-] partial interface Navigator {
-    [JSBuiltin] void webkitGetUserMedia(MediaStreamConstraints constraints, NavigatorUserMediaSuccessCallback successCallback, NavigatorUserMediaErrorCallback errorCallback);
-};
</del></span></pre></div>
<a id="trunkSourceWebCoreModulesmediastreamNavigatorUserMediajs"></a>
<div class="delfile"><h4>Deleted: trunk/Source/WebCore/Modules/mediastream/NavigatorUserMedia.js (211961 => 211962)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/Modules/mediastream/NavigatorUserMedia.js        2017-02-09 17:13:12 UTC (rev 211961)
+++ trunk/Source/WebCore/Modules/mediastream/NavigatorUserMedia.js        2017-02-09 17:29:58 UTC (rev 211962)
</span><span class="lines">@@ -1,48 +0,0 @@
</span><del>-/*
- * Copyright (C) 2015 Canon 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(MEDIA_STREAM)
-
-function webkitGetUserMedia(options, successCallback, errorCallback)
-{
-    &quot;use strict&quot;;
-
-    // FIXME: We should raise a DOM unsupported exception if there is no navigator and properly detect whether method is not called on a Navigator object.
-    if (!(this.mediaDevices &amp;&amp; this.mediaDevices.@getUserMedia))
-        throw @makeThisTypeError(&quot;Navigator&quot;, &quot;webkitGetUserMedia&quot;);
-
-    if (arguments.length &lt; 3)
-        @throwTypeError(&quot;Not enough arguments&quot;);
-
-    if (options !== @Object(options))
-        @throwTypeError(&quot;Argument 1 (options) to Navigator.webkitGetUserMedia must be an object&quot;);
-
-    if (typeof successCallback !== &quot;function&quot;)
-        @throwTypeError(&quot;Argument 2 ('successCallback') to Navigator.webkitGetUserMedia must be a function&quot;);
-    if (typeof errorCallback !== &quot;function&quot;)
-        @throwTypeError(&quot;Argument 3 ('errorCallback') to Navigator.webkitGetUserMedia must be a function&quot;);
-
-    this.mediaDevices.@getUserMedia(options).@then(successCallback, errorCallback);
-}
</del></span></pre></div>
<a id="trunkSourceWebCoreWebCorexcodeprojprojectpbxproj"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/WebCore.xcodeproj/project.pbxproj (211961 => 211962)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/WebCore.xcodeproj/project.pbxproj        2017-02-09 17:13:12 UTC (rev 211961)
+++ trunk/Source/WebCore/WebCore.xcodeproj/project.pbxproj        2017-02-09 17:29:58 UTC (rev 211962)
</span><span class="lines">@@ -146,8 +146,6 @@
</span><span class="cx">                 073B87671E4385AC0071C0EC /* AudioSampleBufferList.h in Headers */ = {isa = PBXBuildFile; fileRef = 073B87631E43859D0071C0EC /* AudioSampleBufferList.h */; };
</span><span class="cx">                 073B87681E4385AC0071C0EC /* AudioSampleDataSource.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 073B87641E43859D0071C0EC /* AudioSampleDataSource.cpp */; };
</span><span class="cx">                 073B87691E4385AC0071C0EC /* AudioSampleDataSource.h in Headers */ = {isa = PBXBuildFile; fileRef = 073B87651E43859D0071C0EC /* AudioSampleDataSource.h */; };
</span><del>-                073BE34017D17E01002BD431 /* JSNavigatorUserMedia.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 073BE33E17D17E01002BD431 /* JSNavigatorUserMedia.cpp */; };
-                073BE34117D17E01002BD431 /* JSNavigatorUserMedia.h in Headers */ = {isa = PBXBuildFile; fileRef = 073BE33F17D17E01002BD431 /* JSNavigatorUserMedia.h */; settings = {ATTRIBUTES = (Private, ); }; };
</del><span class="cx">                 073BE34E17D180B2002BD431 /* RTCSessionDescriptionDescriptor.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 07221BAB17CF0AD400848E51 /* RTCSessionDescriptionDescriptor.cpp */; };
</span><span class="cx">                 073BE34F17D18183002BD431 /* RTCIceCandidateDescriptor.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 07221BA617CF0AD400848E51 /* RTCIceCandidateDescriptor.cpp */; };
</span><span class="cx">                 0744ECED1E0C4E30000D0944 /* MockRealtimeAudioSourceMac.mm in Sources */ = {isa = PBXBuildFile; fileRef = 0744ECEC1E0C4AE5000D0944 /* MockRealtimeAudioSourceMac.mm */; };
</span><span class="lines">@@ -7187,7 +7185,6 @@
</span><span class="cx">                 07221B5717CEC32700848E51 /* MediaStreamTrackEvent.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = MediaStreamTrackEvent.cpp; sourceTree = &quot;&lt;group&gt;&quot;; };
</span><span class="cx">                 07221B5817CEC32700848E51 /* MediaStreamTrackEvent.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = MediaStreamTrackEvent.h; sourceTree = &quot;&lt;group&gt;&quot;; };
</span><span class="cx">                 07221B5917CEC32700848E51 /* MediaStreamTrackEvent.idl */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text; path = MediaStreamTrackEvent.idl; sourceTree = &quot;&lt;group&gt;&quot;; };
</span><del>-                07221B5C17CEC32700848E51 /* NavigatorUserMedia.idl */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text; path = NavigatorUserMedia.idl; sourceTree = &quot;&lt;group&gt;&quot;; };
</del><span class="cx">                 07221B6317CEC32700848E51 /* RTCDataChannel.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = RTCDataChannel.cpp; sourceTree = &quot;&lt;group&gt;&quot;; };
</span><span class="cx">                 07221B6417CEC32700848E51 /* RTCDataChannel.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = RTCDataChannel.h; sourceTree = &quot;&lt;group&gt;&quot;; };
</span><span class="cx">                 07221B6517CEC32700848E51 /* RTCDataChannel.idl */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text; path = RTCDataChannel.idl; sourceTree = &quot;&lt;group&gt;&quot;; };
</span><span class="lines">@@ -7280,8 +7277,6 @@
</span><span class="cx">                 073B87631E43859D0071C0EC /* AudioSampleBufferList.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = AudioSampleBufferList.h; sourceTree = &quot;&lt;group&gt;&quot;; };
</span><span class="cx">                 073B87641E43859D0071C0EC /* AudioSampleDataSource.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = AudioSampleDataSource.cpp; sourceTree = &quot;&lt;group&gt;&quot;; };
</span><span class="cx">                 073B87651E43859D0071C0EC /* AudioSampleDataSource.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = AudioSampleDataSource.h; sourceTree = &quot;&lt;group&gt;&quot;; };
</span><del>-                073BE33E17D17E01002BD431 /* JSNavigatorUserMedia.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = JSNavigatorUserMedia.cpp; sourceTree = &quot;&lt;group&gt;&quot;; };
-                073BE33F17D17E01002BD431 /* JSNavigatorUserMedia.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = JSNavigatorUserMedia.h; sourceTree = &quot;&lt;group&gt;&quot;; };
</del><span class="cx">                 0744ECEB1E0C4AE5000D0944 /* MockRealtimeAudioSourceMac.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = MockRealtimeAudioSourceMac.h; sourceTree = &quot;&lt;group&gt;&quot;; };
</span><span class="cx">                 0744ECEC1E0C4AE5000D0944 /* MockRealtimeAudioSourceMac.mm */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.objcpp; path = MockRealtimeAudioSourceMac.mm; sourceTree = &quot;&lt;group&gt;&quot;; };
</span><span class="cx">                 074E82B818A69F0E007EF54C /* PlatformTimeRanges.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = PlatformTimeRanges.cpp; sourceTree = &quot;&lt;group&gt;&quot;; };
</span><span class="lines">@@ -8864,7 +8859,6 @@
</span><span class="cx">                 419BC2DC1685329900D64D6D /* VisitedLinkState.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = VisitedLinkState.cpp; sourceTree = &quot;&lt;group&gt;&quot;; };
</span><span class="cx">                 419BC2DD1685329900D64D6D /* VisitedLinkState.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = VisitedLinkState.h; sourceTree = &quot;&lt;group&gt;&quot;; };
</span><span class="cx">                 419BE7521BC7F3DB00E1C85B /* WebCoreBuiltinNames.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = WebCoreBuiltinNames.h; sourceTree = &quot;&lt;group&gt;&quot;; };
</span><del>-                419BE75A1BCBD3ED00E1C85B /* NavigatorUserMedia.js */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.javascript; path = NavigatorUserMedia.js; sourceTree = &quot;&lt;group&gt;&quot;; };
</del><span class="cx">                 419FAFAD1ABABCD5005B828B /* ReadableStreamDefaultReader.idl */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text; path = ReadableStreamDefaultReader.idl; sourceTree = &quot;&lt;group&gt;&quot;; };
</span><span class="cx">                 41A023ED1A39DB7900F722CF /* ReadableStream.idl */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text; path = ReadableStream.idl; sourceTree = &quot;&lt;group&gt;&quot;; };
</span><span class="cx">                 41A023ED1A39DB7900F722DF /* WritableStream.idl */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text; path = WritableStream.idl; sourceTree = &quot;&lt;group&gt;&quot;; };
</span><span class="lines">@@ -15354,8 +15348,6 @@
</span><span class="cx">                                 5EA725CA1ACABCB500EAD17B /* NavigatorMediaDevices.cpp */,
</span><span class="cx">                                 5EA725CB1ACABCB500EAD17B /* NavigatorMediaDevices.h */,
</span><span class="cx">                                 5EA725CC1ACABCB500EAD17B /* NavigatorMediaDevices.idl */,
</span><del>-                                07221B5C17CEC32700848E51 /* NavigatorUserMedia.idl */,
-                                419BE75A1BCBD3ED00E1C85B /* NavigatorUserMedia.js */,
</del><span class="cx">                                 0704A4051D6DE9F10086DCDB /* OverconstrainedError.h */,
</span><span class="cx">                                 0704A4031D6DE9F10086DCDB /* OverconstrainedError.idl */,
</span><span class="cx">                                 072A703E1D6E8F6200DF0AFC /* OverconstrainedErrorEvent.h */,
</span><span class="lines">@@ -15583,8 +15575,6 @@
</span><span class="cx">                                 932CC0D11DFFD667004C0F9F /* JSMediaTrackConstraints.h */,
</span><span class="cx">                                 0787C4671BFBDF6F006DCD7F /* JSMediaTrackSupportedConstraints.cpp */,
</span><span class="cx">                                 0787C4681BFBDF6F006DCD7F /* JSMediaTrackSupportedConstraints.h */,
</span><del>-                                073BE33E17D17E01002BD431 /* JSNavigatorUserMedia.cpp */,
-                                073BE33F17D17E01002BD431 /* JSNavigatorUserMedia.h */,
</del><span class="cx">                                 0704A4091D6DFC690086DCDB /* JSOverconstrainedError.cpp */,
</span><span class="cx">                                 0704A40A1D6DFC690086DCDB /* JSOverconstrainedError.h */,
</span><span class="cx">                                 0704A4131D6F39FB0086DCDB /* JSOverconstrainedErrorEvent.cpp */,
</span><span class="lines">@@ -26814,7 +26804,6 @@
</span><span class="cx">                                 C6F08FCA1431000D00685849 /* JSMutationRecord.h in Headers */,
</span><span class="cx">                                 BCD9C2C10C17B69E005C90A2 /* JSNamedNodeMap.h in Headers */,
</span><span class="cx">                                 A9D247F80D757E3400FDF959 /* JSNavigator.h in Headers */,
</span><del>-                                073BE34117D17E01002BD431 /* JSNavigatorUserMedia.h in Headers */,
</del><span class="cx">                                 BC9439C3116CF4940048C750 /* JSNodeCustom.h in Headers */,
</span><span class="cx">                                 14115B7309F84CD600CA4FC1 /* JSNodeFilter.h in Headers */,
</span><span class="cx">                                 1A750D8E0A90E521000FF215 /* JSNodeIterator.h in Headers */,
</span><span class="lines">@@ -30658,7 +30647,6 @@
</span><span class="cx">                                 C6F08FC91431000D00685849 /* JSMutationRecord.cpp in Sources */,
</span><span class="cx">                                 BCD9C2C00C17B69E005C90A2 /* JSNamedNodeMap.cpp in Sources */,
</span><span class="cx">                                 A9D247F70D757E3400FDF959 /* JSNavigator.cpp in Sources */,
</span><del>-                                073BE34017D17E01002BD431 /* JSNavigatorUserMedia.cpp in Sources */,
</del><span class="cx">                                 14DC0D3709FED073007B0235 /* JSNode.cpp in Sources */,
</span><span class="cx">                                 BCD9C2640C17AA67005C90A2 /* JSNodeCustom.cpp in Sources */,
</span><span class="cx">                                 E3150EA61DA7219000194012 /* JSNodeDOMJIT.cpp in Sources */,
</span></span></pre></div>
<a id="trunkSourceWebCorepageNavigatoridl"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/page/Navigator.idl (211961 => 211962)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/page/Navigator.idl        2017-02-09 17:13:12 UTC (rev 211961)
+++ trunk/Source/WebCore/page/Navigator.idl        2017-02-09 17:29:58 UTC (rev 211962)
</span><span class="lines">@@ -24,7 +24,7 @@
</span><span class="cx">     readonly attribute DOMMimeTypeArray mimeTypes;
</span><span class="cx">     readonly attribute boolean cookieEnabled;
</span><span class="cx">     boolean javaEnabled();
</span><del>-
</del><ins>+    
</ins><span class="cx">     // FIXME: Convert this #if'def to an IDL conditional attribute.
</span><span class="cx"> #if defined(WTF_PLATFORM_IOS) &amp;&amp; WTF_PLATFORM_IOS
</span><span class="cx">     readonly attribute boolean standalone;
</span></span></pre></div>
<a id="trunkSourceWebInspectorUIChangeLog"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebInspectorUI/ChangeLog (211961 => 211962)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebInspectorUI/ChangeLog        2017-02-09 17:13:12 UTC (rev 211961)
+++ trunk/Source/WebInspectorUI/ChangeLog        2017-02-09 17:29:58 UTC (rev 211962)
</span><span class="lines">@@ -1,3 +1,12 @@
</span><ins>+2017-02-09  Eric Carlson  &lt;eric.carlson@apple.com&gt;
+
+        [MediaStream] Remove legacy Navigator.webkitGetUserMedia
+        https://bugs.webkit.org/show_bug.cgi?id=168016
+
+        Reviewed by Youenn Fablet.
+
+        * UserInterface/Models/NativeFunctionParameters.js:
+
</ins><span class="cx"> 2017-02-08  Commit Queue  &lt;commit-queue@webkit.org&gt;
</span><span class="cx"> 
</span><span class="cx">         Unreviewed, rolling out r211912.
</span></span></pre></div>
<a id="trunkSourceWebInspectorUIUserInterfaceModelsNativeFunctionParametersjs"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebInspectorUI/UserInterface/Models/NativeFunctionParameters.js (211961 => 211962)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebInspectorUI/UserInterface/Models/NativeFunctionParameters.js        2017-02-09 17:13:12 UTC (rev 211961)
+++ trunk/Source/WebInspectorUI/UserInterface/Models/NativeFunctionParameters.js        2017-02-09 17:29:58 UTC (rev 211962)
</span><span class="lines">@@ -1161,21 +1161,6 @@
</span><span class="cx">         __proto__: null,
</span><span class="cx">     },
</span><span class="cx"> 
</span><del>-    Navigator: {
-        webkitGetUserMedia: &quot;options, successCallback, errorCallback&quot;,
-        __proto__: null,
-    },
-
-    NavigatorUserMediaErrorCallback: {
-        handleEvent: &quot;error&quot;,
-        __proto__: null,
-    },
-
-    NavigatorUserMediaSuccessCallback: {
-        handleEvent: &quot;stream&quot;,
-        __proto__: null,
-    },
-
</del><span class="cx">     NodeFilter: {
</span><span class="cx">         acceptNode: &quot;[n]&quot;,
</span><span class="cx">         __proto__: null,
</span></span></pre>
</div>
</div>

</body>
</html>