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

Issue 2571193002: Signal no pending activity in destructed contexts. (Closed)

Created:
4 years ago by sof
Modified:
4 years ago
CC:
chromium-reviews, kenneth.christiansen, Yoav Weiss, Mikhail, wanming.lin, shalamov, mlamouri+watch-blink_chromium.org, blink-reviews-css, timvolodine, dglazkov+blink, apavlov+blink_chromium.org, cmumford, darktears, blink-reviews, jsbell+idb_chromium.org, rwlbuis
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Signal no pending activity in destructed contexts. Various hasPendingActivity() overrides weren't taking the state of the ExecutionContext into account, only considering if event listeners were registered. We're not interested in holding onto a script environment after an execution context has been destroyed, so adjust the predicates to return false if the ExecutionContext has been destructed. The V8GCController wrapper visitors already check if hasPendingActivity() implementations incorrectly return |true| when used inside of destroyed ExecutionContexts, but that check is not handled by trace wrappers (ActiveScriptWrappable.) R= BUG= Committed: https://crrev.com/cf43a3b249e837503fad6d815d74346d7a187f84 Cr-Commit-Position: refs/heads/master@{#438787}

Patch Set 1 #

Unified diffs Side-by-side diffs Delta from patch set Stats (+9 lines, -12 lines) Patch
M third_party/WebKit/Source/core/css/FontFace.cpp View 1 chunk +1 line, -2 lines 0 comments Download
M third_party/WebKit/Source/core/css/MediaQueryList.cpp View 1 chunk +2 lines, -1 line 0 comments Download
M third_party/WebKit/Source/modules/battery/BatteryManager.cpp View 1 chunk +2 lines, -2 lines 0 comments Download
M third_party/WebKit/Source/modules/imagecapture/ImageCapture.cpp View 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/Source/modules/indexeddb/IDBDatabase.cpp View 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/Source/modules/presentation/PresentationRequest.cpp View 1 chunk +1 line, -4 lines 0 comments Download
M third_party/WebKit/Source/modules/sensor/Sensor.cpp View 1 chunk +1 line, -1 line 0 comments Download

Messages

Total messages: 28 (13 generated)
sof
please take a look.
4 years ago (2016-12-14 14:03:50 UTC) #4
haraken
LGTM Before enabling the wrapper tracing, we don't need the getExecutionContext() check, because we forcibly ...
4 years ago (2016-12-14 15:56:20 UTC) #9
sof
On 2016/12/14 15:56:20, haraken wrote: > LGTM > > Before enabling the wrapper tracing, we ...
4 years ago (2016-12-14 16:26:33 UTC) #11
dcheng
On 2016/12/14 16:26:33, sof wrote: > On 2016/12/14 15:56:20, haraken wrote: > > LGTM > ...
4 years ago (2016-12-14 17:03:11 UTC) #12
sof
On 2016/12/14 17:03:11, dcheng wrote: > On 2016/12/14 16:26:33, sof wrote: > > On 2016/12/14 ...
4 years ago (2016-12-14 18:16:40 UTC) #13
dcheng
On 2016/12/14 18:16:40, sof wrote: > On 2016/12/14 17:03:11, dcheng wrote: > > On 2016/12/14 ...
4 years ago (2016-12-14 18:29:35 UTC) #14
sof
On 2016/12/14 18:29:35, dcheng wrote: > On 2016/12/14 18:16:40, sof wrote: > > On 2016/12/14 ...
4 years ago (2016-12-14 19:26:35 UTC) #15
Michael Lippautz
On 2016/12/14 19:26:35, sof wrote: > On 2016/12/14 18:29:35, dcheng wrote: > > On 2016/12/14 ...
4 years ago (2016-12-14 21:45:46 UTC) #16
haraken
On 2016/12/14 19:26:35, sof wrote: > On 2016/12/14 18:29:35, dcheng wrote: > > On 2016/12/14 ...
4 years ago (2016-12-15 00:10:03 UTC) #17
dcheng
Ok, LGTM
4 years ago (2016-12-15 00:31:10 UTC) #18
sof
I'll get on to that ActiveScriptWrappable change right away, if no one else is busy ...
4 years ago (2016-12-15 08:32:21 UTC) #20
haraken
On 2016/12/15 08:32:21, sof wrote: > I'll get on to that ActiveScriptWrappable change right away, ...
4 years ago (2016-12-15 08:40:01 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/2571193002/1
4 years ago (2016-12-15 08:50:06 UTC) #23
commit-bot: I haz the power
Committed patchset #1 (id:1)
4 years ago (2016-12-15 08:54:12 UTC) #26
commit-bot: I haz the power
4 years ago (2016-12-15 08:56:43 UTC) #28
Message was sent while issue was closed.
Patchset 1 (id:??) landed as
https://crrev.com/cf43a3b249e837503fad6d815d74346d7a187f84
Cr-Commit-Position: refs/heads/master@{#438787}

Powered by Google App Engine
This is Rietveld 408576698