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

Issue 1781783002: Implement support for link type serviceworker in link elements. (Closed)

Created:
4 years, 9 months ago by Marijn Kruisselbrink
Modified:
4 years, 9 months ago
CC:
blink-reviews, blink-reviews-html_chromium.org, chromium-reviews, dglazkov+blink, falken, gavinp+prerender_chromium.org, gavinp+loader_chromium.org, horo+watch_chromium.org, jsbell+serviceworker_chromium.org, kenjibaheux+watch_chromium.org, kinuko+serviceworker, kinuko+watch, loading-reviews_chromium.org, michaeln, nhiroki, serviceworker-reviews, tyoshino+watch_chromium.org, tzik, Yoav Weiss
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Implement support for link type serviceworker in link elements. After a previous CL landed support for link rel=serviceworker in Link HTTP headers, this CL adds similar support to link elements as specified in https://github.com/slightlyoff/ServiceWorker/pull/828 BUG=582310 Committed: https://crrev.com/ac06ca5985e51a21ac2d8711eb9671eb55452f95 Cr-Commit-Position: refs/heads/master@{#382733}

Patch Set 1 #

Patch Set 2 : #

Patch Set 3 : #

Patch Set 4 : #

Patch Set 5 : #

Total comments: 4

Patch Set 6 : fix year and fix test flakyness #

Total comments: 2

Patch Set 7 : move scope parsing to LinkServiceWorker #

Total comments: 2

Patch Set 8 : add comment about get_newest_worker usage #

Patch Set 9 : move LinkServiceWorker to modules/serviceworkers #

Total comments: 2

Patch Set 10 : remove unneeded forward declaration #

Patch Set 11 : fix non-oilpan build #

Total comments: 2

Patch Set 12 : uppercase W in runtime feature name #

Unified diffs Side-by-side diffs Delta from patch set Stats (+656 lines, -412 lines) Patch
A third_party/WebKit/LayoutTests/http/tests/serviceworker/register-link-element.html View 1 2 1 chunk +26 lines, -0 lines 0 comments Download
M third_party/WebKit/LayoutTests/http/tests/serviceworker/registration.html View 1 2 1 chunk +2 lines, -378 lines 0 comments Download
A third_party/WebKit/LayoutTests/http/tests/serviceworker/resources/registration-tests.js View 1 2 3 4 5 6 7 1 chunk +397 lines, -0 lines 0 comments Download
M third_party/WebKit/LayoutTests/webexposed/element-instance-property-listing-expected.txt View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +1 line, -0 lines 0 comments Download
M third_party/WebKit/LayoutTests/webexposed/global-interface-listing-expected.txt View 1 2 3 4 5 6 7 8 9 10 11 2 chunks +2 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/core/html/HTMLLinkElement.h View 1 2 3 4 5 6 7 8 9 10 11 2 chunks +2 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/core/html/HTMLLinkElement.cpp View 1 2 3 4 5 6 7 8 9 10 11 2 chunks +6 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/core/html/HTMLLinkElement.idl View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +4 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/core/html/LinkRelAttribute.h View 2 chunks +2 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/core/html/LinkRelAttribute.cpp View 2 chunks +3 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/core/html/LinkResource.h View 1 2 3 4 5 6 7 8 2 chunks +4 lines, -2 lines 0 comments Download
M third_party/WebKit/Source/core/html/RelList.cpp View 1 2 3 4 5 6 7 8 9 10 11 2 chunks +3 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/core/loader/FrameLoaderClient.h View 1 2 3 4 5 6 7 8 9 10 11 2 chunks +2 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/modules/modules.gypi View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +2 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/modules/serviceworkers/ServiceWorkerContainer.h View 1 2 3 3 chunks +5 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/modules/serviceworkers/ServiceWorkerContainer.cpp View 1 2 3 4 2 chunks +51 lines, -32 lines 0 comments Download
M third_party/WebKit/Source/modules/serviceworkers/ServiceWorkerError.cpp View 1 2 3 1 chunk +4 lines, -0 lines 0 comments Download
A third_party/WebKit/Source/modules/serviceworkers/ServiceWorkerLinkResource.h View 1 2 3 4 5 6 7 8 1 chunk +38 lines, -0 lines 0 comments Download
A third_party/WebKit/Source/modules/serviceworkers/ServiceWorkerLinkResource.cpp View 1 2 3 4 5 6 7 8 1 chunk +92 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/platform/RuntimeEnabledFeatures.in View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +1 line, -0 lines 0 comments Download
M third_party/WebKit/Source/web/FrameLoaderClientImpl.h View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +2 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/web/FrameLoaderClientImpl.cpp View 1 2 3 4 5 6 7 8 9 10 11 2 chunks +6 lines, -0 lines 0 comments Download
M third_party/WebKit/public/platform/modules/serviceworker/WebServiceWorkerError.h View 1 2 1 chunk +1 line, -0 lines 0 comments Download

