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

Issue 1915373002: Implement empty WorkerInternals interface. (Closed)

Created:
4 years, 8 months ago by Marijn Kruisselbrink
Modified:
4 years, 5 months ago
CC:
blink-reviews, blink-reviews-api_chromium.org, blink-worker-reviews_chromium.org, chasej+watch_chromium.org, chromium-reviews, darin-cc_chromium.org, dglazkov+blink, falken, horo+watch_chromium.org, jam, jochen+watch_chromium.org, kinuko+worker_chromium.org, mkwst+moarreviews-renderer_chromium.org, mkwst+moarreviews-shell_chromium.org, mlamouri+watch-content_chromium.org, mlamouri+watch-test-runner_chromium.org, Peter Beverloo
Base URL:
https://chromium.googlesource.com/chromium/src.git@trials-in-service-workers
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Implement empty WorkerInternals interface. This adds an (empty) self.internals WorkerInternals interface similar to the existing window.internals interface. This interface can be used to expose test only APIs to layout tests that need access to internals from worker contexts. BUG=570335 Committed: https://crrev.com/5a8530418d254245a37e39e5f2a22f4e9cb94bee Cr-Commit-Position: refs/heads/master@{#392628}

Patch Set 1 #

Patch Set 2 : #

Patch Set 3 : #

Patch Set 4 : #

Patch Set 5 : #

Patch Set 6 : rebase #

Patch Set 7 : separate out origin trials changes #

Patch Set 8 : update expectations #

Total comments: 5

Patch Set 9 : forward declare v8 types and pass by const-ref #

Total comments: 1

Patch Set 10 : nit #

Unified diffs Side-by-side diffs Delta from patch set Stats (+119 lines, -0 lines) Patch
M content/public/renderer/content_renderer_client.h View 1 2 3 4 5 6 7 8 9 1 chunk +5 lines, -0 lines 0 comments Download
M content/renderer/renderer_blink_platform_impl.h View 1 2 3 4 5 6 7 8 9 1 chunk +1 line, -0 lines 0 comments Download
M content/renderer/renderer_blink_platform_impl.cc View 1 2 3 4 5 6 7 8 9 1 chunk +6 lines, -0 lines 0 comments Download
M content/shell/renderer/layout_test/layout_test_content_renderer_client.h View 1 chunk +2 lines, -0 lines 0 comments Download
M content/shell/renderer/layout_test/layout_test_content_renderer_client.cc View 1 2 3 4 5 6 7 8 9 2 chunks +6 lines, -0 lines 0 comments Download
M content/shell/renderer/shell_content_renderer_client.h View 1 2 3 4 5 6 7 8 1 chunk +3 lines, -0 lines 0 comments Download
M content/shell/renderer/shell_content_renderer_client.cc View 1 2 3 4 5 6 7 8 2 chunks +10 lines, -0 lines 0 comments Download
M third_party/WebKit/LayoutTests/http/tests/serviceworker/webexposed/global-interface-listing-service-worker-expected.txt View 1 2 3 4 5 6 7 8 9 1 chunk +1 line, -0 lines 0 comments Download
M third_party/WebKit/LayoutTests/virtual/stable/http/tests/serviceworker/webexposed/global-interface-listing-service-worker-expected.txt View 1 2 3 4 5 6 7 1 chunk +1 line, -0 lines 0 comments Download
M third_party/WebKit/LayoutTests/virtual/stable/webexposed/global-interface-listing-dedicated-worker-expected.txt View 1 2 3 4 5 6 7 1 chunk +1 line, -0 lines 0 comments Download
M third_party/WebKit/LayoutTests/virtual/stable/webexposed/global-interface-listing-shared-worker-expected.txt View 1 2 3 4 5 6 7 1 chunk +1 line, -0 lines 0 comments Download
M third_party/WebKit/LayoutTests/webexposed/global-interface-listing-compositor-worker-expected.txt View 1 2 3 4 5 6 7 1 chunk +1 line, -0 lines 0 comments Download
M third_party/WebKit/LayoutTests/webexposed/global-interface-listing-dedicated-worker-expected.txt View 1 2 3 4 5 6 7 8 9 1 chunk +1 line, -0 lines 0 comments Download
M third_party/WebKit/LayoutTests/webexposed/global-interface-listing-shared-worker-expected.txt View 1 2 3 4 5 6 7 8 9 1 chunk +1 line, -0 lines 0 comments Download
M third_party/WebKit/Source/core/BUILD.gn View 1 chunk +2 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/core/core.gypi View 1 2 3 4 5 6 7 8 9 2 chunks +3 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/core/core_generated.gypi View 1 2 3 1 chunk +2 lines, -0 lines 0 comments Download
A third_party/WebKit/Source/core/testing/WorkerInternals.h View 1 chunk +27 lines, -0 lines 0 comments Download
A third_party/WebKit/Source/core/testing/WorkerInternals.cpp View 1 chunk +23 lines, -0 lines 0 comments Download
A + third_party/WebKit/Source/core/testing/WorkerInternals.idl View 1 1 chunk +3 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/core/testing/v8/WebCoreTestSupport.cpp View 2 chunks +3 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/core/workers/WorkerThread.cpp View 1 2 3 4 1 chunk +2 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/web/WebTestingSupport.cpp View 1 chunk +7 lines, -0 lines 0 comments Download
M third_party/WebKit/public/platform/Platform.h View 1 2 3 4 5 6 7 8 9 2 chunks +6 lines, -0 lines 0 comments Download
M third_party/WebKit/public/web/WebTestingSupport.h View 1 chunk +1 line, -0 lines 0 comments Download

