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

Issue 1211243010: [Service Worker Registration] Registered extension scheme to allow service workers (Closed)

Created:
5 years, 5 months ago by annekao
Modified:
5 years, 5 months ago
CC:
chromium-reviews, not at google - send to devlin
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

[Service Worker Registration] Registered extension scheme to allow service workers Service Workers require a secure origin, such as HTTPS. chrome-extension:// pages are not HTTP/HTTPS, but are secure so this change becomes a necessary step to allow extensions to register a Service Worker. "chrome-extension" is added as a scheme allowing service workers. BUG=501569 Committed: https://crrev.com/3868550081d275ef8f73933ffcec88da453215a2 Cr-Commit-Position: refs/heads/master@{#338708}

Patch Set 1 #

Total comments: 1

Patch Set 2 : Test #

Total comments: 19

Patch Set 3 : Added dev test #

Total comments: 14

Patch Set 4 : #

Total comments: 10

Patch Set 5 : #

Patch Set 6 : Added license #

Unified diffs Side-by-side diffs Delta from patch set Stats (+110 lines, -2 lines) Patch
A chrome/browser/extensions/service_worker_apitest.cc View 1 2 3 4 1 chunk +50 lines, -0 lines 0 comments Download
M chrome/chrome_tests.gypi View 1 2 2 chunks +2 lines, -1 line 0 comments Download
A chrome/test/data/extensions/api_test/service_worker/register/manifest.json View 1 1 chunk +9 lines, -0 lines 0 comments Download
A + chrome/test/data/extensions/api_test/service_worker/register/sw.js View 1 2 3 4 5 1 chunk +1 line, -1 line 0 comments Download
A chrome/test/data/extensions/api_test/service_worker/register/test.js View 1 2 3 4 1 chunk +27 lines, -0 lines 0 comments Download
M extensions/common/api/_behavior_features.json View 1 2 3 1 chunk +3 lines, -0 lines 0 comments Download
M extensions/common/features/behavior_feature.h View 1 2 1 chunk +1 line, -0 lines 0 comments Download
M extensions/common/features/behavior_feature.cc View 1 2 1 chunk +2 lines, -0 lines 0 comments Download
M extensions/renderer/dispatcher.h View 1 2 1 chunk +3 lines, -0 lines 0 comments Download
M extensions/renderer/dispatcher.cc View 1 2 3 4 chunks +12 lines, -0 lines 0 comments Download

Messages

