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

Issue 230813002: Make it possible to have <object>'s scriptableObject as a v8 object instead of NPObject. (Closed)

Created:
6 years, 8 months ago by Krzysztof Olczyk
Modified:
6 years, 4 months ago
CC:
adamk+blink_chromium.org, arv+blink, blink-reviews, Inactive, dglazkov+blink, haraken, jamesr, Nate Chapin, jsbell+bindings_chromium.org, kojih, kouhei+bindings_chromium.org, marja+watch_chromium.org, Mostyn Bramley-Moore, sof
Base URL:
https://chromium.googlesource.com/chromium/blink.git@master
Visibility:
Public.

Description

Make it possible to have <object>'s scriptableObject as a v8 object instead of NPObject. It is well-known that Chromium is gradually deprecating NPAPI with the goal of removing it completely by the end of 2014. This is said to include NPObject class as well. However, currently, for blink::WebPlugin implementators (for <object> tag), it is only possible to return the corresponding scriptable object (to back properties of the <object> tag as visible from JavaScript) as an NPObject*. This CL introduces the possibility to provide the plain v8 object, instead. This lets the embedder to provide scripting facilities for plugins (or whatever else provides <object> tags) using v8 api or modern means like gin. On top of it, the compatibility with current NPObject-based features like nsplugins is kept which simply can be removed once NPAPI is fully deprecated. BUG=351636 Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=179794

Patch Set 1 #

Patch Set 2 : Rebased to current ToT (by raymes - fetched from https://codereview.chromium.org/426853002/) #

Total comments: 28

Patch Set 3 : Fixes after code review. #

Total comments: 4

Patch Set 4 : Final (hopefully) fixes. #

Patch Set 5 : Fixed broken layout tests. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+173 lines, -86 lines) Patch
M Source/bindings/core/v8/NPV8Object.h View 1 2 chunks +3 lines, -0 lines 0 comments Download
M Source/bindings/core/v8/NPV8Object.cpp View 1 2 chunks +14 lines, -7 lines 0 comments Download
M Source/bindings/core/v8/ScriptController.cpp View 1 2 3 chunks +10 lines, -7 lines 0 comments Download
M Source/bindings/core/v8/custom/V8HTMLPlugInElementCustom.cpp View 1 2 3 4 3 chunks +91 lines, -67 lines 0 comments Download
M Source/core/plugins/PluginView.h View 1 2 3 chunks +3 lines, -1 line 0 comments Download
M Source/web/WebPluginContainerImpl.h View 1 2 3 chunks +3 lines, -1 line 0 comments Download
M Source/web/WebPluginContainerImpl.cpp View 1 2 3 5 chunks +35 lines, -2 lines 0 comments Download
M public/web/WebPlugin.h View 1 2 3 chunks +8 lines, -1 line 0 comments Download
M public/web/WebPluginContainer.h View 1 2 3 3 chunks +6 lines, -0 lines 0 comments Download

Messages