Messages

Total messages: 28 (10 generated)
Marijn Kruisselbrink
This implements WorkerInternals fairly similar to how window.internals is implemented, by providing hooks for code ...
4 years, 7 months ago (2016-05-03 18:59:09 UTC) #6
haraken
> Maybe exposing the new worker as a v8::Context like this via Platform is not ...
4 years, 7 months ago (2016-05-04 04:03:56 UTC) #7
Marijn Kruisselbrink
https://codereview.chromium.org/1915373002/diff/160001/third_party/WebKit/Source/core/workers/WorkerThread.cpp File third_party/WebKit/Source/core/workers/WorkerThread.cpp (right): https://codereview.chromium.org/1915373002/diff/160001/third_party/WebKit/Source/core/workers/WorkerThread.cpp#newcode226 third_party/WebKit/Source/core/workers/WorkerThread.cpp:226: Platform::current()->workerContextCreated(m_workerGlobalScope->scriptController()->context()); On 2016/05/04 at 04:03:56, haraken wrote: > Maybe ...
4 years, 7 months ago (2016-05-04 05:11:04 UTC) #8
haraken
On 2016/05/04 05:11:04, Marijn Kruisselbrink wrote: > https://codereview.chromium.org/1915373002/diff/160001/third_party/WebKit/Source/core/workers/WorkerThread.cpp > File third_party/WebKit/Source/core/workers/WorkerThread.cpp (right): > > https://codereview.chromium.org/1915373002/diff/160001/third_party/WebKit/Source/core/workers/WorkerThread.cpp#newcode226 ...
4 years, 7 months ago (2016-05-04 05:20:10 UTC) #9
Marijn Kruisselbrink
+jochen for WebKit/public and content/ OWNERS
4 years, 7 months ago (2016-05-04 16:33:42 UTC) #11
jochen (gone - plz use gerrit)
lgtm with comment https://codereview.chromium.org/1915373002/diff/160001/third_party/WebKit/public/platform/Platform.h File third_party/WebKit/public/platform/Platform.h (right): https://codereview.chromium.org/1915373002/diff/160001/third_party/WebKit/public/platform/Platform.h#newcode58 third_party/WebKit/public/platform/Platform.h:58: #include <v8/include/v8.h> can you forward declare ...
4 years, 7 months ago (2016-05-06 10:42:10 UTC) #12
Marijn Kruisselbrink
https://codereview.chromium.org/1915373002/diff/160001/third_party/WebKit/public/platform/Platform.h File third_party/WebKit/public/platform/Platform.h (right): https://codereview.chromium.org/1915373002/diff/160001/third_party/WebKit/public/platform/Platform.h#newcode58 third_party/WebKit/public/platform/Platform.h:58: #include <v8/include/v8.h> On 2016/05/06 at 10:42:09, jochen wrote: > ...
4 years, 7 months ago (2016-05-06 16:14:30 UTC) #13
Marijn Kruisselbrink
https://codereview.chromium.org/1915373002/diff/160001/third_party/WebKit/public/platform/Platform.h File third_party/WebKit/public/platform/Platform.h (right): https://codereview.chromium.org/1915373002/diff/160001/third_party/WebKit/public/platform/Platform.h#newcode58 third_party/WebKit/public/platform/Platform.h:58: #include <v8/include/v8.h> On 2016/05/06 at 16:14:30, Marijn Kruisselbrink wrote: ...
4 years, 7 months ago (2016-05-06 16:20:36 UTC) #14
Marijn Kruisselbrink
+kinuko jochen raised the concern that using v8 types in public/platform isn't really something that's ...
4 years, 7 months ago (2016-05-06 20:10:29 UTC) #16
kinuko
On 2016/05/06 20:10:29, Marijn Kruisselbrink wrote: > +kinuko > > jochen raised the concern that ...
4 years, 7 months ago (2016-05-09 11:56:19 UTC) #17
kinuko
https://codereview.chromium.org/1915373002/diff/180001/third_party/WebKit/public/platform/Platform.h File third_party/WebKit/public/platform/Platform.h (right): https://codereview.chromium.org/1915373002/diff/180001/third_party/WebKit/public/platform/Platform.h#newcode626 third_party/WebKit/public/platform/Platform.h:626: virtual void workerContextCreated(const v8::Local<v8::Context>& worker) { } nit: should ...
4 years, 7 months ago (2016-05-09 12:00:15 UTC) #18
jochen (gone - plz use gerrit)
a Local<> is just a pointer, so no need to pass it by value.
4 years, 7 months ago (2016-05-09 15:30:24 UTC) #19
Marijn Kruisselbrink
On 2016/05/09 at 11:56:19, kinuko wrote: > On 2016/05/06 20:10:29, Marijn Kruisselbrink wrote: > > ...
4 years, 7 months ago (2016-05-10 00:24:21 UTC) #20
kinuko
On 2016/05/10 00:24:21, Marijn Kruisselbrink wrote: > On 2016/05/09 at 11:56:19, kinuko wrote: > > ...
4 years, 7 months ago (2016-05-10 00:48:03 UTC) #21
jochen (gone - plz use gerrit)
On 2016/05/10 at 00:48:03, kinuko wrote: > On 2016/05/10 00:24:21, Marijn Kruisselbrink wrote: > > ...
4 years, 7 months ago (2016-05-10 11:56:45 UTC) #22
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1915373002/200001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1915373002/200001
4 years, 7 months ago (2016-05-10 15:53:25 UTC) #25
commit-bot: I haz the power
Committed patchset #10 (id:200001)
4 years, 7 months ago (2016-05-10 17:01:51 UTC) #26
commit-bot: I haz the power
4 years, 7 months ago (2016-05-10 17:03:20 UTC) #28
Message was sent while issue was closed.
Patchset 10 (id:??) landed as
https://crrev.com/5a8530418d254245a37e39e5f2a22f4e9cb94bee
Cr-Commit-Position: refs/heads/master@{#392628}

Powered by Google App Engine
This is Rietveld 408576698