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

Issue 1210633002: Update navigator.services API to use the new services.onconnect event [1/3]. (Closed)

Created:
5 years, 6 months ago by Marijn Kruisselbrink
Modified:
5 years, 5 months ago
Reviewers:
chasej, Nate Chapin, yhirano
CC:
arv+blink, blink-reviews, blink-reviews-bindings_chromium.org, dglazkov+blink, falken, horo+watch_chromium.org, jsbell+serviceworker_chromium.org, kinuko+serviceworker, michaeln, nhiroki, serviceworker-reviews, tzik, vivekg_samsung, vivekg
Base URL:
https://chromium.googlesource.com/chromium/blink.git@serviceport-part3
Target Ref:
refs/heads/master
Project:
blink
Visibility:
Public.

Description

Update navigator.services API to use the new services.onconnect event [1/3]. This is part of a series of patches to change the service side API from a global oncrossoriginconnect event to a new navigator.services.onconnect event. This patch adds the new event to blink as well as adds APIs so the new event can be dispatched, follow up patches change the content level code to use the new event and remove the old event. [1/3] This patch [2/3] https://codereview.chromium.org/1210643002 Updates content side of the code. [3/3] https://codereview.chromium.org/1205783004 Removes old event from blink and adds some tests specific to the new event. BUG=426458 Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=198541

Patch Set 1 #

Patch Set 2 : #

Patch Set 3 : #

Patch Set 4 : #

Patch Set 5 : fix linking error #

Total comments: 4

Patch Set 6 : fix typo and move include #

Patch Set 7 : update serviceworker webexposed test #

Patch Set 8 : rebase #

Unified diffs Side-by-side diffs Delta from patch set Stats (+357 lines, -22 lines) Patch
M LayoutTests/http/tests/navigatorconnect/resources/accepting-worker.js View 1 chunk +4 lines, -0 lines 0 comments Download
M LayoutTests/http/tests/navigatorconnect/resources/async-connect-worker.js View 1 chunk +10 lines, -0 lines 0 comments Download
M LayoutTests/http/tests/navigatorconnect/resources/echo-worker.js View 1 chunk +4 lines, -1 line 0 comments Download
M LayoutTests/http/tests/navigatorconnect/resources/rejecting-worker.js View 1 chunk +4 lines, -0 lines 0 comments Download
M LayoutTests/http/tests/navigatorconnect/resources/reply-client-info-worker.js View 1 chunk +8 lines, -1 line 0 comments Download
M LayoutTests/http/tests/navigatorconnect/resources/test-helpers.js View 1 2 1 chunk +1 line, -0 lines 0 comments Download
M LayoutTests/http/tests/serviceworker/webexposed/global-interface-listing-service-worker-expected.txt View 1 2 3 4 5 6 1 chunk +5 lines, -0 lines 0 comments Download
M Source/bindings/core/v8/ExceptionState.h View 2 chunks +4 lines, -0 lines 0 comments Download
M Source/bindings/core/v8/ExceptionState.cpp View 2 chunks +7 lines, -0 lines 0 comments Download
M Source/modules/modules.gypi View 1 2 3 4 5 6 7 5 chunks +10 lines, -0 lines 0 comments Download
M Source/modules/navigatorconnect/AcceptConnectionObserver.h View 1 2 3 chunks +18 lines, -3 lines 0 comments Download
M Source/modules/navigatorconnect/AcceptConnectionObserver.cpp View 1 2 3 4 5 5 chunks +90 lines, -9 lines 0 comments Download
M Source/modules/navigatorconnect/ServicePortCollection.h View 1 2 3 4 5 2 chunks +3 lines, -0 lines 0 comments Download
M Source/modules/navigatorconnect/ServicePortCollection.cpp View 1 2 2 chunks +14 lines, -0 lines 0 comments Download
M Source/modules/navigatorconnect/ServicePortCollection.idl View 1 2 1 chunk +1 line, -0 lines 0 comments Download
A Source/modules/navigatorconnect/ServicePortConnectEvent.h View 1 chunk +50 lines, -0 lines 0 comments Download
A Source/modules/navigatorconnect/ServicePortConnectEvent.cpp View 1 chunk +62 lines, -0 lines 0 comments Download
A Source/modules/navigatorconnect/ServicePortConnectEvent.idl View 1 chunk +15 lines, -0 lines 0 comments Download
A + Source/modules/navigatorconnect/ServicePortConnectEventInit.idl View 1 chunk +4 lines, -3 lines 0 comments Download
A + Source/modules/navigatorconnect/ServicePortConnectResponse.idl View 1 chunk +4 lines, -2 lines 0 comments Download
M Source/modules/navigatorconnect/WorkerNavigatorServices.h View 1 2 3 4 2 chunks +2 lines, -1 line 0 comments Download
M Source/web/ServiceWorkerGlobalScopeProxy.h View 1 2 3 4 5 6 7 1 chunk +1 line, -0 lines 0 comments Download
M Source/web/ServiceWorkerGlobalScopeProxy.cpp View 1 2 3 4 5 2 chunks +10 lines, -0 lines 0 comments Download
A public/platform/modules/navigator_services/WebServicePortCallbacks.h View 1 2 1 chunk +21 lines, -0 lines 0 comments Download
M public/platform/modules/navigator_services/WebServicePortProvider.h View 1 2 1 chunk +1 line, -2 lines 0 comments Download
M public/web/WebServiceWorkerContextProxy.h View 1 2 3 2 chunks +4 lines, -0 lines 0 comments Download

