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

Issue 2339683006: [Blink] Modify SuspendableScriptExecutor to take a v8::Function (Closed)

Created:
4 years, 3 months ago by Devlin
Modified:
3 years, 4 months ago
CC:
chromium-reviews, extensions-reviews_chromium.org, dglazkov+blink, blink-reviews, chromium-apps-reviews_chromium.org, kinuko+watch, blink-reviews-api_chromium.org, nasko, nhiroki, yhirano, dgozman
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

[Blink] Modify SuspendableScriptExecutor to take a v8::Function Allow SuspendableScriptExecutor to take a v8::Function so that it can be used from Extensions code. Also wire up WebLocalFrame and ScriptContext to have handles to use it. Convert a couple of basic extensions call sites as a POC. BUG=629431 Committed: https://crrev.com/a9bc8ccd2becc952e4cea2d8a053247a481dd483 Cr-Commit-Position: refs/heads/master@{#423548}

Patch Set 1 : polish #

Total comments: 21

Patch Set 2 : Daniels #

Total comments: 6

Patch Set 3 : In Prog #

Total comments: 10

Patch Set 4 : Haraken's #

Total comments: 10

Patch Set 5 : mark method as deprecated #

Total comments: 1

Patch Set 6 : Win compile fix #

Unified diffs Side-by-side diffs Delta from patch set Stats (+200 lines, -43 lines) Patch
M extensions/renderer/module_system.cc View 1 chunk +1 line, -1 line 0 comments Download
M extensions/renderer/render_frame_observer_natives.cc View 1 2 3 1 chunk +2 lines, -2 lines 0 comments Download
M extensions/renderer/script_context.h View 1 chunk +7 lines, -0 lines 0 comments Download
M extensions/renderer/script_context.cc View 1 2 3 1 chunk +16 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/web/SuspendableScriptExecutor.h View 1 2 3 3 chunks +20 lines, -10 lines 0 comments Download
M third_party/WebKit/Source/web/SuspendableScriptExecutor.cpp View 1 2 3 4 5 4 chunks +129 lines, -30 lines 0 comments Download
M third_party/WebKit/Source/web/WebLocalFrameImpl.h View 1 2 3 4 1 chunk +5 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/web/WebLocalFrameImpl.cpp View 1 2 3 4 1 chunk +11 lines, -0 lines 0 comments Download
M third_party/WebKit/public/web/WebLocalFrame.h View 1 2 3 4 1 chunk +9 lines, -0 lines 0 comments Download

Messages

