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

Issue 2691903005: ServiceWorker: Change base URL for parsing script URL and scope URL (Closed)

Created:
3 years, 10 months ago by jungkees
Modified:
3 years, 10 months ago
CC:
blink-reviews, chromium-reviews, falken+watch_chromium.org, horo+watch_chromium.org, jsbell+serviceworker_chromium.org, kenjibaheux+watch_chromium.org, kinuko+serviceworker, michaeln, nhiroki, serviceworker-reviews, shimazu+serviceworker_chromium.org, tzik
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

ServiceWorker: Change base URL for parsing script URL and scope URL According to the spec change, this changes to use the relevant settings object instead of the entry settings object to parse the script URL and the scope URL given to ServiceWorkerContainer.register() and ServiceWorkerContainer.getRegistration(). Before this CL, register() and getRegistration() used entered execution context to parse the URLs. After this CL, the methods use the execution context retrieved from ScriptState::getExecutionContext(). WPT: external/wpt/service-workers/service-worker/multi-globals/url-parsing.https.html Spec issue: https://github.com/w3c/ServiceWorker/issues/922 Spec change: https://github.com/w3c/ServiceWorker/commit/ec1aac220646a5ea15583e22da1373581a8f2f23 BUG=691008 Review-Url: https://codereview.chromium.org/2691903005 Cr-Commit-Position: refs/heads/master@{#453033} Committed: https://chromium.googlesource.com/chromium/src/+/255f7943ef67812af69da392fc5f62cb6f74cf96

Patch Set 1 #

Patch Set 2 : Remove enteredExecutionContext and remove layout tests in favor of WPT #

Patch Set 3 : Fix tests #

Total comments: 13

Patch Set 4 : Address comments on tests #

Unified diffs Side-by-side diffs Delta from patch set Stats (+48 lines, -185 lines) Patch
M third_party/WebKit/LayoutTests/TestExpectations View 1 2 3 1 chunk +0 lines, -1 line 0 comments Download
D third_party/WebKit/LayoutTests/external/wpt/service-workers/service-worker/controller-on-load.https-expected.txt View 1 2 1 chunk +0 lines, -4 lines 0 comments Download
M third_party/WebKit/LayoutTests/external/wpt/service-workers/service-worker/controller-on-reload.https.html View 1 2 3 3 chunks +4 lines, -3 lines 0 comments Download
D third_party/WebKit/LayoutTests/external/wpt/service-workers/service-worker/controller-on-reload.https-expected.txt View 1 2 1 chunk +0 lines, -4 lines 0 comments Download
D third_party/WebKit/LayoutTests/external/wpt/service-workers/service-worker/multi-globals/url-parsing.https-expected.txt View 1 1 chunk +0 lines, -6 lines 0 comments Download
M third_party/WebKit/LayoutTests/external/wpt/service-workers/service-worker/multiple-register.https.html View 1 2 1 chunk +2 lines, -1 line 0 comments Download
M third_party/WebKit/LayoutTests/external/wpt/service-workers/service-worker/registration-iframe.https.html View 1 2 3 4 chunks +32 lines, -31 lines 0 comments Download
M third_party/WebKit/LayoutTests/http/tests/background_sync/oneshot.html View 1 2 3 3 chunks +6 lines, -7 lines 0 comments Download
M third_party/WebKit/LayoutTests/http/tests/serviceworker/controller-on-reload.html View 1 2 1 chunk +1 line, -1 line 0 comments Download
D third_party/WebKit/LayoutTests/http/tests/serviceworker/registration-iframe.html View 1 2 1 chunk +0 lines, -108 lines 0 comments Download
M third_party/WebKit/Source/bindings/core/v8/V8Binding.h View 1 1 chunk +0 lines, -1 line 0 comments Download
M third_party/WebKit/Source/bindings/core/v8/V8Binding.cpp View 1 1 chunk +0 lines, -12 lines 0 comments Download
M third_party/WebKit/Source/modules/serviceworkers/ServiceWorkerContainer.cpp View 1 2 chunks +3 lines, -6 lines 0 comments Download

Messages

