<!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>[201080] 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/201080">201080</a></dd>
<dt>Author</dt> <dd>youenn.fablet@crf.canon.fr</dd>
<dt>Date</dt> <dd>2016-05-18 08:22:37 -0700 (Wed, 18 May 2016)</dd>
</dl>

<h3>Log Message</h3>
<pre>Sync DOM exception types with WebIDL and update promise rejections
https://bugs.webkit.org/show_bug.cgi?id=157792

Reviewed by Eric Carlson.

Source/WebCore:

Updating ExceptionCode with WebIDL latest exception types.
Updating promise rejection code to use those types as per the latest specifications.

Updating getUserMedia error handling by removing NavigatorUserMediaError which no long exists.

Covered by rebased tests.

* CMakeLists.txt:
* DerivedSources.cpp:
* DerivedSources.make:
* Modules/mediastream/MediaDevices.h:
* Modules/mediastream/MediaEndpointPeerConnection.cpp:
(WebCore::MediaEndpointPeerConnection::createAnswer):
(WebCore::MediaEndpointPeerConnection::setLocalDescription):
(WebCore::MediaEndpointPeerConnection::setRemoteDescription):
(WebCore::MediaEndpointPeerConnection::addIceCandidate):
(WebCore::MediaEndpointPeerConnection::getStats):
(WebCore::MediaEndpointPeerConnection::replaceTrack):
* Modules/mediastream/NavigatorUserMediaError.cpp: Removed.
* Modules/mediastream/NavigatorUserMediaError.h: Removed.
* Modules/mediastream/NavigatorUserMediaError.idl: Removed.
* Modules/mediastream/RTCPeerConnection.cpp:
(WebCore::RTCPeerConnection::queuedCreateOffer):
(WebCore::RTCPeerConnection::queuedCreateAnswer):
(WebCore::RTCPeerConnection::queuedSetLocalDescription):
(WebCore::RTCPeerConnection::queuedSetRemoteDescription):
(WebCore::RTCPeerConnection::queuedAddIceCandidate):
* Modules/mediastream/RTCRtpSender.cpp:
(WebCore::RTCRtpSender::replaceTrack):
* Modules/mediastream/UserMediaRequest.cpp:
(WebCore::UserMediaRequest::failedToCreateStreamWithConstraintsError):
(WebCore::UserMediaRequest::failedToCreateStreamWithPermissionError):
* WebCore.xcodeproj/project.pbxproj:
* bindings/js/JSDOMBinding.cpp:
(WebCore::createDOMException):
* bindings/js/JSDOMBinding.h:
* bindings/js/JSDOMPromise.cpp:
(WebCore::DeferredWrapper::reject):
* bindings/js/JSDOMPromise.h:
(WebCore::DeferredWrapper::reject):
(WebCore::DOMPromise::reject):
* css/FontFaceSet.cpp:
(WebCore::FontFaceSet::load):
(WebCore::FontFaceSet::faceFinished):
* dom/DOMCoreException.cpp:
* dom/ExceptionCode.h:
* html/HTMLMediaElement.cpp:
(WebCore::HTMLMediaElement::play):

LayoutTests:

* fast/dom/insertAdjacentHTML-DocumentFragment-crash-expected.txt:
* fast/inspector-support/uncaught-dom1-exception-expected.txt:
* fast/inspector-support/uncaught-dom3-exception-expected.txt:
* fast/inspector-support/uncaught-dom8-exception-expected.txt:
* fast/mediastream/MediaDevices-getUserMedia-expected.txt:
* fast/mediastream/MediaDevices-getUserMedia.html:
* fast/mediastream/delayed-permission-denied-expected.txt:
* fast/mediastream/delayed-permission-denied.html:
* fast/mediastream/error-expected.txt:
* fast/mediastream/error.html:
* fast/mediastream/getusermedia-expected.txt:
* fast/mediastream/mock-media-source-expected.txt:
* fast/regions/selection/crash-deselect-expected.txt:
* http/tests/media/media-stream/disconnected-frame-permission-denied-expected.txt:
* http/tests/media/media-stream/disconnected-frame-permission-denied.html:
* inspector/debugger/regress-133182-expected.txt:
* inspector/debugger/setPauseOnExceptions-all-expected.txt:
* inspector/debugger/setPauseOnExceptions-none-expected.txt:
* inspector/debugger/setPauseOnExceptions-uncaught-expected.txt:
* platform/efl/fast/dynamic/015-expected.txt:
* platform/gtk/fast/dynamic/015-expected.txt:
* platform/ios-simulator/fast/dynamic/015-expected.txt:
* platform/ios-simulator-wk2/editing/selection/caret-ltr-2-expected.txt:
* platform/ios-simulator-wk2/editing/selection/caret-ltr-2-left-expected.txt:
* platform/ios-simulator-wk2/editing/selection/caret-ltr-expected.txt:
* platform/ios-simulator-wk2/editing/selection/caret-ltr-right-expected.txt:
* platform/ios-simulator-wk2/editing/selection/caret-rtl-2-expected.txt:
* platform/ios-simulator-wk2/editing/selection/caret-rtl-2-left-expected.txt:
* platform/ios-simulator-wk2/editing/selection/caret-rtl-expected.txt:
* platform/ios-simulator-wk2/editing/selection/caret-rtl-right-expected.txt:
* platform/mac/fast/dynamic/015-expected.txt:
* platform/win/fast/dynamic/015-expected.txt:</pre>

<h3>Modified Paths</h3>
<ul>
<li><a href="#trunkLayoutTestsChangeLog">trunk/LayoutTests/ChangeLog</a></li>
<li><a href="#trunkLayoutTestsfastdominsertAdjacentHTMLDocumentFragmentcrashexpectedtxt">trunk/LayoutTests/fast/dom/insertAdjacentHTML-DocumentFragment-crash-expected.txt</a></li>
<li><a href="#trunkLayoutTestsfastinspectorsupportuncaughtdom1exceptionexpectedtxt">trunk/LayoutTests/fast/inspector-support/uncaught-dom1-exception-expected.txt</a></li>
<li><a href="#trunkLayoutTestsfastinspectorsupportuncaughtdom3exceptionexpectedtxt">trunk/LayoutTests/fast/inspector-support/uncaught-dom3-exception-expected.txt</a></li>
<li><a href="#trunkLayoutTestsfastinspectorsupportuncaughtdom8exceptionexpectedtxt">trunk/LayoutTests/fast/inspector-support/uncaught-dom8-exception-expected.txt</a></li>
<li><a href="#trunkLayoutTestsfastmediastreamMediaDevicesgetUserMediaexpectedtxt">trunk/LayoutTests/fast/mediastream/MediaDevices-getUserMedia-expected.txt</a></li>
<li><a href="#trunkLayoutTestsfastmediastreamMediaDevicesgetUserMediahtml">trunk/LayoutTests/fast/mediastream/MediaDevices-getUserMedia.html</a></li>
<li><a href="#trunkLayoutTestsfastmediastreamdelayedpermissiondeniedexpectedtxt">trunk/LayoutTests/fast/mediastream/delayed-permission-denied-expected.txt</a></li>
<li><a href="#trunkLayoutTestsfastmediastreamdelayedpermissiondeniedhtml">trunk/LayoutTests/fast/mediastream/delayed-permission-denied.html</a></li>
<li><a href="#trunkLayoutTestsfastmediastreamerrorexpectedtxt">trunk/LayoutTests/fast/mediastream/error-expected.txt</a></li>
<li><a href="#trunkLayoutTestsfastmediastreamerrorhtml">trunk/LayoutTests/fast/mediastream/error.html</a></li>
<li><a href="#trunkLayoutTestsfastmediastreamgetusermediaexpectedtxt">trunk/LayoutTests/fast/mediastream/getusermedia-expected.txt</a></li>
<li><a href="#trunkLayoutTestsfastmediastreammockmediasourceexpectedtxt">trunk/LayoutTests/fast/mediastream/mock-media-source-expected.txt</a></li>
<li><a href="#trunkLayoutTestsfastregionsselectioncrashdeselectexpectedtxt">trunk/LayoutTests/fast/regions/selection/crash-deselect-expected.txt</a></li>
<li><a href="#trunkLayoutTestshttptestsmediamediastreamdisconnectedframepermissiondeniedexpectedtxt">trunk/LayoutTests/http/tests/media/media-stream/disconnected-frame-permission-denied-expected.txt</a></li>
<li><a href="#trunkLayoutTestshttptestsmediamediastreamdisconnectedframepermissiondeniedhtml">trunk/LayoutTests/http/tests/media/media-stream/disconnected-frame-permission-denied.html</a></li>
<li><a href="#trunkLayoutTestsinspectordebuggerregress133182expectedtxt">trunk/LayoutTests/inspector/debugger/regress-133182-expected.txt</a></li>
<li><a href="#trunkLayoutTestsinspectordebuggersetPauseOnExceptionsallexpectedtxt">trunk/LayoutTests/inspector/debugger/setPauseOnExceptions-all-expected.txt</a></li>
<li><a href="#trunkLayoutTestsinspectordebuggersetPauseOnExceptionsnoneexpectedtxt">trunk/LayoutTests/inspector/debugger/setPauseOnExceptions-none-expected.txt</a></li>
<li><a href="#trunkLayoutTestsinspectordebuggersetPauseOnExceptionsuncaughtexpectedtxt">trunk/LayoutTests/inspector/debugger/setPauseOnExceptions-uncaught-expected.txt</a></li>
<li><a href="#trunkLayoutTestsplatformeflfastdynamic015expectedtxt">trunk/LayoutTests/platform/efl/fast/dynamic/015-expected.txt</a></li>
<li><a href="#trunkLayoutTestsplatformgtkfastdynamic015expectedtxt">trunk/LayoutTests/platform/gtk/fast/dynamic/015-expected.txt</a></li>
<li><a href="#trunkLayoutTestsplatformiossimulatorfastdynamic015expectedtxt">trunk/LayoutTests/platform/ios-simulator/fast/dynamic/015-expected.txt</a></li>
<li><a href="#trunkLayoutTestsplatformiossimulatorwk2editingselectioncaretltr2expectedtxt">trunk/LayoutTests/platform/ios-simulator-wk2/editing/selection/caret-ltr-2-expected.txt</a></li>
<li><a href="#trunkLayoutTestsplatformiossimulatorwk2editingselectioncaretltr2leftexpectedtxt">trunk/LayoutTests/platform/ios-simulator-wk2/editing/selection/caret-ltr-2-left-expected.txt</a></li>
<li><a href="#trunkLayoutTestsplatformiossimulatorwk2editingselectioncaretltrexpectedtxt">trunk/LayoutTests/platform/ios-simulator-wk2/editing/selection/caret-ltr-expected.txt</a></li>
<li><a href="#trunkLayoutTestsplatformiossimulatorwk2editingselectioncaretltrrightexpectedtxt">trunk/LayoutTests/platform/ios-simulator-wk2/editing/selection/caret-ltr-right-expected.txt</a></li>
<li><a href="#trunkLayoutTestsplatformiossimulatorwk2editingselectioncaretrtl2expectedtxt">trunk/LayoutTests/platform/ios-simulator-wk2/editing/selection/caret-rtl-2-expected.txt</a></li>
<li><a href="#trunkLayoutTestsplatformiossimulatorwk2editingselectioncaretrtl2leftexpectedtxt">trunk/LayoutTests/platform/ios-simulator-wk2/editing/selection/caret-rtl-2-left-expected.txt</a></li>
<li><a href="#trunkLayoutTestsplatformiossimulatorwk2editingselectioncaretrtlexpectedtxt">trunk/LayoutTests/platform/ios-simulator-wk2/editing/selection/caret-rtl-expected.txt</a></li>
<li><a href="#trunkLayoutTestsplatformiossimulatorwk2editingselectioncaretrtlrightexpectedtxt">trunk/LayoutTests/platform/ios-simulator-wk2/editing/selection/caret-rtl-right-expected.txt</a></li>
<li><a href="#trunkLayoutTestsplatformmacfastdynamic015expectedtxt">trunk/LayoutTests/platform/mac/fast/dynamic/015-expected.txt</a></li>
<li><a href="#trunkLayoutTestsplatformwinfastdynamic015expectedtxt">trunk/LayoutTests/platform/win/fast/dynamic/015-expected.txt</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="#trunkSourceWebCoreModulesmediastreamMediaDevicesh">trunk/Source/WebCore/Modules/mediastream/MediaDevices.h</a></li>
<li><a href="#trunkSourceWebCoreModulesmediastreamMediaEndpointPeerConnectioncpp">trunk/Source/WebCore/Modules/mediastream/MediaEndpointPeerConnection.cpp</a></li>
<li><a href="#trunkSourceWebCoreModulesmediastreamRTCPeerConnectioncpp">trunk/Source/WebCore/Modules/mediastream/RTCPeerConnection.cpp</a></li>
<li><a href="#trunkSourceWebCoreModulesmediastreamRTCRtpSendercpp">trunk/Source/WebCore/Modules/mediastream/RTCRtpSender.cpp</a></li>
<li><a href="#trunkSourceWebCoreModulesmediastreamUserMediaRequestcpp">trunk/Source/WebCore/Modules/mediastream/UserMediaRequest.cpp</a></li>
<li><a href="#trunkSourceWebCoreWebCorexcodeprojprojectpbxproj">trunk/Source/WebCore/WebCore.xcodeproj/project.pbxproj</a></li>
<li><a href="#trunkSourceWebCorebindingsjsJSDOMBindingcpp">trunk/Source/WebCore/bindings/js/JSDOMBinding.cpp</a></li>
<li><a href="#trunkSourceWebCorebindingsjsJSDOMBindingh">trunk/Source/WebCore/bindings/js/JSDOMBinding.h</a></li>
<li><a href="#trunkSourceWebCorebindingsjsJSDOMPromisecpp">trunk/Source/WebCore/bindings/js/JSDOMPromise.cpp</a></li>
<li><a href="#trunkSourceWebCorebindingsjsJSDOMPromiseh">trunk/Source/WebCore/bindings/js/JSDOMPromise.h</a></li>
<li><a href="#trunkSourceWebCorecssFontFaceSetcpp">trunk/Source/WebCore/css/FontFaceSet.cpp</a></li>
<li><a href="#trunkSourceWebCoredomDOMCoreExceptioncpp">trunk/Source/WebCore/dom/DOMCoreException.cpp</a></li>
<li><a href="#trunkSourceWebCoredomExceptionCodeh">trunk/Source/WebCore/dom/ExceptionCode.h</a></li>
<li><a href="#trunkSourceWebCorehtmlHTMLMediaElementcpp">trunk/Source/WebCore/html/HTMLMediaElement.cpp</a></li>
</ul>