Total messages: 60 (26 generated)
Devlin
Heya Daniel, here's a first attempt. Note that I'm not an expert in blink or ...
4 years, 3 months ago (2016-09-16 18:16:31 UTC) #6
Devlin
friendly ping. :)
4 years, 3 months ago (2016-09-20 22:40:58 UTC) #7
dcheng
+haraken for Oilpan question +falken for SW question, and whether service workers can run nested ...
4 years, 2 months ago (2016-09-27 08:30:57 UTC) #9
haraken
https://codereview.chromium.org/2339683006/diff/60001/third_party/WebKit/Source/web/SuspendableScriptExecutor.cpp File third_party/WebKit/Source/web/SuspendableScriptExecutor.cpp (right): https://codereview.chromium.org/2339683006/diff/60001/third_party/WebKit/Source/web/SuspendableScriptExecutor.cpp#newcode30 third_party/WebKit/Source/web/SuspendableScriptExecutor.cpp:30: HeapVector<ScriptSourceCode> m_sources; On 2016/09/27 08:30:57, dcheng wrote: > I'm ...
4 years, 2 months ago (2016-09-27 08:39:45 UTC) #10
dcheng
https://codereview.chromium.org/2339683006/diff/60001/third_party/WebKit/Source/web/SuspendableScriptExecutor.cpp File third_party/WebKit/Source/web/SuspendableScriptExecutor.cpp (right): https://codereview.chromium.org/2339683006/diff/60001/third_party/WebKit/Source/web/SuspendableScriptExecutor.cpp#newcode30 third_party/WebKit/Source/web/SuspendableScriptExecutor.cpp:30: HeapVector<ScriptSourceCode> m_sources; On 2016/09/27 08:39:45, haraken wrote: > On ...
4 years, 2 months ago (2016-09-27 09:02:59 UTC) #11
haraken
https://codereview.chromium.org/2339683006/diff/60001/third_party/WebKit/Source/web/SuspendableScriptExecutor.cpp File third_party/WebKit/Source/web/SuspendableScriptExecutor.cpp (right): https://codereview.chromium.org/2339683006/diff/60001/third_party/WebKit/Source/web/SuspendableScriptExecutor.cpp#newcode30 third_party/WebKit/Source/web/SuspendableScriptExecutor.cpp:30: HeapVector<ScriptSourceCode> m_sources; On 2016/09/27 09:02:59, dcheng wrote: > On ...
4 years, 2 months ago (2016-09-27 13:25:41 UTC) #12
Devlin
https://codereview.chromium.org/2339683006/diff/60001/third_party/WebKit/Source/web/DEPS File third_party/WebKit/Source/web/DEPS (right): https://codereview.chromium.org/2339683006/diff/60001/third_party/WebKit/Source/web/DEPS#newcode16 third_party/WebKit/Source/web/DEPS:16: "+v8", On 2016/09/27 08:30:57, dcheng wrote: > On 2016/09/16 ...
4 years, 2 months ago (2016-09-27 22:14:20 UTC) #13
dcheng
https://codereview.chromium.org/2339683006/diff/60001/third_party/WebKit/Source/web/SuspendableScriptExecutor.cpp File third_party/WebKit/Source/web/SuspendableScriptExecutor.cpp (right): https://codereview.chromium.org/2339683006/diff/60001/third_party/WebKit/Source/web/SuspendableScriptExecutor.cpp#newcode30 third_party/WebKit/Source/web/SuspendableScriptExecutor.cpp:30: HeapVector<ScriptSourceCode> m_sources; On 2016/09/27 13:25:41, haraken wrote: > On ...
4 years, 2 months ago (2016-09-27 22:24:25 UTC) #14
falken
https://codereview.chromium.org/2339683006/diff/60001/extensions/renderer/script_context.cc File extensions/renderer/script_context.cc (right): https://codereview.chromium.org/2339683006/diff/60001/extensions/renderer/script_context.cc#newcode216 extensions/renderer/script_context.cc:216: } else { On 2016/09/27 08:30:57, dcheng wrote: > ...
4 years, 2 months ago (2016-09-28 00:04:15 UTC) #15
haraken
On 2016/09/27 22:24:25, dcheng wrote: > https://codereview.chromium.org/2339683006/diff/60001/third_party/WebKit/Source/web/SuspendableScriptExecutor.cpp > File third_party/WebKit/Source/web/SuspendableScriptExecutor.cpp (right): > > https://codereview.chromium.org/2339683006/diff/60001/third_party/WebKit/Source/web/SuspendableScriptExecutor.cpp#newcode30 > ...
4 years, 2 months ago (2016-09-28 00:34:56 UTC) #16
haraken
On 2016/09/28 00:34:56, haraken wrote: > On 2016/09/27 22:24:25, dcheng wrote: > > > https://codereview.chromium.org/2339683006/diff/60001/third_party/WebKit/Source/web/SuspendableScriptExecutor.cpp ...
4 years, 2 months ago (2016-09-28 00:40:16 UTC) #17
haraken
These Oilpan errors should have been caught by the GC plugin -- but there's a ...
4 years, 2 months ago (2016-09-28 00:41:22 UTC) #18
yhirano
https://codereview.chromium.org/2339683006/diff/60001/extensions/renderer/script_context.cc File extensions/renderer/script_context.cc (right): https://codereview.chromium.org/2339683006/diff/60001/extensions/renderer/script_context.cc#newcode216 extensions/renderer/script_context.cc:216: } else { On 2016/09/28 00:04:14, falken wrote: > ...
4 years, 2 months ago (2016-09-28 05:55:03 UTC) #20
haraken
4 years, 2 months ago (2016-09-28 07:31:48 UTC) #22
Devlin
dcheng/haraken, please see comment in SuspendableScriptExecutor.cpp. Sorry, my blink fu is nonexistent. :/ https://codereview.chromium.org/2339683006/diff/60001/third_party/WebKit/Source/web/SuspendableScriptExecutor.cpp File ...
4 years, 2 months ago (2016-09-30 21:22:23 UTC) #23
haraken
https://codereview.chromium.org/2339683006/diff/100001/third_party/WebKit/Source/web/SuspendableScriptExecutor.cpp File third_party/WebKit/Source/web/SuspendableScriptExecutor.cpp (right): https://codereview.chromium.org/2339683006/diff/100001/third_party/WebKit/Source/web/SuspendableScriptExecutor.cpp#newcode22 third_party/WebKit/Source/web/SuspendableScriptExecutor.cpp:22: class WebScriptExecutor : public GarbageCollectedFinalized<WebScriptExecutor>, public SuspendableScriptExecutor::Executor { WebScriptExecutor ...
4 years, 2 months ago (2016-10-03 02:30:09 UTC) #24
Devlin
https://codereview.chromium.org/2339683006/diff/100001/third_party/WebKit/Source/web/SuspendableScriptExecutor.cpp File third_party/WebKit/Source/web/SuspendableScriptExecutor.cpp (right): https://codereview.chromium.org/2339683006/diff/100001/third_party/WebKit/Source/web/SuspendableScriptExecutor.cpp#newcode22 third_party/WebKit/Source/web/SuspendableScriptExecutor.cpp:22: class WebScriptExecutor : public GarbageCollectedFinalized<WebScriptExecutor>, public SuspendableScriptExecutor::Executor { On ...
4 years, 2 months ago (2016-10-03 20:53:30 UTC) #25
haraken
https://codereview.chromium.org/2339683006/diff/100001/third_party/WebKit/Source/web/SuspendableScriptExecutor.cpp File third_party/WebKit/Source/web/SuspendableScriptExecutor.cpp (right): https://codereview.chromium.org/2339683006/diff/100001/third_party/WebKit/Source/web/SuspendableScriptExecutor.cpp#newcode112 third_party/WebKit/Source/web/SuspendableScriptExecutor.cpp:112: SuspendableScriptExecutor* executor = new SuspendableScriptExecutor(frame, callback, new V8FunctionExecutor(isolate, function, ...
4 years, 2 months ago (2016-10-04 00:08:30 UTC) #26
Devlin
https://codereview.chromium.org/2339683006/diff/100001/third_party/WebKit/Source/web/SuspendableScriptExecutor.cpp File third_party/WebKit/Source/web/SuspendableScriptExecutor.cpp (right): https://codereview.chromium.org/2339683006/diff/100001/third_party/WebKit/Source/web/SuspendableScriptExecutor.cpp#newcode112 third_party/WebKit/Source/web/SuspendableScriptExecutor.cpp:112: SuspendableScriptExecutor* executor = new SuspendableScriptExecutor(frame, callback, new V8FunctionExecutor(isolate, function, ...
4 years, 2 months ago (2016-10-04 00:14:26 UTC) #27
haraken
On 2016/10/04 00:14:26, Devlin wrote: > https://codereview.chromium.org/2339683006/diff/100001/third_party/WebKit/Source/web/SuspendableScriptExecutor.cpp > File third_party/WebKit/Source/web/SuspendableScriptExecutor.cpp (right): > > https://codereview.chromium.org/2339683006/diff/100001/third_party/WebKit/Source/web/SuspendableScriptExecutor.cpp#newcode112 > ...
4 years, 2 months ago (2016-10-04 00:21:26 UTC) #28
dcheng
Just one major remaining question about this CL about service workers, due to the TODO. ...
4 years, 2 months ago (2016-10-04 05:58:49 UTC) #29
dcheng
https://codereview.chromium.org/2339683006/diff/120001/third_party/WebKit/public/web/WebLocalFrame.h File third_party/WebKit/public/web/WebLocalFrame.h (right): https://codereview.chromium.org/2339683006/diff/120001/third_party/WebKit/public/web/WebLocalFrame.h#newcode193 third_party/WebKit/public/web/WebLocalFrame.h:193: virtual void requestExecuteV8Function(v8::Local<v8::Function>, Also, I forgot to save this ...
4 years, 2 months ago (2016-10-04 05:59:53 UTC) #30
Devlin
https://codereview.chromium.org/2339683006/diff/120001/extensions/renderer/script_context.cc File extensions/renderer/script_context.cc (right): https://codereview.chromium.org/2339683006/diff/120001/extensions/renderer/script_context.cc#newcode216 extensions/renderer/script_context.cc:216: // TODO(devlin): This probably isn't safe. On 2016/10/04 05:58:49, ...
4 years, 2 months ago (2016-10-04 19:40:05 UTC) #32
dcheng
LGTM, but let's test and make sure this works as advertised before we land. https://codereview.chromium.org/2339683006/diff/140001/third_party/WebKit/public/web/WebLocalFrame.h ...
4 years, 2 months ago (2016-10-04 23:55:15 UTC) #36
falken
https://codereview.chromium.org/2339683006/diff/120001/extensions/renderer/script_context.cc File extensions/renderer/script_context.cc (right): https://codereview.chromium.org/2339683006/diff/120001/extensions/renderer/script_context.cc#newcode216 extensions/renderer/script_context.cc:216: // TODO(devlin): This probably isn't safe. On 2016/10/04 19:40:05, ...
4 years, 2 months ago (2016-10-05 00:19:55 UTC) #37
dgozman
https://codereview.chromium.org/2339683006/diff/120001/extensions/renderer/script_context.cc File extensions/renderer/script_context.cc (right): https://codereview.chromium.org/2339683006/diff/120001/extensions/renderer/script_context.cc#newcode216 extensions/renderer/script_context.cc:216: // TODO(devlin): This probably isn't safe. On 2016/10/05 00:19:55, ...
4 years, 2 months ago (2016-10-05 01:25:43 UTC) #39
Devlin
Any objections to me landing this? (asking because there are a lot of reviewers, but ...
4 years, 2 months ago (2016-10-06 00:18:10 UTC) #47
dcheng
I'm a little concerned about the SW path, but I think we should land this ...
4 years, 2 months ago (2016-10-06 00:25:07 UTC) #48
Devlin
On 2016/10/06 00:25:07, dcheng wrote: > I'm a little concerned about the SW path, but ...
4 years, 2 months ago (2016-10-06 15:45:19 UTC) #51
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/2339683006/180001
4 years, 2 months ago (2016-10-06 15:45:43 UTC) #54
commit-bot: I haz the power
Committed patchset #6 (id:180001)
4 years, 2 months ago (2016-10-06 15:51:41 UTC) #56
commit-bot: I haz the power
Patchset 6 (id:??) landed as https://crrev.com/a9bc8ccd2becc952e4cea2d8a053247a481dd483 Cr-Commit-Position: refs/heads/master@{#423548}
4 years, 2 months ago (2016-10-06 15:54:42 UTC) #58
wOxxOm
@redvlin, PTAL https://crbug.com/754976 - bisecting and debugging points to this CL.
3 years, 4 months ago (2017-08-14 08:41:40 UTC) #59
wOxxOm
3 years, 4 months ago (2017-08-14 08:42:22 UTC) #60
Message was sent while issue was closed.
sorry for the typo, I meant @rdevlin

Powered by Google App Engine
This is Rietveld 408576698