Skip to content
Permalink
Browse files
Update DOMException name: TimeoutError
https://bugs.webkit.org/show_bug.cgi?id=102513

Reviewed by Kentaro Hara.

Patch 23 of 25 to update DOMException name to match the spec and Firefox.

No code uses DOMException TimeoutError. We do use TIMEOUT_ERR for XMLHttpRequestException. See bug 102506.

* dom/DOMCoreException.cpp:


Canonical link: https://commits.webkit.org/120844@main
git-svn-id: https://svn.webkit.org/repository/webkit/trunk@135169 268f45cc-cd09-0410-ab3c-d52691b4dbfc
  • Loading branch information
arv committed Nov 19, 2012
1 parent be72cdd commit 2023e9a6040702388b3baac1f8bbbd9363f5661f
Showing with 15 additions and 2 deletions.
  1. +1 −1 LayoutTests/http/tests/xmlhttprequest/timeout/xmlhttprequest-timeout.js
  2. +13 −0 Source/WebCore/ChangeLog
  3. +1 −1 Source/WebCore/dom/DOMCoreException.cpp
@@ -109,7 +109,7 @@ RequestTracker.prototype = {
}
catch (e) {
// Synchronous case in workers.
ok(!this.async && this.timeLimit < 3000 && e.name == "TIMEOUT_ERR", "Unexpected error: " + e);
ok(!this.async && this.timeLimit < 3000 && e.name == "TimeoutError", "Unexpected error: " + e);
TestCounter.testComplete();
}
},
@@ -1,3 +1,16 @@
2012-11-19 Erik Arvidsson <arv@chromium.org>

Update DOMException name: TimeoutError
https://bugs.webkit.org/show_bug.cgi?id=102513

Reviewed by Kentaro Hara.

Patch 23 of 25 to update DOMException name to match the spec and Firefox.

No code uses DOMException TimeoutError. We do use TIMEOUT_ERR for XMLHttpRequestException. See bug 102506.

* dom/DOMCoreException.cpp:

2012-11-19 Erik Arvidsson <arv@chromium.org>

Update DOMException name: DataCloneError
@@ -58,7 +58,7 @@ static struct CoreException {
{ "AbortError", "The user aborted a request." },
{ "URLMismatchError", "A worker global scope represented an absolute URL that is not equal to the resulting absolute URL." },
{ "QuotaExceededError", "An attempt was made to add something to storage that exceeded the quota." },
{ "TIMEOUT_ERR", "A timeout occurred." },
{ "TimeoutError", "A timeout occurred." },
{ "INVALID_NODE_TYPE_ERR", "The supplied node is invalid or has an invalid ancestor for this operation." },
{ "DataCloneError", "An object could not be cloned." }
};

0 comments on commit 2023e9a

Please sign in to comment.