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

Issue 2912593003: [ServiceWorker] Fix bugs of wpt tests for Client.navigate (Closed)

Created:
3 years, 6 months ago by leonhsl(Using Gerrit)
Modified:
3 years, 6 months ago
CC:
blink-reviews, blink-reviews-w3ctests_chromium.org, chromium-reviews, falken+watch_chromium.org, haraken, horo+watch_chromium.org, jsbell+serviceworker_chromium.org, kinuko+serviceworker, michaeln, nhiroki, serviceworker-reviews, shimazu+serviceworker_chromium.org, tzik
Target Ref:
refs/heads/master
Project:
chromium
Visibility:
Public.

Description

[ServiceWorker] Fix bugs of wpt tests for Client.navigate This CL - modifies is_service_worker() in external/wpt/resources/testharness.js so that frame.contentWindow.navigator.serviceWorker.controller CAN be identified correctly as ServiceWorker object within main frame's execution context, this ensures success of fetch_tests_from_worker, which is called by several tests in client-navigate.https.html. - throws TypeError if navigation failed for Client.navigate, E.g. mixed-content violation. BUG=658997 TEST=blink_tests external/wpt/service-workers/service-worker/client-navigate.https.html Review-Url: https://codereview.chromium.org/2912593003 Cr-Commit-Position: refs/heads/master@{#478561} Committed: https://chromium.googlesource.com/chromium/src/+/3c433e7dca949e4df3ce288475d2cc5a6d134787

Patch Set 1 #

Patch Set 2 : Fix other tests influnced by changes of testharness.js #

Total comments: 13

Patch Set 3 : Rebase only #

Patch Set 4 : Catch navigation error #

Total comments: 8

Patch Set 5 : Address comments from falken@ #

Unified diffs Side-by-side diffs Delta from patch set Stats (+21 lines, -11 lines) Patch
M content/browser/service_worker/service_worker_client_utils.cc View 1 2 3 4 1 chunk +8 lines, -2 lines 0 comments Download
M third_party/WebKit/LayoutTests/TestExpectations View 1 2 1 chunk +0 lines, -2 lines 0 comments Download
M third_party/WebKit/LayoutTests/external/wpt/resources/testharness.js View 1 2 3 1 chunk +4 lines, -1 line 0 comments Download
M third_party/WebKit/LayoutTests/fast/dom/custom/svg-use-shadow-tree-expected.txt View 1 2 1 chunk +4 lines, -4 lines 0 comments Download
M third_party/WebKit/LayoutTests/http/tests/webaudio/autoplay-crossorigin-expected.txt View 1 2 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/LayoutTests/resources/testharness.js View 1 2 3 1 chunk +4 lines, -1 line 0 comments Download

Messages

