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

Issue 454773002: Blink-in-JS: Support private scripts in partial interfaces (PrivateScriptRunner part) (Closed)

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

Description

Blink-in-JS: Support private scripts in partial interfaces (PrivateScriptRunner part) This CL is a split from https://codereview.chromium.org/457483002/. This CL supports private scripts in partial interfaces. Assume that XPartial-1 and XPartial-2 are partial interfaces of X. Then we have XPartial-1.js, XPartial-2.js and X.js. When a DOM attribute/method in any of the JS files is requested at the first time, all of the JS files are compiled at the same time. This is redundant because when a DOM attribute/method in XPartial-1.js is requested, we just need to compile XPartial-1.js and X.js. I'll address the issue in a follow-up CL. BUG=341031 TEST=fast/dom/private-script-unittest.html Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=179960

Patch Set 1 #

Patch Set 2 : #

Total comments: 2

Patch Set 3 : #

Patch Set 4 : #

Total comments: 6

Patch Set 5 : #

Patch Set 6 : #

Patch Set 7 : #

Unified diffs Side-by-side diffs Delta from patch set Stats (+180 lines, -64 lines) Patch
M LayoutTests/fast/dom/private_script_unittest.html View 1 chunk +5 lines, -0 lines 0 comments Download
M LayoutTests/fast/dom/private_script_unittest-expected.txt View 1 chunk +3 lines, -0 lines 0 comments Download
M Source/bindings/core/idl.gni View 1 chunk +2 lines, -1 line 0 comments Download
M Source/bindings/core/idl.gypi View 1 chunk +1 line, -0 lines 0 comments Download
M Source/bindings/core/v8/PrivateScriptRunner.cpp View 1 2 3 4 2 chunks +50 lines, -23 lines 0 comments Download
M Source/bindings/core/v8/PrivateScriptRunner.js View 1 2 3 4 1 chunk +2 lines, -1 line 0 comments Download
M Source/build/scripts/make_private_script_source.py View 3 chunks +23 lines, -3 lines 0 comments Download
M Source/core/BUILD.gn View 1 chunk +2 lines, -1 line 0 comments Download
M Source/core/core.gni View 1 2 3 4 5 6 1 chunk +2 lines, -0 lines 0 comments Download
M Source/core/core.gypi View 1 2 3 4 2 chunks +4 lines, -0 lines 0 comments Download
M Source/core/core_generated.gyp View 1 2 3 4 1 chunk +36 lines, -35 lines 0 comments Download
A Source/core/testing/PartialPrivateScriptTest.h View 1 3 4 5 1 chunk +17 lines, -0 lines 0 comments Download
A Source/core/testing/PartialPrivateScriptTest.idl View 1 3 4 5 1 chunk +9 lines, -0 lines 0 comments Download
A Source/core/testing/PartialPrivateScriptTest.js View 1 3 4 5 1 chunk +24 lines, -0 lines 0 comments Download

Messages

