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

Issue 368853002: Add ScriptForbiddenScope to weak callbacks of DOM wrappers (Closed)

Created:
6 years, 5 months ago by haraken
Modified:
6 years, 4 months ago
CC:
abarth-chromium, arv+blink, blink-reviews, blink-reviews-bindings_chromium.org
Project:
blink
Visibility:
Public.

Description

Add ScriptForbiddenScope to weak callbacks of DOM wrappers It's dangerous to allow arbitrary JavaScript to run during a V8 GC. BUG=389445 Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=177457

Patch Set 1 #

Total comments: 2

Patch Set 2 : #

Total comments: 1
Unified diffs Side-by-side diffs Delta from patch set Stats (+9 lines, -4 lines) Patch
M Source/bindings/core/v8/DOMWrapperMap.h View 2 chunks +2 lines, -0 lines 0 comments Download
M Source/bindings/core/v8/ScriptWrappable.h View 1 2 chunks +2 lines, -0 lines 0 comments Download
M Source/core/dom/ScriptForbiddenScope.cpp View 1 1 chunk +5 lines, -4 lines 1 comment Download

Messages

Total messages: 25 (0 generated)
haraken
V8RecursionScope has ASSERT(ScriptForbiddenScope::isScriptForbidden), so the assert will be caught only in Debug builds. I'm planning ...
6 years, 5 months ago (2014-07-02 11:17:48 UTC) #1
jochen (gone - plz use gerrit)
https://codereview.chromium.org/368853002/diff/1/Source/bindings/core/v8/ScriptWrappable.h File Source/bindings/core/v8/ScriptWrappable.h (right): https://codereview.chromium.org/368853002/diff/1/Source/bindings/core/v8/ScriptWrappable.h#newcode256 Source/bindings/core/v8/ScriptWrappable.h:256: ScriptForbiddenScope forbiddenScope; why here?
6 years, 5 months ago (2014-07-02 11:21:54 UTC) #2
haraken
https://codereview.chromium.org/368853002/diff/1/Source/bindings/core/v8/ScriptWrappable.h File Source/bindings/core/v8/ScriptWrappable.h (right): https://codereview.chromium.org/368853002/diff/1/Source/bindings/core/v8/ScriptWrappable.h#newcode256 Source/bindings/core/v8/ScriptWrappable.h:256: ScriptForbiddenScope forbiddenScope; On 2014/07/02 11:21:54, jochen wrote: > why ...
6 years, 5 months ago (2014-07-02 11:23:13 UTC) #3
haraken
On 2014/07/02 11:23:13, haraken wrote: > https://codereview.chromium.org/368853002/diff/1/Source/bindings/core/v8/ScriptWrappable.h > File Source/bindings/core/v8/ScriptWrappable.h (right): > > https://codereview.chromium.org/368853002/diff/1/Source/bindings/core/v8/ScriptWrappable.h#newcode256 > ...
6 years, 5 months ago (2014-07-02 11:23:39 UTC) #4
jochen (gone - plz use gerrit)
On 2014/07/02 at 11:23:39, haraken wrote: > On 2014/07/02 11:23:13, haraken wrote: > > https://codereview.chromium.org/368853002/diff/1/Source/bindings/core/v8/ScriptWrappable.h ...
6 years, 5 months ago (2014-07-02 13:06:38 UTC) #5
haraken
The CQ bit was checked by haraken@chromium.org
6 years, 5 months ago (2014-07-02 13:07:06 UTC) #6
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/haraken@chromium.org/368853002/1
6 years, 5 months ago (2014-07-02 13:08:21 UTC) #7
commit-bot: I haz the power
FYI, CQ is re-trying this CL (attempt #1). The failing builders are: linux_blink_dbg on tryserver.blink ...
6 years, 5 months ago (2014-07-02 14:07:32 UTC) #8
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 5 months ago (2014-07-02 14:50:48 UTC) #9
commit-bot: I haz the power
Try jobs failed on following builders: linux_blink_dbg on tryserver.blink (http://build.chromium.org/p/tryserver.blink/builders/linux_blink_dbg/builds/14742)
6 years, 5 months ago (2014-07-02 14:50:48 UTC) #10
haraken
https://codereview.chromium.org/368853002/diff/20001/Source/core/dom/ScriptForbiddenScope.cpp File Source/core/dom/ScriptForbiddenScope.cpp (right): https://codereview.chromium.org/368853002/diff/20001/Source/core/dom/ScriptForbiddenScope.cpp#newcode20 Source/core/dom/ScriptForbiddenScope.cpp:20: if (isMainThread()) Since ScriptWrappable and DOMWrapperMap are used in ...
6 years, 5 months ago (2014-07-03 01:56:19 UTC) #11
haraken
The CQ bit was checked by haraken@chromium.org
6 years, 5 months ago (2014-07-03 01:56:22 UTC) #12
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/haraken@chromium.org/368853002/20001
6 years, 5 months ago (2014-07-03 01:57:00 UTC) #13
commit-bot: I haz the power
FYI, CQ is re-trying this CL (attempt #1). The failing builders are: win_gpu on tryserver.chromium.gpu ...
6 years, 5 months ago (2014-07-03 03:03:25 UTC) #14
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 5 months ago (2014-07-03 04:10:16 UTC) #15
commit-bot: I haz the power
Try jobs failed on following builders: win_gpu on tryserver.chromium.gpu (http://build.chromium.org/p/tryserver.chromium.gpu/builders/win_gpu/builds/28862)
6 years, 5 months ago (2014-07-03 04:10:17 UTC) #16
haraken
The CQ bit was checked by haraken@chromium.org
6 years, 5 months ago (2014-07-03 04:40:58 UTC) #17
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/haraken@chromium.org/368853002/20001
6 years, 5 months ago (2014-07-03 04:41:54 UTC) #18
commit-bot: I haz the power
FYI, CQ is re-trying this CL (attempt #1). The failing builders are: win_gpu on tryserver.chromium.gpu ...
6 years, 5 months ago (2014-07-03 05:32:44 UTC) #19
commit-bot: I haz the power
Change committed as 177457
6 years, 5 months ago (2014-07-03 07:43:44 UTC) #20
esprehn
On 2014/07/03 at 07:43:44, commit-bot wrote: > Change committed as 177457 This is making isMainThread() ...
6 years, 4 months ago (2014-07-29 23:01:14 UTC) #21
haraken
On 2014/07/29 23:01:14, esprehn wrote: > On 2014/07/03 at 07:43:44, commit-bot wrote: > > Change ...
6 years, 4 months ago (2014-07-29 23:22:14 UTC) #22
abarth-chromium
A revert of this CL has been created in https://codereview.chromium.org/430763002/ by abarth@chromium.org. The reason for ...
6 years, 4 months ago (2014-07-30 06:01:04 UTC) #23
abarth-chromium
I failed to revert this CL, but we probably should revert it while we sort ...
6 years, 4 months ago (2014-07-30 07:03:46 UTC) #24
haraken
6 years, 4 months ago (2014-07-30 09:35:07 UTC) #25
Message was sent while issue was closed.
On 2014/07/30 07:03:46, abarth wrote:
> I failed to revert this CL, but we probably should revert it while we sort out
> the performance issues.

I'll revert it tomorrow and investigate.

Powered by Google App Engine
This is Rietveld 408576698