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

Issue 2496933002: XMLHttpRequest: implement "send() flag" tracking and updating per spec. (Closed)

Created:
4 years, 1 month ago by sof
Modified:
4 years, 1 month ago
CC:
chromium-reviews, blink-reviews, tyoshino+watch_chromium.org
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

XMLHttpRequest: implement "send() flag" tracking and updating per spec. The implementation has until now tracked/approximated the spec's "send() flag"[1] by checking if the XMLHttpRequest object had an active loader. That object does not have lifetime equal to what the spec requires for the "send() flag", nor is the loader set for sync XHR send()s. There's no good reason to hold out on tracking this flag per spec, so introduce it here. [1] - https://xhr.spec.whatwg.org/#send-flag R=yhirano BUG=649516 Committed: https://crrev.com/78363083b0281dbc05ba3ce3c73eec1bf9dcc9b1 Cr-Commit-Position: refs/heads/master@{#432148}

Patch Set 1 #

Total comments: 2

Patch Set 2 : add recursive send() test #

Total comments: 2

Patch Set 3 : add missing field initialization #

Unified diffs Side-by-side diffs Delta from patch set Stats (+79 lines, -13 lines) Patch
A third_party/WebKit/LayoutTests/http/tests/xmlhttprequest/onloadstart-send.html View 1 1 chunk +27 lines, -0 lines 0 comments Download
A third_party/WebKit/LayoutTests/http/tests/xmlhttprequest/withCredentials-after-send.html View 1 1 chunk +40 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/core/xmlhttprequest/XMLHttpRequest.h View 1 chunk +1 line, -0 lines 0 comments Download
M third_party/WebKit/Source/core/xmlhttprequest/XMLHttpRequest.cpp View 1 2 11 chunks +11 lines, -13 lines 0 comments Download

Messages

Total messages: 29 (18 generated)
sof
hi, please take a look. I think it's time to just do this.
4 years, 1 month ago (2016-11-11 14:48:23 UTC) #4
yhirano
Thank you for working on this issue. Can you add a recursive send test case? ...
4 years, 1 month ago (2016-11-14 06:45:22 UTC) #7
sof
On 2016/11/14 06:45:22, yhirano wrote: > Thank you for working on this issue. > > ...
4 years, 1 month ago (2016-11-14 07:46:56 UTC) #11
sof
https://codereview.chromium.org/2496933002/diff/1/third_party/WebKit/LayoutTests/http/tests/xmlhttprequest/withCredentials-after-send.html File third_party/WebKit/LayoutTests/http/tests/xmlhttprequest/withCredentials-after-send.html (right): https://codereview.chromium.org/2496933002/diff/1/third_party/WebKit/LayoutTests/http/tests/xmlhttprequest/withCredentials-after-send.html#newcode23 third_party/WebKit/LayoutTests/http/tests/xmlhttprequest/withCredentials-after-send.html:23: testAsync.done(); On 2016/11/14 06:45:22, yhirano wrote: > Not needed? ...
4 years, 1 month ago (2016-11-14 07:47:05 UTC) #12
yhirano
https://codereview.chromium.org/2496933002/diff/20001/third_party/WebKit/Source/core/xmlhttprequest/XMLHttpRequest.cpp File third_party/WebKit/Source/core/xmlhttprequest/XMLHttpRequest.cpp (right): https://codereview.chromium.org/2496933002/diff/20001/third_party/WebKit/Source/core/xmlhttprequest/XMLHttpRequest.cpp#newcode249 third_party/WebKit/Source/core/xmlhttprequest/XMLHttpRequest.cpp:249: m_responseTextOverflow(false) {} Please initialize the flag.
4 years, 1 month ago (2016-11-15 02:26:08 UTC) #15
sof
https://codereview.chromium.org/2496933002/diff/20001/third_party/WebKit/Source/core/xmlhttprequest/XMLHttpRequest.cpp File third_party/WebKit/Source/core/xmlhttprequest/XMLHttpRequest.cpp (right): https://codereview.chromium.org/2496933002/diff/20001/third_party/WebKit/Source/core/xmlhttprequest/XMLHttpRequest.cpp#newcode249 third_party/WebKit/Source/core/xmlhttprequest/XMLHttpRequest.cpp:249: m_responseTextOverflow(false) {} On 2016/11/15 02:26:08, yhirano wrote: > Please ...
4 years, 1 month ago (2016-11-15 06:48:46 UTC) #18
yhirano
lgtm
4 years, 1 month ago (2016-11-15 08:33:58 UTC) #21
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/2496933002/40001
4 years, 1 month ago (2016-11-15 08:54:50 UTC) #24
tyoshino (SeeGerritForStatus)
lgtm
4 years, 1 month ago (2016-11-15 08:57:14 UTC) #25
commit-bot: I haz the power
Committed patchset #3 (id:40001)
4 years, 1 month ago (2016-11-15 08:59:07 UTC) #27
commit-bot: I haz the power
4 years, 1 month ago (2016-11-15 09:00:53 UTC) #29
Message was sent while issue was closed.
Patchset 3 (id:??) landed as
https://crrev.com/78363083b0281dbc05ba3ce3c73eec1bf9dcc9b1
Cr-Commit-Position: refs/heads/master@{#432148}

Powered by Google App Engine
This is Rietveld 408576698