Total messages: 46 (33 generated)
leonhsl(Using Gerrit)
PTAL, Thanks. https://codereview.chromium.org/2912593003/diff/20001/third_party/WebKit/LayoutTests/external/wpt/resources/testharness.js File third_party/WebKit/LayoutTests/external/wpt/resources/testharness.js (right): https://codereview.chromium.org/2912593003/diff/20001/third_party/WebKit/LayoutTests/external/wpt/resources/testharness.js#newcode489 third_party/WebKit/LayoutTests/external/wpt/resources/testharness.js:489: Object.prototype.toString.call(worker) == '[object ServiceWorker]'; Another optional solution ...
3 years, 6 months ago (2017-05-28 09:12:59 UTC) #14
falken
+mkwst for mixed content advice https://codereview.chromium.org/2912593003/diff/20001/third_party/WebKit/LayoutTests/external/wpt/resources/testharness.js File third_party/WebKit/LayoutTests/external/wpt/resources/testharness.js (right): https://codereview.chromium.org/2912593003/diff/20001/third_party/WebKit/LayoutTests/external/wpt/resources/testharness.js#newcode486 third_party/WebKit/LayoutTests/external/wpt/resources/testharness.js:486: // The worker object ...
3 years, 6 months ago (2017-05-29 01:07:05 UTC) #16
Mike West
https://codereview.chromium.org/2912593003/diff/20001/third_party/WebKit/LayoutTests/external/wpt/resources/testharness.js File third_party/WebKit/LayoutTests/external/wpt/resources/testharness.js (right): https://codereview.chromium.org/2912593003/diff/20001/third_party/WebKit/LayoutTests/external/wpt/resources/testharness.js#newcode489 third_party/WebKit/LayoutTests/external/wpt/resources/testharness.js:489: Object.prototype.toString.call(worker) == '[object ServiceWorker]'; On 2017/05/28 at 09:12:59, leonhsl ...
3 years, 6 months ago (2017-05-29 08:02:44 UTC) #17
Mike West
+jeffcarp@ for the `testharness.js` question, as foolip@ is OOO.
3 years, 6 months ago (2017-05-29 08:03:13 UTC) #19
leonhsl(Using Gerrit)
Thanks a lot for review! https://codereview.chromium.org/2912593003/diff/20001/third_party/WebKit/LayoutTests/external/wpt/resources/testharness.js File third_party/WebKit/LayoutTests/external/wpt/resources/testharness.js (right): https://codereview.chromium.org/2912593003/diff/20001/third_party/WebKit/LayoutTests/external/wpt/resources/testharness.js#newcode486 third_party/WebKit/LayoutTests/external/wpt/resources/testharness.js:486: // The worker object ...
3 years, 6 months ago (2017-05-29 13:09:55 UTC) #20
falken
https://codereview.chromium.org/2912593003/diff/20001/third_party/WebKit/Source/modules/serviceworkers/ServiceWorkerWindowClient.cpp File third_party/WebKit/Source/modules/serviceworkers/ServiceWorkerWindowClient.cpp (right): https://codereview.chromium.org/2912593003/diff/20001/third_party/WebKit/Source/modules/serviceworkers/ServiceWorkerWindowClient.cpp#newcode81 third_party/WebKit/Source/modules/serviceworkers/ServiceWorkerWindowClient.cpp:81: parsed_url)) { On 2017/05/29 13:09:54, leonhsl (OOO until 09 ...
3 years, 6 months ago (2017-05-29 14:29:35 UTC) #21
jeffcarp
On 2017/05/29 at 14:29:35, falken wrote: > https://codereview.chromium.org/2912593003/diff/20001/third_party/WebKit/Source/modules/serviceworkers/ServiceWorkerWindowClient.cpp > File third_party/WebKit/Source/modules/serviceworkers/ServiceWorkerWindowClient.cpp (right): > > https://codereview.chromium.org/2912593003/diff/20001/third_party/WebKit/Source/modules/serviceworkers/ServiceWorkerWindowClient.cpp#newcode81 ...
3 years, 6 months ago (2017-05-30 19:47:47 UTC) #22
leonhsl(Using Gerrit)
PTAnL at ps#4, Thanks. https://codereview.chromium.org/2912593003/diff/20001/third_party/WebKit/LayoutTests/external/wpt/resources/testharness.js File third_party/WebKit/LayoutTests/external/wpt/resources/testharness.js (right): https://codereview.chromium.org/2912593003/diff/20001/third_party/WebKit/LayoutTests/external/wpt/resources/testharness.js#newcode486 third_party/WebKit/LayoutTests/external/wpt/resources/testharness.js:486: // The worker object may ...
3 years, 6 months ago (2017-06-10 02:57:45 UTC) #31
falken
This lgtm, thanks for fixing this test. Please add 658997 to the BUG line since ...
3 years, 6 months ago (2017-06-12 01:50:14 UTC) #32
leonhsl(Using Gerrit)
Hi, falken@, Thanks a lot for review! Uploaded ps#5 to address comments and updated CL ...
3 years, 6 months ago (2017-06-12 07:18:13 UTC) #39
falken
I think it's OK to land this. The relevant people ought to be CC'd automatically ...
3 years, 6 months ago (2017-06-12 07:27:26 UTC) #40
commit-bot: I haz the power
CQ is trying da patch. Follow status at: https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2912593003/80001
3 years, 6 months ago (2017-06-12 07:39:10 UTC) #43
commit-bot: I haz the power
3 years, 6 months ago (2017-06-12 07:42:56 UTC) #46
Message was sent while issue was closed.
Committed patchset #5 (id:80001) as
https://chromium.googlesource.com/chromium/src/+/3c433e7dca949e4df3ce288475d2...

Powered by Google App Engine
This is Rietveld 408576698