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

Issue 478223002: XMLHttpRequest::overrideMimeType should throw InvalidStateError (Closed)

Created:
6 years, 4 months ago by kouhei (in TOK)
Modified:
6 years, 4 months ago
CC:
blink-reviews, arv+blink, Inactive
Project:
blink
Visibility:
Public.

Description

XMLHttpRequest::overrideMimeType should throw InvalidStateError Before this CL, XMLHttpRequest accepted |overrideMimeType| regardless of its state. This is not conformant to the current spec: http://www.w3.org/TR/XMLHttpRequest2/#the-overridemimetype-method This CL changes it to throw InvalidStateError when the state is LOADING or DONE, which aligns to the spec. BUG=402375 Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=180440 Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=180519

Patch Set 1 #

Patch Set 2 : change cond #

Patch Set 3 : add tests #

Total comments: 6

Patch Set 4 : tyoshino-san review #

Unified diffs Side-by-side diffs Delta from patch set Stats (+56 lines, -6 lines) Patch
A LayoutTests/http/tests/xmlhttprequest/xmlhttprequest-overridemimetype-allowedState.html View 1 2 3 1 chunk +30 lines, -0 lines 0 comments Download
A LayoutTests/http/tests/xmlhttprequest/xmlhttprequest-overridemimetype-allowedState-expected.txt View 1 2 3 1 chunk +18 lines, -0 lines 0 comments Download
M Source/core/xml/XMLHttpRequest.h View 1 chunk +1 line, -1 line 0 comments Download
M Source/core/xml/XMLHttpRequest.cpp View 1 2 3 1 chunk +6 lines, -4 lines 0 comments Download
M Source/core/xml/XMLHttpRequest.idl View 1 chunk +1 line, -1 line 0 comments Download

Messages

Total messages: 15 (0 generated)
kouhei (in TOK)
6 years, 4 months ago (2014-08-18 07:40:55 UTC) #1
kouhei (in TOK)
Would you take a look?
6 years, 4 months ago (2014-08-18 07:41:02 UTC) #2
tyoshino (SeeGerritForStatus)
lgtm https://codereview.chromium.org/478223002/diff/40001/LayoutTests/http/tests/xmlhttprequest/xmlhttprequest-overridemimetype-allowedState.html File LayoutTests/http/tests/xmlhttprequest/xmlhttprequest-overridemimetype-allowedState.html (right): https://codereview.chromium.org/478223002/diff/40001/LayoutTests/http/tests/xmlhttprequest/xmlhttprequest-overridemimetype-allowedState.html#newcode14 LayoutTests/http/tests/xmlhttprequest/xmlhttprequest-overridemimetype-allowedState.html:14: shouldThrow("xhr.overrideMimeType('text/asdf')"); i think we should use a safe ...
6 years, 4 months ago (2014-08-18 07:56:46 UTC) #3
haraken
LGTM
6 years, 4 months ago (2014-08-18 08:10:09 UTC) #4
kouhei (in TOK)
Thanks! https://codereview.chromium.org/478223002/diff/40001/LayoutTests/http/tests/xmlhttprequest/xmlhttprequest-overridemimetype-allowedState.html File LayoutTests/http/tests/xmlhttprequest/xmlhttprequest-overridemimetype-allowedState.html (right): https://codereview.chromium.org/478223002/diff/40001/LayoutTests/http/tests/xmlhttprequest/xmlhttprequest-overridemimetype-allowedState.html#newcode14 LayoutTests/http/tests/xmlhttprequest/xmlhttprequest-overridemimetype-allowedState.html:14: shouldThrow("xhr.overrideMimeType('text/asdf')"); On 2014/08/18 07:56:46, tyoshino wrote: > i ...
6 years, 4 months ago (2014-08-18 09:29:21 UTC) #5
kouhei (in TOK)
The CQ bit was checked by kouhei@chromium.org
6 years, 4 months ago (2014-08-18 09:29:25 UTC) #6
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/kouhei@chromium.org/478223002/60001
6 years, 4 months ago (2014-08-18 09:29:40 UTC) #7
commit-bot: I haz the power
Committed patchset #4 (60001) as 180440
6 years, 4 months ago (2014-08-18 10:29:25 UTC) #8
Mike West
A revert of this CL (patchset #4) has been created in https://codereview.chromium.org/486703002/ by mkwst@chromium.org. The ...
6 years, 4 months ago (2014-08-18 13:12:23 UTC) #9
tyoshino (SeeGerritForStatus)
On 2014/08/18 13:12:23, Mike West wrote: > A revert of this CL (patchset #4) has ...
6 years, 4 months ago (2014-08-19 02:24:55 UTC) #10
kouhei (in TOK)
On 2014/08/19 02:24:55, tyoshino wrote: > On 2014/08/18 13:12:23, Mike West wrote: > > A ...
6 years, 4 months ago (2014-08-19 04:13:14 UTC) #11
kouhei (in TOK)
On 2014/08/19 04:13:14, kouhei wrote: > On 2014/08/19 02:24:55, tyoshino wrote: > > On 2014/08/18 ...
6 years, 4 months ago (2014-08-19 04:25:40 UTC) #12
kouhei (in TOK)
The CQ bit was checked by kouhei@chromium.org
6 years, 4 months ago (2014-08-19 04:25:44 UTC) #13
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/kouhei@chromium.org/478223002/60001
6 years, 4 months ago (2014-08-19 04:26:13 UTC) #14
commit-bot: I haz the power
6 years, 4 months ago (2014-08-19 04:26:54 UTC) #15
Message was sent while issue was closed.
Committed patchset #4 (60001) as 180519

Powered by Google App Engine
This is Rietveld 408576698