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

Issue 1101583003: compositor-worker: Restrict the global interface in CompositorWorker. (Closed)

Created:
5 years, 8 months ago by sadrul
Modified:
5 years, 6 months ago
CC:
blink-reviews, blink-reviews-dom_chromium.org, arv+blink, vivekg_samsung, sof, eae+blinkwatch, falken, vivekg, dglazkov+blink, blink-reviews-bindings_chromium.org, Inactive, kinuko+worker_chromium.org, horo+watch_chromium.org, rwlbuis
Target Ref:
refs/heads/master
Project:
blink
Visibility:
Public.

Description

compositor-worker: Restrict the global interface in CompositorWorker. A CompositorWorker script is expected to have only a very limited set of API available to it. So hide the API from compositor workers that are normally available to other workers (e.g. fileapi, xhr etc.), but is not relevant for compositor workers. Notable changes: . generate_global_constructors.py: In order to allow exposing CompositorProxy to CompositorWorker, which lives outside of core into modules, instead of generating the list of known global names, use EXPOSED_EXECUTION_CONTEXT_METHOD from v8_utilities. BUG=472288 Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=195635

Patch Set 1 #

Patch Set 2 : . #

Total comments: 9

Patch Set 3 : . #

Patch Set 4 : . #

Patch Set 5 : . #

Patch Set 6 : tot-merge #

Patch Set 7 : tot-merge #

Unified diffs Side-by-side diffs Delta from patch set Stats (+543 lines, -7 lines) Patch
A + LayoutTests/virtual/stable/webexposed/global-interface-listing-compositor-worker-expected.txt View 1 2 3 1 chunk +2 lines, -3 lines 0 comments Download
A LayoutTests/webexposed/global-interface-listing-compositor-worker.html View 1 2 3 1 chunk +9 lines, -0 lines 0 comments Download
A LayoutTests/webexposed/global-interface-listing-compositor-worker-expected.txt View 1 2 3 4 5 6 1 chunk +526 lines, -0 lines 0 comments Download
M Source/bindings/scripts/generate_global_constructors.py View 1 2 3 4 5 6 2 chunks +3 lines, -1 line 0 comments Download
M Source/core/dom/CompositorProxy.idl View 1 chunk +1 line, -1 line 0 comments Download
M Source/core/workers/WorkerGlobalScope.cpp View 1 2 3 4 5 1 chunk +1 line, -1 line 0 comments Download
M Source/modules/compositorworker/CompositorWorkerGlobalScope.idl View 1 chunk +1 line, -1 line 0 comments Download

Messages