Total messages: 36 (13 generated)
annekao
5 years, 5 months ago (2015-06-30 21:56:26 UTC) #2
Devlin
https://codereview.chromium.org/1211243010/diff/1/chrome/renderer/chrome_content_renderer_client.cc File chrome/renderer/chrome_content_renderer_client.cc (right): https://codereview.chromium.org/1211243010/diff/1/chrome/renderer/chrome_content_renderer_client.cc#newcode505 chrome/renderer/chrome_content_renderer_client.cc:505: WebSecurityPolicy::registerURLSchemeAsAllowingServiceWorkers( We can actually move this into the constructor ...
5 years, 5 months ago (2015-06-30 22:01:15 UTC) #3
annekao
Added service worker registration for extension as a behavior feature for the trunk channel. service_worker_apitest ...
5 years, 5 months ago (2015-07-10 21:35:23 UTC) #7
Devlin
Woo! https://codereview.chromium.org/1211243010/diff/80001/chrome/test/data/extensions/api_test/service_worker/register/test.js File chrome/test/data/extensions/api_test/service_worker/register/test.js (right): https://codereview.chromium.org/1211243010/diff/80001/chrome/test/data/extensions/api_test/service_worker/register/test.js#newcode1 chrome/test/data/extensions/api_test/service_worker/register/test.js:1: var registered = false; nit: you'll need the ...
5 years, 5 months ago (2015-07-10 21:51:23 UTC) #8
not at google - send to devlin
Tiny drive-by. Awesome to see this happening. https://codereview.chromium.org/1211243010/diff/80001/chrome/test/data/extensions/api_test/service_worker/register/test.js File chrome/test/data/extensions/api_test/service_worker/register/test.js (right): https://codereview.chromium.org/1211243010/diff/80001/chrome/test/data/extensions/api_test/service_worker/register/test.js#newcode3 chrome/test/data/extensions/api_test/service_worker/register/test.js:3: also, JS ...
5 years, 5 months ago (2015-07-10 22:00:43 UTC) #10
annekao
Fixed all small problems mentioned in the comments. Added the second test for the dev ...
5 years, 5 months ago (2015-07-13 18:26:17 UTC) #12
Devlin
https://codereview.chromium.org/1211243010/diff/100001/chrome/browser/extensions/service_worker_apitest.cc File chrome/browser/extensions/service_worker_apitest.cc (right): https://codereview.chromium.org/1211243010/diff/100001/chrome/browser/extensions/service_worker_apitest.cc#newcode29 chrome/browser/extensions/service_worker_apitest.cc:29: if (listener.message() != "success") { Instead of this, we ...
5 years, 5 months ago (2015-07-13 19:32:25 UTC) #13
Devlin
Oh, also, code review tip: As you address a comment, go to it's link in ...
5 years, 5 months ago (2015-07-13 19:36:46 UTC) #14
annekao
Got it! https://codereview.chromium.org/1211243010/diff/100001/chrome/browser/extensions/service_worker_apitest.cc File chrome/browser/extensions/service_worker_apitest.cc (right): https://codereview.chromium.org/1211243010/diff/100001/chrome/browser/extensions/service_worker_apitest.cc#newcode29 chrome/browser/extensions/service_worker_apitest.cc:29: if (listener.message() != "success") { On 2015/07/13 ...
5 years, 5 months ago (2015-07-13 21:15:59 UTC) #15
Devlin
Nice, super close! :) https://codereview.chromium.org/1211243010/diff/120001/chrome/browser/extensions/service_worker_apitest.cc File chrome/browser/extensions/service_worker_apitest.cc (right): https://codereview.chromium.org/1211243010/diff/120001/chrome/browser/extensions/service_worker_apitest.cc#newcode23 chrome/browser/extensions/service_worker_apitest.cc:23: // This should fail because ...
5 years, 5 months ago (2015-07-13 21:22:11 UTC) #16
annekao
https://codereview.chromium.org/1211243010/diff/120001/chrome/test/data/extensions/api_test/service_worker/register/test.js File chrome/test/data/extensions/api_test/service_worker/register/test.js (right): https://codereview.chromium.org/1211243010/diff/120001/chrome/test/data/extensions/api_test/service_worker/register/test.js#newcode17 chrome/test/data/extensions/api_test/service_worker/register/test.js:17: registration.scope); On 2015/07/13 21:22:11, Devlin wrote: > nit: indentation. ...
5 years, 5 months ago (2015-07-13 21:30:48 UTC) #17
Devlin
https://codereview.chromium.org/1211243010/diff/120001/chrome/test/data/extensions/api_test/service_worker/register/test.js File chrome/test/data/extensions/api_test/service_worker/register/test.js (right): https://codereview.chromium.org/1211243010/diff/120001/chrome/test/data/extensions/api_test/service_worker/register/test.js#newcode17 chrome/test/data/extensions/api_test/service_worker/register/test.js:17: registration.scope); On 2015/07/13 21:30:47, annekao wrote: > On 2015/07/13 ...
5 years, 5 months ago (2015-07-13 21:46:16 UTC) #18
annekao
https://codereview.chromium.org/1211243010/diff/120001/chrome/browser/extensions/service_worker_apitest.cc File chrome/browser/extensions/service_worker_apitest.cc (right): https://codereview.chromium.org/1211243010/diff/120001/chrome/browser/extensions/service_worker_apitest.cc#newcode23 chrome/browser/extensions/service_worker_apitest.cc:23: // This should fail because there are changes to ...
5 years, 5 months ago (2015-07-13 22:21:29 UTC) #19
Devlin
lgtm! Woohoo!
5 years, 5 months ago (2015-07-13 22:25:02 UTC) #20
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1211243010/140001
5 years, 5 months ago (2015-07-14 00:06:52 UTC) #23
commit-bot: I haz the power
Try jobs failed on following builders: chromium_presubmit on tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/chromium_presubmit/builds/78402)
5 years, 5 months ago (2015-07-14 00:15:59 UTC) #25
Devlin
On 2015/07/14 00:15:59, commit-bot: I haz the power wrote: > Try jobs failed on following ...
5 years, 5 months ago (2015-07-14 15:17:44 UTC) #26
annekao
On 2015/07/14 15:17:44, Devlin wrote: > On 2015/07/14 00:15:59, commit-bot: I haz the power wrote: ...
5 years, 5 months ago (2015-07-14 16:29:35 UTC) #27
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1211243010/160001
5 years, 5 months ago (2015-07-14 16:30:24 UTC) #30
commit-bot: I haz the power
Try jobs failed on following builders: win8_chromium_ng on tryserver.chromium.win (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.win/builders/win8_chromium_ng/builds/16234)
5 years, 5 months ago (2015-07-14 16:47:10 UTC) #32
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1211243010/160001
5 years, 5 months ago (2015-07-14 16:50:33 UTC) #34
commit-bot: I haz the power
Committed patchset #6 (id:160001)
5 years, 5 months ago (2015-07-14 17:46:51 UTC) #35
commit-bot: I haz the power
5 years, 5 months ago (2015-07-14 17:47:52 UTC) #36
Message was sent while issue was closed.
Patchset 6 (id:??) landed as
https://crrev.com/3868550081d275ef8f73933ffcec88da453215a2
Cr-Commit-Position: refs/heads/master@{#338708}

Powered by Google App Engine
This is Rietveld 408576698