<h3>Removed Paths</h3>
<ul>
<li><a href="#trunkSourceWebCoreModulesmediastreamNavigatorUserMediaErrorcpp">trunk/Source/WebCore/Modules/mediastream/NavigatorUserMediaError.cpp</a></li>
<li><a href="#trunkSourceWebCoreModulesmediastreamNavigatorUserMediaErrorh">trunk/Source/WebCore/Modules/mediastream/NavigatorUserMediaError.h</a></li>
<li><a href="#trunkSourceWebCoreModulesmediastreamNavigatorUserMediaErroridl">trunk/Source/WebCore/Modules/mediastream/NavigatorUserMediaError.idl</a></li>
</ul>

</div>
<div id="patch">
<h3>Diff</h3>
<a id="trunkLayoutTestsChangeLog"></a>
<div class="modfile"><h4>Modified: trunk/LayoutTests/ChangeLog (201079 => 201080)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/ChangeLog        2016-05-18 14:52:20 UTC (rev 201079)
+++ trunk/LayoutTests/ChangeLog        2016-05-18 15:22:37 UTC (rev 201080)
</span><span class="lines">@@ -1,3 +1,43 @@
</span><ins>+2016-05-18  Youenn Fablet  &lt;youenn.fablet@crf.canon.fr&gt;
+
+        Sync DOM exception types with WebIDL and update promise rejections
+        https://bugs.webkit.org/show_bug.cgi?id=157792
+
+        Reviewed by Eric Carlson.
+
+        * fast/dom/insertAdjacentHTML-DocumentFragment-crash-expected.txt:
+        * fast/inspector-support/uncaught-dom1-exception-expected.txt:
+        * fast/inspector-support/uncaught-dom3-exception-expected.txt:
+        * fast/inspector-support/uncaught-dom8-exception-expected.txt:
+        * fast/mediastream/MediaDevices-getUserMedia-expected.txt:
+        * fast/mediastream/MediaDevices-getUserMedia.html:
+        * fast/mediastream/delayed-permission-denied-expected.txt:
+        * fast/mediastream/delayed-permission-denied.html:
+        * fast/mediastream/error-expected.txt:
+        * fast/mediastream/error.html:
+        * fast/mediastream/getusermedia-expected.txt:
+        * fast/mediastream/mock-media-source-expected.txt:
+        * fast/regions/selection/crash-deselect-expected.txt:
+        * http/tests/media/media-stream/disconnected-frame-permission-denied-expected.txt:
+        * http/tests/media/media-stream/disconnected-frame-permission-denied.html:
+        * inspector/debugger/regress-133182-expected.txt:
+        * inspector/debugger/setPauseOnExceptions-all-expected.txt:
+        * inspector/debugger/setPauseOnExceptions-none-expected.txt:
+        * inspector/debugger/setPauseOnExceptions-uncaught-expected.txt:
+        * platform/efl/fast/dynamic/015-expected.txt:
+        * platform/gtk/fast/dynamic/015-expected.txt:
+        * platform/ios-simulator/fast/dynamic/015-expected.txt:
+        * platform/ios-simulator-wk2/editing/selection/caret-ltr-2-expected.txt:
+        * platform/ios-simulator-wk2/editing/selection/caret-ltr-2-left-expected.txt:
+        * platform/ios-simulator-wk2/editing/selection/caret-ltr-expected.txt:
+        * platform/ios-simulator-wk2/editing/selection/caret-ltr-right-expected.txt:
+        * platform/ios-simulator-wk2/editing/selection/caret-rtl-2-expected.txt:
+        * platform/ios-simulator-wk2/editing/selection/caret-rtl-2-left-expected.txt:
+        * platform/ios-simulator-wk2/editing/selection/caret-rtl-expected.txt:
+        * platform/ios-simulator-wk2/editing/selection/caret-rtl-right-expected.txt:
+        * platform/mac/fast/dynamic/015-expected.txt:
+        * platform/win/fast/dynamic/015-expected.txt:
+
</ins><span class="cx"> 2016-05-18  Joanmarie Diggs  &lt;jdiggs@igalia.com&gt;
</span><span class="cx"> 
</span><span class="cx">         AX: [ATK] Use WebCore Accessibility's AccessibilityText for AtkObject name and description
</span></span></pre></div>
<a id="trunkLayoutTestsfastdominsertAdjacentHTMLDocumentFragmentcrashexpectedtxt"></a>
<div class="modfile"><h4>Modified: trunk/LayoutTests/fast/dom/insertAdjacentHTML-DocumentFragment-crash-expected.txt (201079 => 201080)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/fast/dom/insertAdjacentHTML-DocumentFragment-crash-expected.txt        2016-05-18 14:52:20 UTC (rev 201079)
+++ trunk/LayoutTests/fast/dom/insertAdjacentHTML-DocumentFragment-crash-expected.txt        2016-05-18 15:22:37 UTC (rev 201080)
</span><span class="lines">@@ -1,2 +1,2 @@
</span><del>-CONSOLE MESSAGE: line 9: NoModificationAllowedError: DOM Exception 7: An attempt was made to modify an object where modifications are not allowed.
</del><ins>+CONSOLE MESSAGE: line 9: NoModificationAllowedError: DOM Exception 7: The object can not be modified.
</ins><span class="cx"> This test passes if it doesn't crash (or ASSERT).
</span></span></pre></div>
<a id="trunkLayoutTestsfastinspectorsupportuncaughtdom1exceptionexpectedtxt"></a>
<div class="modfile"><h4>Modified: trunk/LayoutTests/fast/inspector-support/uncaught-dom1-exception-expected.txt (201079 => 201080)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/fast/inspector-support/uncaught-dom1-exception-expected.txt        2016-05-18 14:52:20 UTC (rev 201079)
+++ trunk/LayoutTests/fast/inspector-support/uncaught-dom1-exception-expected.txt        2016-05-18 15:22:37 UTC (rev 201080)
</span><span class="lines">@@ -1,2 +1,2 @@
</span><del>-CONSOLE MESSAGE: line 13: IndexSizeError: DOM Exception 1: Index or size was negative, or greater than the allowed value.
</del><ins>+CONSOLE MESSAGE: line 13: IndexSizeError: DOM Exception 1: The index is not in the allowed range.
</ins><span class="cx"> This tests that we are getting the correct message for DOM Exception 1: INDEX_SIZE_ERR.
</span></span></pre></div>
<a id="trunkLayoutTestsfastinspectorsupportuncaughtdom3exceptionexpectedtxt"></a>
<div class="modfile"><h4>Modified: trunk/LayoutTests/fast/inspector-support/uncaught-dom3-exception-expected.txt (201079 => 201080)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/fast/inspector-support/uncaught-dom3-exception-expected.txt        2016-05-18 14:52:20 UTC (rev 201079)
+++ trunk/LayoutTests/fast/inspector-support/uncaught-dom3-exception-expected.txt        2016-05-18 15:22:37 UTC (rev 201080)
</span><span class="lines">@@ -1,2 +1,2 @@
</span><del>-CONSOLE MESSAGE: line 9: HierarchyRequestError: DOM Exception 3: A Node was inserted somewhere it doesn't belong.
</del><ins>+CONSOLE MESSAGE: line 9: HierarchyRequestError: DOM Exception 3: The operation would yield an incorrect node tree.
</ins><span class="cx"> This tests that we are getting the correct message for DOM Exception 3: HIERARCHY_REQUEST_ERR.
</span></span></pre></div>
<a id="trunkLayoutTestsfastinspectorsupportuncaughtdom8exceptionexpectedtxt"></a>
<div class="modfile"><h4>Modified: trunk/LayoutTests/fast/inspector-support/uncaught-dom8-exception-expected.txt (201079 => 201080)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/fast/inspector-support/uncaught-dom8-exception-expected.txt        2016-05-18 14:52:20 UTC (rev 201079)
+++ trunk/LayoutTests/fast/inspector-support/uncaught-dom8-exception-expected.txt        2016-05-18 15:22:37 UTC (rev 201080)
</span><span class="lines">@@ -1,2 +1,2 @@
</span><del>-CONSOLE MESSAGE: line 9: NotFoundError: DOM Exception 8: An attempt was made to reference a Node in a context where it does not exist.
</del><ins>+CONSOLE MESSAGE: line 9: NotFoundError: DOM Exception 8: The object can not be found here.
</ins><span class="cx"> This tests that we are getting the correct message for DOM Exception 8: NOT_FOUND_ERR.
</span></span></pre></div>
<a id="trunkLayoutTestsfastmediastreamMediaDevicesgetUserMediaexpectedtxt"></a>
<div class="modfile"><h4>Modified: trunk/LayoutTests/fast/mediastream/MediaDevices-getUserMedia-expected.txt (201079 => 201080)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/fast/mediastream/MediaDevices-getUserMedia-expected.txt        2016-05-18 14:52:20 UTC (rev 201079)
+++ trunk/LayoutTests/fast/mediastream/MediaDevices-getUserMedia-expected.txt        2016-05-18 15:22:37 UTC (rev 201080)
</span><span class="lines">@@ -24,8 +24,7 @@
</span><span class="cx"> PASS stream.getVideoTracks().length is 1
</span><span class="cx"> PASS navigator.mediaDevices.getUserMedia({audio:true}).then(invalidGotStream, error1); did not throw exception.
</span><span class="cx"> PASS Error callback called.
</span><del>-PASS errorArg.name is &quot;PermissionDeniedError&quot;
-PASS errorArg.constraintName is &quot;&quot;
</del><ins>+PASS errorArg.name is &quot;NotAllowedError&quot;
</ins><span class="cx"> PASS navigator.mediaDevices.getUserMedia({audio:true}).then(invalidGotStream).catch(error2); did not throw exception.
</span><span class="cx"> PASS Error callback called.
</span><span class="cx"> PASS successfullyParsed is true
</span></span></pre></div>
<a id="trunkLayoutTestsfastmediastreamMediaDevicesgetUserMediahtml"></a>
<div class="modfile"><h4>Modified: trunk/LayoutTests/fast/mediastream/MediaDevices-getUserMedia.html (201079 => 201080)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/fast/mediastream/MediaDevices-getUserMedia.html        2016-05-18 14:52:20 UTC (rev 201079)
+++ trunk/LayoutTests/fast/mediastream/MediaDevices-getUserMedia.html        2016-05-18 15:22:37 UTC (rev 201080)
</span><span class="lines">@@ -32,8 +32,7 @@
</span><span class="cx">             function error1(e) {
</span><span class="cx">                 errorArg = e;
</span><span class="cx">                 testPassed(&quot;Error callback called.&quot;);
</span><del>-                shouldBeEqualToString(&quot;errorArg.name&quot;, &quot;PermissionDeniedError&quot;);
-                shouldBeEqualToString(&quot;errorArg.constraintName&quot;, &quot;&quot;);
</del><ins>+                shouldBeEqualToString(&quot;errorArg.name&quot;, &quot;NotAllowedError&quot;);
</ins><span class="cx"> 
</span><span class="cx">                 shouldNotThrow(&quot;navigator.mediaDevices.getUserMedia({audio:true}).then(invalidGotStream).catch(error2);&quot;);
</span><span class="cx">             }
</span></span></pre></div>
<a id="trunkLayoutTestsfastmediastreamdelayedpermissiondeniedexpectedtxt"></a>
<div class="modfile"><h4>Modified: trunk/LayoutTests/fast/mediastream/delayed-permission-denied-expected.txt (201079 => 201080)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/fast/mediastream/delayed-permission-denied-expected.txt        2016-05-18 14:52:20 UTC (rev 201079)
+++ trunk/LayoutTests/fast/mediastream/delayed-permission-denied-expected.txt        2016-05-18 15:22:37 UTC (rev 201080)
</span><span class="lines">@@ -3,7 +3,7 @@
</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 error.code is error.PERMISSION_DENIED
</del><ins>+PASS error.name is &quot;NotAllowedError&quot;
</ins><span class="cx"> PASS successfullyParsed is true
</span><span class="cx"> 
</span><span class="cx"> TEST COMPLETE
</span></span></pre></div>
<a id="trunkLayoutTestsfastmediastreamdelayedpermissiondeniedhtml"></a>
<div class="modfile"><h4>Modified: trunk/LayoutTests/fast/mediastream/delayed-permission-denied.html (201079 => 201080)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/fast/mediastream/delayed-permission-denied.html        2016-05-18 14:52:20 UTC (rev 201079)
+++ trunk/LayoutTests/fast/mediastream/delayed-permission-denied.html        2016-05-18 15:22:37 UTC (rev 201080)
</span><span class="lines">@@ -22,7 +22,7 @@
</span><span class="cx"> }, function(e) {
</span><span class="cx">     if (permissionSet) {
</span><span class="cx">         error = e;
</span><del>-        shouldBe('error.code', 'error.PERMISSION_DENIED');
</del><ins>+        shouldBeEqualToString('error.name', 'NotAllowedError');
</ins><span class="cx">         finishJSTest();
</span><span class="cx">         return;
</span><span class="cx">     }
</span></span></pre></div>
<a id="trunkLayoutTestsfastmediastreamerrorexpectedtxt"></a>
<div class="modfile"><h4>Modified: trunk/LayoutTests/fast/mediastream/error-expected.txt (201079 => 201080)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/fast/mediastream/error-expected.txt        2016-05-18 14:52:20 UTC (rev 201079)
+++ trunk/LayoutTests/fast/mediastream/error-expected.txt        2016-05-18 15:22:37 UTC (rev 201080)
</span><span class="lines">@@ -3,7 +3,7 @@
</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 error.code is error.PERMISSION_DENIED
</del><ins>+PASS error.name is &quot;NotAllowedError&quot;
</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 (201079 => 201080)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/fast/mediastream/error.html        2016-05-18 14:52:20 UTC (rev 201079)
+++ trunk/LayoutTests/fast/mediastream/error.html        2016-05-18 15:22:37 UTC (rev 201080)
</span><span class="lines">@@ -20,7 +20,7 @@
</span><span class="cx">     finishJSTest();
</span><span class="cx"> }, function(e) {
</span><span class="cx">     error = e;
</span><del>-    shouldBe('error.code', 'error.PERMISSION_DENIED');
</del><ins>+    shouldBeEqualToString('error.name', 'NotAllowedError');
</ins><span class="cx">     finishJSTest();
</span><span class="cx"> });
</span><span class="cx"> &lt;/script&gt;
</span></span></pre></div>
<a id="trunkLayoutTestsfastmediastreamgetusermediaexpectedtxt"></a>
<div class="modfile"><h4>Modified: trunk/LayoutTests/fast/mediastream/getusermedia-expected.txt (201079 => 201080)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/fast/mediastream/getusermedia-expected.txt        2016-05-18 14:52:20 UTC (rev 201079)
+++ trunk/LayoutTests/fast/mediastream/getusermedia-expected.txt        2016-05-18 15:22:37 UTC (rev 201080)
</span><span class="lines">@@ -28,8 +28,8 @@
</span><span class="cx"> PASS navigator.webkitGetUserMedia({audio:{mandatory:{'valid_but_unsupported_1':0}, optional:[]}, video:true}, gotStreamInError, null); threw exception TypeError: Argument 3 ('errorCallback') to Navigator.webkitGetUserMedia must be a function.
</span><span class="cx"> PASS navigator.webkitGetUserMedia({audio:{mandatory:{'valid_but_unsupported_1':0}, optional:[]}, video:true}, gotStreamInError, error1); did not throw exception.
</span><span class="cx"> PASS Error callback called.
</span><del>-PASS errorArg.name is &quot;ConstraintNotSatisfiedError&quot;
-PASS errorArg.constraintName is &quot;valid_but_unsupported_1&quot;
</del><ins>+FAIL errorArg.name should be ConstraintNotSatisfiedError. Was DataError.
+FAIL errorArg.constraintName should be valid_but_unsupported_1 (of type string). Was undefined (of type undefined).
</ins><span class="cx"> PASS navigator.webkitGetUserMedia({audio:{mandatory:{'valid_and_supported_1':1}, optional:[{'valid_but_unsupported_1':0}]}, video:true}, gotStream5, 0); threw exception TypeError: Argument 3 ('errorCallback') to Navigator.webkitGetUserMedia must be a function.
</span><span class="cx"> PASS navigator.webkitGetUserMedia({audio:{mandatory:{'valid_and_supported_1':1}, optional:[{'valid_but_unsupported_1':0}]}, video:true}, gotStream5, error); did not throw exception.
</span><span class="cx"> PASS Stream generated.
</span></span></pre></div>
<a id="trunkLayoutTestsfastmediastreammockmediasourceexpectedtxt"></a>
<div class="modfile"><h4>Modified: trunk/LayoutTests/fast/mediastream/mock-media-source-expected.txt (201079 => 201080)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/fast/mediastream/mock-media-source-expected.txt        2016-05-18 14:52:20 UTC (rev 201079)
+++ trunk/LayoutTests/fast/mediastream/mock-media-source-expected.txt        2016-05-18 15:22:37 UTC (rev 201080)
</span><span class="lines">@@ -10,7 +10,7 @@
</span><span class="cx"> 
</span><span class="cx"> *** Disable mock capture devices
</span><span class="cx"> internals.setMockMediaCaptureDevicesEnabled(false)
</span><del>-PASS mediaDevices.getUserMedia() failed with PermissionDeniedError
</del><ins>+PASS mediaDevices.getUserMedia() failed with NotAllowedError
</ins><span class="cx"> 
</span><span class="cx"> *** Enable mock capture devices
</span><span class="cx"> internals.setMockMediaCaptureDevicesEnabled(true)
</span></span></pre></div>
<a id="trunkLayoutTestsfastregionsselectioncrashdeselectexpectedtxt"></a>
<div class="modfile"><h4>Modified: trunk/LayoutTests/fast/regions/selection/crash-deselect-expected.txt (201079 => 201080)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/fast/regions/selection/crash-deselect-expected.txt        2016-05-18 14:52:20 UTC (rev 201079)
+++ trunk/LayoutTests/fast/regions/selection/crash-deselect-expected.txt        2016-05-18 15:22:37 UTC (rev 201080)
</span><span class="lines">@@ -1,4 +1,4 @@
</span><del>-CONSOLE MESSAGE: line 66: HierarchyRequestError: DOM Exception 3: A Node was inserted somewhere it doesn't belong.
</del><ins>+CONSOLE MESSAGE: line 66: HierarchyRequestError: DOM Exception 3: The operation would yield an incorrect node tree.
</ins><span class="cx"> 
</span><span class="cx"> Errlog selectionTest: HierarchyRequestError: HierarchyRequestError: DOM Exception 3 : index 1 
</span><span class="cx"> Errlog webtest_fn_24: 
</span></span></pre></div>
<a id="trunkLayoutTestshttptestsmediamediastreamdisconnectedframepermissiondeniedexpectedtxt"></a>
<div class="modfile"><h4>Modified: trunk/LayoutTests/http/tests/media/media-stream/disconnected-frame-permission-denied-expected.txt (201079 => 201080)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/http/tests/media/media-stream/disconnected-frame-permission-denied-expected.txt        2016-05-18 14:52:20 UTC (rev 201079)
+++ trunk/LayoutTests/http/tests/media/media-stream/disconnected-frame-permission-denied-expected.txt        2016-05-18 15:22:37 UTC (rev 201080)
</span><span class="lines">@@ -4,7 +4,7 @@
</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 error.code is error.PERMISSION_DENIED
</del><ins>+PASS error.name is &quot;NotAllowedError&quot;
</ins><span class="cx"> 
</span><span class="cx"> PASS No callbacks invoked
</span><span class="cx"> PASS successfullyParsed is true
</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 (201079 => 201080)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/http/tests/media/media-stream/disconnected-frame-permission-denied.html        2016-05-18 14:52:20 UTC (rev 201079)
+++ trunk/LayoutTests/http/tests/media/media-stream/disconnected-frame-permission-denied.html        2016-05-18 15:22:37 UTC (rev 201080)
</span><span class="lines">@@ -22,7 +22,7 @@
</span><span class="cx">         finishJSTest();
</span><span class="cx">     }, function(e) {
</span><span class="cx">         error = e;
</span><del>-        shouldBe('error.code', 'error.PERMISSION_DENIED');
</del><ins>+        shouldBeEqualToString('error.name', 'NotAllowedError');
</ins><span class="cx">         debug('');
</span><span class="cx">         iframe.src = 'data:text/html,This frame should be visible when the test completes';
</span><span class="cx">     });
</span></span></pre></div>
<a id="trunkLayoutTestsinspectordebuggerregress133182expectedtxt"></a>
<div class="modfile"><h4>Modified: trunk/LayoutTests/inspector/debugger/regress-133182-expected.txt (201079 => 201080)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/inspector/debugger/regress-133182-expected.txt        2016-05-18 14:52:20 UTC (rev 201079)
+++ trunk/LayoutTests/inspector/debugger/regress-133182-expected.txt        2016-05-18 15:22:37 UTC (rev 201080)
</span><span class="lines">@@ -15,7 +15,7 @@
</span><span class="cx"> CONSOLE MESSAGE: line 69: [3] Resumed
</span><span class="cx"> CONSOLE MESSAGE: line 61: [3] Paused after stepping
</span><span class="cx"> CONSOLE MESSAGE: line 69: [3] Resumed
</span><del>-CONSOLE MESSAGE: line 8: NotFoundError: DOM Exception 8: An attempt was made to reference a Node in a context where it does not exist.
</del><ins>+CONSOLE MESSAGE: line 8: NotFoundError: DOM Exception 8: The object can not be found here.
</ins><span class="cx"> CONSOLE MESSAGE: line 56: [4] Testing statement 'exceptionInHostFunction();'
</span><span class="cx"> CONSOLE MESSAGE: line 57: [4] Paused and about to step
</span><span class="cx"> CONSOLE MESSAGE: line 69: [4] Resumed
</span></span></pre></div>
<a id="trunkLayoutTestsinspectordebuggersetPauseOnExceptionsallexpectedtxt"></a>
<div class="modfile"><h4>Modified: trunk/LayoutTests/inspector/debugger/setPauseOnExceptions-all-expected.txt (201079 => 201080)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/inspector/debugger/setPauseOnExceptions-all-expected.txt        2016-05-18 14:52:20 UTC (rev 201079)
+++ trunk/LayoutTests/inspector/debugger/setPauseOnExceptions-all-expected.txt        2016-05-18 15:22:37 UTC (rev 201080)
</span><span class="lines">@@ -6,7 +6,7 @@
</span><span class="cx"> CONSOLE MESSAGE: line 38: catchNested caught exception: {&quot;line&quot;:1,&quot;column&quot;:61}
</span><span class="cx"> CONSOLE MESSAGE: line 1: TypeError: undefined is not an object (evaluating '({}).a.b')
</span><span class="cx"> CONSOLE MESSAGE: line 3: TypeError: undefined is not an object (evaluating '({}).a.b')
</span><del>-CONSOLE MESSAGE: line 8: NotFoundError: DOM Exception 8: An attempt was made to reference a Node in a context where it does not exist.
</del><ins>+CONSOLE MESSAGE: line 8: NotFoundError: DOM Exception 8: The object can not be found here.
</ins><span class="cx"> CONSOLE MESSAGE: line 24: exception in host function
</span><span class="cx"> CONSOLE MESSAGE: line 13: exception string
</span><span class="cx"> CONSOLE MESSAGE: line 18: [object Object]
</span></span></pre></div>
<a id="trunkLayoutTestsinspectordebuggersetPauseOnExceptionsnoneexpectedtxt"></a>
<div class="modfile"><h4>Modified: trunk/LayoutTests/inspector/debugger/setPauseOnExceptions-none-expected.txt (201079 => 201080)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/inspector/debugger/setPauseOnExceptions-none-expected.txt        2016-05-18 14:52:20 UTC (rev 201079)
+++ trunk/LayoutTests/inspector/debugger/setPauseOnExceptions-none-expected.txt        2016-05-18 15:22:37 UTC (rev 201080)
</span><span class="lines">@@ -5,7 +5,7 @@
</span><span class="cx"> CONSOLE MESSAGE: line 38: catchNested caught exception: &quot;exception string&quot;
</span><span class="cx"> CONSOLE MESSAGE: line 38: catchNested caught exception: {&quot;line&quot;:1,&quot;column&quot;:61}
</span><span class="cx"> CONSOLE MESSAGE: line 3: TypeError: undefined is not an object (evaluating '({}).a.b')
</span><del>-CONSOLE MESSAGE: line 8: NotFoundError: DOM Exception 8: An attempt was made to reference a Node in a context where it does not exist.
</del><ins>+CONSOLE MESSAGE: line 8: NotFoundError: DOM Exception 8: The object can not be found here.
</ins><span class="cx"> CONSOLE MESSAGE: line 24: exception in host function
</span><span class="cx"> CONSOLE MESSAGE: line 13: exception string
</span><span class="cx"> CONSOLE MESSAGE: line 18: [object Object]
</span></span></pre></div>
<a id="trunkLayoutTestsinspectordebuggersetPauseOnExceptionsuncaughtexpectedtxt"></a>
<div class="modfile"><h4>Modified: trunk/LayoutTests/inspector/debugger/setPauseOnExceptions-uncaught-expected.txt (201079 => 201080)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/inspector/debugger/setPauseOnExceptions-uncaught-expected.txt        2016-05-18 14:52:20 UTC (rev 201079)
+++ trunk/LayoutTests/inspector/debugger/setPauseOnExceptions-uncaught-expected.txt        2016-05-18 15:22:37 UTC (rev 201080)
</span><span class="lines">@@ -6,7 +6,7 @@
</span><span class="cx"> CONSOLE MESSAGE: line 38: catchNested caught exception: {&quot;line&quot;:1,&quot;column&quot;:61}
</span><span class="cx"> CONSOLE MESSAGE: line 1: TypeError: undefined is not an object (evaluating '({}).a.b')
</span><span class="cx"> CONSOLE MESSAGE: line 3: TypeError: undefined is not an object (evaluating '({}).a.b')
</span><del>-CONSOLE MESSAGE: line 8: NotFoundError: DOM Exception 8: An attempt was made to reference a Node in a context where it does not exist.
</del><ins>+CONSOLE MESSAGE: line 8: NotFoundError: DOM Exception 8: The object can not be found here.
</ins><span class="cx"> CONSOLE MESSAGE: line 24: exception in host function
</span><span class="cx"> CONSOLE MESSAGE: line 13: exception string
</span><span class="cx"> CONSOLE MESSAGE: line 18: [object Object]
</span></span></pre></div>
<a id="trunkLayoutTestsplatformeflfastdynamic015expectedtxt"></a>
<div class="modfile"><h4>Modified: trunk/LayoutTests/platform/efl/fast/dynamic/015-expected.txt (201079 => 201080)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/platform/efl/fast/dynamic/015-expected.txt        2016-05-18 14:52:20 UTC (rev 201079)
+++ trunk/LayoutTests/platform/efl/fast/dynamic/015-expected.txt        2016-05-18 15:22:37 UTC (rev 201080)
</span><span class="lines">@@ -1,4 +1,4 @@
</span><del>-CONSOLE MESSAGE: line 16: IndexSizeError: DOM Exception 1: Index or size was negative, or greater than the allowed value.
</del><ins>+CONSOLE MESSAGE: line 16: IndexSizeError: DOM Exception 1: The index is not in the allowed range.
</ins><span class="cx"> layer at (0,0) size 800x600
</span><span class="cx">   RenderView at (0,0) size 800x600
</span><span class="cx"> layer at (0,0) size 800x600
</span></span></pre></div>
<a id="trunkLayoutTestsplatformgtkfastdynamic015expectedtxt"></a>
<div class="modfile"><h4>Modified: trunk/LayoutTests/platform/gtk/fast/dynamic/015-expected.txt (201079 => 201080)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/platform/gtk/fast/dynamic/015-expected.txt        2016-05-18 14:52:20 UTC (rev 201079)
+++ trunk/LayoutTests/platform/gtk/fast/dynamic/015-expected.txt        2016-05-18 15:22:37 UTC (rev 201080)
</span><span class="lines">@@ -1,4 +1,4 @@
</span><del>-CONSOLE MESSAGE: line 16: IndexSizeError: DOM Exception 1: Index or size was negative, or greater than the allowed value.
</del><ins>+CONSOLE MESSAGE: line 16: IndexSizeError: DOM Exception 1: The index is not in the allowed range.
</ins><span class="cx"> layer at (0,0) size 800x600
</span><span class="cx">   RenderView at (0,0) size 800x600
</span><span class="cx"> layer at (0,0) size 800x600
</span></span></pre></div>
<a id="trunkLayoutTestsplatformiossimulatorfastdynamic015expectedtxt"></a>
<div class="modfile"><h4>Modified: trunk/LayoutTests/platform/ios-simulator/fast/dynamic/015-expected.txt (201079 => 201080)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/platform/ios-simulator/fast/dynamic/015-expected.txt        2016-05-18 14:52:20 UTC (rev 201079)
+++ trunk/LayoutTests/platform/ios-simulator/fast/dynamic/015-expected.txt        2016-05-18 15:22:37 UTC (rev 201080)
</span><span class="lines">@@ -1,4 +1,4 @@
</span><del>-CONSOLE MESSAGE: line 16: IndexSizeError: DOM Exception 1: Index or size was negative, or greater than the allowed value.
</del><ins>+CONSOLE MESSAGE: line 16: IndexSizeError: DOM Exception 1: The index is not in the allowed range.
</ins><span class="cx"> layer at (0,0) size 800x600
</span><span class="cx">   RenderView at (0,0) size 800x600
</span><span class="cx"> layer at (0,0) size 800x600
</span></span></pre></div>
<a id="trunkLayoutTestsplatformiossimulatorwk2editingselectioncaretltr2expectedtxt"></a>
<div class="modfile"><h4>Modified: trunk/LayoutTests/platform/ios-simulator-wk2/editing/selection/caret-ltr-2-expected.txt (201079 => 201080)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/platform/ios-simulator-wk2/editing/selection/caret-ltr-2-expected.txt        2016-05-18 14:52:20 UTC (rev 201079)
+++ trunk/LayoutTests/platform/ios-simulator-wk2/editing/selection/caret-ltr-2-expected.txt        2016-05-18 15:22:37 UTC (rev 201080)
</span><span class="lines">@@ -1,4 +1,4 @@
</span><del>-CONSOLE MESSAGE: line 27: IndexSizeError: DOM Exception 1: Index or size was negative, or greater than the allowed value.
</del><ins>+CONSOLE MESSAGE: line 27: IndexSizeError: DOM Exception 1: The index is not in the allowed range.
</ins><span class="cx"> layer at (0,0) size 800x600
</span><span class="cx">   RenderView at (0,0) size 800x600
</span><span class="cx"> layer at (0,0) size 800x126
</span></span></pre></div>
<a id="trunkLayoutTestsplatformiossimulatorwk2editingselectioncaretltr2leftexpectedtxt"></a>
<div class="modfile"><h4>Modified: trunk/LayoutTests/platform/ios-simulator-wk2/editing/selection/caret-ltr-2-left-expected.txt (201079 => 201080)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/platform/ios-simulator-wk2/editing/selection/caret-ltr-2-left-expected.txt        2016-05-18 14:52:20 UTC (rev 201079)
+++ trunk/LayoutTests/platform/ios-simulator-wk2/editing/selection/caret-ltr-2-left-expected.txt        2016-05-18 15:22:37 UTC (rev 201080)
</span><span class="lines">@@ -1,4 +1,4 @@
</span><del>-CONSOLE MESSAGE: line 27: IndexSizeError: DOM Exception 1: Index or size was negative, or greater than the allowed value.
</del><ins>+CONSOLE MESSAGE: line 27: IndexSizeError: DOM Exception 1: The index is not in the allowed range.
</ins><span class="cx"> layer at (0,0) size 800x600
</span><span class="cx">   RenderView at (0,0) size 800x600
</span><span class="cx"> layer at (0,0) size 800x126
</span></span></pre></div>
<a id="trunkLayoutTestsplatformiossimulatorwk2editingselectioncaretltrexpectedtxt"></a>
<div class="modfile"><h4>Modified: trunk/LayoutTests/platform/ios-simulator-wk2/editing/selection/caret-ltr-expected.txt (201079 => 201080)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/platform/ios-simulator-wk2/editing/selection/caret-ltr-expected.txt        2016-05-18 14:52:20 UTC (rev 201079)
+++ trunk/LayoutTests/platform/ios-simulator-wk2/editing/selection/caret-ltr-expected.txt        2016-05-18 15:22:37 UTC (rev 201080)
</span><span class="lines">@@ -1,4 +1,4 @@
</span><del>-CONSOLE MESSAGE: line 27: IndexSizeError: DOM Exception 1: Index or size was negative, or greater than the allowed value.
</del><ins>+CONSOLE MESSAGE: line 27: IndexSizeError: DOM Exception 1: The index is not in the allowed range.
</ins><span class="cx"> layer at (0,0) size 800x600
</span><span class="cx">   RenderView at (0,0) size 800x600
</span><span class="cx"> layer at (0,0) size 800x126
</span></span></pre></div>
<a id="trunkLayoutTestsplatformiossimulatorwk2editingselectioncaretltrrightexpectedtxt"></a>
<div class="modfile"><h4>Modified: trunk/LayoutTests/platform/ios-simulator-wk2/editing/selection/caret-ltr-right-expected.txt (201079 => 201080)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/platform/ios-simulator-wk2/editing/selection/caret-ltr-right-expected.txt        2016-05-18 14:52:20 UTC (rev 201079)
+++ trunk/LayoutTests/platform/ios-simulator-wk2/editing/selection/caret-ltr-right-expected.txt        2016-05-18 15:22:37 UTC (rev 201080)
</span><span class="lines">@@ -1,4 +1,4 @@
</span><del>-CONSOLE MESSAGE: line 27: IndexSizeError: DOM Exception 1: Index or size was negative, or greater than the allowed value.
</del><ins>+CONSOLE MESSAGE: line 27: IndexSizeError: DOM Exception 1: The index is not in the allowed range.
</ins><span class="cx"> layer at (0,0) size 800x600
</span><span class="cx">   RenderView at (0,0) size 800x600
</span><span class="cx"> layer at (0,0) size 800x126
</span></span></pre></div>
<a id="trunkLayoutTestsplatformiossimulatorwk2editingselectioncaretrtl2expectedtxt"></a>
<div class="modfile"><h4>Modified: trunk/LayoutTests/platform/ios-simulator-wk2/editing/selection/caret-rtl-2-expected.txt (201079 => 201080)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/platform/ios-simulator-wk2/editing/selection/caret-rtl-2-expected.txt        2016-05-18 14:52:20 UTC (rev 201079)
+++ trunk/LayoutTests/platform/ios-simulator-wk2/editing/selection/caret-rtl-2-expected.txt        2016-05-18 15:22:37 UTC (rev 201080)
</span><span class="lines">@@ -1,4 +1,4 @@
</span><del>-CONSOLE MESSAGE: line 27: IndexSizeError: DOM Exception 1: Index or size was negative, or greater than the allowed value.
</del><ins>+CONSOLE MESSAGE: line 27: IndexSizeError: DOM Exception 1: The index is not in the allowed range.
</ins><span class="cx"> layer at (0,0) size 800x600
</span><span class="cx">   RenderView at (0,0) size 800x600
</span><span class="cx"> layer at (0,0) size 800x126
</span></span></pre></div>
<a id="trunkLayoutTestsplatformiossimulatorwk2editingselectioncaretrtl2leftexpectedtxt"></a>
<div class="modfile"><h4>Modified: trunk/LayoutTests/platform/ios-simulator-wk2/editing/selection/caret-rtl-2-left-expected.txt (201079 => 201080)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/platform/ios-simulator-wk2/editing/selection/caret-rtl-2-left-expected.txt        2016-05-18 14:52:20 UTC (rev 201079)
+++ trunk/LayoutTests/platform/ios-simulator-wk2/editing/selection/caret-rtl-2-left-expected.txt        2016-05-18 15:22:37 UTC (rev 201080)
</span><span class="lines">@@ -1,4 +1,4 @@
</span><del>-CONSOLE MESSAGE: line 27: IndexSizeError: DOM Exception 1: Index or size was negative, or greater than the allowed value.
</del><ins>+CONSOLE MESSAGE: line 27: IndexSizeError: DOM Exception 1: The index is not in the allowed range.
</ins><span class="cx"> layer at (0,0) size 800x600
</span><span class="cx">   RenderView at (0,0) size 800x600
</span><span class="cx"> layer at (0,0) size 800x126
</span></span></pre></div>
<a id="trunkLayoutTestsplatformiossimulatorwk2editingselectioncaretrtlexpectedtxt"></a>
<div class="modfile"><h4>Modified: trunk/LayoutTests/platform/ios-simulator-wk2/editing/selection/caret-rtl-expected.txt (201079 => 201080)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/platform/ios-simulator-wk2/editing/selection/caret-rtl-expected.txt        2016-05-18 14:52:20 UTC (rev 201079)
+++ trunk/LayoutTests/platform/ios-simulator-wk2/editing/selection/caret-rtl-expected.txt        2016-05-18 15:22:37 UTC (rev 201080)
</span><span class="lines">@@ -1,4 +1,4 @@
</span><del>-CONSOLE MESSAGE: line 27: IndexSizeError: DOM Exception 1: Index or size was negative, or greater than the allowed value.
</del><ins>+CONSOLE MESSAGE: line 27: IndexSizeError: DOM Exception 1: The index is not in the allowed range.
</ins><span class="cx"> layer at (0,0) size 800x600
</span><span class="cx">   RenderView at (0,0) size 800x600
</span><span class="cx"> layer at (0,0) size 800x126
</span></span></pre></div>
<a id="trunkLayoutTestsplatformiossimulatorwk2editingselectioncaretrtlrightexpectedtxt"></a>
<div class="modfile"><h4>Modified: trunk/LayoutTests/platform/ios-simulator-wk2/editing/selection/caret-rtl-right-expected.txt (201079 => 201080)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/platform/ios-simulator-wk2/editing/selection/caret-rtl-right-expected.txt        2016-05-18 14:52:20 UTC (rev 201079)
+++ trunk/LayoutTests/platform/ios-simulator-wk2/editing/selection/caret-rtl-right-expected.txt        2016-05-18 15:22:37 UTC (rev 201080)
</span><span class="lines">@@ -1,4 +1,4 @@
</span><del>-CONSOLE MESSAGE: line 27: IndexSizeError: DOM Exception 1: Index or size was negative, or greater than the allowed value.
</del><ins>+CONSOLE MESSAGE: line 27: IndexSizeError: DOM Exception 1: The index is not in the allowed range.
</ins><span class="cx"> layer at (0,0) size 800x600
</span><span class="cx">   RenderView at (0,0) size 800x600
</span><span class="cx"> layer at (0,0) size 800x126
</span></span></pre></div>
<a id="trunkLayoutTestsplatformmacfastdynamic015expectedtxt"></a>
<div class="modfile"><h4>Modified: trunk/LayoutTests/platform/mac/fast/dynamic/015-expected.txt (201079 => 201080)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/platform/mac/fast/dynamic/015-expected.txt        2016-05-18 14:52:20 UTC (rev 201079)
+++ trunk/LayoutTests/platform/mac/fast/dynamic/015-expected.txt        2016-05-18 15:22:37 UTC (rev 201080)
</span><span class="lines">@@ -1,4 +1,4 @@
</span><del>-CONSOLE MESSAGE: line 16: IndexSizeError: DOM Exception 1: Index or size was negative, or greater than the allowed value.
</del><ins>+CONSOLE MESSAGE: line 16: IndexSizeError: DOM Exception 1: The index is not in the allowed range.
</ins><span class="cx"> layer at (0,0) size 800x600
</span><span class="cx">   RenderView at (0,0) size 800x600
</span><span class="cx"> layer at (0,0) size 800x600
</span></span></pre></div>
<a id="trunkLayoutTestsplatformwinfastdynamic015expectedtxt"></a>
<div class="modfile"><h4>Modified: trunk/LayoutTests/platform/win/fast/dynamic/015-expected.txt (201079 => 201080)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/platform/win/fast/dynamic/015-expected.txt        2016-05-18 14:52:20 UTC (rev 201079)
+++ trunk/LayoutTests/platform/win/fast/dynamic/015-expected.txt        2016-05-18 15:22:37 UTC (rev 201080)
</span><span class="lines">@@ -1,4 +1,4 @@
</span><del>-CONSOLE MESSAGE: line 16: IndexSizeError: DOM Exception 1: Index or size was negative, or greater than the allowed value.
</del><ins>+CONSOLE MESSAGE: line 16: IndexSizeError: DOM Exception 1: The index is not in the allowed range.
</ins><span class="cx"> layer at (0,0) size 800x600
</span><span class="cx">   RenderView at (0,0) size 800x600
</span><span class="cx"> layer at (0,0) size 800x600
</span></span></pre></div>
<a id="trunkSourceWebCoreCMakeListstxt"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/CMakeLists.txt (201079 => 201080)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/CMakeLists.txt        2016-05-18 14:52:20 UTC (rev 201079)
+++ trunk/Source/WebCore/CMakeLists.txt        2016-05-18 15:22:37 UTC (rev 201080)
</span><span class="lines">@@ -224,7 +224,6 @@
</span><span class="cx">     Modules/mediastream/MediaTrackSupportedConstraints.idl
</span><span class="cx">     Modules/mediastream/NavigatorMediaDevices.idl
</span><span class="cx">     Modules/mediastream/NavigatorUserMedia.idl
</span><del>-    Modules/mediastream/NavigatorUserMediaError.idl
</del><span class="cx">     Modules/mediastream/RTCConfiguration.idl
</span><span class="cx">     Modules/mediastream/RTCDTMFSender.idl
</span><span class="cx">     Modules/mediastream/RTCDTMFToneChangeEvent.idl
</span><span class="lines">@@ -922,7 +921,6 @@
</span><span class="cx">     Modules/mediastream/MediaTrackConstraintSet.cpp
</span><span class="cx">     Modules/mediastream/MediaTrackConstraints.cpp
</span><span class="cx">     Modules/mediastream/NavigatorMediaDevices.cpp
</span><del>-    Modules/mediastream/NavigatorUserMediaError.cpp
</del><span class="cx">     Modules/mediastream/RTCConfiguration.cpp
</span><span class="cx">     Modules/mediastream/RTCDTMFSender.cpp
</span><span class="cx">     Modules/mediastream/RTCDTMFToneChangeEvent.cpp
</span></span></pre></div>
<a id="trunkSourceWebCoreChangeLog"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/ChangeLog (201079 => 201080)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/ChangeLog        2016-05-18 14:52:20 UTC (rev 201079)
+++ trunk/Source/WebCore/ChangeLog        2016-05-18 15:22:37 UTC (rev 201080)
</span><span class="lines">@@ -1,3 +1,59 @@
</span><ins>+2016-05-18  Youenn Fablet  &lt;youenn.fablet@crf.canon.fr&gt;
+
+        Sync DOM exception types with WebIDL and update promise rejections
+        https://bugs.webkit.org/show_bug.cgi?id=157792
+
+        Reviewed by Eric Carlson.
+
+        Updating ExceptionCode with WebIDL latest exception types.
+        Updating promise rejection code to use those types as per the latest specifications.
+
+        Updating getUserMedia error handling by removing NavigatorUserMediaError which no long exists.
+
+        Covered by rebased tests.
+
+        * CMakeLists.txt:
+        * DerivedSources.cpp:
+        * DerivedSources.make:
+        * Modules/mediastream/MediaDevices.h:
+        * Modules/mediastream/MediaEndpointPeerConnection.cpp:
+        (WebCore::MediaEndpointPeerConnection::createAnswer):
+        (WebCore::MediaEndpointPeerConnection::setLocalDescription):
+        (WebCore::MediaEndpointPeerConnection::setRemoteDescription):
+        (WebCore::MediaEndpointPeerConnection::addIceCandidate):
+        (WebCore::MediaEndpointPeerConnection::getStats):
+        (WebCore::MediaEndpointPeerConnection::replaceTrack):
+        * Modules/mediastream/NavigatorUserMediaError.cpp: Removed.
+        * Modules/mediastream/NavigatorUserMediaError.h: Removed.
+        * Modules/mediastream/NavigatorUserMediaError.idl: Removed.
+        * Modules/mediastream/RTCPeerConnection.cpp:
+        (WebCore::RTCPeerConnection::queuedCreateOffer):
+        (WebCore::RTCPeerConnection::queuedCreateAnswer):
+        (WebCore::RTCPeerConnection::queuedSetLocalDescription):
+        (WebCore::RTCPeerConnection::queuedSetRemoteDescription):
+        (WebCore::RTCPeerConnection::queuedAddIceCandidate):
+        * Modules/mediastream/RTCRtpSender.cpp:
+        (WebCore::RTCRtpSender::replaceTrack):
+        * Modules/mediastream/UserMediaRequest.cpp:
+        (WebCore::UserMediaRequest::failedToCreateStreamWithConstraintsError):
+        (WebCore::UserMediaRequest::failedToCreateStreamWithPermissionError):
+        * WebCore.xcodeproj/project.pbxproj:
+        * bindings/js/JSDOMBinding.cpp:
+        (WebCore::createDOMException):
+        * bindings/js/JSDOMBinding.h:
+        * bindings/js/JSDOMPromise.cpp:
+        (WebCore::DeferredWrapper::reject):
+        * bindings/js/JSDOMPromise.h:
+        (WebCore::DeferredWrapper::reject):
+        (WebCore::DOMPromise::reject):
+        * css/FontFaceSet.cpp:
+        (WebCore::FontFaceSet::load):
+        (WebCore::FontFaceSet::faceFinished):
+        * dom/DOMCoreException.cpp:
+        * dom/ExceptionCode.h:
+        * html/HTMLMediaElement.cpp:
+        (WebCore::HTMLMediaElement::play):
+
</ins><span class="cx"> 2016-05-18  Philippe Normand  &lt;pnormand@igalia.com&gt;
</span><span class="cx"> 
</span><span class="cx">         [GStreamer] webaudio crash on ARM platforms
</span></span></pre></div>
<a id="trunkSourceWebCoreDerivedSourcescpp"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/DerivedSources.cpp (201079 => 201080)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/DerivedSources.cpp        2016-05-18 14:52:20 UTC (rev 201079)
+++ trunk/Source/WebCore/DerivedSources.cpp        2016-05-18 15:22:37 UTC (rev 201080)
</span><span class="lines">@@ -361,7 +361,6 @@
</span><span class="cx"> #include &quot;JSNavigatorGeolocation.cpp&quot;
</span><span class="cx"> #include &quot;JSNavigatorMediaDevices.cpp&quot;
</span><span class="cx"> #include &quot;JSNavigatorUserMedia.cpp&quot;
</span><del>-#include &quot;JSNavigatorUserMediaError.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 (201079 => 201080)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/DerivedSources.make        2016-05-18 14:52:20 UTC (rev 201079)
+++ trunk/Source/WebCore/DerivedSources.make        2016-05-18 15:22:37 UTC (rev 201080)
</span><span class="lines">@@ -140,7 +140,6 @@
</span><span class="cx">     $(WebCore)/Modules/mediastream/MediaTrackSupportedConstraints.idl \
</span><span class="cx">     $(WebCore)/Modules/mediastream/NavigatorMediaDevices.idl \
</span><span class="cx">     $(WebCore)/Modules/mediastream/NavigatorUserMedia.idl \
</span><del>-    $(WebCore)/Modules/mediastream/NavigatorUserMediaError.idl \
</del><span class="cx">     $(WebCore)/Modules/mediastream/RTCConfiguration.idl \
</span><span class="cx">     $(WebCore)/Modules/mediastream/RTCDTMFSender.idl \
</span><span class="cx">     $(WebCore)/Modules/mediastream/RTCDTMFToneChangeEvent.idl \
</span></span></pre></div>
<a id="trunkSourceWebCoreModulesmediastreamMediaDevicesh"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/Modules/mediastream/MediaDevices.h (201079 => 201080)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/Modules/mediastream/MediaDevices.h        2016-05-18 14:52:20 UTC (rev 201079)
+++ trunk/Source/WebCore/Modules/mediastream/MediaDevices.h        2016-05-18 15:22:37 UTC (rev 201080)
</span><span class="lines">@@ -47,7 +47,6 @@
</span><span class="cx"> class Document;
</span><span class="cx"> class MediaStream;
</span><span class="cx"> class MediaTrackSupportedConstraints;
</span><del>-class NavigatorUserMediaError;
</del><span class="cx"> 
</span><span class="cx"> typedef int ExceptionCode;
</span><span class="cx"> 
</span></span></pre></div>
<a id="trunkSourceWebCoreModulesmediastreamMediaEndpointPeerConnectioncpp"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/Modules/mediastream/MediaEndpointPeerConnection.cpp (201079 => 201080)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/Modules/mediastream/MediaEndpointPeerConnection.cpp        2016-05-18 14:52:20 UTC (rev 201079)
+++ trunk/Source/WebCore/Modules/mediastream/MediaEndpointPeerConnection.cpp        2016-05-18 15:22:37 UTC (rev 201080)
</span><span class="lines">@@ -33,8 +33,6 @@
</span><span class="cx"> #if ENABLE(WEB_RTC)
</span><span class="cx"> #include &quot;MediaEndpointPeerConnection.h&quot;
</span><span class="cx"> 
</span><del>-#include &quot;DOMError.h&quot;
-#include &quot;JSDOMError.h&quot;
</del><span class="cx"> #include &quot;JSRTCSessionDescription.h&quot;
</span><span class="cx"> #include &quot;MediaEndpointSessionConfiguration.h&quot;
</span><span class="cx"> #include &quot;MediaStreamTrack.h&quot;
</span><span class="lines">@@ -171,7 +169,7 @@
</span><span class="cx"> 
</span><span class="cx">     notImplemented();
</span><span class="cx"> 
</span><del>-    promise.reject(DOMError::create(&quot;NotSupportedError&quot;));
</del><ins>+    promise.reject(NOT_SUPPORTED_ERR);
</ins><span class="cx"> }
</span><span class="cx"> 
</span><span class="cx"> void MediaEndpointPeerConnection::setLocalDescription(RTCSessionDescription&amp; description, VoidPromise&amp;&amp; promise)
</span><span class="lines">@@ -180,7 +178,7 @@
</span><span class="cx"> 
</span><span class="cx">     notImplemented();
</span><span class="cx"> 
</span><del>-    promise.reject(DOMError::create(&quot;NotSupportedError&quot;));
</del><ins>+    promise.reject(NOT_SUPPORTED_ERR);
</ins><span class="cx"> }
</span><span class="cx"> 
</span><span class="cx"> RefPtr&lt;RTCSessionDescription&gt; MediaEndpointPeerConnection::localDescription() const
</span><span class="lines">@@ -210,7 +208,7 @@
</span><span class="cx"> 
</span><span class="cx">     notImplemented();
</span><span class="cx"> 
</span><del>-    promise.reject(DOMError::create(&quot;NotSupportedError&quot;));
</del><ins>+    promise.reject(NOT_SUPPORTED_ERR);
</ins><span class="cx"> }
</span><span class="cx"> 
</span><span class="cx"> RefPtr&lt;RTCSessionDescription&gt; MediaEndpointPeerConnection::remoteDescription() const
</span><span class="lines">@@ -247,14 +245,14 @@
</span><span class="cx"> 
</span><span class="cx">     notImplemented();
</span><span class="cx"> 
</span><del>-    promise.reject(DOMError::create(&quot;NotSupportedError&quot;));
</del><ins>+    promise.reject(NOT_SUPPORTED_ERR);
</ins><span class="cx"> }
</span><span class="cx"> 
</span><span class="cx"> void MediaEndpointPeerConnection::getStats(MediaStreamTrack*, PeerConnection::StatsPromise&amp;&amp; promise)
</span><span class="cx"> {
</span><span class="cx">     notImplemented();
</span><span class="cx"> 
</span><del>-    promise.reject(DOMError::create(&quot;NotSupportedError&quot;));
</del><ins>+    promise.reject(NOT_SUPPORTED_ERR);
</ins><span class="cx"> }
</span><span class="cx"> 
</span><span class="cx"> void MediaEndpointPeerConnection::replaceTrack(RTCRtpSender&amp; sender, MediaStreamTrack&amp; withTrack, PeerConnection::VoidPromise&amp;&amp; promise)
</span><span class="lines">@@ -265,7 +263,7 @@
</span><span class="cx"> 
</span><span class="cx">     notImplemented();
</span><span class="cx"> 
</span><del>-    promise.reject(DOMError::create(&quot;NotSupportedError&quot;));
</del><ins>+    promise.reject(NOT_SUPPORTED_ERR);
</ins><span class="cx"> }
</span><span class="cx"> 
</span><span class="cx"> void MediaEndpointPeerConnection::stop()
</span></span></pre></div>
<a id="trunkSourceWebCoreModulesmediastreamNavigatorUserMediaErrorcpp"></a>
<div class="delfile"><h4>Deleted: trunk/Source/WebCore/Modules/mediastream/NavigatorUserMediaError.cpp (201079 => 201080)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/Modules/mediastream/NavigatorUserMediaError.cpp        2016-05-18 14:52:20 UTC (rev 201079)
+++ trunk/Source/WebCore/Modules/mediastream/NavigatorUserMediaError.cpp        2016-05-18 15:22:37 UTC (rev 201080)
</span><span class="lines">@@ -1,51 +0,0 @@
</span><del>-/*
- * Copyright (C) 2013 Apple Inc. All rights reserved.
- *
- * 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.
- */
-
-#include &quot;config.h&quot;
-
-#if ENABLE(MEDIA_STREAM)
-
-#include &quot;NavigatorUserMediaError.h&quot;
-
-#include &lt;wtf/NeverDestroyed.h&gt;
-
-namespace WebCore {
-
-const AtomicString&amp; NavigatorUserMediaError::permissionDeniedErrorName()
-{
-    static NeverDestroyed&lt;AtomicString&gt; permissionDenied(&quot;PermissionDeniedError&quot;, AtomicString::ConstructFromLiteral);
-    return permissionDenied;
-}
-
-const AtomicString&amp; NavigatorUserMediaError::constraintNotSatisfiedErrorName()
-{
-    static NeverDestroyed&lt;AtomicString&gt; constraintNotSatisfied(&quot;ConstraintNotSatisfiedError&quot;, AtomicString::ConstructFromLiteral);
-    return constraintNotSatisfied;
-}
-
-} // namespace WebCore
-
-#endif // ENABLE(MEDIA_STREAM)
-
</del></span></pre></div>
<a id="trunkSourceWebCoreModulesmediastreamNavigatorUserMediaErrorh"></a>
<div class="delfile"><h4>Deleted: trunk/Source/WebCore/Modules/mediastream/NavigatorUserMediaError.h (201079 => 201080)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/Modules/mediastream/NavigatorUserMediaError.h        2016-05-18 14:52:20 UTC (rev 201079)
+++ trunk/Source/WebCore/Modules/mediastream/NavigatorUserMediaError.h        2016-05-18 15:22:37 UTC (rev 201080)
</span><span class="lines">@@ -1,65 +0,0 @@
</span><del>-/*
- * Copyright (C) 2011 Google Inc. All rights reserved.
- * Copyright (C) 2013 Apple Inc. All rights reserved.
- *
- * 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. AND ITS CONTRIBUTORS ``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 ITS 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.
- */
-
-#ifndef NavigatorUserMediaError_h
-#define NavigatorUserMediaError_h
-
-#include &quot;DOMError.h&quot;
-#include &lt;wtf/PassRefPtr.h&gt;
-#include &lt;wtf/RefCounted.h&gt;
-
-#if ENABLE(MEDIA_STREAM)
-
-namespace WebCore {
-
-class NavigatorUserMediaError : public DOMError {
-public:
-    static Ref&lt;NavigatorUserMediaError&gt; create(const String&amp; name, const String&amp; constraintName)
-    {
-        return adoptRef(*new NavigatorUserMediaError(name, constraintName));
-    }
-
-    virtual ~NavigatorUserMediaError() { }
-
-    const String&amp; constraintName() const { return m_constraintName; }
-
-    static const AtomicString&amp; permissionDeniedErrorName();
-    static const AtomicString&amp; constraintNotSatisfiedErrorName();
-
-private:
-    NavigatorUserMediaError(const String&amp; name, const String&amp; constraintName)
-        : DOMError(name, { })
-        , m_constraintName(constraintName)
-    {
-    }
-
-    String m_constraintName;
-};
-
-} // namespace WebCore
-
-#endif // ENABLE(MEDIA_STREAM)
-
-#endif // NavigatorUserMediaError_h
</del></span></pre></div>
<a id="trunkSourceWebCoreModulesmediastreamNavigatorUserMediaErroridl"></a>
<div class="delfile"><h4>Deleted: trunk/Source/WebCore/Modules/mediastream/NavigatorUserMediaError.idl (201079 => 201080)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/Modules/mediastream/NavigatorUserMediaError.idl        2016-05-18 14:52:20 UTC (rev 201079)
+++ trunk/Source/WebCore/Modules/mediastream/NavigatorUserMediaError.idl        2016-05-18 15:22:37 UTC (rev 201080)
</span><span class="lines">@@ -1,33 +0,0 @@
</span><del>-/*
- * Copyright (C) 2011 Google Inc. All rights reserved.
- * Copyright (C) 2013 Apple Inc. All rights reserved.
- *
- * 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. AND ITS CONTRIBUTORS ``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 ITS 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.
- */
-
-[
-    NoInterfaceObject,
-    Conditional=MEDIA_STREAM,
-    JSGenerateToJSObject,
-] interface NavigatorUserMediaError : DOMError {
-    readonly attribute DOMString constraintName;
-};
-
</del></span></pre></div>
<a id="trunkSourceWebCoreModulesmediastreamRTCPeerConnectioncpp"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/Modules/mediastream/RTCPeerConnection.cpp (201079 => 201080)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/Modules/mediastream/RTCPeerConnection.cpp        2016-05-18 14:52:20 UTC (rev 201079)
+++ trunk/Source/WebCore/Modules/mediastream/RTCPeerConnection.cpp        2016-05-18 15:22:37 UTC (rev 201080)
</span><span class="lines">@@ -36,12 +36,10 @@
</span><span class="cx"> 
</span><span class="cx"> #include &quot;RTCPeerConnection.h&quot;
</span><span class="cx"> 
</span><del>-#include &quot;DOMError.h&quot;
</del><span class="cx"> #include &quot;Document.h&quot;
</span><span class="cx"> #include &quot;Event.h&quot;
</span><span class="cx"> #include &quot;ExceptionCode.h&quot;
</span><span class="cx"> #include &quot;Frame.h&quot;
</span><del>-#include &quot;JSDOMError.h&quot;
</del><span class="cx"> #include &quot;MediaStream.h&quot;
</span><span class="cx"> #include &quot;MediaStreamTrack.h&quot;
</span><span class="cx"> #include &quot;RTCConfiguration.h&quot;
</span><span class="lines">@@ -152,14 +150,14 @@
</span><span class="cx"> void RTCPeerConnection::queuedCreateOffer(const Dictionary&amp; offerOptions, SessionDescriptionPromise&amp;&amp; promise)
</span><span class="cx"> {
</span><span class="cx">     if (m_signalingState == SignalingState::Closed) {
</span><del>-        promise.reject(DOMError::create(&quot;InvalidStateError&quot;));
</del><ins>+        promise.reject(INVALID_STATE_ERR);
</ins><span class="cx">         return;
</span><span class="cx">     }
</span><span class="cx"> 
</span><span class="cx">     ExceptionCode ec = 0;
</span><span class="cx">     RefPtr&lt;RTCOfferOptions&gt; options = RTCOfferOptions::create(offerOptions, ec);
</span><span class="cx">     if (ec) {
</span><del>-        promise.reject(DOMError::create(&quot;Invalid createOffer argument&quot;));
</del><ins>+        promise.reject(OperationError, &quot;Invalid createOffer argument&quot;);
</ins><span class="cx">         return;
</span><span class="cx">     }
</span><span class="cx">     ASSERT(options);
</span><span class="lines">@@ -170,14 +168,14 @@
</span><span class="cx"> void RTCPeerConnection::queuedCreateAnswer(const Dictionary&amp; answerOptions, SessionDescriptionPromise&amp;&amp; promise)
</span><span class="cx"> {
</span><span class="cx">     if (m_signalingState == SignalingState::Closed) {
</span><del>-        promise.reject(DOMError::create(&quot;InvalidStateError&quot;));
</del><ins>+        promise.reject(INVALID_STATE_ERR);
</ins><span class="cx">         return;
</span><span class="cx">     }
</span><span class="cx"> 
</span><span class="cx">     ExceptionCode ec = 0;
</span><span class="cx">     RefPtr&lt;RTCAnswerOptions&gt; options = RTCAnswerOptions::create(answerOptions, ec);
</span><span class="cx">     if (ec) {
</span><del>-        promise.reject(DOMError::create(&quot;Invalid createAnswer argument&quot;));
</del><ins>+        promise.reject(OperationError, &quot;Invalid createAnswer argument&quot;);
</ins><span class="cx">         return;
</span><span class="cx">     }
</span><span class="cx"> 
</span><span class="lines">@@ -187,7 +185,7 @@
</span><span class="cx"> void RTCPeerConnection::queuedSetLocalDescription(RTCSessionDescription&amp; description, PeerConnection::VoidPromise&amp;&amp; promise)
</span><span class="cx"> {
</span><span class="cx">     if (m_signalingState == SignalingState::Closed) {
</span><del>-        promise.reject(DOMError::create(&quot;InvalidStateError&quot;));
</del><ins>+        promise.reject(INVALID_STATE_ERR);
</ins><span class="cx">         return;
</span><span class="cx">     }
</span><span class="cx"> 
</span><span class="lines">@@ -212,7 +210,7 @@
</span><span class="cx"> void RTCPeerConnection::queuedSetRemoteDescription(RTCSessionDescription&amp; description, PeerConnection::VoidPromise&amp;&amp; promise)
</span><span class="cx"> {
</span><span class="cx">     if (m_signalingState == SignalingState::Closed) {
</span><del>-        promise.reject(DOMError::create(&quot;InvalidStateError&quot;));
</del><ins>+        promise.reject(INVALID_STATE_ERR);
</ins><span class="cx">         return;
</span><span class="cx">     }
</span><span class="cx"> 
</span><span class="lines">@@ -237,7 +235,7 @@
</span><span class="cx"> void RTCPeerConnection::queuedAddIceCandidate(RTCIceCandidate&amp; rtcCandidate, VoidPromise&amp;&amp; promise)
</span><span class="cx"> {
</span><span class="cx">     if (m_signalingState == SignalingState::Closed) {
</span><del>-        promise.reject(DOMError::create(&quot;InvalidStateError&quot;));
</del><ins>+        promise.reject(INVALID_STATE_ERR);
</ins><span class="cx">         return;
</span><span class="cx">     }
</span><span class="cx"> 
</span></span></pre></div>
<a id="trunkSourceWebCoreModulesmediastreamRTCRtpSendercpp"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/Modules/mediastream/RTCRtpSender.cpp (201079 => 201080)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/Modules/mediastream/RTCRtpSender.cpp        2016-05-18 14:52:20 UTC (rev 201079)
+++ trunk/Source/WebCore/Modules/mediastream/RTCRtpSender.cpp        2016-05-18 15:22:37 UTC (rev 201080)
</span><span class="lines">@@ -33,9 +33,7 @@
</span><span class="cx"> 
</span><span class="cx"> #if ENABLE(WEB_RTC)
</span><span class="cx"> 
</span><del>-#include &quot;DOMError.h&quot;
</del><span class="cx"> #include &quot;ExceptionCode.h&quot;
</span><del>-#include &quot;JSDOMError.h&quot;
</del><span class="cx"> 
</span><span class="cx"> namespace WebCore {
</span><span class="cx"> 
</span><span class="lines">@@ -51,7 +49,7 @@
</span><span class="cx"> void RTCRtpSender::replaceTrack(MediaStreamTrack&amp; withTrack, PeerConnection::VoidPromise&amp;&amp; promise, ExceptionCode&amp; ec)
</span><span class="cx"> {
</span><span class="cx">     if (!m_client) {
</span><del>-        promise.reject(DOMError::create(&quot;InvalidStateError&quot;));
</del><ins>+        promise.reject(INVALID_STATE_ERR);
</ins><span class="cx">         return;
</span><span class="cx">     }
</span><span class="cx"> 
</span></span></pre></div>
<a id="trunkSourceWebCoreModulesmediastreamUserMediaRequestcpp"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/Modules/mediastream/UserMediaRequest.cpp (201079 => 201080)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/Modules/mediastream/UserMediaRequest.cpp        2016-05-18 14:52:20 UTC (rev 201079)
+++ trunk/Source/WebCore/Modules/mediastream/UserMediaRequest.cpp        2016-05-18 15:22:37 UTC (rev 201080)
</span><span class="lines">@@ -43,7 +43,6 @@
</span><span class="cx"> #include &quot;Frame.h&quot;
</span><span class="cx"> #include &quot;JSMediaDeviceInfo.h&quot;
</span><span class="cx"> #include &quot;JSMediaStream.h&quot;
</span><del>-#include &quot;JSNavigatorUserMediaError.h&quot;
</del><span class="cx"> #include &quot;MainFrame.h&quot;
</span><span class="cx"> #include &quot;MediaConstraintsImpl.h&quot;
</span><span class="cx"> #include &quot;MediaStream.h&quot;
</span><span class="lines">@@ -191,11 +190,13 @@
</span><span class="cx"> 
</span><span class="cx"> void UserMediaRequest::failedToCreateStreamWithConstraintsError(const String&amp; constraintName)
</span><span class="cx"> {
</span><ins>+    UNUSED_PARAM(constraintName);
</ins><span class="cx">     ASSERT(!constraintName.isEmpty());
</span><span class="cx">     if (!m_scriptExecutionContext)
</span><span class="cx">         return;
</span><span class="cx"> 
</span><del>-    m_promise.reject(NavigatorUserMediaError::create(NavigatorUserMediaError::constraintNotSatisfiedErrorName(), constraintName));
</del><ins>+    // FIXME: The promise should be rejected with an OverconstrainedError, https://bugs.webkit.org/show_bug.cgi?id=157839.
+    m_promise.reject(DataError);
</ins><span class="cx"> }
</span><span class="cx"> 
</span><span class="cx"> void UserMediaRequest::failedToCreateStreamWithPermissionError()
</span><span class="lines">@@ -203,8 +204,7 @@
</span><span class="cx">     if (!m_scriptExecutionContext)
</span><span class="cx">         return;
</span><span class="cx"> 
</span><del>-    // FIXME: Replace NavigatorUserMediaError with MediaStreamError (see bug 143335)
-    m_promise.reject(NavigatorUserMediaError::create(NavigatorUserMediaError::permissionDeniedErrorName(), emptyString()));
</del><ins>+    m_promise.reject(NotAllowedError);
</ins><span class="cx"> }
</span><span class="cx"> 
</span><span class="cx"> void UserMediaRequest::contextDestroyed()
</span></span></pre></div>
<a id="trunkSourceWebCoreWebCorexcodeprojprojectpbxproj"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/WebCore.xcodeproj/project.pbxproj (201079 => 201080)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/WebCore.xcodeproj/project.pbxproj        2016-05-18 14:52:20 UTC (rev 201079)
+++ trunk/Source/WebCore/WebCore.xcodeproj/project.pbxproj        2016-05-18 15:22:37 UTC (rev 201080)
</span><span class="lines">@@ -66,7 +66,6 @@
</span><span class="cx">                 066C77310AB603FD00238CC4 /* RenderFileUploadControl.h in Headers */ = {isa = PBXBuildFile; fileRef = 066C772F0AB603FD00238CC4 /* RenderFileUploadControl.h */; };
</span><span class="cx">                 06E81ED70AB5D5E900C87837 /* LocalCurrentGraphicsContext.h in Headers */ = {isa = PBXBuildFile; fileRef = 06E81ED60AB5D5E900C87837 /* LocalCurrentGraphicsContext.h */; };
</span><span class="cx">                 06E81EEC0AB5DA9700C87837 /* LocalCurrentGraphicsContext.mm in Sources */ = {isa = PBXBuildFile; fileRef = 06E81EEB0AB5DA9700C87837 /* LocalCurrentGraphicsContext.mm */; };
</span><del>-                070327F817EA4AAF00CE1318 /* NavigatorUserMediaError.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 070327F717EA4AAF00CE1318 /* NavigatorUserMediaError.cpp */; };
</del><span class="cx">                 070334D31459FFAD008D8D45 /* TrackEvent.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 070334D01459FFAC008D8D45 /* TrackEvent.cpp */; };
</span><span class="cx">                 070334D71459FFD5008D8D45 /* TrackBase.h in Headers */ = {isa = PBXBuildFile; fileRef = 070334D61459FFD5008D8D45 /* TrackBase.h */; settings = {ATTRIBUTES = (Private, ); }; };
</span><span class="cx">                 070334D9145A006F008D8D45 /* TrackBase.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 070334D8145A006F008D8D45 /* TrackBase.cpp */; };
</span><span class="lines">@@ -159,8 +158,6 @@
</span><span class="cx">                 07394ECA1BAB2CD700BE99CD /* MediaDevicesRequest.h in Headers */ = {isa = PBXBuildFile; fileRef = 07394EC91BAB2CD700BE99CD /* MediaDevicesRequest.h */; settings = {ATTRIBUTES = (Private, ); }; };
</span><span class="cx">                 073BE34017D17E01002BD431 /* JSNavigatorUserMedia.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 073BE33E17D17E01002BD431 /* JSNavigatorUserMedia.cpp */; };
</span><span class="cx">                 073BE34117D17E01002BD431 /* JSNavigatorUserMedia.h in Headers */ = {isa = PBXBuildFile; fileRef = 073BE33F17D17E01002BD431 /* JSNavigatorUserMedia.h */; settings = {ATTRIBUTES = (Private, ); }; };
</span><del>-                073BE34817D17E7A002BD431 /* JSNavigatorUserMediaError.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 073BE34217D17E7A002BD431 /* JSNavigatorUserMediaError.cpp */; };
-                073BE34917D17E7A002BD431 /* JSNavigatorUserMediaError.h in Headers */ = {isa = PBXBuildFile; fileRef = 073BE34317D17E7A002BD431 /* JSNavigatorUserMediaError.h */; };
</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">                 073BE35017D181A6002BD431 /* RTCPeerConnectionHandler.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 07221BA817CF0AD400848E51 /* RTCPeerConnectionHandler.cpp */; };
</span><span class="lines">@@ -224,7 +221,6 @@
</span><span class="cx">                 078E091717D14D1C00420AA1 /* MediaStreamRegistry.h in Headers */ = {isa = PBXBuildFile; fileRef = 07221B5317CEC32700848E51 /* MediaStreamRegistry.h */; settings = {ATTRIBUTES = (Private, ); }; };
</span><span class="cx">                 078E091817D14D1C00420AA1 /* MediaStreamTrack.h in Headers */ = {isa = PBXBuildFile; fileRef = 07221B5517CEC32700848E51 /* MediaStreamTrack.h */; };
</span><span class="cx">                 078E091917D14D1C00420AA1 /* MediaStreamTrackEvent.h in Headers */ = {isa = PBXBuildFile; fileRef = 07221B5817CEC32700848E51 /* MediaStreamTrackEvent.h */; settings = {ATTRIBUTES = (Private, ); }; };
</span><del>-                078E091B17D14D1C00420AA1 /* NavigatorUserMediaError.h in Headers */ = {isa = PBXBuildFile; fileRef = 07221B5D17CEC32700848E51 /* NavigatorUserMediaError.h */; settings = {ATTRIBUTES = (Private, ); }; };
</del><span class="cx">                 078E091E17D14D1C00420AA1 /* RTCDataChannel.h in Headers */ = {isa = PBXBuildFile; fileRef = 07221B6417CEC32700848E51 /* RTCDataChannel.h */; settings = {ATTRIBUTES = (Private, ); }; };
</span><span class="cx">                 078E091F17D14D1C00420AA1 /* RTCDataChannelEvent.h in Headers */ = {isa = PBXBuildFile; fileRef = 07221B6717CEC32700848E51 /* RTCDataChannelEvent.h */; settings = {ATTRIBUTES = (Private, ); }; };
</span><span class="cx">                 078E092017D14D1C00420AA1 /* RTCDTMFSender.h in Headers */ = {isa = PBXBuildFile; fileRef = 07221B6A17CEC32700848E51 /* RTCDTMFSender.h */; settings = {ATTRIBUTES = (Private, ); }; };
</span><span class="lines">@@ -7436,7 +7432,6 @@
</span><span class="cx">                 066C772F0AB603FD00238CC4 /* RenderFileUploadControl.h */ = {isa = PBXFileReference; fileEncoding = 30; lastKnownFileType = sourcecode.c.h; path = RenderFileUploadControl.h; sourceTree = &quot;&lt;group&gt;&quot;; };
</span><span class="cx">                 06E81ED60AB5D5E900C87837 /* LocalCurrentGraphicsContext.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = LocalCurrentGraphicsContext.h; sourceTree = &quot;&lt;group&gt;&quot;; };
</span><span class="cx">                 06E81EEB0AB5DA9700C87837 /* LocalCurrentGraphicsContext.mm */ = {isa = PBXFileReference; fileEncoding = 30; lastKnownFileType = sourcecode.cpp.objcpp; path = LocalCurrentGraphicsContext.mm; sourceTree = &quot;&lt;group&gt;&quot;; };
</span><del>-                070327F717EA4AAF00CE1318 /* NavigatorUserMediaError.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = NavigatorUserMediaError.cpp; sourceTree = &quot;&lt;group&gt;&quot;; };
</del><span class="cx">                 070334D01459FFAC008D8D45 /* TrackEvent.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = TrackEvent.cpp; sourceTree = &quot;&lt;group&gt;&quot;; };
</span><span class="cx">                 070334D11459FFAC008D8D45 /* TrackEvent.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = TrackEvent.h; sourceTree = &quot;&lt;group&gt;&quot;; };
</span><span class="cx">                 070334D21459FFAC008D8D45 /* TrackEvent.idl */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text; path = TrackEvent.idl; sourceTree = &quot;&lt;group&gt;&quot;; };
</span><span class="lines">@@ -7513,8 +7508,6 @@
</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><span class="cx">                 07221B5C17CEC32700848E51 /* NavigatorUserMedia.idl */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text; path = NavigatorUserMedia.idl; sourceTree = &quot;&lt;group&gt;&quot;; };
</span><del>-                07221B5D17CEC32700848E51 /* NavigatorUserMediaError.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = NavigatorUserMediaError.h; sourceTree = &quot;&lt;group&gt;&quot;; };
-                07221B5E17CEC32700848E51 /* NavigatorUserMediaError.idl */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text; path = NavigatorUserMediaError.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">@@ -7612,8 +7605,6 @@
</span><span class="cx">                 07394EC91BAB2CD700BE99CD /* MediaDevicesRequest.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = MediaDevicesRequest.h; sourceTree = &quot;&lt;group&gt;&quot;; };
</span><span class="cx">                 073BE33E17D17E01002BD431 /* JSNavigatorUserMedia.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = JSNavigatorUserMedia.cpp; sourceTree = &quot;&lt;group&gt;&quot;; };
</span><span class="cx">                 073BE33F17D17E01002BD431 /* JSNavigatorUserMedia.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = JSNavigatorUserMedia.h; sourceTree = &quot;&lt;group&gt;&quot;; };
</span><del>-                073BE34217D17E7A002BD431 /* JSNavigatorUserMediaError.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = JSNavigatorUserMediaError.cpp; sourceTree = &quot;&lt;group&gt;&quot;; };
-                073BE34317D17E7A002BD431 /* JSNavigatorUserMediaError.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = JSNavigatorUserMediaError.h; sourceTree = &quot;&lt;group&gt;&quot;; };
</del><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="cx">                 074E82B918A69F0E007EF54C /* PlatformTimeRanges.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = PlatformTimeRanges.h; sourceTree = &quot;&lt;group&gt;&quot;; };
</span><span class="cx">                 0753860014489E9800B78452 /* CachedTextTrack.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = CachedTextTrack.cpp; sourceTree = &quot;&lt;group&gt;&quot;; };
</span><span class="lines">@@ -15448,9 +15439,6 @@
</span><span class="cx">                                 5EA725CC1ACABCB500EAD17B /* NavigatorMediaDevices.idl */,
</span><span class="cx">                                 07221B5C17CEC32700848E51 /* NavigatorUserMedia.idl */,
</span><span class="cx">                                 419BE75A1BCBD3ED00E1C85B /* NavigatorUserMedia.js */,
</span><del>-                                070327F717EA4AAF00CE1318 /* NavigatorUserMediaError.cpp */,
-                                07221B5D17CEC32700848E51 /* NavigatorUserMediaError.h */,
-                                07221B5E17CEC32700848E51 /* NavigatorUserMediaError.idl */,
</del><span class="cx">                                 5E2C434D1BCEE2E50001E2BC /* PeerConnectionBackend.h */,
</span><span class="cx">                                 5E2C434E1BCEE2E50001E2BC /* PeerConnectionStates.h */,
</span><span class="cx">                                 5E2C434F1BCEE2E50001E2BC /* RTCConfiguration.cpp */,
</span><span class="lines">@@ -15667,8 +15655,6 @@
</span><span class="cx">                                 0787C4681BFBDF6F006DCD7F /* JSMediaTrackSupportedConstraints.h */,
</span><span class="cx">                                 073BE33E17D17E01002BD431 /* JSNavigatorUserMedia.cpp */,
</span><span class="cx">                                 073BE33F17D17E01002BD431 /* JSNavigatorUserMedia.h */,
</span><del>-                                073BE34217D17E7A002BD431 /* JSNavigatorUserMediaError.cpp */,
-                                073BE34317D17E7A002BD431 /* JSNavigatorUserMediaError.h */,
</del><span class="cx">                                 073794E319EE2FF200E5A045 /* JSRTCConfiguration.cpp */,
</span><span class="cx">                                 073794E419EE2FF200E5A045 /* JSRTCConfiguration.h */,
</span><span class="cx">                                 07969D9117D14151007FF842 /* JSRTCDataChannel.cpp */,
</span><span class="lines">@@ -26784,7 +26770,6 @@
</span><span class="cx">                                 BCD9C2C10C17B69E005C90A2 /* JSNamedNodeMap.h in Headers */,
</span><span class="cx">                                 A9D247F80D757E3400FDF959 /* JSNavigator.h in Headers */,
</span><span class="cx">                                 073BE34117D17E01002BD431 /* JSNavigatorUserMedia.h in Headers */,
</span><del>-                                073BE34917D17E7A002BD431 /* JSNavigatorUserMediaError.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">@@ -27332,7 +27317,6 @@
</span><span class="cx">                                 E12719C70EEEC16800F61213 /* NavigatorBase.h in Headers */,
</span><span class="cx">                                 9711460414EF009A00674FD9 /* NavigatorGeolocation.h in Headers */,
</span><span class="cx">                                 5EA725D61ACABD5700EAD17B /* NavigatorMediaDevices.h in Headers */,
</span><del>-                                078E091B17D14D1C00420AA1 /* NavigatorUserMediaError.h in Headers */,
</del><span class="cx">                                 A19D93461A9FEC7200B46C24 /* NEFilterSourceSPI.h in Headers */,
</span><span class="cx">                                 8A309C9F123950BE00CB9204 /* NestingLevelIncrementer.h in Headers */,
</span><span class="cx">                                 656D37430ADBA5DE00A4554D /* NetscapePlugInStreamLoader.h in Headers */,
</span><span class="lines">@@ -30541,7 +30525,6 @@
</span><span class="cx">                                 BCD9C2630C17AA67005C90A2 /* JSNamedNodeMapCustom.cpp in Sources */,
</span><span class="cx">                                 A9D247F70D757E3400FDF959 /* JSNavigator.cpp in Sources */,
</span><span class="cx">                                 073BE34017D17E01002BD431 /* JSNavigatorUserMedia.cpp in Sources */,
</span><del>-                                073BE34817D17E7A002BD431 /* JSNavigatorUserMediaError.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">                                 14115B7209F84CD600CA4FC1 /* JSNodeFilter.cpp in Sources */,
</span><span class="lines">@@ -31098,7 +31081,6 @@
</span><span class="cx">                                 51A4BB101954D62700FA5C2E /* NavigatorGamepad.cpp in Sources */,
</span><span class="cx">                                 9711460314EF009A00674FD9 /* NavigatorGeolocation.cpp in Sources */,
</span><span class="cx">                                 5EA725D51ACABD5700EAD17B /* NavigatorMediaDevices.cpp in Sources */,
</span><del>-                                070327F817EA4AAF00CE1318 /* NavigatorUserMediaError.cpp in Sources */,
</del><span class="cx">                                 5D874F130D161D3200796C3B /* NetscapePlugInStreamLoader.cpp in Sources */,
</span><span class="cx">                                 A19D934A1AA11B1E00B46C24 /* NetworkExtensionContentFilter.mm in Sources */,
</span><span class="cx">                                 59C27F05138D28C10079B7E2 /* NetworkResourcesData.cpp in Sources */,
</span></span></pre></div>
<a id="trunkSourceWebCorebindingsjsJSDOMBindingcpp"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/bindings/js/JSDOMBinding.cpp (201079 => 201080)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/bindings/js/JSDOMBinding.cpp        2016-05-18 14:52:20 UTC (rev 201079)
+++ trunk/Source/WebCore/bindings/js/JSDOMBinding.cpp        2016-05-18 15:22:37 UTC (rev 201080)
</span><span class="lines">@@ -280,7 +280,7 @@
</span><span class="cx">     return errorObject;
</span><span class="cx"> }
</span><span class="cx"> 
</span><del>-static JSValue createDOMException(ExecState* exec, ExceptionCode ec, const String&amp; message)
</del><ins>+JSValue createDOMException(ExecState* exec, ExceptionCode ec, const String&amp; message)
</ins><span class="cx"> {
</span><span class="cx">     return createDOMException(exec, ec, &amp;message);
</span><span class="cx"> }
</span></span></pre></div>
<a id="trunkSourceWebCorebindingsjsJSDOMBindingh"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/bindings/js/JSDOMBinding.h (201079 => 201080)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/bindings/js/JSDOMBinding.h        2016-05-18 14:52:20 UTC (rev 201079)
+++ trunk/Source/WebCore/bindings/js/JSDOMBinding.h        2016-05-18 15:22:37 UTC (rev 201080)
</span><span class="lines">@@ -178,6 +178,7 @@
</span><span class="cx"> void reportCurrentException(JSC::ExecState*);
</span><span class="cx"> 
</span><span class="cx"> JSC::JSValue createDOMException(JSC::ExecState*, ExceptionCode);
</span><ins>+JSC::JSValue createDOMException(JSC::ExecState*, ExceptionCode, const String&amp;);
</ins><span class="cx"> 
</span><span class="cx"> // Convert a DOM implementation exception code into a JavaScript exception in the execution state.
</span><span class="cx"> WEBCORE_EXPORT void setDOMException(JSC::ExecState*, ExceptionCode);
</span></span></pre></div>
<a id="trunkSourceWebCorebindingsjsJSDOMPromisecpp"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/bindings/js/JSDOMPromise.cpp (201079 => 201080)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/bindings/js/JSDOMPromise.cpp        2016-05-18 14:52:20 UTC (rev 201079)
+++ trunk/Source/WebCore/bindings/js/JSDOMPromise.cpp        2016-05-18 15:22:37 UTC (rev 201080)
</span><span class="lines">@@ -27,6 +27,7 @@
</span><span class="cx"> #include &quot;JSDOMPromise.h&quot;
</span><span class="cx"> 
</span><span class="cx"> #include &quot;ExceptionCode.h&quot;
</span><ins>+#include &quot;JSDOMError.h&quot;
</ins><span class="cx"> #include &lt;runtime/Exception.h&gt;
</span><span class="cx"> #include &lt;runtime/JSONObject.h&gt;
</span><span class="cx"> 
</span><span class="lines">@@ -67,6 +68,15 @@
</span><span class="cx">     m_deferred.clear();
</span><span class="cx"> }
</span><span class="cx"> 
</span><ins>+void DeferredWrapper::reject(ExceptionCode ec, const String&amp; message)
+{
+    ASSERT(m_deferred);
+    ASSERT(m_globalObject);
+    JSC::ExecState* state = m_globalObject-&gt;globalExec();
+    JSC::JSLockHolder locker(state);
+    reject(*state, createDOMException(state, ec, message));
+}
+
</ins><span class="cx"> void rejectPromiseWithExceptionIfAny(JSC::ExecState&amp; state, JSDOMGlobalObject&amp; globalObject, JSPromiseDeferred&amp; promiseDeferred)
</span><span class="cx"> {
</span><span class="cx">     if (!state.hadException())
</span></span></pre></div>
<a id="trunkSourceWebCorebindingsjsJSDOMPromiseh"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/bindings/js/JSDOMPromise.h (201079 => 201080)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/bindings/js/JSDOMPromise.h        2016-05-18 14:52:20 UTC (rev 201079)
+++ trunk/Source/WebCore/bindings/js/JSDOMPromise.h        2016-05-18 15:22:37 UTC (rev 201080)
</span><span class="lines">@@ -118,7 +118,7 @@
</span><span class="cx">     template&lt;class RejectResultType&gt; typename std::enable_if&lt;PromiseResultInspector&lt;RejectResultType&gt;::passByConstRef, void&gt;::type
</span><span class="cx">     reject(const RejectResultType&amp; result) { rejectWithValue(result); }
</span><span class="cx"> 
</span><del>-    void reject(ExceptionCode);
</del><ins>+    void reject(ExceptionCode, const String&amp; = { });
</ins><span class="cx"> 
</span><span class="cx">     JSDOMGlobalObject&amp; globalObject() const;
</span><span class="cx">     JSC::JSValue promise() const;
</span><span class="lines">@@ -163,21 +163,12 @@
</span><span class="cx"> 
</span><span class="cx">     void resolve(typename PromiseResultInspector&lt;Value&gt;::Type value) { m_wrapper.resolve(value); }
</span><span class="cx"> 
</span><del>-    template&lt;typename ErrorType&gt; void reject(ErrorType&amp;&amp; error) { m_wrapper.reject(std::forward&lt;ErrorType&gt;(error)); }
</del><ins>+    template&lt;typename... ErrorType&gt; void reject(ErrorType&amp;&amp;... error) { m_wrapper.reject(std::forward&lt;ErrorType&gt;(error)...); }
</ins><span class="cx"> 
</span><span class="cx"> private:
</span><span class="cx">     DeferredWrapper m_wrapper;
</span><span class="cx"> };
</span><span class="cx"> 
</span><del>-inline void DeferredWrapper::reject(ExceptionCode ec)
-{
-    ASSERT(m_deferred);
-    ASSERT(m_globalObject);
-    JSC::ExecState* exec = m_globalObject-&gt;globalExec();
-    JSC::JSLockHolder locker(exec);
-    reject(*exec, createDOMException(exec, ec));
-}
-
</del><span class="cx"> template&lt;class ResolveResultType&gt;
</span><span class="cx"> inline void DeferredWrapper::resolveWithValue(ResolveResultType&amp;&amp; result)
</span><span class="cx"> {
</span></span></pre></div>
<a id="trunkSourceWebCorecssFontFaceSetcpp"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/css/FontFaceSet.cpp (201079 => 201080)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/css/FontFaceSet.cpp        2016-05-18 14:52:20 UTC (rev 201079)
+++ trunk/Source/WebCore/css/FontFaceSet.cpp        2016-05-18 15:22:37 UTC (rev 201080)
</span><span class="lines">@@ -142,7 +142,7 @@
</span><span class="cx"> 
</span><span class="cx">     for (auto&amp; face : matchingFaces) {
</span><span class="cx">         if (face.get().status() == CSSFontFace::Status::Failure) {
</span><del>-            promise.reject(DOMCoreException::create(ExceptionCodeDescription(NETWORK_ERR)));
</del><ins>+            promise.reject(NETWORK_ERR);
</ins><span class="cx">             return;
</span><span class="cx">         }
</span><span class="cx">     }
</span><span class="lines">@@ -222,7 +222,7 @@
</span><span class="cx">             }
</span><span class="cx">         } else {
</span><span class="cx">             ASSERT(newStatus == CSSFontFace::Status::Failure);
</span><del>-            pendingPromise-&gt;promise.reject(DOMCoreException::create(ExceptionCodeDescription(NETWORK_ERR)));
</del><ins>+            pendingPromise-&gt;promise.reject(NETWORK_ERR);
</ins><span class="cx">             pendingPromise-&gt;hasReachedTerminalState = true;
</span><span class="cx">         }
</span><span class="cx">     }
</span></span></pre></div>
<a id="trunkSourceWebCoredomDOMCoreExceptioncpp"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/dom/DOMCoreException.cpp (201079 => 201080)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/dom/DOMCoreException.cpp        2016-05-18 14:52:20 UTC (rev 201079)
+++ trunk/Source/WebCore/dom/DOMCoreException.cpp        2016-05-18 15:22:37 UTC (rev 201080)
</span><span class="lines">@@ -37,32 +37,41 @@
</span><span class="cx">     const char* const name;
</span><span class="cx">     const char* const description;
</span><span class="cx"> } coreExceptions[] = {
</span><del>-    { &quot;IndexSizeError&quot;, &quot;Index or size was negative, or greater than the allowed value.&quot; },
</del><ins>+    { &quot;IndexSizeError&quot;, &quot;The index is not in the allowed range.&quot; },
</ins><span class="cx">     { 0, 0 }, // DOMStringSizeError
</span><del>-    { &quot;HierarchyRequestError&quot;, &quot;A Node was inserted somewhere it doesn't belong.&quot; },
-    { &quot;WrongDocumentError&quot;, &quot;A Node was used in a different document than the one that created it (that doesn't support it).&quot; },
-    { &quot;InvalidCharacterError&quot;, &quot;An invalid or illegal character was specified, such as in an XML name.&quot; },
</del><ins>+    { &quot;HierarchyRequestError&quot;, &quot;The operation would yield an incorrect node tree.&quot; },
+    { &quot;WrongDocumentError&quot;, &quot;The object is in the wrong document.&quot; },
+    { &quot;InvalidCharacterError&quot;, &quot;The string contains invalid characters.&quot; },
</ins><span class="cx">     { 0, 0 }, // NoDataAllowedError
</span><del>-    { &quot;NoModificationAllowedError&quot;, &quot;An attempt was made to modify an object where modifications are not allowed.&quot; },
-    { &quot;NotFoundError&quot;, &quot;An attempt was made to reference a Node in a context where it does not exist.&quot; },
-    { &quot;NotSupportedError&quot;, &quot;The implementation did not support the requested type of object or operation.&quot; },
-    { &quot;InUseAttributeError&quot;, &quot;An attempt was made to add an attribute that is already in use elsewhere.&quot; },
-    { &quot;InvalidStateError&quot;, &quot;An attempt was made to use an object that is not, or is no longer, usable.&quot; },
-    { &quot;SyntaxError&quot;, &quot;An invalid or illegal string was specified.&quot; },
-    { &quot;InvalidModificationError&quot;, &quot;An attempt was made to modify the type of the underlying object.&quot; },
-    { &quot;NamespaceError&quot;, &quot;An attempt was made to create or change an object in a way which is incorrect with regard to namespaces.&quot; },
-    { &quot;InvalidAccessError&quot;, &quot;A parameter or an operation was not supported by the underlying object.&quot; },
</del><ins>+    { &quot;NoModificationAllowedError&quot;, &quot;The object can not be modified.&quot; },
+    { &quot;NotFoundError&quot;, &quot;The object can not be found here.&quot; },
+    { &quot;NotSupportedError&quot;, &quot;The operation is not supported.&quot; },
+    { &quot;InUseAttributeError&quot;, &quot;The attribute is in use.&quot; },
+    { &quot;InvalidStateError&quot;, &quot;The object is in an invalid state.&quot; },
+    { &quot;SyntaxError&quot;, &quot;The string did not match the expected pattern.&quot; },
+    { &quot;InvalidModificationError&quot;, &quot; The object can not be modified in this way.&quot; },
+    { &quot;NamespaceError&quot;, &quot;The operation is not allowed by Namespaces in XML.&quot; },
+    { &quot;InvalidAccessError&quot;, &quot;The object does not support the operation or argument.&quot; },
</ins><span class="cx">     { 0, 0 }, // ValidationError
</span><span class="cx">     { &quot;TypeMismatchError&quot;, &quot;The type of an object was incompatible with the expected type of the parameter associated to the object.&quot; },
</span><del>-    { &quot;SecurityError&quot;, &quot;An attempt was made to break through the security policy of the user agent.&quot; },
-    // FIXME: Couldn't find a description in the HTML/DOM specifications for NETWORK_ERR, ABORT_ERR, URL_MISMATCH_ERR, and QUOTA_EXCEEDED_ERR
-    { &quot;NetworkError&quot;, &quot;A network error occurred.&quot; },
-    { &quot;AbortError&quot;, &quot;The user aborted a request.&quot; },
-    { &quot;URLMismatchError&quot;, &quot;A worker global scope represented an absolute URL that is not equal to the resulting absolute URL.&quot; },
-    { &quot;QuotaExceededError&quot;, &quot;An attempt was made to add something to storage that exceeded the quota.&quot; },
-    { &quot;TimeoutError&quot;, &quot;A timeout occurred.&quot; },
-    { &quot;InvalidNodeTypeError&quot;, &quot;The supplied node is invalid or has an invalid ancestor for this operation.&quot; },
-    { &quot;DataCloneError&quot;, &quot;An object could not be cloned.&quot; }
</del><ins>+    { &quot;SecurityError&quot;, &quot;The operation is insecure.&quot; },
+    { &quot;NetworkError&quot;, &quot; A network error occurred.&quot; },
+    { &quot;AbortError&quot;, &quot;The operation was aborted.&quot; },
+    { &quot;URLMismatchError&quot;, &quot;The given URL does not match another URL.&quot; },
+    { &quot;QuotaExceededError&quot;, &quot;The quota has been exceeded.&quot; },
+    { &quot;TimeoutError&quot;, &quot;The operation timed out.&quot; },
+    { &quot;InvalidNodeTypeError&quot;, &quot;The supplied node is incorrect or has an incorrect ancestor for this operation.&quot; },
+    { &quot;DataCloneError&quot;, &quot;The object can not be cloned.&quot; },
+    { &quot;EncodingError&quot;, &quot;The encoding operation (either encoded or decoding) failed.&quot; },
+    { &quot;NotReadableError&quot;, &quot;The I/O read operation failed.&quot; },
+    { &quot;UnknownError&quot;, &quot;The operation failed for an unknown transient reason (e.g. out of memory).&quot; },
+    { &quot;ConstraintError&quot;, &quot;A mutation operation in a transaction failed because a constraint was not satisfied.&quot; },
+    { &quot;DataError&quot;, &quot;Provided data is inadequate.&quot; },
+    { &quot;TransactionInactiveError&quot;, &quot;A request was placed against a transaction which is currently not active, or which is finished.&quot; },
+    { &quot;ReadOnlyError&quot;, &quot;The mutating operation was attempted in a \&quot;readonly\&quot; transaction.&quot; },
+    { &quot;VersionError&quot;, &quot;An attempt was made to open a database using a lower version than the existing version.&quot; },
+    { &quot;OperationError&quot;, &quot;The operation failed for an operation-specific reason.&quot; },
+    { &quot;NotAllowedError&quot;, &quot;The request is not allowed by the user agent or the platform in the current context, possibly because the user denied permission.&quot; }
</ins><span class="cx"> };
</span><span class="cx"> 
</span><span class="cx"> bool DOMCoreException::initializeDescription(ExceptionCode ec, ExceptionCodeDescription* description)
</span></span></pre></div>
<a id="trunkSourceWebCoredomExceptionCodeh"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/dom/ExceptionCode.h (201079 => 201080)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/dom/ExceptionCode.h        2016-05-18 14:52:20 UTC (rev 201079)
+++ trunk/Source/WebCore/dom/ExceptionCode.h        2016-05-18 15:22:37 UTC (rev 201080)
</span><span class="lines">@@ -64,6 +64,18 @@
</span><span class="cx">     INVALID_NODE_TYPE_ERR = 24,
</span><span class="cx">     DATA_CLONE_ERR = 25,
</span><span class="cx"> 
</span><ins>+    // Others introduced in https://heycam.github.io/webidl/#idl-exceptions
+    EncodingError,
+    NotReadableError,
+    UnknownError,
+    ConstraintError,
+    DataError,
+    TransactionInactiveError,
+    ReadonlyError,
+    VersionError,
+    OperationError,
+    NotAllowedError,
+
</ins><span class="cx">     // WebIDL exception types, handled by the binding layer.
</span><span class="cx">     // FIXME: Add GeneralError, EvalError, etc. when implemented in the bindings.
</span><span class="cx">     TypeError = 105,
</span></span></pre></div>
<a id="trunkSourceWebCorehtmlHTMLMediaElementcpp"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/html/HTMLMediaElement.cpp (201079 => 201080)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/html/HTMLMediaElement.cpp        2016-05-18 14:52:20 UTC (rev 201079)
+++ trunk/Source/WebCore/html/HTMLMediaElement.cpp        2016-05-18 15:22:37 UTC (rev 201080)
</span><span class="lines">@@ -3028,12 +3028,12 @@
</span><span class="cx">     LOG(Media, &quot;HTMLMediaElement::play(%p)&quot;, this);
</span><span class="cx"> 
</span><span class="cx">     if (!m_mediaSession-&gt;playbackPermitted(*this)) {
</span><del>-        promise.reject(DOMError::create(&quot;NotAllowedError&quot;, &quot;The request is not allowed by the user agent or the platform in the current context.&quot;));
</del><ins>+        promise.reject(NotAllowedError);
</ins><span class="cx">         return;
</span><span class="cx">     }
</span><span class="cx"> 
</span><span class="cx">     if (m_error &amp;&amp; m_error-&gt;code() == MediaError::MEDIA_ERR_SRC_NOT_SUPPORTED) {
</span><del>-        promise.reject(DOMError::create(&quot;NotSupportedError&quot;, &quot;The operation is not supported..&quot;));
</del><ins>+        promise.reject(NOT_SUPPORTED_ERR, &quot;The operation is not supported.&quot;);
</ins><span class="cx">         return;
</span><span class="cx">     }
</span><span class="cx"> 
</span><span class="lines">@@ -3041,7 +3041,7 @@
</span><span class="cx">         removeBehaviorsRestrictionsAfterFirstUserGesture();
</span><span class="cx"> 
</span><span class="cx">     if (!playInternal())
</span><del>-        promise.reject(DOMError::create(&quot;NotAllowedError&quot;, &quot;The request is not allowed by the user agent or the platform in the current context.&quot;));
</del><ins>+        promise.reject(NotAllowedError);
</ins><span class="cx"> 
</span><span class="cx">     m_pendingPlayPromises.append(WTFMove(promise));
</span><span class="cx"> }
</span></span></pre>
</div>
</div>

</body>
</html>