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

Issue 942433003: Protect XHR's wrapper while dispatching event. (Closed)

Created:
5 years, 10 months ago by yhirano
Modified:
5 years, 10 months ago
CC:
blink-reviews, tyoshino+watch_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/blink.git@master
Target Ref:
refs/heads/master
Project:
blink
Visibility:
Public.

Description

Protect XHR's wrapper while dispatching event. In the current impl, XMLHttpRequest::hasPendingActivity returns false when the associated loader is gone. On the ohter hand, event dispatching, which may happen *after* the associated loader is gone, needs the wrapper. This CL extends the protection for the wrapper via hasPendingActivity by introducing m_eventDispatchRecursionLevel. As we have suffered from insufficient protection for a long time, this CL protects the wrapper conservatively. This CL drops RefPtr-based protections because they are covered by hasPendingActivity based protections. BUG=458970 Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=190531

Patch Set 1 #

Patch Set 2 : #

Patch Set 3 : #

Unified diffs Side-by-side diffs Delta from patch set Stats (+45 lines, -20 lines) Patch
M Source/core/xmlhttprequest/XMLHttpRequest.h View 1 chunk +5 lines, -0 lines 0 comments Download
M Source/core/xmlhttprequest/XMLHttpRequest.cpp View 1 2 20 chunks +40 lines, -20 lines 0 comments Download

Messages

Total messages: 12 (3 generated)
yhirano
PTAL
5 years, 10 months ago (2015-02-19 08:09:05 UTC) #2
kouhei (in TOK)
On 2015/02/19 08:09:05, yhirano wrote: > PTAL lgtm I'm not a big fan of this ...
5 years, 10 months ago (2015-02-19 10:08:33 UTC) #3
yhirano
On 2015/02/19 10:08:33, kouhei wrote: > > I think we don't need this in Oilpan, ...
5 years, 10 months ago (2015-02-19 10:37:32 UTC) #4
kouhei (in TOK)
On 2015/02/19 10:37:32, yhirano wrote: > On 2015/02/19 10:08:33, kouhei wrote: > > > > ...
5 years, 10 months ago (2015-02-19 11:18:22 UTC) #5
tyoshino (SeeGerritForStatus)
lgtm ps3
5 years, 10 months ago (2015-02-20 03:57:57 UTC) #6
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/942433003/40001
5 years, 10 months ago (2015-02-20 04:06:42 UTC) #8
commit-bot: I haz the power
Committed patchset #3 (id:40001) as https://src.chromium.org/viewvc/blink?view=rev&revision=190531
5 years, 10 months ago (2015-02-20 05:30:03 UTC) #9
sof
Do we have a test for this?
5 years, 10 months ago (2015-02-20 07:35:45 UTC) #11
yhirano
5 years, 10 months ago (2015-02-20 08:05:51 UTC) #12
Message was sent while issue was closed.
I could reproduce the issue with Chrome 40, but the failure rate was fairly low
(< 1%). https://codereview.chromium.org/938553003/

Powered by Google App Engine
This is Rietveld 408576698