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

Issue 490083002: [XHR] Move the code to clear variables to internalAbort() (Closed)

Created:
6 years, 4 months ago by tyoshino (SeeGerritForStatus)
Modified:
6 years, 3 months ago
CC:
blink-reviews
Project:
blink
Visibility:
Public.

Description

[XHR] Move the code to clear variables to internalAbort() This CL adds internalAbort() call to handleDidCancel(). This is not harmful. It's rather good that we clear resources. R=yhirano,sof,kouhei BUG=406229 Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=181791

Patch Set 1 #

Patch Set 2 : #

Patch Set 3 : Reverted removal of cancelLoader() in handleDidTimeout #

Total comments: 6

Patch Set 4 : Final picture #

Patch Set 5 : #

Patch Set 6 : #

Total comments: 5

Patch Set 7 : Removed assertion #

Total comments: 2

Patch Set 8 : Addressed #16 #

Patch Set 9 : Rebase #

Unified diffs Side-by-side diffs Delta from patch set Stats (+6 lines, -24 lines) Patch
M Source/core/xml/XMLHttpRequest.h View 1 2 3 4 5 6 7 8 1 chunk +0 lines, -2 lines 0 comments Download
M Source/core/xml/XMLHttpRequest.cpp View 1 2 3 4 5 6 7 8 7 chunks +6 lines, -22 lines 0 comments Download

Messages