Total messages: 54 (26 generated)
jungkees
On 2017/02/14 11:50:16, jungkees wrote: > mailto:jungkee.song@samsung.com changed reviewers: > + mailto:falken@chromium.org, mailto:jinho.bang@samsung.com, mailto:nhiroki@chromium.org PTAL. ...
3 years, 10 months ago (2017-02-14 11:55:01 UTC) #3
shimazu
drive-by: The WPT has already been imported and will be enabled soon, so it's not ...
3 years, 10 months ago (2017-02-15 00:47:16 UTC) #5
shimazu
And SWContainer seems the last user of enteredExecutionContext. Could it be removed (I'm not familiar ...
3 years, 10 months ago (2017-02-15 00:52:13 UTC) #6
falken
Nit for the CL description: add "service worker: " or something similar so the oneline ...
3 years, 10 months ago (2017-02-15 00:55:59 UTC) #7
falken
On 2017/02/15 00:55:59, falken wrote: > Nit for the CL description: add "service worker: " ...
3 years, 10 months ago (2017-02-15 00:56:36 UTC) #8
jungkees
> The WPT has already been imported and will be enabled soon The imported test ...
3 years, 10 months ago (2017-02-15 01:58:41 UTC) #10
falken
On 2017/02/15 01:58:41, jungkees wrote: > > The WPT has already been imported and will ...
3 years, 10 months ago (2017-02-15 02:20:24 UTC) #11
jungkees
> Once the correct test is in the repository, you can land this patch along ...
3 years, 10 months ago (2017-02-15 02:32:38 UTC) #12
jungkees
I just rolled wpt successfully. Am I supposed to include all the tests rolled into ...
3 years, 10 months ago (2017-02-15 08:38:30 UTC) #13
falken
On 2017/02/15 08:38:30, jungkees wrote: > I just rolled wpt successfully. Am I supposed to ...
3 years, 10 months ago (2017-02-15 08:42:56 UTC) #14
falken
On 2017/02/15 08:38:30, jungkees wrote: > I just rolled wpt successfully. Am I supposed to ...
3 years, 10 months ago (2017-02-15 08:42:58 UTC) #15
jungkees
On 2017/02/15 08:42:58, falken wrote: > On 2017/02/15 08:38:30, jungkees wrote: > > I just ...
3 years, 10 months ago (2017-02-15 08:58:44 UTC) #16
jungkees
I had a proxy issue while uploading a CL for the roll. Now I'm trying ...
3 years, 10 months ago (2017-02-15 11:28:50 UTC) #17
jungkees
I uploaded a new snapshot having addressed the comments. PTAL.
3 years, 10 months ago (2017-02-21 14:58:46 UTC) #24
falken
On 2017/02/21 14:58:46, jungkees wrote: > I uploaded a new snapshot having addressed the comments. ...
3 years, 10 months ago (2017-02-22 02:13:05 UTC) #29
jungkees
On 2017/02/22 02:13:05, falken wrote: > On 2017/02/21 14:58:46, jungkees wrote: > > I uploaded ...
3 years, 10 months ago (2017-02-22 05:42:22 UTC) #30
falken
On 2017/02/22 05:42:22, jungkees wrote: > On 2017/02/22 02:13:05, falken wrote: > > On 2017/02/21 ...
3 years, 10 months ago (2017-02-22 05:44:07 UTC) #31
jungkees
> We can commit to external/wpt directly in the Chromium repository, and it will > ...
3 years, 10 months ago (2017-02-22 05:47:51 UTC) #32
jungkees
> So I guess this patch will need to additionally: > - Fix external/wpt/service-workers/service-worker/registration-iframe.https.html > ...
3 years, 10 months ago (2017-02-23 14:18:53 UTC) #35
falken
Thanks, looking good. https://codereview.chromium.org/2691903005/diff/140001/third_party/WebKit/LayoutTests/TestExpectations File third_party/WebKit/LayoutTests/TestExpectations (right): https://codereview.chromium.org/2691903005/diff/140001/third_party/WebKit/LayoutTests/TestExpectations#newcode2146 third_party/WebKit/LayoutTests/TestExpectations:2146: crbug.com/626703 external/wpt/service-workers/service-worker/multi-globals/url-parsing.https.html [ Pass ] Remove ...
3 years, 10 months ago (2017-02-24 06:49:27 UTC) #38
jungkees
Thanks for the comments. I uploaded a new snapshot having addressed them. PTAL. https://codereview.chromium.org/2691903005/diff/140001/third_party/WebKit/LayoutTests/TestExpectations File ...
3 years, 10 months ago (2017-02-24 12:25:26 UTC) #39
falken
lgtm! thanks.
3 years, 10 months ago (2017-02-24 13:46:22 UTC) #42
jungkees
On 2017/02/24 13:46:22, falken wrote: > lgtm! thanks. Thanks for the review, falken@! jochen@, haraken@, ...
3 years, 10 months ago (2017-02-24 14:47:01 UTC) #44
jochen (gone - plz use gerrit)
lgtm
3 years, 10 months ago (2017-02-24 16:02:45 UTC) #47
haraken
LGTM
3 years, 10 months ago (2017-02-25 00:11:15 UTC) #48
jungkees
On 2017/02/25 00:11:15, haraken wrote: > LGTM Thanks for the review!
3 years, 10 months ago (2017-02-25 00:54:46 UTC) #49
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/2691903005/160001
3 years, 10 months ago (2017-02-25 00:55:19 UTC) #51
commit-bot: I haz the power
3 years, 10 months ago (2017-02-25 01:01:58 UTC) #54
Message was sent while issue was closed.
Committed patchset #4 (id:160001) as
https://chromium.googlesource.com/chromium/src/+/255f7943ef67812af69da392fc5f...

Powered by Google App Engine
This is Rietveld 408576698