Total messages: 36 (0 generated)
Krzysztof Olczyk
Hi, I've added you as reviewers as I've found you as reviewers of random somewhat-related ...
6 years, 8 months ago (2014-04-09 13:09:57 UTC) #1
dcarney
i'm not the one to make the call on whether this makes sense or not ...
6 years, 8 months ago (2014-04-09 13:29:04 UTC) #2
abarth-chromium
Can you explain more about the broader context for this change? We've talked about replacing ...
6 years, 8 months ago (2014-04-09 15:42:56 UTC) #3
jochen (gone - plz use gerrit)
On 2014/04/09 15:42:56, abarth wrote: > Can you explain more about the broader context for ...
6 years, 8 months ago (2014-04-10 07:48:44 UTC) #4
Krzysztof Olczyk
On 2014/04/09 15:42:56, abarth wrote: > Can you explain more about the broader context for ...
6 years, 8 months ago (2014-04-10 14:48:39 UTC) #5
Krzysztof Olczyk
On 2014/04/10 07:48:44, jochen wrote: > On 2014/04/09 15:42:56, abarth wrote: > > Can you ...
6 years, 8 months ago (2014-04-10 14:51:47 UTC) #6
abarth-chromium
On 2014/04/10 14:48:39, Krzysztof Olczyk wrote: > I'm submitting this change as I believe it ...
6 years, 8 months ago (2014-04-10 21:12:19 UTC) #7
Krzysztof Olczyk
On 2014/04/10 21:12:19, abarth wrote: > On 2014/04/10 14:48:39, Krzysztof Olczyk wrote: > > I'm ...
6 years, 8 months ago (2014-04-11 11:05:16 UTC) #8
dmichael (off chromium)
On 2014/04/11 11:05:16, Krzysztof Olczyk wrote: > On 2014/04/10 21:12:19, abarth wrote: > > On ...
6 years, 8 months ago (2014-04-15 18:13:11 UTC) #9
Krzysztof Olczyk
On 2014/04/15 18:13:11, dmichael wrote: > On 2014/04/11 11:05:16, Krzysztof Olczyk wrote: > > On ...
6 years, 8 months ago (2014-04-23 08:24:54 UTC) #10
Krzysztof Olczyk
Hi everyone, I have uploaded the new patch set with the CL rebased to the ...
6 years, 4 months ago (2014-07-29 06:42:30 UTC) #11
abarth-chromium
On 2014/07/29 at 06:42:30, kolczyk wrote: > He has successfully reused it also it to ...
6 years, 4 months ago (2014-07-29 17:21:27 UTC) #12
abarth-chromium
Mostly naming nits, but a few substantive comments. https://codereview.chromium.org/230813002/diff/10001/Source/bindings/core/v8/ScriptController.cpp File Source/bindings/core/v8/ScriptController.cpp (right): https://codereview.chromium.org/230813002/diff/10001/Source/bindings/core/v8/ScriptController.cpp#newcode239 Source/bindings/core/v8/ScriptController.cpp:239: v8::HandleScope ...
6 years, 4 months ago (2014-07-29 17:34:22 UTC) #13
Krzysztof Olczyk
Thanks for the review. I've applied your suggestions. https://codereview.chromium.org/230813002/diff/10001/Source/bindings/core/v8/ScriptController.cpp File Source/bindings/core/v8/ScriptController.cpp (right): https://codereview.chromium.org/230813002/diff/10001/Source/bindings/core/v8/ScriptController.cpp#newcode239 Source/bindings/core/v8/ScriptController.cpp:239: v8::HandleScope ...
6 years, 4 months ago (2014-07-30 08:40:31 UTC) #14
abarth-chromium
Very close. One memory safety bug though. https://codereview.chromium.org/230813002/diff/30001/Source/web/WebPluginContainerImpl.cpp File Source/web/WebPluginContainerImpl.cpp (right): https://codereview.chromium.org/230813002/diff/30001/Source/web/WebPluginContainerImpl.cpp#newcode461 Source/web/WebPluginContainerImpl.cpp:461: ScriptState::Scope scope(scriptState); ...
6 years, 4 months ago (2014-07-30 17:52:25 UTC) #15
Krzysztof Olczyk
https://codereview.chromium.org/230813002/diff/30001/Source/web/WebPluginContainerImpl.cpp File Source/web/WebPluginContainerImpl.cpp (right): https://codereview.chromium.org/230813002/diff/30001/Source/web/WebPluginContainerImpl.cpp#newcode461 Source/web/WebPluginContainerImpl.cpp:461: ScriptState::Scope scope(scriptState); On 2014/07/30 17:52:25, abarth wrote: > Oh ...
6 years, 4 months ago (2014-07-31 06:28:48 UTC) #16
abarth-chromium
lgtm
6 years, 4 months ago (2014-07-31 14:46:41 UTC) #17
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/kolczyk@opera.com/230813002/50001
6 years, 4 months ago (2014-07-31 14:47:30 UTC) #18
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, 4 months ago (2014-07-31 16:13:55 UTC) #19
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 4 months ago (2014-07-31 16:50:31 UTC) #20
commit-bot: I haz the power
Try jobs failed on following builders: mac_blink_rel on tryserver.blink (http://build.chromium.org/p/tryserver.blink/builders/mac_blink_rel/builds/17899)
6 years, 4 months ago (2014-07-31 16:50:32 UTC) #21
Krzysztof Olczyk
The CQ bit was checked by kolczyk@opera.com
6 years, 4 months ago (2014-08-01 08:53:40 UTC) #22
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/kolczyk@opera.com/230813002/50001
6 years, 4 months ago (2014-08-01 08:54:40 UTC) #23
commit-bot: I haz the power
FYI, CQ is re-trying this CL (attempt #1). The failing builders are: mac_blink_rel on tryserver.blink ...
6 years, 4 months ago (2014-08-01 09:51:31 UTC) #24
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 4 months ago (2014-08-01 10:32:52 UTC) #25
commit-bot: I haz the power
Try jobs failed on following builders: win_blink_rel on tryserver.blink (http://build.chromium.org/p/tryserver.blink/builders/win_blink_rel/builds/20096)
6 years, 4 months ago (2014-08-01 10:32:54 UTC) #26
Krzysztof Olczyk
Sorry for keeping this stalled for couple of days, after failing trybot. It looks like ...
6 years, 4 months ago (2014-08-06 08:54:10 UTC) #27
Krzysztof Olczyk
The CQ bit was checked by kolczyk@opera.com
6 years, 4 months ago (2014-08-06 08:55:18 UTC) #28
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/kolczyk@opera.com/230813002/70001
6 years, 4 months ago (2014-08-06 08:55:59 UTC) #29
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, 4 months ago (2014-08-06 12:34:00 UTC) #30
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 4 months ago (2014-08-06 13:48:43 UTC) #31
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/20042)
6 years, 4 months ago (2014-08-06 13:48:45 UTC) #32
Krzysztof Olczyk
On 2014/08/06 13:48:45, I haz the power (commit-bot) wrote: > Try jobs failed on following ...
6 years, 4 months ago (2014-08-06 14:20:33 UTC) #33
Krzysztof Olczyk
The CQ bit was checked by kolczyk@opera.com
6 years, 4 months ago (2014-08-08 07:06:25 UTC) #34
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/kolczyk@opera.com/230813002/70001
6 years, 4 months ago (2014-08-08 07:07:14 UTC) #35
commit-bot: I haz the power
6 years, 4 months ago (2014-08-08 07:08:28 UTC) #36
Message was sent while issue was closed.
Change committed as 179794

Powered by Google App Engine
This is Rietveld 408576698