Messages

Total messages: 18 (6 generated)
Marijn Kruisselbrink
Jason: if you want to review some of my code, this is probably a good ...
5 years, 5 months ago (2015-07-02 00:50:53 UTC) #2
chasej
On 2015/07/02 00:50:53, Marijn Kruisselbrink wrote: > Jason: if you want to review some of ...
5 years, 5 months ago (2015-07-02 20:44:56 UTC) #3
chasej
https://codereview.chromium.org/1210633002/diff/80001/Source/modules/navigatorconnect/AcceptConnectionObserver.cpp File Source/modules/navigatorconnect/AcceptConnectionObserver.cpp (right): https://codereview.chromium.org/1210633002/diff/80001/Source/modules/navigatorconnect/AcceptConnectionObserver.cpp#newcode106 Source/modules/navigatorconnect/AcceptConnectionObserver.cpp:106: return ScriptPromise::rejectWithDOMException(scriptState, DOMException::create(InvalidStateError, "respondWith wsa already called.")); Typo: "wsa" ...
5 years, 5 months ago (2015-07-02 20:45:28 UTC) #4
Marijn Kruisselbrink
https://codereview.chromium.org/1210633002/diff/80001/Source/modules/navigatorconnect/AcceptConnectionObserver.cpp File Source/modules/navigatorconnect/AcceptConnectionObserver.cpp (right): https://codereview.chromium.org/1210633002/diff/80001/Source/modules/navigatorconnect/AcceptConnectionObserver.cpp#newcode106 Source/modules/navigatorconnect/AcceptConnectionObserver.cpp:106: return ScriptPromise::rejectWithDOMException(scriptState, DOMException::create(InvalidStateError, "respondWith wsa already called.")); On 2015/07/02 ...
5 years, 5 months ago (2015-07-07 16:42:49 UTC) #5
Marijn Kruisselbrink
+yhirano for bindings/ OWNERS +japhet for public/ OWNERS and Source/web OWNERS
5 years, 5 months ago (2015-07-07 16:47:56 UTC) #7
Nate Chapin
public/ lgtm
5 years, 5 months ago (2015-07-07 18:36:15 UTC) #8
yhirano
bindings/ lgtm
5 years, 5 months ago (2015-07-08 01:55:47 UTC) #9
chasej
On 2015/07/07 16:42:49, Marijn Kruisselbrink wrote: > https://codereview.chromium.org/1210633002/diff/80001/Source/modules/navigatorconnect/AcceptConnectionObserver.cpp > File Source/modules/navigatorconnect/AcceptConnectionObserver.cpp (right): > > https://codereview.chromium.org/1210633002/diff/80001/Source/modules/navigatorconnect/AcceptConnectionObserver.cpp#newcode106 ...
5 years, 5 months ago (2015-07-08 20:15:15 UTC) #10
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1210633002/120001
5 years, 5 months ago (2015-07-08 20:26:38 UTC) #12
commit-bot: I haz the power
Try jobs failed on following builders: mac_blink_compile_dbg on tryserver.blink (JOB_FAILED, http://build.chromium.org/p/tryserver.blink/builders/mac_blink_compile_dbg/builds/49969) mac_blink_rel on tryserver.blink (JOB_FAILED, ...
5 years, 5 months ago (2015-07-08 20:29:46 UTC) #14
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1210633002/140001
5 years, 5 months ago (2015-07-08 22:08:02 UTC) #17
commit-bot: I haz the power
5 years, 5 months ago (2015-07-08 22:33:26 UTC) #18
Message was sent while issue was closed.
Committed patchset #8 (id:140001) as
https://src.chromium.org/viewvc/blink?view=rev&revision=198541

Powered by Google App Engine
This is Rietveld 408576698