Total messages: 24 (2 generated)
tyoshino (SeeGerritForStatus)
6 years, 4 months ago (2014-08-21 04:44:34 UTC) #1
tyoshino (SeeGerritForStatus)
Sorry please stop reviewing. This breaks some layout tests.
6 years, 4 months ago (2014-08-21 05:10:01 UTC) #2
tyoshino (SeeGerritForStatus)
Fixed
6 years, 4 months ago (2014-08-21 05:29:02 UTC) #3
yhirano
https://codereview.chromium.org/490083002/diff/40001/Source/core/xml/XMLHttpRequest.cpp File Source/core/xml/XMLHttpRequest.cpp (right): https://codereview.chromium.org/490083002/diff/40001/Source/core/xml/XMLHttpRequest.cpp#newcode942 Source/core/xml/XMLHttpRequest.cpp:942: { ASSERT(m_error) here? https://codereview.chromium.org/490083002/diff/40001/Source/core/xml/XMLHttpRequest.cpp#newcode957 Source/core/xml/XMLHttpRequest.cpp:957: // If abort() called ...
6 years, 4 months ago (2014-08-21 06:49:20 UTC) #4
tyoshino (SeeGerritForStatus)
https://codereview.chromium.org/490083002/diff/40001/Source/core/xml/XMLHttpRequest.cpp File Source/core/xml/XMLHttpRequest.cpp (right): https://codereview.chromium.org/490083002/diff/40001/Source/core/xml/XMLHttpRequest.cpp#newcode957 Source/core/xml/XMLHttpRequest.cpp:957: // If abort() called cancelLoader() and a nested open() ...
6 years, 4 months ago (2014-08-21 07:06:31 UTC) #5
yhirano
https://codereview.chromium.org/490083002/diff/40001/Source/core/xml/XMLHttpRequest.cpp File Source/core/xml/XMLHttpRequest.cpp (right): https://codereview.chromium.org/490083002/diff/40001/Source/core/xml/XMLHttpRequest.cpp#newcode957 Source/core/xml/XMLHttpRequest.cpp:957: // If abort() called cancelLoader() and a nested open() ...
6 years, 4 months ago (2014-08-21 08:01:37 UTC) #6
tyoshino (SeeGerritForStatus)
https://codereview.chromium.org/490083002/diff/40001/Source/core/xml/XMLHttpRequest.cpp File Source/core/xml/XMLHttpRequest.cpp (right): https://codereview.chromium.org/490083002/diff/40001/Source/core/xml/XMLHttpRequest.cpp#newcode957 Source/core/xml/XMLHttpRequest.cpp:957: // If abort() called cancelLoader() and a nested open() ...
6 years, 4 months ago (2014-08-21 08:06:51 UTC) #7
tyoshino (SeeGerritForStatus)
OK. My main motivation is not elimination of cancel() call but reorganizing variable clearing code. ...
6 years, 4 months ago (2014-08-21 08:50:36 UTC) #8
tyoshino (SeeGerritForStatus)
PTAL
6 years, 4 months ago (2014-08-21 10:24:43 UTC) #9
yhirano
https://codereview.chromium.org/490083002/diff/100001/Source/core/xml/XMLHttpRequest.cpp File Source/core/xml/XMLHttpRequest.cpp (right): https://codereview.chromium.org/490083002/diff/100001/Source/core/xml/XMLHttpRequest.cpp#newcode548 Source/core/xml/XMLHttpRequest.cpp:548: ASSERT(m_state == UNSENT); We don't need this assertion: it's ...
6 years, 4 months ago (2014-08-21 11:23:09 UTC) #10
yhirano
6 years, 4 months ago (2014-08-21 11:23:10 UTC) #11
tyoshino (SeeGerritForStatus)
https://codereview.chromium.org/490083002/diff/100001/Source/core/xml/XMLHttpRequest.cpp File Source/core/xml/XMLHttpRequest.cpp (right): https://codereview.chromium.org/490083002/diff/100001/Source/core/xml/XMLHttpRequest.cpp#newcode930 Source/core/xml/XMLHttpRequest.cpp:930: clearRequest(); On 2014/08/21 11:23:09, yhirano wrote: > Doesn't Moving ...
6 years, 4 months ago (2014-08-21 12:19:48 UTC) #12
yhirano
lgtm. Please remove the assertion.
6 years, 4 months ago (2014-08-21 12:44:26 UTC) #13
tyoshino (SeeGerritForStatus)
https://codereview.chromium.org/490083002/diff/100001/Source/core/xml/XMLHttpRequest.cpp File Source/core/xml/XMLHttpRequest.cpp (right): https://codereview.chromium.org/490083002/diff/100001/Source/core/xml/XMLHttpRequest.cpp#newcode548 Source/core/xml/XMLHttpRequest.cpp:548: ASSERT(m_state == UNSENT); On 2014/08/21 11:23:09, yhirano wrote: > ...
6 years, 4 months ago (2014-08-21 14:14:58 UTC) #14
tyoshino (SeeGerritForStatus)
+sof
6 years, 4 months ago (2014-08-21 14:17:09 UTC) #15
sof
https://codereview.chromium.org/490083002/diff/120001/Source/core/xml/XMLHttpRequest.cpp File Source/core/xml/XMLHttpRequest.cpp (left): https://codereview.chromium.org/490083002/diff/120001/Source/core/xml/XMLHttpRequest.cpp#oldcode993 Source/core/xml/XMLHttpRequest.cpp:993: void XMLHttpRequest::handleDidFailGeneric() Remove the method from the class declaration ...
6 years, 4 months ago (2014-08-21 21:12:44 UTC) #16
tyoshino (SeeGerritForStatus)
https://codereview.chromium.org/490083002/diff/120001/Source/core/xml/XMLHttpRequest.cpp File Source/core/xml/XMLHttpRequest.cpp (left): https://codereview.chromium.org/490083002/diff/120001/Source/core/xml/XMLHttpRequest.cpp#oldcode993 Source/core/xml/XMLHttpRequest.cpp:993: void XMLHttpRequest::handleDidFailGeneric() On 2014/08/21 21:12:44, sof wrote: > Remove ...
6 years, 4 months ago (2014-08-22 04:26:58 UTC) #17
sof
lgtm
6 years, 4 months ago (2014-08-22 06:34:33 UTC) #18
kouhei (in TOK)
lgtm
6 years, 3 months ago (2014-09-10 20:50:54 UTC) #20
tyoshino (SeeGerritForStatus)
Rebased. Updated the CL description to say that this adds internalAbort() to handleDidCancel().
6 years, 3 months ago (2014-09-11 03:40:45 UTC) #21
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patchset/490083002/160001
6 years, 3 months ago (2014-09-11 03:41:23 UTC) #23
commit-bot: I haz the power
6 years, 3 months ago (2014-09-11 04:46:34 UTC) #24
Message was sent while issue was closed.
Committed patchset #9 (id:160001) as 181791

Powered by Google App Engine
This is Rietveld 408576698