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

Issue 265943003: Add blink-side binding code for navigator.serviceWorker.current (Closed)

Created:
6 years, 7 months ago by kinuko
Modified:
6 years, 7 months ago
CC:
blink-reviews, jsbell+serviceworker_chromium.org, tzik, serviceworker-reviews, nhiroki, falken, horo+watch_chromium.org, alecflett+watch_chromium.org
Visibility:
Public.

Description

Add blink-side binding code for navigator.serviceWorker.current Test code is basically copied from falken@'s: https://github.com/mattto/ServiceWorker/tree/master/examples/layout-tests (minus one obsolete FIXME, plus another FIXME) BUG=366538 TEST=http/tests/serviceworker/current-on-load.html TEST=http/tests/serviceworker/current-on-reload.html Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=173716

Patch Set 1 : #

Total comments: 8

Patch Set 2 : merged jsbell's fork #

Patch Set 3 : +title #

Total comments: 2

Patch Set 4 : addressed comments #

Patch Set 5 : rebased #

Patch Set 6 : rebased cached properties access tests #

Unified diffs Side-by-side diffs Delta from patch set Stats (+109 lines, -11 lines) Patch
M LayoutTests/fast/dom/Window/property-access-on-cached-properties-after-frame-navigated-expected.txt View 1 2 3 4 5 1 chunk +1 line, -0 lines 0 comments Download
M LayoutTests/fast/dom/Window/property-access-on-cached-properties-after-frame-removed-and-gced-expected.txt View 1 2 3 4 5 1 chunk +1 line, -0 lines 0 comments Download
M LayoutTests/fast/dom/Window/property-access-on-cached-properties-after-frame-removed-expected.txt View 1 2 3 4 5 1 chunk +1 line, -0 lines 0 comments Download
M LayoutTests/fast/dom/Window/property-access-on-cached-window-after-frame-navigated-expected.txt View 1 2 3 4 5 1 chunk +1 line, -0 lines 0 comments Download
M LayoutTests/fast/dom/Window/property-access-on-cached-window-after-frame-removed-and-gced-expected.txt View 1 2 3 4 5 1 chunk +1 line, -0 lines 0 comments Download
M LayoutTests/fast/dom/Window/property-access-on-cached-window-after-frame-removed-expected.txt View 1 2 3 4 5 1 chunk +1 line, -0 lines 0 comments Download
A + LayoutTests/http/tests/serviceworker/current-on-load.html View 1 2 3 4 2 chunks +17 lines, -8 lines 0 comments Download
A LayoutTests/http/tests/serviceworker/current-on-load-expected.txt View 1 1 chunk +3 lines, -0 lines 0 comments Download
A LayoutTests/http/tests/serviceworker/current-on-reload.html View 1 2 3 1 chunk +55 lines, -0 lines 0 comments Download
A LayoutTests/http/tests/serviceworker/current-on-reload-expected.txt View 1 1 chunk +3 lines, -0 lines 0 comments Download
M LayoutTests/http/tests/serviceworker/resources/test-helpers.js View 1 2 3 4 2 chunks +12 lines, -3 lines 0 comments Download
A LayoutTests/virtual/serviceworker/http/tests/serviceworker/current-on-load-expected.txt View 1 1 chunk +4 lines, -0 lines 0 comments Download
A LayoutTests/virtual/serviceworker/http/tests/serviceworker/current-on-reload-expected.txt View 1 1 chunk +4 lines, -0 lines 0 comments Download
M Source/modules/serviceworkers/ServiceWorkerContainer.h View 1 2 3 4 2 chunks +3 lines, -0 lines 0 comments Download
M Source/modules/serviceworkers/ServiceWorkerContainer.idl View 1 chunk +2 lines, -0 lines 0 comments Download

Messages