Total messages: 34 (6 generated)
sadrul
Hi! Does this look like a reasonable approach for this? The change in generate_global_constructors.py looks ...
5 years, 8 months ago (2015-04-22 09:33:20 UTC) #2
sadrul
+kinuko@ specifically for the change in js-test.js
5 years, 8 months ago (2015-04-22 09:38:54 UTC) #4
haraken
https://codereview.chromium.org/1101583003/diff/20001/LayoutTests/resources/js-test.js File LayoutTests/resources/js-test.js (right): https://codereview.chromium.org/1101583003/diff/20001/LayoutTests/resources/js-test.js#newcode816 LayoutTests/resources/js-test.js:816: var shared = (workerType == 'shared' || (typeof workerType ...
5 years, 8 months ago (2015-04-22 11:07:28 UTC) #5
kinuko
https://codereview.chromium.org/1101583003/diff/20001/LayoutTests/resources/js-test.js File LayoutTests/resources/js-test.js (right): https://codereview.chromium.org/1101583003/diff/20001/LayoutTests/resources/js-test.js#newcode816 LayoutTests/resources/js-test.js:816: var shared = (workerType == 'shared' || (typeof workerType ...
5 years, 8 months ago (2015-04-22 14:18:07 UTC) #6
sadrul
https://codereview.chromium.org/1101583003/diff/20001/LayoutTests/resources/js-test.js File LayoutTests/resources/js-test.js (right): https://codereview.chromium.org/1101583003/diff/20001/LayoutTests/resources/js-test.js#newcode816 LayoutTests/resources/js-test.js:816: var shared = (workerType == 'shared' || (typeof workerType ...
5 years, 8 months ago (2015-04-22 22:17:19 UTC) #7
haraken
> https://codereview.chromium.org/1101583003/diff/20001/Source/bindings/scripts/generate_global_constructors.py > File Source/bindings/scripts/generate_global_constructors.py (right): > > https://codereview.chromium.org/1101583003/diff/20001/Source/bindings/scripts/generate_global_constructors.py#newcode40 > Source/bindings/scripts/generate_global_constructors.py:40: 'CompositorWorker', > On 2015/04/22 ...
5 years, 8 months ago (2015-04-23 04:32:38 UTC) #9
sadrul
On 2015/04/23 04:32:38, haraken wrote: > > > https://codereview.chromium.org/1101583003/diff/20001/Source/bindings/scripts/generate_global_constructors.py > > File Source/bindings/scripts/generate_global_constructors.py (right): > ...
5 years, 8 months ago (2015-04-24 02:19:37 UTC) #10
bashi
On 2015/04/24 02:19:37, sadrul wrote: > On 2015/04/23 04:32:38, haraken wrote: > > > > ...
5 years, 8 months ago (2015-04-24 02:57:49 UTC) #11
sadrul
+esprehn@ > This CL violates core -> modules dependency and that's why you get the ...
5 years, 8 months ago (2015-04-24 03:33:03 UTC) #13
sadrul
On 2015/04/24 03:33:03, sadrul wrote: > +esprehn@ > > > This CL violates core -> ...
5 years, 7 months ago (2015-04-28 18:02:20 UTC) #14
esprehn
CompositorProxy doesn't feel like a separate module, it's very wrapped up in the style and ...
5 years, 7 months ago (2015-04-30 05:36:34 UTC) #15
sadrul
On 2015/04/30 05:36:34, esprehn wrote: > CompositorProxy doesn't feel like a separate module, it's very ...
5 years, 7 months ago (2015-04-30 07:52:50 UTC) #16
Jens Widell
On 2015/04/30 07:52:50, sadrul wrote: > On 2015/04/30 05:36:34, esprehn wrote: > > CompositorProxy doesn't ...
5 years, 7 months ago (2015-04-30 10:17:06 UTC) #17
sadrul
On 2015/04/30 10:17:06, Jens Widell wrote: > On 2015/04/30 07:52:50, sadrul wrote: > > On ...
5 years, 7 months ago (2015-05-01 04:28:38 UTC) #18
esprehn
So are we going to get rid of the module? It doesn't make sense to ...
5 years, 7 months ago (2015-05-01 04:59:25 UTC) #19
kinuko
On 2015/05/01 04:59:25, esprehn wrote: > So are we going to get rid of the ...
5 years, 7 months ago (2015-05-07 05:16:48 UTC) #20
sadrul
On 2015/05/07 05:16:48, kinuko wrote: > On 2015/05/01 04:59:25, esprehn wrote: > > So are ...
5 years, 7 months ago (2015-05-07 05:24:22 UTC) #21
kinuko
On 2015/05/07 05:24:22, sadrul wrote: > On 2015/05/07 05:16:48, kinuko wrote: > > On 2015/05/01 ...
5 years, 7 months ago (2015-05-07 06:49:45 UTC) #22
sadrul
On 2015/05/07 06:49:45, kinuko wrote: > On 2015/05/07 05:24:22, sadrul wrote: > > On 2015/05/07 ...
5 years, 7 months ago (2015-05-07 07:02:42 UTC) #23
kinuko
On 2015/05/07 07:02:42, sadrul wrote: > On 2015/05/07 06:49:45, kinuko wrote: > > On 2015/05/07 ...
5 years, 7 months ago (2015-05-07 07:33:48 UTC) #24
esprehn
Is there a generic primitive that CompositorProxy is built on? If its a primitive of ...
5 years, 7 months ago (2015-05-07 07:38:13 UTC) #25
sadrul
On 2015/05/07 07:38:13, esprehn wrote: > Is there a generic primitive that CompositorProxy is built ...
5 years, 7 months ago (2015-05-07 08:24:52 UTC) #26
sadrul
haraken@/bashi@/jl@: mind taking a look at the bindings change? (I can split it into a ...
5 years, 7 months ago (2015-05-20 06:50:15 UTC) #27
haraken
bindings LGTM
5 years, 7 months ago (2015-05-20 07:17:51 UTC) #28
sadrul
On 2015/05/20 07:17:51, haraken wrote: > bindings LGTM Thanks! kinuko@/esprehn@ Mind reviewing Source/core, Source/modules, and ...
5 years, 7 months ago (2015-05-20 07:23:22 UTC) #29
kinuko
On 2015/05/20 07:23:22, sadrul wrote: > kinuko@/esprehn@ Mind reviewing Source/core, Source/modules, and LayoutTests > changes? ...
5 years, 7 months ago (2015-05-20 08:30:40 UTC) #30
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1101583003/120001
5 years, 7 months ago (2015-05-20 20:00:19 UTC) #33
commit-bot: I haz the power
5 years, 7 months ago (2015-05-20 20:04:49 UTC) #34
Message was sent while issue was closed.
Committed patchset #7 (id:120001) as
https://src.chromium.org/viewvc/blink?view=rev&revision=195635

Powered by Google App Engine
This is Rietveld 408576698