Messages

Total messages: 33 (11 generated)
Marijn Kruisselbrink
Probably most of this is more something for a core/ OWNER, but no idea who ...
4 years, 9 months ago (2016-03-16 23:05:47 UTC) #4
falken
lgtm but the win_chromium_rel_ng trybot error looks real. I agree using FrameLoaderClient to pipe from ...
4 years, 9 months ago (2016-03-17 03:57:24 UTC) #5
Yoav Weiss
core/ LGTM https://codereview.chromium.org/1781783002/diff/100001/third_party/WebKit/Source/core/html/HTMLLinkElement.cpp File third_party/WebKit/Source/core/html/HTMLLinkElement.cpp (left): https://codereview.chromium.org/1781783002/diff/100001/third_party/WebKit/Source/core/html/HTMLLinkElement.cpp#oldcode233 third_party/WebKit/Source/core/html/HTMLLinkElement.cpp:233: } else { Unrelated to this CL ...
4 years, 9 months ago (2016-03-17 11:21:14 UTC) #7
Marijn Kruisselbrink
On 2016/03/17 at 03:57:24, falken wrote: > the win_chromium_rel_ng trybot error looks real. Ah yes, ...
4 years, 9 months ago (2016-03-17 19:53:34 UTC) #8
Marijn Kruisselbrink
+japhet for Source/web/ OWNERS
4 years, 9 months ago (2016-03-17 21:17:30 UTC) #10
Nate Chapin
https://codereview.chromium.org/1781783002/diff/120001/third_party/WebKit/Source/web/FrameLoaderClientImpl.cpp File third_party/WebKit/Source/web/FrameLoaderClientImpl.cpp (right): https://codereview.chromium.org/1781783002/diff/120001/third_party/WebKit/Source/web/FrameLoaderClientImpl.cpp#newcode1079 third_party/WebKit/Source/web/FrameLoaderClientImpl.cpp:1079: scopeURL.removeFragmentIdentifier(); Can we do this and the things about ...
4 years, 9 months ago (2016-03-17 22:49:04 UTC) #11
Nate Chapin
On 2016/03/17 22:49:04, Nate Chapin wrote: > https://codereview.chromium.org/1781783002/diff/120001/third_party/WebKit/Source/web/FrameLoaderClientImpl.cpp > File third_party/WebKit/Source/web/FrameLoaderClientImpl.cpp (right): > > https://codereview.chromium.org/1781783002/diff/120001/third_party/WebKit/Source/web/FrameLoaderClientImpl.cpp#newcode1079 ...
4 years, 9 months ago (2016-03-17 22:49:16 UTC) #12
Marijn Kruisselbrink
https://codereview.chromium.org/1781783002/diff/120001/third_party/WebKit/Source/web/FrameLoaderClientImpl.cpp File third_party/WebKit/Source/web/FrameLoaderClientImpl.cpp (right): https://codereview.chromium.org/1781783002/diff/120001/third_party/WebKit/Source/web/FrameLoaderClientImpl.cpp#newcode1079 third_party/WebKit/Source/web/FrameLoaderClientImpl.cpp:1079: scopeURL.removeFragmentIdentifier(); On 2016/03/17 at 22:49:03, Nate Chapin wrote: > ...
4 years, 9 months ago (2016-03-17 23:20:39 UTC) #13
falken
Note: the red "linux_blink_oilpan_rel" bot (which is actually non-oilpan) this time is an existing issue: ...
4 years, 9 months ago (2016-03-18 00:29:53 UTC) #14
falken
still lgtm with comment https://codereview.chromium.org/1781783002/diff/140001/third_party/WebKit/LayoutTests/http/tests/serviceworker/resources/registration-tests.js File third_party/WebKit/LayoutTests/http/tests/serviceworker/resources/registration-tests.js (right): https://codereview.chromium.org/1781783002/diff/140001/third_party/WebKit/LayoutTests/http/tests/serviceworker/resources/registration-tests.js#newcode2 third_party/WebKit/LayoutTests/http/tests/serviceworker/resources/registration-tests.js:2: function get_newest_worker(registration) { Many of ...
4 years, 9 months ago (2016-03-18 01:11:43 UTC) #15
Marijn Kruisselbrink
Thinking more about the core vs. web vs. modules split I wonder if maybe the ...
4 years, 9 months ago (2016-03-18 21:20:06 UTC) #16
Marijn Kruisselbrink
Okay, in the latest patch I moved the serviceworker LinkResource implementation to modules/serviceworkers and reduced ...
4 years, 9 months ago (2016-03-18 22:05:29 UTC) #17
Nate Chapin
web/ and core/ LGTM https://codereview.chromium.org/1781783002/diff/180001/third_party/WebKit/Source/core/loader/FrameLoaderClient.h File third_party/WebKit/Source/core/loader/FrameLoaderClient.h (right): https://codereview.chromium.org/1781783002/diff/180001/third_party/WebKit/Source/core/loader/FrameLoaderClient.h#newcode61 third_party/WebKit/Source/core/loader/FrameLoaderClient.h:61: class LinkLoaderClient; Is this needed?
4 years, 9 months ago (2016-03-18 22:12:03 UTC) #18
Marijn Kruisselbrink
https://codereview.chromium.org/1781783002/diff/180001/third_party/WebKit/Source/core/loader/FrameLoaderClient.h File third_party/WebKit/Source/core/loader/FrameLoaderClient.h (right): https://codereview.chromium.org/1781783002/diff/180001/third_party/WebKit/Source/core/loader/FrameLoaderClient.h#newcode61 third_party/WebKit/Source/core/loader/FrameLoaderClient.h:61: class LinkLoaderClient; On 2016/03/18 at 22:12:03, Nate Chapin wrote: ...
4 years, 9 months ago (2016-03-18 22:18:37 UTC) #19
Marijn Kruisselbrink
+leviw for RuntimeEnabledFeatures.in OWNERS
4 years, 9 months ago (2016-03-18 23:30:18 UTC) #21
Marijn Kruisselbrink
+kbr for RuntimeEnabledFeatures OWNERS
4 years, 9 months ago (2016-03-22 17:39:01 UTC) #23
jbroman
platform/RuntimeEnabledFeatures.in lgtm https://codereview.chromium.org/1781783002/diff/220001/third_party/WebKit/Source/platform/RuntimeEnabledFeatures.in File third_party/WebKit/Source/platform/RuntimeEnabledFeatures.in (right): https://codereview.chromium.org/1781783002/diff/220001/third_party/WebKit/Source/platform/RuntimeEnabledFeatures.in#newcode112 third_party/WebKit/Source/platform/RuntimeEnabledFeatures.in:112: LinkServiceworker status=experimental nit: why no uppercase W ...
4 years, 9 months ago (2016-03-22 22:09:13 UTC) #25
Marijn Kruisselbrink
https://codereview.chromium.org/1781783002/diff/220001/third_party/WebKit/Source/platform/RuntimeEnabledFeatures.in File third_party/WebKit/Source/platform/RuntimeEnabledFeatures.in (right): https://codereview.chromium.org/1781783002/diff/220001/third_party/WebKit/Source/platform/RuntimeEnabledFeatures.in#newcode112 third_party/WebKit/Source/platform/RuntimeEnabledFeatures.in:112: LinkServiceworker status=experimental On 2016/03/22 at 22:09:13, jbroman wrote: > ...
4 years, 9 months ago (2016-03-22 22:23:30 UTC) #26
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1781783002/240001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1781783002/240001
4 years, 9 months ago (2016-03-22 22:24:39 UTC) #29
Ken Russell (switch to Gerrit)
RuntimeEnabledFeatures.in lgtm after the fact.
4 years, 9 months ago (2016-03-22 23:24:10 UTC) #30
commit-bot: I haz the power
Committed patchset #12 (id:240001)
4 years, 9 months ago (2016-03-22 23:44:08 UTC) #31
commit-bot: I haz the power
4 years, 9 months ago (2016-03-22 23:45:39 UTC) #33
Message was sent while issue was closed.
Patchset 12 (id:??) landed as
https://crrev.com/ac06ca5985e51a21ac2d8711eb9671eb55452f95
Cr-Commit-Position: refs/heads/master@{#382733}

Powered by Google App Engine
This is Rietveld 408576698