Total messages: 19 (0 generated)
kinuko
IDL binding + test code for .current (no support for currentchanged event yet). Test code ...
6 years, 7 months ago (2014-05-02 12:26:12 UTC) #1
jsbell
https://codereview.chromium.org/265943003/diff/40001/LayoutTests/http/tests/serviceworker/current-on-reload.html File LayoutTests/http/tests/serviceworker/current-on-reload.html (right): https://codereview.chromium.org/265943003/diff/40001/LayoutTests/http/tests/serviceworker/current-on-reload.html#newcode38 LayoutTests/http/tests/serviceworker/current-on-reload.html:38: // assert_true(w.navigator.serviceWorker.current instanceof ServiceWorker, On 2014/05/02 12:26:13, kinuko wrote: ...
6 years, 7 months ago (2014-05-02 17:55:02 UTC) #2
jsbell
> This should work: > > assert_true(w.navigator.serviceWorker.current instanceof w.ServiceWorker); > > I'll give it a ...
6 years, 7 months ago (2014-05-02 19:36:29 UTC) #3
jsbell
lgtm otherwise with the instanceof fix, and if you want to merge any of my ...
6 years, 7 months ago (2014-05-02 19:42:08 UTC) #4
kinuko
Thanks, merged your changes and addressed comments! (Will land once the other patch becomes ready..) ...
6 years, 7 months ago (2014-05-05 14:20:26 UTC) #5
falken
cool! lgtm https://codereview.chromium.org/265943003/diff/80001/LayoutTests/http/tests/serviceworker/resources/testutils.js File LayoutTests/http/tests/serviceworker/resources/testutils.js (right): https://codereview.chromium.org/265943003/diff/80001/LayoutTests/http/tests/serviceworker/resources/testutils.js#newcode1 LayoutTests/http/tests/serviceworker/resources/testutils.js:1: function withIframe(url, f) { Can you add ...
6 years, 7 months ago (2014-05-06 00:50:46 UTC) #6
kinuko
https://codereview.chromium.org/265943003/diff/40001/LayoutTests/http/tests/serviceworker/resources/testutils.js File LayoutTests/http/tests/serviceworker/resources/testutils.js (right): https://codereview.chromium.org/265943003/diff/40001/LayoutTests/http/tests/serviceworker/resources/testutils.js#newcode1 LayoutTests/http/tests/serviceworker/resources/testutils.js:1: function withIframe(url, f) { On 2014/05/05 14:20:27, kinuko wrote: ...
6 years, 7 months ago (2014-05-06 05:19:45 UTC) #7
kinuko
The CQ bit was checked by kinuko@chromium.org
6 years, 7 months ago (2014-05-09 00:08:59 UTC) #8
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/kinuko@chromium.org/265943003/120001
6 years, 7 months ago (2014-05-09 00:10:35 UTC) #9
commit-bot: I haz the power
FYI, CQ is re-trying this CL (attempt #1). Please consider checking whether the failures are ...
6 years, 7 months ago (2014-05-09 01:28:38 UTC) #10
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 7 months ago (2014-05-09 02:05:50 UTC) #11
commit-bot: I haz the power
Try jobs failed on following builders: linux_blink_rel on tryserver.blink (http://build.chromium.org/p/tryserver.blink/builders/linux_blink_rel/builds/6764)
6 years, 7 months ago (2014-05-09 02:05:51 UTC) #12
falken
The CQ bit was checked by falken@chromium.org
6 years, 7 months ago (2014-05-09 02:07:02 UTC) #13
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/kinuko@chromium.org/265943003/120001
6 years, 7 months ago (2014-05-09 02:08:56 UTC) #14
kinuko
I needed to rebase LayoutTests/fast/dom/Window/property-access-on-cached-properties-* tests for window.cached_navigator_serviceWorker.current tests. Updated the patch to include those ...
6 years, 7 months ago (2014-05-09 02:28:11 UTC) #15
kinuko
The CQ bit was checked by kinuko@chromium.org
6 years, 7 months ago (2014-05-09 02:28:18 UTC) #16
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/kinuko@chromium.org/265943003/140001
6 years, 7 months ago (2014-05-09 02:29:43 UTC) #17
commit-bot: I haz the power
FYI, CQ is re-trying this CL (attempt #1). Please consider checking whether the failures are ...
6 years, 7 months ago (2014-05-09 03:45:15 UTC) #18
commit-bot: I haz the power
6 years, 7 months ago (2014-05-09 04:31:37 UTC) #19
Message was sent while issue was closed.
Change committed as 173716

Powered by Google App Engine
This is Rietveld 408576698