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

Issue 400903002: Check that Service Workers are registered from secure origins. (Closed)

Created:
6 years, 5 months ago by dominicc (has gone to gerrit)
Modified:
6 years, 5 months ago
Reviewers:
horo
CC:
blink-reviews, michaeln, jsbell+serviceworker_chromium.org, tzik, serviceworker-reviews, nhiroki, falken, kinuko+serviceworker, horo+watch_chromium.org, alecflett+watch_chromium.org, Michael van Ouwerkerk
Project:
blink
Visibility:
Public.

Description

Check that Service Workers are registered from secure origins. This is in keeping with the Chromium proposal to provide powerful new web platform features to secure origins: http://www.chromium.org/Home/chromium-security/prefer-secure-origins-for-powerful-new-features This is also in keeping with the Service Worker spec, which recommends Service Workers use HTTPS, with some exceptions: https://slightlyoff.github.io/ServiceWorker/spec/service_worker/#security-considerations BUG=394213 Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=178728

Patch Set 1 #

Patch Set 2 : Do not open testing namespace for Windows build. #

Total comments: 1

Patch Set 3 : Remove gmock. #

Patch Set 4 : Tidy up unused files. #

Total comments: 2

Patch Set 5 : using namespace blink. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+362 lines, -3 lines) Patch
M Source/modules/modules.gypi View 1 2 3 1 chunk +1 line, -0 lines 0 comments Download
M Source/modules/serviceworkers/ServiceWorkerContainer.cpp View 1 2 2 chunks +17 lines, -3 lines 0 comments Download
A Source/modules/serviceworkers/ServiceWorkerContainerTest.cpp View 1 2 3 4 1 chunk +344 lines, -0 lines 0 comments Download

Messages

Total messages: 14 (0 generated)
dominicc (has gone to gerrit)
PTAL
6 years, 5 months ago (2014-07-18 09:23:05 UTC) #1
Michael van Ouwerkerk
https://codereview.chromium.org/400903002/diff/20001/Source/modules/serviceworkers/MockWebServiceWorkerProvider.h File Source/modules/serviceworkers/MockWebServiceWorkerProvider.h (right): https://codereview.chromium.org/400903002/diff/20001/Source/modules/serviceworkers/MockWebServiceWorkerProvider.h#newcode9 Source/modules/serviceworkers/MockWebServiceWorkerProvider.h:9: #include <gmock/gmock.h> Drive-by nit: it seems quite uncommon to ...
6 years, 5 months ago (2014-07-18 09:37:57 UTC) #2
dominicc (has gone to gerrit)
Best I can discern from email threads is that opinion is mixed. I could certainly ...
6 years, 5 months ago (2014-07-18 09:49:43 UTC) #3
horo
https://codereview.chromium.org/400903002/diff/60001/Source/modules/serviceworkers/ServiceWorkerContainer.cpp File Source/modules/serviceworkers/ServiceWorkerContainer.cpp (right): https://codereview.chromium.org/400903002/diff/60001/Source/modules/serviceworkers/ServiceWorkerContainer.cpp#newcode151 Source/modules/serviceworkers/ServiceWorkerContainer.cpp:151: if (!documentOrigin->canAccessFeatureRequiringSecureOrigin()) { Why do you check it here? ...
6 years, 5 months ago (2014-07-22 06:18:23 UTC) #4
dominicc (has gone to gerrit)
On 2014/07/22 06:18:23, horo wrote: > https://codereview.chromium.org/400903002/diff/60001/Source/modules/serviceworkers/ServiceWorkerContainer.cpp > File Source/modules/serviceworkers/ServiceWorkerContainer.cpp (right): > > https://codereview.chromium.org/400903002/diff/60001/Source/modules/serviceworkers/ServiceWorkerContainer.cpp#newcode151 > ...
6 years, 5 months ago (2014-07-22 07:07:14 UTC) #5
horo
On 2014/07/22 07:07:14, dominicc wrote: > On 2014/07/22 06:18:23, horo wrote: > > > https://codereview.chromium.org/400903002/diff/60001/Source/modules/serviceworkers/ServiceWorkerContainer.cpp ...
6 years, 5 months ago (2014-07-22 13:00:49 UTC) #6
dominicc (has gone to gerrit)
The CQ bit was checked by dominicc@chromium.org
6 years, 5 months ago (2014-07-22 22:39:27 UTC) #7
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/dominicc@chromium.org/400903002/80001
6 years, 5 months ago (2014-07-22 22:40:34 UTC) #8
commit-bot: I haz the power
FYI, CQ is re-trying this CL (attempt #1). The failing builders are: mac_blink_rel on tryserver.blink ...
6 years, 5 months ago (2014-07-23 00:02:07 UTC) #9
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 5 months ago (2014-07-23 01:53:16 UTC) #10
commit-bot: I haz the power
Try jobs failed on following builders: win_gpu_triggered_tests on tryserver.chromium.gpu (http://build.chromium.org/p/tryserver.chromium.gpu/builders/win_gpu_triggered_tests/builds/31152)
6 years, 5 months ago (2014-07-23 01:53:16 UTC) #11
dominicc (has gone to gerrit)
The CQ bit was checked by dominicc@chromium.org
6 years, 5 months ago (2014-07-23 02:10:03 UTC) #12
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/dominicc@chromium.org/400903002/80001
6 years, 5 months ago (2014-07-23 02:10:26 UTC) #13
commit-bot: I haz the power
6 years, 5 months ago (2014-07-23 03:47:17 UTC) #14
Message was sent while issue was closed.
Change committed as 178728

Powered by Google App Engine
This is Rietveld 408576698