Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(217)

Issue 2297483002: Make XMLHttpRequest.open() throw for invalid URLs (Closed)

Created:
4 years, 3 months ago by tyoshino (SeeGerritForStatus)
Modified:
4 years, 3 months ago
Reviewers:
yhirano
CC:
chromium-reviews, blink-reviews, tyoshino+watch_chromium.org
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Make XMLHttpRequest.open() throw for invalid URLs Also adds tests for invalid/forbidden methods. R=yhirano@chromium.org BUG=642239 Committed: https://crrev.com/a0bab936d014e4c74e7d8bfcdb7be5a74b69c6a4 Cr-Commit-Position: refs/heads/master@{#415932}

Patch Set 1 #

Patch Set 2 : Addressed #8 #

Patch Set 3 : Add invalid method tests #

Patch Set 4 : Test that invalid open() is no-op #

Total comments: 6

Patch Set 5 : Addressed #12 #

Messages

Total messages: 22 (14 generated)
tyoshino (SeeGerritForStatus)
4 years, 3 months ago (2016-08-30 07:53:55 UTC) #7
yhirano
According to the spec the method should be checked before the URL.
4 years, 3 months ago (2016-08-31 01:53:41 UTC) #8
tyoshino (SeeGerritForStatus)
On 2016/08/31 01:53:41, yhirano wrote: > According to the spec the method should be checked ...
4 years, 3 months ago (2016-09-01 05:57:52 UTC) #9
yhirano
lgtm https://codereview.chromium.org/2297483002/diff/60001/third_party/WebKit/LayoutTests/http/tests/xmlhttprequest/open-with-invalid-argument-is-noop.html File third_party/WebKit/LayoutTests/http/tests/xmlhttprequest/open-with-invalid-argument-is-noop.html (right): https://codereview.chromium.org/2297483002/diff/60001/third_party/WebKit/LayoutTests/http/tests/xmlhttprequest/open-with-invalid-argument-is-noop.html#newcode45 third_party/WebKit/LayoutTests/http/tests/xmlhttprequest/open-with-invalid-argument-is-noop.html:45: }, 'open() should throw for a SyntaxError for ...
4 years, 3 months ago (2016-09-01 07:02:42 UTC) #12
tyoshino (SeeGerritForStatus)
https://codereview.chromium.org/2297483002/diff/60001/third_party/WebKit/LayoutTests/http/tests/xmlhttprequest/open-with-invalid-argument-is-noop.html File third_party/WebKit/LayoutTests/http/tests/xmlhttprequest/open-with-invalid-argument-is-noop.html (right): https://codereview.chromium.org/2297483002/diff/60001/third_party/WebKit/LayoutTests/http/tests/xmlhttprequest/open-with-invalid-argument-is-noop.html#newcode45 third_party/WebKit/LayoutTests/http/tests/xmlhttprequest/open-with-invalid-argument-is-noop.html:45: }, 'open() should throw for a SyntaxError for an ...
4 years, 3 months ago (2016-09-01 10:19:41 UTC) #16
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2297483002/80001
4 years, 3 months ago (2016-09-01 10:20:00 UTC) #19
commit-bot: I haz the power
Committed patchset #5 (id:80001)
4 years, 3 months ago (2016-09-01 11:37:34 UTC) #20
commit-bot: I haz the power
4 years, 3 months ago (2016-09-01 11:39:51 UTC) #22
Message was sent while issue was closed.
Patchset 5 (id:??) landed as
https://crrev.com/a0bab936d014e4c74e7d8bfcdb7be5a74b69c6a4
Cr-Commit-Position: refs/heads/master@{#415932}

Powered by Google App Engine
This is Rietveld 408576698