Total messages: 17 (0 generated)
haraken
abarth@ or arv@: PTAL. jl@, tasak@, vivekg@: FYI.
6 years, 4 months ago (2014-08-08 06:11:48 UTC) #1
Jens Widell
https://codereview.chromium.org/454773002/diff/20001/Source/bindings/core/v8/PrivateScriptRunner.cpp File Source/bindings/core/v8/PrivateScriptRunner.cpp (right): https://codereview.chromium.org/454773002/diff/20001/Source/bindings/core/v8/PrivateScriptRunner.cpp#newcode33 Source/bindings/core/v8/PrivateScriptRunner.cpp:33: v8::TryCatch block; We could unduplicate some code here; this ...
6 years, 4 months ago (2014-08-09 14:52:25 UTC) #2
haraken
https://codereview.chromium.org/454773002/diff/20001/Source/bindings/core/v8/PrivateScriptRunner.cpp File Source/bindings/core/v8/PrivateScriptRunner.cpp (right): https://codereview.chromium.org/454773002/diff/20001/Source/bindings/core/v8/PrivateScriptRunner.cpp#newcode33 Source/bindings/core/v8/PrivateScriptRunner.cpp:33: v8::TryCatch block; On 2014/08/09 14:52:25, Jens Lindström wrote: > ...
6 years, 4 months ago (2014-08-11 01:18:31 UTC) #3
haraken
jl@: Would you mind taking a look at this when you have a cycle?
6 years, 4 months ago (2014-08-11 12:00:54 UTC) #4
Jens Widell
LGTM with a few comments. https://codereview.chromium.org/454773002/diff/60001/Source/bindings/core/v8/PrivateScriptRunner.cpp File Source/bindings/core/v8/PrivateScriptRunner.cpp (right): https://codereview.chromium.org/454773002/diff/60001/Source/bindings/core/v8/PrivateScriptRunner.cpp#newcode29 Source/bindings/core/v8/PrivateScriptRunner.cpp:29: WTF_LOG_ERROR("Private script error: Compile ...
6 years, 4 months ago (2014-08-11 12:27:57 UTC) #5
haraken
Thanks for review! https://codereview.chromium.org/454773002/diff/60001/Source/bindings/core/v8/PrivateScriptRunner.cpp File Source/bindings/core/v8/PrivateScriptRunner.cpp (right): https://codereview.chromium.org/454773002/diff/60001/Source/bindings/core/v8/PrivateScriptRunner.cpp#newcode29 Source/bindings/core/v8/PrivateScriptRunner.cpp:29: WTF_LOG_ERROR("Private script error: Compile failed. (Class ...
6 years, 4 months ago (2014-08-11 12:41:40 UTC) #6
haraken
The CQ bit was checked by haraken@chromium.org
6 years, 4 months ago (2014-08-11 12:41:43 UTC) #7
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/haraken@chromium.org/454773002/80001
6 years, 4 months ago (2014-08-11 12:42:23 UTC) #8
commit-bot: I haz the power
FYI, CQ is re-trying this CL (attempt #1). The failing builders are: android_blink_compile_dbg on tryserver.blink ...
6 years, 4 months ago (2014-08-11 12:56:15 UTC) #9
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 4 months ago (2014-08-11 12:58:51 UTC) #10
commit-bot: I haz the power
Try jobs failed on following builders: linux_chromium_gn_rel on tryserver.blink (http://build.chromium.org/p/tryserver.blink/builders/linux_chromium_gn_rel/builds/6995) mac_blink_compile_dbg on tryserver.blink (http://build.chromium.org/p/tryserver.blink/builders/mac_blink_compile_dbg/builds/15802) mac_blink_rel ...
6 years, 4 months ago (2014-08-11 12:58:52 UTC) #11
haraken
jl@: Sorry, I forgot to git add PartialPrivateScriptTest.{h,js,idl} to the CL. Would you take another ...
6 years, 4 months ago (2014-08-11 12:59:51 UTC) #12
Jens Widell
On 2014/08/11 12:59:51, haraken wrote: > jl@: Sorry, I forgot to git add PartialPrivateScriptTest.{h,js,idl} to ...
6 years, 4 months ago (2014-08-11 13:12:10 UTC) #13
haraken
The CQ bit was checked by haraken@chromium.org
6 years, 4 months ago (2014-08-11 13:32:39 UTC) #14
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/haraken@chromium.org/454773002/120001
6 years, 4 months ago (2014-08-11 13:33:48 UTC) #15
commit-bot: I haz the power
FYI, CQ is re-trying this CL (attempt #1). The failing builders are: win_blink_compile_dbg on tryserver.blink ...
6 years, 4 months ago (2014-08-11 14:37:01 UTC) #16
commit-bot: I haz the power
6 years, 4 months ago (2014-08-11 14:55:30 UTC) #17
Message was sent while issue was closed.
Change committed as 179960

Powered by Google App Engine
This is Rietveld 408576698