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

Issue 344733004: Stop calling [de]ref in ScriptPromiseResolverWithContext destructor. (Closed)

Created:
6 years, 6 months ago by yhirano
Modified:
6 years, 6 months ago
Reviewers:
haraken
CC:
blink-reviews, blink-reviews-bindings_chromium.org, arv+blink, abarth-chromium
Base URL:
https://chromium.googlesource.com/chromium/blink.git@master
Project:
blink
Visibility:
Public.

Description

Stop calling [de]ref in ScriptPromiseResolverWithContext destructor. The ScriptPromiseResolverWithContext destructor is checking if it is misused, but the current code calls ref() and deref(), which are invalid in the destructor. This CL replaces the implementation with a simple assertion. BUG=386479 Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=176518

Patch Set 1 #

Patch Set 2 : #

Patch Set 3 : #

Patch Set 4 : #

Unified diffs Side-by-side diffs Delta from patch set Stats (+19 lines, -11 lines) Patch
M Source/bindings/v8/ScriptPromiseResolverWithContext.h View 1 2 3 3 chunks +15 lines, -1 line 0 comments Download
M Source/bindings/v8/ScriptPromiseResolverWithContext.cpp View 1 2 3 2 chunks +4 lines, -10 lines 0 comments Download

Messages

Total messages: 17 (0 generated)
yhirano
6 years, 6 months ago (2014-06-19 07:52:56 UTC) #1
haraken
> ScriptPromiserResolverWithContext rejects the associated Promise in case > it is destructed without calling resolve ...
6 years, 6 months ago (2014-06-19 08:06:12 UTC) #2
yhirano
It's user's bug, not ScriptPromiseResolverWithContext's. The code in the destructor helps to find it, I ...
6 years, 6 months ago (2014-06-19 08:09:11 UTC) #3
haraken
On 2014/06/19 08:09:11, yhirano wrote: > It's user's bug, not ScriptPromiseResolverWithContext's. > The code in ...
6 years, 6 months ago (2014-06-19 08:15:29 UTC) #4
yhirano
On 2014/06/19 08:15:29, haraken wrote: > On 2014/06/19 08:09:11, yhirano wrote: > > It's user's ...
6 years, 6 months ago (2014-06-19 08:23:09 UTC) #5
haraken
On 2014/06/19 08:23:09, yhirano wrote: > On 2014/06/19 08:15:29, haraken wrote: > > On 2014/06/19 ...
6 years, 6 months ago (2014-06-19 08:34:09 UTC) #6
yhirano
On 2014/06/19 08:34:09, haraken wrote: > On 2014/06/19 08:23:09, yhirano wrote: > > On 2014/06/19 ...
6 years, 6 months ago (2014-06-19 09:03:49 UTC) #7
haraken
On 2014/06/19 09:03:49, yhirano wrote: > On 2014/06/19 08:34:09, haraken wrote: > > On 2014/06/19 ...
6 years, 6 months ago (2014-06-19 09:07:56 UTC) #8
yhirano
On 2014/06/19 09:07:56, haraken wrote: > On 2014/06/19 09:03:49, yhirano wrote: > > On 2014/06/19 ...
6 years, 6 months ago (2014-06-19 11:56:43 UTC) #9
haraken
LGTM, thanks!
6 years, 6 months ago (2014-06-19 11:58:49 UTC) #10
yhirano
The CQ bit was checked by yhirano@chromium.org
6 years, 6 months ago (2014-06-19 12:35:59 UTC) #11
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/yhirano@chromium.org/344733004/60001
6 years, 6 months ago (2014-06-19 12:36:18 UTC) #12
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 6 months ago (2014-06-19 14:15:00 UTC) #13
commit-bot: I haz the power
Try jobs failed on following builders: win_gpu_triggered_tests on tryserver.chromium.gpu (http://build.chromium.org/p/tryserver.chromium.gpu/builders/win_gpu_triggered_tests/builds/19200)
6 years, 6 months ago (2014-06-19 14:15:01 UTC) #14
yhirano
The CQ bit was checked by yhirano@chromium.org
6 years, 6 months ago (2014-06-19 14:32:22 UTC) #15
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/yhirano@chromium.org/344733004/60001
6 years, 6 months ago (2014-06-19 14:33:16 UTC) #16
commit-bot: I haz the power
6 years, 6 months ago (2014-06-19 15:35:41 UTC) #17
Message was sent while issue was closed.
Change committed as 176518

Powered by Google App Engine
This is Rietveld 408576698