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

Issue 104363002: [XHR] Use hasPendingActivity() to manage XHR's life time. (Closed)

Created:
7 years ago by tyoshino (SeeGerritForStatus)
Modified:
6 years, 4 months ago
Reviewers:
abarth-chromium
CC:
blink-reviews, haraken, kouhei (in TOK), yhirano
Base URL:
https://chromium.googlesource.com/chromium/blink.git@master
Visibility:
Public.

Description

[XHR] Use hasPendingActivity() to manage XHR's life time. BUG=none

Patch Set 1 #

Patch Set 2 : #

Patch Set 3 : Remove setPendingActivity #

Patch Set 4 : Rebased #

Total comments: 7

Patch Set 5 : Put protection back #

Patch Set 6 : Rebase #

Unified diffs Side-by-side diffs Delta from patch set Stats (+39 lines, -58 lines) Patch
M Source/core/xml/XMLHttpRequest.h View 1 2 3 4 5 5 chunks +12 lines, -11 lines 0 comments Download
M Source/core/xml/XMLHttpRequest.cpp View 1 2 3 4 5 9 chunks +27 lines, -47 lines 0 comments Download

Messages

Total messages: 10 (0 generated)
tyoshino (SeeGerritForStatus)
7 years ago (2013-12-04 10:55:45 UTC) #1
tyoshino (SeeGerritForStatus)
Please stop reviewing. I just noticed I forgot to remove setPendingActivity() call.
7 years ago (2013-12-04 16:52:53 UTC) #2
tyoshino (SeeGerritForStatus)
Fixed. PTAL
7 years ago (2013-12-04 17:57:16 UTC) #3
abarth-chromium
If this works, this is great. https://codereview.chromium.org/104363002/diff/60001/Source/core/xml/XMLHttpRequest.cpp File Source/core/xml/XMLHttpRequest.cpp (right): https://codereview.chromium.org/104363002/diff/60001/Source/core/xml/XMLHttpRequest.cpp#newcode1346 Source/core/xml/XMLHttpRequest.cpp:1346: internalAbort(); Don't we ...
7 years ago (2013-12-05 04:14:03 UTC) #4
abarth-chromium
This looks very promising, but I think there are a couple details to worry about. ...
7 years ago (2013-12-05 04:17:24 UTC) #5
tyoshino (SeeGerritForStatus)
https://codereview.chromium.org/104363002/diff/60001/Source/core/xml/XMLHttpRequest.cpp File Source/core/xml/XMLHttpRequest.cpp (right): https://codereview.chromium.org/104363002/diff/60001/Source/core/xml/XMLHttpRequest.cpp#newcode1346 Source/core/xml/XMLHttpRequest.cpp:1346: internalAbort(); On 2013/12/05 04:14:03, abarth wrote: > Don't we ...
7 years ago (2013-12-05 04:26:20 UTC) #6
tyoshino (SeeGerritForStatus)
https://codereview.chromium.org/104363002/diff/60001/Source/core/xml/XMLHttpRequest.cpp File Source/core/xml/XMLHttpRequest.cpp (left): https://codereview.chromium.org/104363002/diff/60001/Source/core/xml/XMLHttpRequest.cpp#oldcode851 Source/core/xml/XMLHttpRequest.cpp:851: RefPtr<XMLHttpRequest> protect(this); On 2013/12/05 04:17:24, abarth wrote: > Don't ...
7 years ago (2013-12-05 04:32:10 UTC) #7
tyoshino (SeeGerritForStatus)
I forgot to check if there's any user of WebCore::XMLHttpRequest than V8 wrapper. Different from ...
7 years ago (2013-12-05 04:57:15 UTC) #8
tyoshino (SeeGerritForStatus)
On 2013/12/05 04:57:15, tyoshino wrote: > I forgot to check if there's any user of ...
7 years ago (2013-12-05 05:08:20 UTC) #9
tyoshino (SeeGerritForStatus)
6 years, 4 months ago (2014-08-21 06:22:08 UTC) #10
On 2013/12/05 05:08:20, tyoshino wrote:
> On 2013/12/05 04:57:15, tyoshino wrote:
> > I forgot to check if there's any user of WebCore::XMLHttpRequest than V8
> > wrapper. Different from Notification and WebSocket, it is.
> > 
> > InspectorResourceAgent::replayXHR() is using WebCore::XMLHttpRequest
directly
> > and looks depending on the current set/unsetPendingActivity() based lifetime
> > management mechanism which inc/dec ref count.
> 
> We could converge them into V8 wrapped pattern by creating a V8 wrapper also
in
> this code path.

Closing obsolete CL. This has been done by kouhei@.

Powered by Google App Engine
This is Rietveld 408576698