Changeset 135169 in webkit


Ignore:
Timestamp:
Nov 19, 2012 9:36:40 AM (11 years ago)
Author:
arv@chromium.org
Message:

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:
Location:
trunk
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/LayoutTests/http/tests/xmlhttprequest/timeout/xmlhttprequest-timeout.js

    r132252 r135169  
    110110    catch (e) {
    111111      // Synchronous case in workers.
    112       ok(!this.async && this.timeLimit < 3000 && e.name == "TIMEOUT_ERR", "Unexpected error: " + e);
     112      ok(!this.async && this.timeLimit < 3000 && e.name == "TimeoutError", "Unexpected error: " + e);
    113113      TestCounter.testComplete();
    114114    }
  • trunk/Source/WebCore/ChangeLog

    r135168 r135169  
     12012-11-19  Erik Arvidsson  <arv@chromium.org>
     2
     3        Update DOMException name: TimeoutError
     4        https://bugs.webkit.org/show_bug.cgi?id=102513
     5
     6        Reviewed by Kentaro Hara.
     7
     8        Patch 23 of 25 to update DOMException name to match the spec and Firefox.
     9
     10        No code uses DOMException TimeoutError. We do use TIMEOUT_ERR for XMLHttpRequestException. See bug 102506.
     11
     12        * dom/DOMCoreException.cpp:
     13
    1142012-11-19  Erik Arvidsson  <arv@chromium.org>
    215
  • trunk/Source/WebCore/dom/DOMCoreException.cpp

    r135168 r135169  
    5959    { "URLMismatchError", "A worker global scope represented an absolute URL that is not equal to the resulting absolute URL." },
    6060    { "QuotaExceededError", "An attempt was made to add something to storage that exceeded the quota." },
    61     { "TIMEOUT_ERR", "A timeout occurred." },
     61    { "TimeoutError", "A timeout occurred." },
    6262    { "INVALID_NODE_TYPE_ERR", "The supplied node is invalid or has an invalid ancestor for this operation." },
    6363    { "DataCloneError", "An object could not be cloned." }
Note: See TracChangeset for help on using the changeset viewer.