Changeset 195588 in webkit
- Timestamp:
- Jan 26, 2016 8:06:32 AM (8 years ago)
- Location:
- trunk
- Files:
-
- 3 deleted
- 54 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/LayoutTests/ChangeLog
r195586 r195588 1 2016-01-26 Daniel Bates <dabates@apple.com> 2 3 Remove XMLHttpRequestException 4 https://bugs.webkit.org/show_bug.cgi?id=102698 5 <rdar://problem/24338476> 6 7 Reviewed by Chris Dumez. 8 9 Update test result now that we throw DOMException.{ABORT, NETWORK, TIMEOUT}Error instead of XMLHttpRequestException.{ABORT, NETWORK, TIMEOUT}_ERR. 10 11 * fast/dom/Window/resources/window-properties.js: 12 * fast/dom/Window/window-lookup-precedence-expected.txt: 13 * fast/files/apply-blob-url-to-xhr-expected.txt: 14 * fast/files/workers/worker-apply-blob-url-to-xhr-expected.txt: 15 * http/tests/appcache/non-html.xhtml: 16 * http/tests/appcache/simple.html: 17 * http/tests/contentextensions/sync-xhr-blocked-expected.txt: 18 * http/tests/local/fileapi/send-sliced-dragged-file-expected.txt: 19 * http/tests/workers/worker-importScripts-expected.txt: 20 * http/tests/xmlhttprequest/XMLHttpRequestException-expected.txt: 21 * http/tests/xmlhttprequest/XMLHttpRequestException.html: 22 * http/tests/xmlhttprequest/access-control-and-redirects-expected.txt: 23 * http/tests/xmlhttprequest/access-control-basic-denied-expected.txt: 24 * http/tests/xmlhttprequest/access-control-basic-get-fail-non-simple-expected.txt: 25 * http/tests/xmlhttprequest/access-control-basic-non-simple-deny-cached-expected.txt: 26 * http/tests/xmlhttprequest/access-control-basic-post-fail-non-simple-content-type-expected.txt: 27 * http/tests/xmlhttprequest/access-control-sandboxed-iframe-denied-expected.txt: 28 * http/tests/xmlhttprequest/access-control-sandboxed-iframe-denied-without-wildcard-expected.txt: 29 * http/tests/xmlhttprequest/connection-error-sync-expected.txt: 30 * http/tests/xmlhttprequest/cross-origin-no-authorization-expected.txt: 31 * http/tests/xmlhttprequest/origin-exact-matching-expected.txt: 32 * http/tests/xmlhttprequest/origin-whitelisting-https-expected.txt: 33 * http/tests/xmlhttprequest/origin-whitelisting-ip-addresses-with-subdomains-expected.txt: 34 * http/tests/xmlhttprequest/origin-whitelisting-removal-expected.txt: 35 * http/tests/xmlhttprequest/workers/access-control-basic-get-fail-non-simple-expected.txt: 36 * http/tests/xmlhttprequest/xmlhttprequest-sync-no-progress-events-expected.txt: 37 * http/tests/xmlhttprequest/xmlhttprequest-unsafe-redirect-expected.txt: 38 * platform/efl/js/dom/global-constructors-attributes-expected.txt: 39 * platform/gtk/fast/dom/Window/window-lookup-precedence-expected.txt: 40 * platform/gtk/js/dom/global-constructors-attributes-expected.txt: 41 * platform/mac-mavericks/js/dom/global-constructors-attributes-expected.txt: 42 * platform/mac-yosemite/js/dom/global-constructors-attributes-expected.txt: 43 * platform/mac/fast/dom/Window/window-lookup-precedence-expected.txt: 44 * platform/mac/js/dom/global-constructors-attributes-expected.txt: 45 * platform/win/TestExpectations: 46 * platform/win/js/dom/global-constructors-attributes-expected.txt: 47 1 48 2016-01-26 Mario Sanchez Prada <mario@endlessm.com> 2 49 -
trunk/LayoutTests/fast/dom/Window/resources/window-properties.js
r191423 r195588 149 149 ["XMLDocument", "object"], 150 150 ["XMLHttpRequest", "object"], 151 ["XMLHttpRequestException", "object"],152 151 ["XMLSerializer", "object"], 153 152 ["XPathEvaluator", "object"], -
trunk/LayoutTests/fast/dom/Window/window-lookup-precedence-expected.txt
r191423 r195588 301 301 PASS win['XMLHttpRequest'] == '[object XMLHttpRequestConstructor]' is true 302 302 PASS win['XMLHttpRequest'] == '[object XMLHttpRequestConstructor]' is true 303 PASS win['XMLHttpRequestException'] == '[object XMLHttpRequestExceptionConstructor]' is true304 PASS win['XMLHttpRequestException'] == '[object XMLHttpRequestExceptionConstructor]' is true305 303 PASS win['XMLSerializer'] == '[object XMLSerializerConstructor]' is true 306 304 PASS win['XMLSerializer'] == '[object XMLSerializerConstructor]' is true -
trunk/LayoutTests/fast/files/apply-blob-url-to-xhr-expected.txt
r66690 r195588 4 4 Response: Hello 5 5 Test that XMLHttpRequest POST fails. 6 Received exception 1 01: NETWORK_ERR6 Received exception 19: NetworkError 7 7 Test that XMLHttpRequest GET fails after the blob URL is revoked. 8 8 Status: 404 -
trunk/LayoutTests/fast/files/workers/worker-apply-blob-url-to-xhr-expected.txt
r66690 r195588 4 4 Response: Hello 5 5 Test that XMLHttpRequest POST fails. 6 Received exception 1 01: NETWORK_ERR6 Received exception 19: NetworkError 7 7 Test that XMLHttpRequest GET fails after the blob URL is revoked. 8 8 Status: 404 -
trunk/LayoutTests/http/tests/appcache/non-html.xhtml
r175841 r195588 47 47 req.send(); 48 48 } catch (e) { 49 if (e.code == XMLHttpRequestException.NETWORK_ERR)49 if (e.code == DOMException.NETWORK_ERR) 50 50 hadError = true; 51 51 } -
trunk/LayoutTests/http/tests/appcache/simple.html
r120167 r195588 16 16 req.send(); 17 17 } catch (e) { 18 if (e.code == XMLHttpRequestException.NETWORK_ERR)18 if (e.code == DOMException.NETWORK_ERR) 19 19 hadError = true; 20 20 } -
trunk/LayoutTests/http/tests/contentextensions/sync-xhr-blocked-expected.txt
r186228 r195588 3 3 Synchronous status: 0, readyState:1, responseText: 4 4 Synchronous status: 0, readyState:4, responseText: 5 Synchronous error: Error: N ETWORK_ERR: XMLHttpRequest Exception 1015 Synchronous error: Error: NetworkError: DOM Exception 19 6 6 -
trunk/LayoutTests/http/tests/local/fileapi/send-sliced-dragged-file-expected.txt
r72340 r195588 40 40 PASS subfile.type is "" 41 41 PASS Expected response data received: OK 42 PASS Expected exception thrown: Error: N ETWORK_ERR: XMLHttpRequest Exception 10142 PASS Expected exception thrown: Error: NetworkError: DOM Exception 19 43 43 PASS successfullyParsed is true 44 44 -
trunk/LayoutTests/http/tests/workers/worker-importScripts-expected.txt
r158014 r195588 25 25 PASS: all resources executed. 26 26 Loaded resource 1 27 PASS: Threw Error: N ETWORK_ERR: XMLHttpRequest Exception 101when load failed27 PASS: Threw Error: NetworkError: DOM Exception 19 when load failed 28 28 PASS: some resources were loaded despite the network error 29 29 Loaded resource 1 -
trunk/LayoutTests/http/tests/xmlhttprequest/XMLHttpRequestException-expected.txt
r29073 r195588 1 Tests the properties of the XMLHttpRequestException object.1 Tests the properties of the exceptions related to XMLHttpRequest. 2 2 3 PASS e.toString() is "Error: N ETWORK_ERR: XMLHttpRequest Exception 101"4 PASS Object.prototype.toString.call(e) is "[object XMLHttpRequestException]"5 FAIL Object.prototype.toString.call(e.__proto__) is not "[object XMLHttpRequestException]". Was "[object XMLHttpRequestExceptionPrototype]"6 PASS e.constructor.toString() is "[object XMLHttpRequestExceptionConstructor]"7 PASS e.constructor is window. XMLHttpRequestException3 PASS e.toString() is "Error: NetworkError: DOM Exception 19" 4 PASS Object.prototype.toString.call(e) is "[object DOMException]" 5 FAIL Object.prototype.toString.call(e.__proto__) is not "[object DOMException]". Was "[object DOMExceptionPrototype]" 6 PASS e.constructor.toString() is "[object DOMExceptionConstructor]" 7 PASS e.constructor is window.DOMException 8 8 PASS e.NETWORK_ERR is e.constructor.NETWORK_ERR 9 PASS e.NETWORK_ERR is 1 019 PASS e.NETWORK_ERR is 19 10 10 -
trunk/LayoutTests/http/tests/xmlhttprequest/XMLHttpRequestException.html
r120167 r195588 1 1 <html> 2 2 <body> 3 <p>Tests the properties of the XMLHttpRequestException object.</p>3 <p>Tests the properties of the exceptions related to XMLHttpRequest.</p> 4 4 <pre id="console"></pre> 5 5 <script> … … 44 44 } 45 45 46 shouldBeEqualToString("e.toString()", "Error: N ETWORK_ERR: XMLHttpRequest Exception 101");47 shouldBeEqualToString("Object.prototype.toString.call(e)", "[object XMLHttpRequestException]");48 shouldBeEqualToString("Object.prototype.toString.call(e.__proto__)", "[object XMLHttpRequestException]");49 shouldBeEqualToString("e.constructor.toString()", "[object XMLHttpRequestExceptionConstructor]");50 shouldBe("e.constructor", "window. XMLHttpRequestException");46 shouldBeEqualToString("e.toString()", "Error: NetworkError: DOM Exception 19"); 47 shouldBeEqualToString("Object.prototype.toString.call(e)", "[object DOMException]"); 48 shouldBeEqualToString("Object.prototype.toString.call(e.__proto__)", "[object DOMException]"); 49 shouldBeEqualToString("e.constructor.toString()", "[object DOMExceptionConstructor]"); 50 shouldBe("e.constructor", "window.DOMException"); 51 51 shouldBe("e.NETWORK_ERR", "e.constructor.NETWORK_ERR"); 52 shouldBe("e.NETWORK_ERR", "1 01");52 shouldBe("e.NETWORK_ERR", "19"); 53 53 </script> 54 54 </body> -
trunk/LayoutTests/http/tests/xmlhttprequest/access-control-and-redirects-expected.txt
r195010 r195588 5 5 Testing /resources/redirect.php?url=http://localhost:8000/xmlhttprequest/resources/access-control-basic-allow.cgi (sync) 6 6 Expecting success: false 7 PASS: Error: N ETWORK_ERR: XMLHttpRequest Exception 1017 PASS: Error: NetworkError: DOM Exception 19 8 8 Testing /resources/redirect.php?url=http://localhost:8000/xmlhttprequest/resources/access-control-basic-allow.cgi(async) 9 9 Expecting success: true … … 12 12 Testing http://localhost:8000/resources/redirect.php?url=http://127.0.0.1:8000/xmlhttprequest/resources/access-control-basic-allow.cgi (sync) 13 13 Expecting success: false 14 PASS: Error: N ETWORK_ERR: XMLHttpRequest Exception 10114 PASS: Error: NetworkError: DOM Exception 19 15 15 Testing http://localhost:8000/resources/redirect.php?url=http://127.0.0.1:8000/xmlhttprequest/resources/access-control-basic-allow.cgi(async) 16 16 Expecting success: false … … 18 18 Testing http://localhost:8000/resources/redirect.php?url=http://localhost:8000/xmlhttprequest/resources/access-control-basic-allow.cgi (sync) 19 19 Expecting success: false 20 PASS: Error: N ETWORK_ERR: XMLHttpRequest Exception 10120 PASS: Error: NetworkError: DOM Exception 19 21 21 Testing http://localhost:8000/resources/redirect.php?url=http://localhost:8000/xmlhttprequest/resources/access-control-basic-allow.cgi(async) 22 22 Expecting success: false -
trunk/LayoutTests/http/tests/xmlhttprequest/access-control-basic-denied-expected.txt
r178527 r195588 1 1 CONSOLE MESSAGE: line 24: XMLHttpRequest cannot load http://localhost:8000/xmlhttprequest/resources/access-control-basic-denied.cgi. Origin http://127.0.0.1:8000 is not allowed by Access-Control-Allow-Origin. 2 PASS: Exception thrown. Cross-domain access was denied in 'send'. [N ETWORK_ERR: XMLHttpRequest Exception 101].2 PASS: Exception thrown. Cross-domain access was denied in 'send'. [NetworkError: DOM Exception 19]. 3 3 -
trunk/LayoutTests/http/tests/xmlhttprequest/access-control-basic-get-fail-non-simple-expected.txt
r178527 r195588 1 1 CONSOLE MESSAGE: line 28: XMLHttpRequest cannot load http://localhost:8000/xmlhttprequest/resources/access-control-basic-get-fail-non-simple.cgi. Origin http://127.0.0.1:8000 is not allowed by Access-Control-Allow-Origin. 2 PASS: Exception thrown. Cross-domain access was denied in 'send'. [N ETWORK_ERR: XMLHttpRequest Exception 101].2 PASS: Exception thrown. Cross-domain access was denied in 'send'. [NetworkError: DOM Exception 19]. 3 3 -
trunk/LayoutTests/http/tests/xmlhttprequest/access-control-basic-non-simple-deny-cached-expected.txt
r178527 r195588 1 1 CONSOLE MESSAGE: line 42: XMLHttpRequest cannot load http://localhost:8000/xmlhttprequest/resources/access-control-basic-non-get-allow.cgi. Request header field Content-Type is not allowed by Access-Control-Allow-Headers. 2 PASS: Exception thrown. Cross-domain access is not allowed in 'send'. [N ETWORK_ERR: XMLHttpRequest Exception 101].2 PASS: Exception thrown. Cross-domain access is not allowed in 'send'. [NetworkError: DOM Exception 19]. 3 3 -
trunk/LayoutTests/http/tests/xmlhttprequest/access-control-basic-post-fail-non-simple-content-type-expected.txt
r178527 r195588 1 1 CONSOLE MESSAGE: line 28: XMLHttpRequest cannot load http://localhost:8000/xmlhttprequest/resources/access-control-basic-options-not-supported.cgi. Origin http://127.0.0.1:8000 is not allowed by Access-Control-Allow-Origin. 2 PASS: Exception thrown. Cross-domain access was denied in 'send'. [N ETWORK_ERR: XMLHttpRequest Exception 101].2 PASS: Exception thrown. Cross-domain access was denied in 'send'. [NetworkError: DOM Exception 19]. 3 3 -
trunk/LayoutTests/http/tests/xmlhttprequest/access-control-sandboxed-iframe-denied-expected.txt
r195100 r195588 7 7 Frame: '<!--framePath //<!--frame0-->-->' 8 8 -------- 9 PASS: Exception thrown. Sandboxed iframe XHR access was denied in 'send'. [N ETWORK_ERR: XMLHttpRequest Exception 101].9 PASS: Exception thrown. Sandboxed iframe XHR access was denied in 'send'. [NetworkError: DOM Exception 19]. -
trunk/LayoutTests/http/tests/xmlhttprequest/access-control-sandboxed-iframe-denied-without-wildcard-expected.txt
r195100 r195588 9 9 Frame: '<!--framePath //<!--frame0-->-->' 10 10 -------- 11 PASS: Exception thrown. Sandboxed iframe XHR access was denied in 'send'. [N ETWORK_ERR: XMLHttpRequest Exception 101].11 PASS: Exception thrown. Sandboxed iframe XHR access was denied in 'send'. [NetworkError: DOM Exception 19]. -
trunk/LayoutTests/http/tests/xmlhttprequest/connection-error-sync-expected.txt
r29058 r195588 1 1 Test the behavior of a sync XMLHttpRequest that encounters an infinite redirection loop. 2 2 3 Exception N ETWORK_ERR; code=101; number=undefined (0); message='NETWORK_ERR: XMLHttpRequest Exception 101'3 Exception NetworkError; code=19; number=undefined (0); message='NetworkError: DOM Exception 19' -
trunk/LayoutTests/http/tests/xmlhttprequest/cross-origin-no-authorization-expected.txt
r178527 r195588 11 11 PASS: 401 Authorization required 12 12 Cross-origin XMLHttpRequest (sync), testing authorization that's not allowed by the server (withCredentials is true, but access control headers are not set). 13 PASS: Got an exception. Error: N ETWORK_ERR: XMLHttpRequest Exception 10113 PASS: Got an exception. Error: NetworkError: DOM Exception 19 14 14 Cross-origin XMLHttpRequest (sync), testing cookies. 15 15 PASS -
trunk/LayoutTests/http/tests/xmlhttprequest/origin-exact-matching-expected.txt
r178527 r195588 59 59 PASS xhr.send(null) is undefined. 60 60 Should disallow origin: 'http://www2.localhost:8000' 61 PASS xhr.send(null) threw exception Error: N ETWORK_ERR: XMLHttpRequest Exception 101.61 PASS xhr.send(null) threw exception Error: NetworkError: DOM Exception 19. 62 62 Should disallow origin: '//localhost:8000' 63 PASS xhr.send(null) threw exception Error: N ETWORK_ERR: XMLHttpRequest Exception 101.63 PASS xhr.send(null) threw exception Error: NetworkError: DOM Exception 19. 64 64 Should disallow origin: '://localhost:8000' 65 PASS xhr.send(null) threw exception Error: N ETWORK_ERR: XMLHttpRequest Exception 101.65 PASS xhr.send(null) threw exception Error: NetworkError: DOM Exception 19. 66 66 Should disallow origin: 'ftp://localhost:8000' 67 PASS xhr.send(null) threw exception Error: N ETWORK_ERR: XMLHttpRequest Exception 101.67 PASS xhr.send(null) threw exception Error: NetworkError: DOM Exception 19. 68 68 Should disallow origin: 'http:://localhost:8000' 69 PASS xhr.send(null) threw exception Error: N ETWORK_ERR: XMLHttpRequest Exception 101.69 PASS xhr.send(null) threw exception Error: NetworkError: DOM Exception 19. 70 70 Should disallow origin: 'http:/localhost:8000' 71 PASS xhr.send(null) threw exception Error: N ETWORK_ERR: XMLHttpRequest Exception 101.71 PASS xhr.send(null) threw exception Error: NetworkError: DOM Exception 19. 72 72 Should disallow origin: 'http:localhost:8000' 73 PASS xhr.send(null) threw exception Error: N ETWORK_ERR: XMLHttpRequest Exception 101.73 PASS xhr.send(null) threw exception Error: NetworkError: DOM Exception 19. 74 74 Should disallow origin: 'localhost:8000' 75 PASS xhr.send(null) threw exception Error: N ETWORK_ERR: XMLHttpRequest Exception 101.75 PASS xhr.send(null) threw exception Error: NetworkError: DOM Exception 19. 76 76 Should disallow origin: 'http://localhost:8000?' 77 PASS xhr.send(null) threw exception Error: N ETWORK_ERR: XMLHttpRequest Exception 101.77 PASS xhr.send(null) threw exception Error: NetworkError: DOM Exception 19. 78 78 Should disallow origin: 'http://localhost:8000/' 79 PASS xhr.send(null) threw exception Error: N ETWORK_ERR: XMLHttpRequest Exception 101.79 PASS xhr.send(null) threw exception Error: NetworkError: DOM Exception 19. 80 80 Should disallow origin: 'http://localhost:8000 /' 81 PASS xhr.send(null) threw exception Error: N ETWORK_ERR: XMLHttpRequest Exception 101.81 PASS xhr.send(null) threw exception Error: NetworkError: DOM Exception 19. 82 82 Should disallow origin: 'http://localhost:8000#' 83 PASS xhr.send(null) threw exception Error: N ETWORK_ERR: XMLHttpRequest Exception 101.83 PASS xhr.send(null) threw exception Error: NetworkError: DOM Exception 19. 84 84 Should disallow origin: 'http://localhost:8000%23' 85 PASS xhr.send(null) threw exception Error: N ETWORK_ERR: XMLHttpRequest Exception 101.85 PASS xhr.send(null) threw exception Error: NetworkError: DOM Exception 19. 86 86 Should disallow origin: 'http://localhost:8000:80' 87 PASS xhr.send(null) threw exception Error: N ETWORK_ERR: XMLHttpRequest Exception 101.87 PASS xhr.send(null) threw exception Error: NetworkError: DOM Exception 19. 88 88 Should disallow origin: 'http://localhost:8000, *' 89 PASS xhr.send(null) threw exception Error: N ETWORK_ERR: XMLHttpRequest Exception 101.89 PASS xhr.send(null) threw exception Error: NetworkError: DOM Exception 19. 90 90 Should disallow origin: 'HTTP://LOCALHOST:8000' 91 PASS xhr.send(null) threw exception Error: N ETWORK_ERR: XMLHttpRequest Exception 101.91 PASS xhr.send(null) threw exception Error: NetworkError: DOM Exception 19. 92 92 Should disallow origin: 'HTTP://localhost:8000' 93 PASS xhr.send(null) threw exception Error: N ETWORK_ERR: XMLHttpRequest Exception 101.93 PASS xhr.send(null) threw exception Error: NetworkError: DOM Exception 19. 94 94 Should disallow origin: '-' 95 PASS xhr.send(null) threw exception Error: N ETWORK_ERR: XMLHttpRequest Exception 101.95 PASS xhr.send(null) threw exception Error: NetworkError: DOM Exception 19. 96 96 Should disallow origin: '**' 97 PASS xhr.send(null) threw exception Error: N ETWORK_ERR: XMLHttpRequest Exception 101.97 PASS xhr.send(null) threw exception Error: NetworkError: DOM Exception 19. 98 98 Should disallow origin: '*' 99 PASS xhr.send(null) threw exception Error: N ETWORK_ERR: XMLHttpRequest Exception 101.99 PASS xhr.send(null) threw exception Error: NetworkError: DOM Exception 19. 100 100 Should disallow origin: ''*'' 101 PASS xhr.send(null) threw exception Error: N ETWORK_ERR: XMLHttpRequest Exception 101.101 PASS xhr.send(null) threw exception Error: NetworkError: DOM Exception 19. 102 102 Should disallow origin: '"*"' 103 PASS xhr.send(null) threw exception Error: N ETWORK_ERR: XMLHttpRequest Exception 101.103 PASS xhr.send(null) threw exception Error: NetworkError: DOM Exception 19. 104 104 Should disallow origin: '* *' 105 PASS xhr.send(null) threw exception Error: N ETWORK_ERR: XMLHttpRequest Exception 101.105 PASS xhr.send(null) threw exception Error: NetworkError: DOM Exception 19. 106 106 Should disallow origin: '*http://*' 107 PASS xhr.send(null) threw exception Error: N ETWORK_ERR: XMLHttpRequest Exception 101.107 PASS xhr.send(null) threw exception Error: NetworkError: DOM Exception 19. 108 108 Should disallow origin: '*http://localhost:8000' 109 PASS xhr.send(null) threw exception Error: N ETWORK_ERR: XMLHttpRequest Exception 101.109 PASS xhr.send(null) threw exception Error: NetworkError: DOM Exception 19. 110 110 Should disallow origin: '* http://localhost:8000' 111 PASS xhr.send(null) threw exception Error: N ETWORK_ERR: XMLHttpRequest Exception 101.111 PASS xhr.send(null) threw exception Error: NetworkError: DOM Exception 19. 112 112 Should disallow origin: '*, http://localhost:8000' 113 PASS xhr.send(null) threw exception Error: N ETWORK_ERR: XMLHttpRequest Exception 101.113 PASS xhr.send(null) threw exception Error: NetworkError: DOM Exception 19. 114 114 Should disallow origin: 'http://localhost:8000' 115 PASS xhr.send(null) threw exception Error: N ETWORK_ERR: XMLHttpRequest Exception 101.115 PASS xhr.send(null) threw exception Error: NetworkError: DOM Exception 19. 116 116 Should disallow origin: 'null http://localhost:8000' 117 PASS xhr.send(null) threw exception Error: N ETWORK_ERR: XMLHttpRequest Exception 101.117 PASS xhr.send(null) threw exception Error: NetworkError: DOM Exception 19. 118 118 Should disallow origin: 'http://example.net' 119 PASS xhr.send(null) threw exception Error: N ETWORK_ERR: XMLHttpRequest Exception 101.119 PASS xhr.send(null) threw exception Error: NetworkError: DOM Exception 19. 120 120 Should disallow origin: 'null' 121 PASS xhr.send(null) threw exception Error: N ETWORK_ERR: XMLHttpRequest Exception 101.121 PASS xhr.send(null) threw exception Error: NetworkError: DOM Exception 19. 122 122 Should disallow origin: '' 123 PASS xhr.send(null) threw exception Error: N ETWORK_ERR: XMLHttpRequest Exception 101.123 PASS xhr.send(null) threw exception Error: NetworkError: DOM Exception 19. 124 124 Should disallow origin: 'http://localhost:8000/xmlhttprequest/resources/origin-exact-matching-iframe.html' 125 PASS xhr.send(null) threw exception Error: N ETWORK_ERR: XMLHttpRequest Exception 101.125 PASS xhr.send(null) threw exception Error: NetworkError: DOM Exception 19. 126 126 Should disallow origin: 'http://localhost:8000/xmlhttprequest/resources/' 127 PASS xhr.send(null) threw exception Error: N ETWORK_ERR: XMLHttpRequest Exception 101.127 PASS xhr.send(null) threw exception Error: NetworkError: DOM Exception 19. 128 128 Should disallow origin: 'http://localhost:8000/xmlhttprequest/resources/origin-exact-matching-iframe.html' 129 PASS xhr.send(null) threw exception Error: N ETWORK_ERR: XMLHttpRequest Exception 101.129 PASS xhr.send(null) threw exception Error: NetworkError: DOM Exception 19. 130 130 PASS successfullyParsed is true 131 131 -
trunk/LayoutTests/http/tests/xmlhttprequest/origin-whitelisting-https-expected.txt
r178527 r195588 4 4 5 5 Testing: http://localhost:8000/xmlhttprequest/resources/get.txt (sync) 6 PASS: Error: N ETWORK_ERR: XMLHttpRequest Exception 1016 PASS: Error: NetworkError: DOM Exception 19 7 7 Testing: http://localhost:8000/xmlhttprequest/resources/get.txt (async) 8 8 PASS: 0 -
trunk/LayoutTests/http/tests/xmlhttprequest/origin-whitelisting-ip-addresses-with-subdomains-expected.txt
r178527 r195588 4 4 5 5 Testing: http://127.0.0.1:8000/xmlhttprequest/resources/get.txt (sync) 6 FAIL: Error: N ETWORK_ERR: XMLHttpRequest Exception 1016 FAIL: Error: NetworkError: DOM Exception 19 7 7 Testing: http://127.0.0.1:8000/xmlhttprequest/resources/get.txt (async) 8 8 FAIL: 0 -
trunk/LayoutTests/http/tests/xmlhttprequest/origin-whitelisting-removal-expected.txt
r178527 r195588 11 11 Testing: source origin: http://127.0.0.1:8000 destination origin: http:localhost 12 12 Loading: http://localhost:8000/xmlhttprequest/resources/get.txt (expecting NETWORK_ERR) 13 PASS: Error: N ETWORK_ERR: XMLHttpRequest Exception 10113 PASS: Error: NetworkError: DOM Exception 19 14 14 Loading: http://localhost:8000/xmlhttprequest/resources/get.txt (expecting PASS) 15 15 PASS: PASS 16 16 Loading: http://localhost:8000/xmlhttprequest/resources/get.txt (expecting NETWORK_ERR) 17 PASS: Error: N ETWORK_ERR: XMLHttpRequest Exception 10117 PASS: Error: NetworkError: DOM Exception 19 18 18 19 19 20 20 Testing: source origin: http://127.0.0.1:8000 destination origin: http:localhost allowing subdomains 21 21 Loading: http://localhost:8000/xmlhttprequest/resources/get.txt (expecting NETWORK_ERR) 22 PASS: Error: N ETWORK_ERR: XMLHttpRequest Exception 10122 PASS: Error: NetworkError: DOM Exception 19 23 23 Loading: http://localhost:8000/xmlhttprequest/resources/get.txt (expecting PASS) 24 24 PASS: PASS 25 25 Loading: http://localhost:8000/xmlhttprequest/resources/get.txt (expecting NETWORK_ERR) 26 PASS: Error: N ETWORK_ERR: XMLHttpRequest Exception 10126 PASS: Error: NetworkError: DOM Exception 19 27 27 28 28 29 29 Testing: source origin: http://127.0.0.1:8000 destination origin: hTtP:LoCaLhOsT allowing subdomains 30 30 Loading: http://localhost:8000/xmlhttprequest/resources/get.txt (expecting NETWORK_ERR) 31 PASS: Error: N ETWORK_ERR: XMLHttpRequest Exception 10131 PASS: Error: NetworkError: DOM Exception 19 32 32 Loading: http://localhost:8000/xmlhttprequest/resources/get.txt (expecting PASS) 33 33 PASS: PASS 34 34 Loading: http://localhost:8000/xmlhttprequest/resources/get.txt (expecting NETWORK_ERR) 35 PASS: Error: N ETWORK_ERR: XMLHttpRequest Exception 10135 PASS: Error: NetworkError: DOM Exception 19 36 36 37 37 38 38 Testing: source origin: http://127.0.0.1:8000 destination origin: http: allowing subdomains 39 39 Loading: http://localhost:8000/xmlhttprequest/resources/get.txt (expecting NETWORK_ERR) 40 PASS: Error: N ETWORK_ERR: XMLHttpRequest Exception 10140 PASS: Error: NetworkError: DOM Exception 19 41 41 Loading: http://localhost:8000/xmlhttprequest/resources/get.txt (expecting PASS) 42 42 PASS: PASS 43 43 Loading: http://localhost:8000/xmlhttprequest/resources/get.txt (expecting NETWORK_ERR) 44 PASS: Error: N ETWORK_ERR: XMLHttpRequest Exception 10144 PASS: Error: NetworkError: DOM Exception 19 45 45 46 46 -
trunk/LayoutTests/http/tests/xmlhttprequest/workers/access-control-basic-get-fail-non-simple-expected.txt
r104803 r195588 3 3 4 4 PASS: Cross-domain access allowed for simple get. 5 PASS: Exception thrown. Cross-domain access was denied in 'send'. [N ETWORK_ERR: XMLHttpRequest Exception 101].5 PASS: Exception thrown. Cross-domain access was denied in 'send'. [NetworkError: DOM Exception 19]. 6 6 DONE -
trunk/LayoutTests/http/tests/xmlhttprequest/xmlhttprequest-sync-no-progress-events-expected.txt
r178527 r195588 14 14 error 15 15 loadend 16 Error: N ETWORK_ERR: XMLHttpRequest Exception 10116 Error: NetworkError: DOM Exception 19 17 17 18 18 Step 3: Cross origin request, allowed -
trunk/LayoutTests/http/tests/xmlhttprequest/xmlhttprequest-unsafe-redirect-expected.txt
r195010 r195588 5 5 readyState change 4 6 6 Error event. 7 Exception: Error: N ETWORK_ERR: XMLHttpRequest Exception 1017 Exception: Error: NetworkError: DOM Exception 19 8 8 Async XHR started. 9 9 readyState change 1 -
trunk/LayoutTests/imported/w3c/ChangeLog
r195583 r195588 1 2016-01-26 Daniel Bates <dabates@apple.com> 2 3 Remove XMLHttpRequestException 4 https://bugs.webkit.org/show_bug.cgi?id=102698 5 <rdar://problem/24338476> 6 7 Reviewed by Chris Dumez. 8 9 Update test result now that we throw DOMException.{ABORT, NETWORK, TIMEOUT}Error instead of XMLHttpRequestException.{ABORT, NETWORK, TIMEOUT}_ERR. 10 11 * web-platform-tests/XMLHttpRequest/send-network-error-sync-events.sub-expected.txt: 12 * web-platform-tests/XMLHttpRequest/send-non-same-origin.sub-expected.txt: 13 * web-platform-tests/XMLHttpRequest/send-redirect-bogus-sync-expected.txt: 14 * web-platform-tests/XMLHttpRequest/send-redirect-infinite-sync-expected.txt: 15 * web-platform-tests/XMLHttpRequest/xmlhttprequest-network-error-sync-expected.txt: 16 1 17 2016-01-25 Youenn Fablet <youenn.fablet@crf.canon.fr> 2 18 -
trunk/LayoutTests/imported/w3c/web-platform-tests/XMLHttpRequest/send-network-error-sync-events.sub-expected.txt
r191546 r195588 1 1 CONSOLE MESSAGE: line 24: XMLHttpRequest cannot load http://nonexistent-origin.localhost}:8800. Cross origin requests are only supported for HTTP. 2 CONSOLE MESSAGE: line 32: XMLHttpRequest cannot load data:text/html;charset=utf-8;base64,PT0NUWVBFIGh0bWw%2BDQo8. Cross origin requests are only supported for HTTP. 2 3 3 FAIL XmlHttpRequest: The send() method: Throw a "throw an "NetworkError" exception when Network error happens (synchronous flag is set) assert_throws: function "function () 4 { 5 xhr.send("Test ..." threw object "Error: NETWORK_ERR: XMLHttpRequest Exception 101" that is not a DOMException NetworkError: property "code" is equal to 101, expected 19 4 PASS XmlHttpRequest: The send() method: Throw a "throw an "NetworkError" exception when Network error happens (synchronous flag is set) 6 5 -
trunk/LayoutTests/imported/w3c/web-platform-tests/XMLHttpRequest/send-non-same-origin.sub-expected.txt
r191546 r195588 5 5 Blocked access to external URL http://www2.localhost:8800/folder.txt 6 6 7 FAIL XMLHttpRequest: send() - non same-origin (mailto:test@example.org) assert_throws: function "function () { client.send() }" threw object "Error: NETWORK_ERR: XMLHttpRequest Exception 101" that is not a DOMException NetworkError: property "code" is equal to 101, expected 19 8 FAIL XMLHttpRequest: send() - non same-origin (tel:+31600000000) assert_throws: function "function () { client.send() }" threw object "Error: NETWORK_ERR: XMLHttpRequest Exception 101" that is not a DOMException NetworkError: property "code" is equal to 101, expected 19 9 FAIL XMLHttpRequest: send() - non same-origin (http://www2.localhost:8800/) assert_throws: function "function () { client.send() }" threw object "Error: A BORT_ERR: XMLHttpRequest Exception 102" that is not a DOMException NetworkError: property "code" is equal to 102, expected 1910 FAIL XMLHttpRequest: send() - non same-origin (javascript:alert('FAIL')) assert_throws: function "function () { client.send() }" threw object "Error: NETWORK_ERR: XMLHttpRequest Exception 101" that is not a DOMException NetworkError: property "code" is equal to 101, expected 19 11 FAIL XMLHttpRequest: send() - non same-origin (folder.txt) assert_throws: function "function () { client.send() }" threw object "Error: A BORT_ERR: XMLHttpRequest Exception 102" that is not a DOMException NetworkError: property "code" is equal to 102, expected 197 PASS XMLHttpRequest: send() - non same-origin (mailto:test@example.org) 8 PASS XMLHttpRequest: send() - non same-origin (tel:+31600000000) 9 FAIL XMLHttpRequest: send() - non same-origin (http://www2.localhost:8800/) assert_throws: function "function () { client.send() }" threw object "Error: AbortError: DOM Exception 20" that is not a DOMException NetworkError: property "code" is equal to 20, expected 19 10 PASS XMLHttpRequest: send() - non same-origin (javascript:alert('FAIL')) 11 FAIL XMLHttpRequest: send() - non same-origin (folder.txt) assert_throws: function "function () { client.send() }" threw object "Error: AbortError: DOM Exception 20" that is not a DOMException NetworkError: property "code" is equal to 20, expected 19 12 12 -
trunk/LayoutTests/imported/w3c/web-platform-tests/XMLHttpRequest/send-redirect-bogus-sync-expected.txt
r191546 r195588 1 1 2 FAIL XMLHttpRequest: send() - Redirects (bogus Location header; sync) (301: foobar://abcd) assert_throws: function "function () { client.send(null) }" threw object "Error: NETWORK_ERR: XMLHttpRequest Exception 101" that is not a DOMException NetworkError: property "code" is equal to 101, expected 19 3 FAIL XMLHttpRequest: send() - Redirects (bogus Location header; sync) (302: http://z) assert_throws: function "function () { client.send(null) }" threw object "Error: NETWORK_ERR: XMLHttpRequest Exception 101" that is not a DOMException NetworkError: property "code" is equal to 101, expected 19 4 FAIL XMLHttpRequest: send() - Redirects (bogus Location header; sync) (302: mailto:someone@example.org) assert_throws: function "function () { client.send(null) }" threw object "Error: NETWORK_ERR: XMLHttpRequest Exception 101" that is not a DOMException NetworkError: property "code" is equal to 101, expected 19 5 FAIL XMLHttpRequest: send() - Redirects (bogus Location header; sync) (303: http://z) assert_throws: function "function () { client.send(null) }" threw object "Error: NETWORK_ERR: XMLHttpRequest Exception 101" that is not a DOMException NetworkError: property "code" is equal to 101, expected 19 6 FAIL XMLHttpRequest: send() - Redirects (bogus Location header; sync) (303: tel:1234567890) assert_throws: function "function () { client.send(null) }" threw object "Error: NETWORK_ERR: XMLHttpRequest Exception 101" that is not a DOMException NetworkError: property "code" is equal to 101, expected 19 2 PASS XMLHttpRequest: send() - Redirects (bogus Location header; sync) (301: foobar://abcd) 3 PASS XMLHttpRequest: send() - Redirects (bogus Location header; sync) (302: http://z) 4 PASS XMLHttpRequest: send() - Redirects (bogus Location header; sync) (302: mailto:someone@example.org) 5 PASS XMLHttpRequest: send() - Redirects (bogus Location header; sync) (303: http://z) 6 PASS XMLHttpRequest: send() - Redirects (bogus Location header; sync) (303: tel:1234567890) 7 7 -
trunk/LayoutTests/imported/w3c/web-platform-tests/XMLHttpRequest/send-redirect-infinite-sync-expected.txt
r191546 r195588 1 1 2 FAIL XMLHttpRequest: send() - Redirects (infinite loop; sync) (301) assert_throws: function "function () { client.send(null) }" threw object "Error: NETWORK_ERR: XMLHttpRequest Exception 101" that is not a DOMException NetworkError: property "code" is equal to 101, expected 19 2 PASS XMLHttpRequest: send() - Redirects (infinite loop; sync) (301) 3 3 -
trunk/LayoutTests/imported/w3c/web-platform-tests/XMLHttpRequest/xmlhttprequest-network-error-sync-expected.txt
r191546 r195588 1 1 2 FAIL XMLHttpRequest: members during network errors (sync) assert_throws: send function "function () { client.send(null) }" threw object "Error: NETWORK_ERR: XMLHttpRequest Exception 101" that is not a DOMException NetworkError: property "code" is equal to 101, expected 19 2 PASS XMLHttpRequest: members during network errors (sync) 3 3 -
trunk/LayoutTests/platform/efl/js/dom/global-constructors-attributes-expected.txt
r195530 r195588 2079 2079 PASS Object.getOwnPropertyDescriptor(global, 'XMLHttpRequest').enumerable is false 2080 2080 PASS Object.getOwnPropertyDescriptor(global, 'XMLHttpRequest').configurable is true 2081 PASS Object.getOwnPropertyDescriptor(global, 'XMLHttpRequestException').value is XMLHttpRequestException2082 PASS Object.getOwnPropertyDescriptor(global, 'XMLHttpRequestException').hasOwnProperty('get') is false2083 PASS Object.getOwnPropertyDescriptor(global, 'XMLHttpRequestException').hasOwnProperty('set') is false2084 PASS Object.getOwnPropertyDescriptor(global, 'XMLHttpRequestException').enumerable is false2085 PASS Object.getOwnPropertyDescriptor(global, 'XMLHttpRequestException').configurable is true2086 2081 PASS Object.getOwnPropertyDescriptor(global, 'XMLHttpRequestProgressEvent').value is XMLHttpRequestProgressEvent 2087 2082 PASS Object.getOwnPropertyDescriptor(global, 'XMLHttpRequestProgressEvent').hasOwnProperty('get') is false -
trunk/LayoutTests/platform/gtk/fast/dom/Window/window-lookup-precedence-expected.txt
r194106 r195588 299 299 PASS win['XMLHttpRequest'] == '[object XMLHttpRequestConstructor]' is true 300 300 PASS win['XMLHttpRequest'] == '[object XMLHttpRequestConstructor]' is true 301 PASS win['XMLHttpRequestException'] == '[object XMLHttpRequestExceptionConstructor]' is true302 PASS win['XMLHttpRequestException'] == '[object XMLHttpRequestExceptionConstructor]' is true303 301 PASS win['XMLSerializer'] == '[object XMLSerializerConstructor]' is true 304 302 PASS win['XMLSerializer'] == '[object XMLSerializerConstructor]' is true -
trunk/LayoutTests/platform/gtk/js/dom/global-constructors-attributes-expected.txt
r195530 r195588 2034 2034 PASS Object.getOwnPropertyDescriptor(global, 'XMLHttpRequest').enumerable is false 2035 2035 PASS Object.getOwnPropertyDescriptor(global, 'XMLHttpRequest').configurable is true 2036 PASS Object.getOwnPropertyDescriptor(global, 'XMLHttpRequestException').value is XMLHttpRequestException2037 PASS Object.getOwnPropertyDescriptor(global, 'XMLHttpRequestException').hasOwnProperty('get') is false2038 PASS Object.getOwnPropertyDescriptor(global, 'XMLHttpRequestException').hasOwnProperty('set') is false2039 PASS Object.getOwnPropertyDescriptor(global, 'XMLHttpRequestException').enumerable is false2040 PASS Object.getOwnPropertyDescriptor(global, 'XMLHttpRequestException').configurable is true2041 2036 PASS Object.getOwnPropertyDescriptor(global, 'XMLHttpRequestProgressEvent').value is XMLHttpRequestProgressEvent 2042 2037 PASS Object.getOwnPropertyDescriptor(global, 'XMLHttpRequestProgressEvent').hasOwnProperty('get') is false -
trunk/LayoutTests/platform/mac-mavericks/js/dom/global-constructors-attributes-expected.txt
r195530 r195588 2074 2074 PASS Object.getOwnPropertyDescriptor(global, 'XMLHttpRequest').enumerable is false 2075 2075 PASS Object.getOwnPropertyDescriptor(global, 'XMLHttpRequest').configurable is true 2076 PASS Object.getOwnPropertyDescriptor(global, 'XMLHttpRequestException').value is XMLHttpRequestException2077 PASS Object.getOwnPropertyDescriptor(global, 'XMLHttpRequestException').hasOwnProperty('get') is false2078 PASS Object.getOwnPropertyDescriptor(global, 'XMLHttpRequestException').hasOwnProperty('set') is false2079 PASS Object.getOwnPropertyDescriptor(global, 'XMLHttpRequestException').enumerable is false2080 PASS Object.getOwnPropertyDescriptor(global, 'XMLHttpRequestException').configurable is true2081 2076 PASS Object.getOwnPropertyDescriptor(global, 'XMLHttpRequestProgressEvent').value is XMLHttpRequestProgressEvent 2082 2077 PASS Object.getOwnPropertyDescriptor(global, 'XMLHttpRequestProgressEvent').hasOwnProperty('get') is false -
trunk/LayoutTests/platform/mac-yosemite/js/dom/global-constructors-attributes-expected.txt
r195530 r195588 2099 2099 PASS Object.getOwnPropertyDescriptor(global, 'XMLHttpRequest').enumerable is false 2100 2100 PASS Object.getOwnPropertyDescriptor(global, 'XMLHttpRequest').configurable is true 2101 PASS Object.getOwnPropertyDescriptor(global, 'XMLHttpRequestException').value is XMLHttpRequestException2102 PASS Object.getOwnPropertyDescriptor(global, 'XMLHttpRequestException').hasOwnProperty('get') is false2103 PASS Object.getOwnPropertyDescriptor(global, 'XMLHttpRequestException').hasOwnProperty('set') is false2104 PASS Object.getOwnPropertyDescriptor(global, 'XMLHttpRequestException').enumerable is false2105 PASS Object.getOwnPropertyDescriptor(global, 'XMLHttpRequestException').configurable is true2106 2101 PASS Object.getOwnPropertyDescriptor(global, 'XMLHttpRequestProgressEvent').value is XMLHttpRequestProgressEvent 2107 2102 PASS Object.getOwnPropertyDescriptor(global, 'XMLHttpRequestProgressEvent').hasOwnProperty('get') is false -
trunk/LayoutTests/platform/mac/fast/dom/Window/window-lookup-precedence-expected.txt
r195520 r195588 299 299 PASS win['XMLHttpRequest'] == '[object XMLHttpRequestConstructor]' is true 300 300 PASS win['XMLHttpRequest'] == '[object XMLHttpRequestConstructor]' is true 301 PASS win['XMLHttpRequestException'] == '[object XMLHttpRequestExceptionConstructor]' is true302 PASS win['XMLHttpRequestException'] == '[object XMLHttpRequestExceptionConstructor]' is true303 301 PASS win['XMLSerializer'] == '[object XMLSerializerConstructor]' is true 304 302 PASS win['XMLSerializer'] == '[object XMLSerializerConstructor]' is true -
trunk/LayoutTests/platform/mac/js/dom/global-constructors-attributes-expected.txt
r195530 r195588 2104 2104 PASS Object.getOwnPropertyDescriptor(global, 'XMLHttpRequest').enumerable is false 2105 2105 PASS Object.getOwnPropertyDescriptor(global, 'XMLHttpRequest').configurable is true 2106 PASS Object.getOwnPropertyDescriptor(global, 'XMLHttpRequestException').value is XMLHttpRequestException2107 PASS Object.getOwnPropertyDescriptor(global, 'XMLHttpRequestException').hasOwnProperty('get') is false2108 PASS Object.getOwnPropertyDescriptor(global, 'XMLHttpRequestException').hasOwnProperty('set') is false2109 PASS Object.getOwnPropertyDescriptor(global, 'XMLHttpRequestException').enumerable is false2110 PASS Object.getOwnPropertyDescriptor(global, 'XMLHttpRequestException').configurable is true2111 2106 PASS Object.getOwnPropertyDescriptor(global, 'XMLHttpRequestProgressEvent').value is XMLHttpRequestProgressEvent 2112 2107 PASS Object.getOwnPropertyDescriptor(global, 'XMLHttpRequestProgressEvent').hasOwnProperty('get') is false -
trunk/LayoutTests/platform/win/TestExpectations
r195405 r195588 723 723 # This test is dependant on DRT being able to open windows. 724 724 fast/dom/Window/new-window-opener.html 725 726 # <rdar://5667279> Undefined value exception727 http/tests/xmlhttprequest/XMLHttpRequestException.html [ Skip ]728 725 729 726 # <rdar://5670235> Sometimes spews output into the next test -
trunk/LayoutTests/platform/win/js/dom/global-constructors-attributes-expected.txt
r195530 r195588 1814 1814 PASS Object.getOwnPropertyDescriptor(global, 'XMLHttpRequest').enumerable is false 1815 1815 PASS Object.getOwnPropertyDescriptor(global, 'XMLHttpRequest').configurable is true 1816 PASS Object.getOwnPropertyDescriptor(global, 'XMLHttpRequestException').value is XMLHttpRequestException1817 PASS Object.getOwnPropertyDescriptor(global, 'XMLHttpRequestException').hasOwnProperty('get') is false1818 PASS Object.getOwnPropertyDescriptor(global, 'XMLHttpRequestException').hasOwnProperty('set') is false1819 PASS Object.getOwnPropertyDescriptor(global, 'XMLHttpRequestException').enumerable is false1820 PASS Object.getOwnPropertyDescriptor(global, 'XMLHttpRequestException').configurable is true1821 1816 PASS Object.getOwnPropertyDescriptor(global, 'XMLHttpRequestProgressEvent').value is XMLHttpRequestProgressEvent 1822 1817 PASS Object.getOwnPropertyDescriptor(global, 'XMLHttpRequestProgressEvent').hasOwnProperty('get') is false -
trunk/Source/WebCore/CMakeLists.txt
r195582 r195588 639 639 xml/DOMParser.idl 640 640 xml/XMLHttpRequest.idl 641 xml/XMLHttpRequestException.idl642 641 xml/XMLHttpRequestProgressEvent.idl 643 642 xml/XMLHttpRequestUpload.idl … … 2814 2813 xml/XMLErrors.cpp 2815 2814 xml/XMLHttpRequest.cpp 2816 xml/XMLHttpRequestException.cpp2817 2815 xml/XMLHttpRequestProgressEventThrottle.cpp 2818 2816 xml/XMLHttpRequestUpload.cpp -
trunk/Source/WebCore/ChangeLog
r195584 r195588 1 2016-01-26 Daniel Bates <dabates@apple.com> 2 3 Remove XMLHttpRequestException 4 https://bugs.webkit.org/show_bug.cgi?id=102698 5 <rdar://problem/24338476> 6 7 Reviewed by Chris Dumez. 8 9 Inspired by a patch by Erik Arvidsson. 10 11 As per <https://xhr.spec.whatwg.org> (21 January 2016) and <https://html.spec.whatwg.org/multipage/workers.html#dom-workerglobalscope-importscripts> (25 January 2016) 12 XMLHttpRequest and WorkerGlobalScope.importScripts() should throw a DOMException object instead 13 of a XMLHttpRequestException object when a NetworkError, AbortError, or TimeoutError occur. This 14 makes the behavior of WebKit more closely conform to these standards as well as the behavior of 15 other browsers. 16 17 * CMakeLists.txt: Remove entries for XMLHttpRequestException.idl and XMLHttpRequestException.cpp. 18 * DerivedSources.make: Remove entry for XMLHttpRequestException.idl. 19 * WebCore.order: Remove exported symbols for XMLHttpRequestException. 20 * WebCore.vcxproj/WebCore.vcxproj: Remove entries for JSXMLHttpRequestException.{cpp, h}, XMLHttpRequestException.{cpp, h} 21 * WebCore.vcxproj/WebCore.vcxproj.filters: Ditto. 22 * WebCore.xcodeproj/project.pbxproj: Ditto. 23 * bindings/js/JSExceptionBase.cpp: 24 (WebCore::toExceptionBase): Remove logic for XMLHttpRequestException. 25 * dom/DOMExceptions.in: Remove entry for XMLHttpRequestException. 26 * workers/WorkerGlobalScope.cpp: 27 (WebCore::WorkerGlobalScope::importScripts): Throw DOMException.NETWORK_ERR instead of XMLHttpRequestException.NETWORK_ERR. 28 * xml/XMLHttpRequest.cpp: 29 (WebCore::XMLHttpRequest::createRequest): Ditto. 30 (WebCore::XMLHttpRequest::didFail): Throw DOMException.ABORT_ERR instead of XMLHttpRequestException.ABORT_ERR. 31 (WebCore::XMLHttpRequest::didReachTimeout): Throw DOMException.TIMEOUT_ERR instead of XMLHttpRequestException.TIMEOUT_ERR. 32 * xml/XMLHttpRequestException.cpp: Removed. 33 * xml/XMLHttpRequestException.h: Removed. 34 * xml/XMLHttpRequestException.idl: Removed. 35 1 36 2016-01-25 Youenn Fablet <youenn.fablet@crf.canon.fr> 2 37 -
trunk/Source/WebCore/DerivedSources.make
r195582 r195588 539 539 $(WebCore)/xml/DOMParser.idl \ 540 540 $(WebCore)/xml/XMLHttpRequest.idl \ 541 $(WebCore)/xml/XMLHttpRequestException.idl \542 541 $(WebCore)/xml/XMLHttpRequestProgressEvent.idl \ 543 542 $(WebCore)/xml/XMLHttpRequestUpload.idl \ -
trunk/Source/WebCore/WebCore.order
r190794 r195588 6111 6111 __ZN7WebCore12SQLException21initializeDescriptionEiPNS_24ExceptionCodeDescriptionE 6112 6112 __ZN7WebCore12SVGException21initializeDescriptionEiPNS_24ExceptionCodeDescriptionE 6113 __ZN7WebCore23XMLHttpRequestException21initializeDescriptionEiPNS_24ExceptionCodeDescriptionE6114 6113 __ZN7WebCore14XPathException21initializeDescriptionEiPNS_24ExceptionCodeDescriptionE 6115 6114 __ZN7WebCore16DOMCoreException21initializeDescriptionEiPNS_24ExceptionCodeDescriptionE … … 11055 11054 __ZN7WebCore16toRangeExceptionEN3JSC7JSValueE 11056 11055 __ZN7WebCore16toEventExceptionEN3JSC7JSValueE 11057 __ZN7WebCore25toXMLHttpRequestExceptionEN3JSC7JSValueE11058 11056 __ZN7WebCore14toSVGExceptionEN3JSC7JSValueE 11059 11057 __ZN7WebCore16toXPathExceptionEN3JSC7JSValueE … … 13290 13288 __ZN7WebCore8Document17addConsoleMessageENS_13MessageSourceENS_12MessageLevelERKN3WTF6StringEm 13291 13289 __ZN7WebCore14XMLHttpRequest12networkErrorEv 13292 __ZN7WebCore4toJSEPN3JSC9ExecStateEPNS_17JSDOMGlobalObjectEPNS_23XMLHttpRequestExceptionE13293 __ZN7WebCore15getDOMStructureINS_25JSXMLHttpRequestExceptionEEEPN3JSC9StructureEPNS2_9ExecStateEPNS_17JSDOMGlobalObjectE13294 __ZN7WebCore25JSXMLHttpRequestException15createPrototypeEPN3JSC9ExecStateEPNS1_14JSGlobalObjectE13295 __ZN7WebCore12cacheWrapperINS_23XMLHttpRequestExceptionEEEvPNS_15DOMWrapperWorldEPT_PNS_12JSDOMWrapperE13296 __ZN7WebCore25JSXMLHttpRequestException18getOwnPropertySlotEPN3JSC6JSCellEPNS1_9ExecStateENS1_12PropertyNameERNS1_12PropertySlotE13297 __ZN3JSC18getStaticValueSlotIN7WebCore25JSXMLHttpRequestExceptionENS1_12JSDOMWrapperEEEbPNS_9ExecStateEPKNS_9HashTableEPT_NS_12PropertyNameERNS_12PropertySlotE13298 __ZN7WebCore34JSXMLHttpRequestExceptionPrototype18getOwnPropertySlotEPN3JSC6JSCellEPNS1_9ExecStateENS1_12PropertyNameERNS1_12PropertySlotE13299 __ZN3JSC21getStaticPropertySlotIN7WebCore34JSXMLHttpRequestExceptionPrototypeENS_8JSObjectEEEbPNS_9ExecStateEPKNS_9HashTableEPT_NS_12PropertyNameERNS_12PropertySlotE13300 __ZN7WebCore50jsXMLHttpRequestExceptionPrototypeFunctionToStringEPN3JSC9ExecStateE13301 13290 __ZNK7WebCore13ExceptionBase8toStringEv 13302 13291 __ZN7WebCore14jsHistoryStateEPN3JSC9ExecStateENS0_7JSValueENS0_12PropertyNameE … … 23150 23139 __ZN7WebCoreL36JSXMLHttpRequestPrototypeTableValuesE 23151 23140 __ZN7WebCoreL38JSXMLHttpRequestConstructorTableValuesE 23152 __ZN7WebCore36JSXMLHttpRequestExceptionConstructor6s_infoE23153 __ZN7WebCore34JSXMLHttpRequestExceptionPrototype6s_infoE23154 __ZN7WebCore25JSXMLHttpRequestException6s_infoE23155 __ZTVN7WebCore30JSXMLHttpRequestExceptionOwnerE23156 __ZN7WebCoreL36JSXMLHttpRequestExceptionTableValuesE23157 __ZN7WebCoreL45JSXMLHttpRequestExceptionPrototypeTableValuesE23158 __ZN7WebCoreL47JSXMLHttpRequestExceptionConstructorTableValuesE23159 23141 __ZN7WebCore40JSXMLHttpRequestProgressEventConstructor6s_infoE 23160 23142 __ZN7WebCore38JSXMLHttpRequestProgressEventPrototype6s_infoE … … 25941 25923 __ZN7WebCoreL30JSXMLHttpRequestPrototypeTableE 25942 25924 __ZN7WebCoreL32JSXMLHttpRequestConstructorTableE 25943 __ZN7WebCoreL30JSXMLHttpRequestExceptionTableE25944 __ZN7WebCoreL39JSXMLHttpRequestExceptionPrototypeTableE25945 __ZN7WebCoreL41JSXMLHttpRequestExceptionConstructorTableE25946 __ZZN7WebCore12wrapperOwnerEPNS_15DOMWrapperWorldEPNS_23XMLHttpRequestExceptionEE30jsXMLHttpRequestExceptionOwner25947 __ZGVZN7WebCore12wrapperOwnerEPNS_15DOMWrapperWorldEPNS_23XMLHttpRequestExceptionEE30jsXMLHttpRequestExceptionOwner25948 25925 __ZN7WebCoreL34JSXMLHttpRequestProgressEventTableE 25949 25926 __ZN7WebCoreL43JSXMLHttpRequestProgressEventPrototypeTableE -
trunk/Source/WebCore/WebCore.vcxproj/WebCore.vcxproj
r195520 r195588 6556 6556 <ExcludedFromBuild Condition="'$(Configuration)|$(Platform)'=='Production|x64'">true</ExcludedFromBuild> 6557 6557 </ClCompile> 6558 <ClCompile Include="$(ConfigurationBuildDir)\obj$(PlatformArchitecture)\$(ProjectName)\DerivedSources\JSXMLHttpRequestException.cpp">6559 <ExcludedFromBuild Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">true</ExcludedFromBuild>6560 <ExcludedFromBuild Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">true</ExcludedFromBuild>6561 <ExcludedFromBuild Condition="'$(Configuration)|$(Platform)'=='Debug_WinCairo|Win32'">true</ExcludedFromBuild>6562 <ExcludedFromBuild Condition="'$(Configuration)|$(Platform)'=='Debug_WinCairo|x64'">true</ExcludedFromBuild>6563 <ExcludedFromBuild Condition="'$(Configuration)|$(Platform)'=='DebugSuffix|Win32'">true</ExcludedFromBuild>6564 <ExcludedFromBuild Condition="'$(Configuration)|$(Platform)'=='DebugSuffix|x64'">true</ExcludedFromBuild>6565 <ExcludedFromBuild Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">true</ExcludedFromBuild>6566 <ExcludedFromBuild Condition="'$(Configuration)|$(Platform)'=='Release|x64'">true</ExcludedFromBuild>6567 <ExcludedFromBuild Condition="'$(Configuration)|$(Platform)'=='Release_WinCairo|Win32'">true</ExcludedFromBuild>6568 <ExcludedFromBuild Condition="'$(Configuration)|$(Platform)'=='Release_WinCairo|x64'">true</ExcludedFromBuild>6569 <ExcludedFromBuild Condition="'$(Configuration)|$(Platform)'=='Production|Win32'">true</ExcludedFromBuild>6570 <ExcludedFromBuild Condition="'$(Configuration)|$(Platform)'=='Production|x64'">true</ExcludedFromBuild>6571 </ClCompile>6572 6558 <ClCompile Include="$(ConfigurationBuildDir)\obj$(PlatformArchitecture)\$(ProjectName)\DerivedSources\JSXMLHttpRequestProgressEvent.cpp"> 6573 6559 <ExcludedFromBuild Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">true</ExcludedFromBuild> … … 13528 13514 <ClCompile Include="..\xml\XMLErrors.cpp" /> 13529 13515 <ClCompile Include="..\xml\XMLHttpRequest.cpp" /> 13530 <ClCompile Include="..\xml\XMLHttpRequestException.cpp" />13531 13516 <ClCompile Include="..\xml\XMLHttpRequestProgressEventThrottle.cpp" /> 13532 13517 <ClCompile Include="..\xml\XMLHttpRequestUpload.cpp" /> … … 20255 20240 <ClInclude Include="$(ConfigurationBuildDir)\obj$(PlatformArchitecture)\$(ProjectName)\DerivedSources\JSXMLDocument.h" /> 20256 20241 <ClInclude Include="$(ConfigurationBuildDir)\obj$(PlatformArchitecture)\$(ProjectName)\DerivedSources\JSXMLHttpRequest.h" /> 20257 <ClInclude Include="$(ConfigurationBuildDir)\obj$(PlatformArchitecture)\$(ProjectName)\DerivedSources\JSXMLHttpRequestException.h" />20258 20242 <ClInclude Include="$(ConfigurationBuildDir)\obj$(PlatformArchitecture)\$(ProjectName)\DerivedSources\JSXMLHttpRequestProgressEvent.h" /> 20259 20243 <ClInclude Include="$(ConfigurationBuildDir)\obj$(PlatformArchitecture)\$(ProjectName)\DerivedSources\JSXMLHttpRequestUpload.h" /> … … 21983 21967 <ClInclude Include="..\xml\XMLErrors.h" /> 21984 21968 <ClInclude Include="..\xml\XMLHttpRequest.h" /> 21985 <ClInclude Include="..\xml\XMLHttpRequestException.h" />21986 21969 <ClInclude Include="..\xml\XMLHttpRequestProgressEvent.h" /> 21987 21970 <ClInclude Include="..\xml\XMLHttpRequestProgressEventThrottle.h" /> -
trunk/Source/WebCore/WebCore.vcxproj/WebCore.vcxproj.filters
r195520 r195588 2922 2922 <Filter>xml</Filter> 2923 2923 </ClCompile> 2924 <ClCompile Include="..\xml\XMLHttpRequestException.cpp">2925 <Filter>xml</Filter>2926 </ClCompile>2927 2924 <ClCompile Include="..\xml\XMLHttpRequestProgressEventThrottle.cpp"> 2928 2925 <Filter>xml</Filter> … … 6236 6233 </ClCompile> 6237 6234 <ClCompile Include="$(ConfigurationBuildDir)\obj$(PlatformArchitecture)\$(ProjectName)\DerivedSources\JSXMLHttpRequest.cpp"> 6238 <Filter>DerivedSources</Filter>6239 </ClCompile>6240 <ClCompile Include="$(ConfigurationBuildDir)\obj$(PlatformArchitecture)\$(ProjectName)\DerivedSources\JSXMLHttpRequestException.cpp">6241 6235 <Filter>DerivedSources</Filter> 6242 6236 </ClCompile> … … 9977 9971 <Filter>xml</Filter> 9978 9972 </ClInclude> 9979 <ClInclude Include="..\xml\XMLHttpRequestException.h">9980 <Filter>xml</Filter>9981 </ClInclude>9982 9973 <ClInclude Include="..\xml\XMLHttpRequestProgressEvent.h"> 9983 9974 <Filter>xml</Filter> … … 13649 13640 </ClInclude> 13650 13641 <ClInclude Include="$(ConfigurationBuildDir)\obj$(PlatformArchitecture)\$(ProjectName)\DerivedSources\JSXMLHttpRequest.h"> 13651 <Filter>DerivedSources</Filter>13652 </ClInclude>13653 <ClInclude Include="$(ConfigurationBuildDir)\obj$(PlatformArchitecture)\$(ProjectName)\DerivedSources\JSXMLHttpRequestException.h">13654 13642 <Filter>DerivedSources</Filter> 13655 13643 </ClInclude> -
trunk/Source/WebCore/WebCore.xcodeproj/project.pbxproj
r195564 r195588 3863 3863 978D07CA145A10160096908D /* SVGException.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 978D07C9145A10160096908D /* SVGException.cpp */; }; 3864 3864 978D07CC145A102E0096908D /* XPathException.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 978D07CB145A102E0096908D /* XPathException.cpp */; }; 3865 978D07CE145A10370096908D /* XMLHttpRequestException.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 978D07CD145A10370096908D /* XMLHttpRequestException.cpp */; };3866 3865 979F43D31075E44A0000F83B /* NavigationScheduler.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 979F43D11075E44A0000F83B /* NavigationScheduler.cpp */; }; 3867 3866 979F43D41075E44A0000F83B /* NavigationScheduler.h in Headers */ = {isa = PBXBuildFile; fileRef = 979F43D21075E44A0000F83B /* NavigationScheduler.h */; settings = {ATTRIBUTES = (Private, ); }; }; … … 5548 5547 BC60D8F30D2A11E000B9918F /* ExceptionBase.h in Headers */ = {isa = PBXBuildFile; fileRef = BC60D8F10D2A11E000B9918F /* ExceptionBase.h */; settings = {ATTRIBUTES = (Private, ); }; }; 5549 5548 BC60D90C0D2A17CE00B9918F /* EventException.h in Headers */ = {isa = PBXBuildFile; fileRef = BC60D9090D2A17CE00B9918F /* EventException.h */; }; 5550 BC60D9C90D2A29E500B9918F /* XMLHttpRequestException.h in Headers */ = {isa = PBXBuildFile; fileRef = BC60D9C70D2A29E500B9918F /* XMLHttpRequestException.h */; };5551 BC60DA390D2A302800B9918F /* JSXMLHttpRequestException.cpp in Sources */ = {isa = PBXBuildFile; fileRef = BC60DA370D2A302800B9918F /* JSXMLHttpRequestException.cpp */; };5552 BC60DA3A0D2A302800B9918F /* JSXMLHttpRequestException.h in Headers */ = {isa = PBXBuildFile; fileRef = BC60DA380D2A302800B9918F /* JSXMLHttpRequestException.h */; };5553 5549 BC60DA5B0D2A31F700B9918F /* XPathException.h in Headers */ = {isa = PBXBuildFile; fileRef = BC60DA590D2A31F700B9918F /* XPathException.h */; }; 5554 5550 BC60DB490D2A3D1E00B9918F /* JSXPathException.cpp in Sources */ = {isa = PBXBuildFile; fileRef = BC60DB470D2A3D1E00B9918F /* JSXPathException.cpp */; }; … … 11409 11405 978D07C9145A10160096908D /* SVGException.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = SVGException.cpp; sourceTree = "<group>"; }; 11410 11406 978D07CB145A102E0096908D /* XPathException.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = XPathException.cpp; sourceTree = "<group>"; }; 11411 978D07CD145A10370096908D /* XMLHttpRequestException.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = XMLHttpRequestException.cpp; sourceTree = "<group>"; };11412 11407 979F43D11075E44A0000F83B /* NavigationScheduler.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = NavigationScheduler.cpp; sourceTree = "<group>"; }; 11413 11408 979F43D21075E44A0000F83B /* NavigationScheduler.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = NavigationScheduler.h; sourceTree = "<group>"; }; … … 13358 13353 BC60D9090D2A17CE00B9918F /* EventException.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = EventException.h; sourceTree = "<group>"; }; 13359 13354 BC60D90A0D2A17CE00B9918F /* EventException.idl */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text; path = EventException.idl; sourceTree = "<group>"; }; 13360 BC60D9C70D2A29E500B9918F /* XMLHttpRequestException.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = XMLHttpRequestException.h; sourceTree = "<group>"; };13361 BC60D9C80D2A29E500B9918F /* XMLHttpRequestException.idl */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text; path = XMLHttpRequestException.idl; sourceTree = "<group>"; };13362 BC60DA370D2A302800B9918F /* JSXMLHttpRequestException.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = JSXMLHttpRequestException.cpp; sourceTree = "<group>"; };13363 BC60DA380D2A302800B9918F /* JSXMLHttpRequestException.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = JSXMLHttpRequestException.h; sourceTree = "<group>"; };13364 13355 BC60DA590D2A31F700B9918F /* XPathException.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = XPathException.h; sourceTree = "<group>"; }; 13365 13356 BC60DA5A0D2A31F700B9918F /* XPathException.idl */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text; path = XPathException.idl; sourceTree = "<group>"; }; … … 20789 20780 BC348BD10DB7F804004ABAB9 /* JSXMLHttpRequest.cpp */, 20790 20781 BC348BD20DB7F804004ABAB9 /* JSXMLHttpRequest.h */, 20791 BC60DA370D2A302800B9918F /* JSXMLHttpRequestException.cpp */,20792 BC60DA380D2A302800B9918F /* JSXMLHttpRequestException.h */,20793 20782 F916C48B0DB510F80076CD83 /* JSXMLHttpRequestProgressEvent.cpp */, 20794 20783 F916C48C0DB510F80076CD83 /* JSXMLHttpRequestProgressEvent.h */, … … 23103 23092 BC772C450C4EB2C60083285F /* XMLHttpRequest.h */, 23104 23093 BC348BA70DB7F1B8004ABAB9 /* XMLHttpRequest.idl */, 23105 978D07CD145A10370096908D /* XMLHttpRequestException.cpp */,23106 BC60D9C70D2A29E500B9918F /* XMLHttpRequestException.h */,23107 BC60D9C80D2A29E500B9918F /* XMLHttpRequestException.idl */,23108 23094 F9F0ED770DB50CA200D16DB9 /* XMLHttpRequestProgressEvent.h */, 23109 23095 F9F0ED780DB50CA200D16DB9 /* XMLHttpRequestProgressEvent.idl */, … … 26698 26684 7C4C96DD1AD4483500365A60 /* JSWritableStream.h in Headers */, 26699 26685 BC348BD40DB7F804004ABAB9 /* JSXMLHttpRequest.h in Headers */, 26700 BC60DA3A0D2A302800B9918F /* JSXMLHttpRequestException.h in Headers */,26701 26686 F916C48E0DB510F80076CD83 /* JSXMLHttpRequestProgressEvent.h in Headers */, 26702 26687 BCDFD4960E30592F009D10AD /* JSXMLHttpRequestUpload.h in Headers */, … … 28301 28286 59C28046138DC2410079B7E2 /* XMLErrors.h in Headers */, 28302 28287 BC772C470C4EB2C60083285F /* XMLHttpRequest.h in Headers */, 28303 BC60D9C90D2A29E500B9918F /* XMLHttpRequestException.h in Headers */,28304 28288 F9F0ED7A0DB50CA200D16DB9 /* XMLHttpRequestProgressEvent.h in Headers */, 28305 28289 A136A00D1134DBD200CC8D50 /* XMLHttpRequestProgressEventThrottle.h in Headers */, … … 30429 30413 BC348BD30DB7F804004ABAB9 /* JSXMLHttpRequest.cpp in Sources */, 30430 30414 BC348BBE0DB7F531004ABAB9 /* JSXMLHttpRequestCustom.cpp in Sources */, 30431 BC60DA390D2A302800B9918F /* JSXMLHttpRequestException.cpp in Sources */,30432 30415 F916C48D0DB510F80076CD83 /* JSXMLHttpRequestProgressEvent.cpp in Sources */, 30433 30416 BCDFD4950E30592F009D10AD /* JSXMLHttpRequestUpload.cpp in Sources */, … … 31704 31687 59C28045138DC2410079B7E2 /* XMLErrors.cpp in Sources */, 31705 31688 BC772C460C4EB2C60083285F /* XMLHttpRequest.cpp in Sources */, 31706 978D07CE145A10370096908D /* XMLHttpRequestException.cpp in Sources */,31707 31689 A136A00C1134DBD200CC8D50 /* XMLHttpRequestProgressEventThrottle.cpp in Sources */, 31708 31690 BCDFD48F0E305290009D10AD /* XMLHttpRequestUpload.cpp in Sources */, -
trunk/Source/WebCore/bindings/js/JSExceptionBase.cpp
r190281 r195588 30 30 #include "JSSQLException.h" 31 31 #include "JSSVGException.h" 32 #include "JSXMLHttpRequestException.h"33 32 #include "JSXPathException.h" 34 33 #include "SQLException.h" … … 40 39 if (DOMCoreException* domException = JSDOMCoreException::toWrapped(value)) 41 40 return reinterpret_cast<ExceptionBase*>(domException); 42 if (XMLHttpRequestException* xmlHttpException = JSXMLHttpRequestException::toWrapped(value))43 return reinterpret_cast<ExceptionBase*>(xmlHttpException);44 41 if (SVGException* svgException = JSSVGException::toWrapped(value)) 45 42 return reinterpret_cast<ExceptionBase*>(svgException); -
trunk/Source/WebCore/dom/DOMExceptions.in
r190281 r195588 5 5 SQLException 6 6 SVGException 7 XMLHttpRequestException8 7 XPathException 9 8 -
trunk/Source/WebCore/workers/WorkerGlobalScope.cpp
r194496 r195588 50 50 #include "WorkerThread.h" 51 51 #include "WorkerThreadableLoader.h" 52 #include "XMLHttpRequestException.h"53 52 #include <bindings/ScriptValue.h> 54 53 #include <inspector/ConsoleMessage.h> … … 189 188 // If the fetching attempt failed, throw a NETWORK_ERR exception and abort all these steps. 190 189 if (scriptLoader->failed()) { 191 ec = XMLHttpRequestException::NETWORK_ERR;190 ec = NETWORK_ERR; 192 191 return; 193 192 } -
trunk/Source/WebCore/xml/XMLHttpRequest.cpp
r195520 r195588 49 49 #include "TextResourceDecoder.h" 50 50 #include "ThreadableLoader.h" 51 #include "XMLHttpRequestException.h"52 51 #include "XMLHttpRequestProgressEvent.h" 53 52 #include "XMLHttpRequestUpload.h" … … 713 712 // Only GET request is supported for blob URL. 714 713 if (m_url.protocolIs("blob") && m_method != "GET") { 715 ec = XMLHttpRequestException::NETWORK_ERR;714 ec = NETWORK_ERR; 716 715 return; 717 716 } … … 797 796 798 797 if (!m_exceptionCode && m_error) 799 m_exceptionCode = XMLHttpRequestException::NETWORK_ERR;798 m_exceptionCode = NETWORK_ERR; 800 799 ec = m_exceptionCode; 801 800 } … … 1067 1066 1068 1067 if (error.isCancellation()) { 1069 m_exceptionCode = XMLHttpRequestException::ABORT_ERR;1068 m_exceptionCode = ABORT_ERR; 1070 1069 abortError(); 1071 1070 return; … … 1084 1083 } 1085 1084 1086 m_exceptionCode = XMLHttpRequestException::NETWORK_ERR;1085 m_exceptionCode = NETWORK_ERR; 1087 1086 networkError(); 1088 1087 } … … 1237 1236 m_sendFlag = false; 1238 1237 m_error = true; 1239 m_exceptionCode = XMLHttpRequestException::TIMEOUT_ERR;1238 m_exceptionCode = TIMEOUT_ERR; 1240 1239 1241 1240 if (!m_async) {
Note: See TracChangeset
for help on using the changeset viewer.