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

Issue 625533002: Respect content settings for Service Worker registration (Closed)

Created:
6 years, 2 months ago by falken
Modified:
6 years, 2 months ago
CC:
chromium-reviews, creis+watch_chromium.org, darin-cc_chromium.org, horo+watch_chromium.org, jam, jsbell+serviceworker_chromium.org, kinuko+serviceworker, nasko+codewatch_chromium.org, nhiroki, serviceworker-reviews, tzik
Base URL:
https://chromium.googlesource.com/chromium/src.git@testing
Project:
chromium
Visibility:
Public.

Description

Respect content settings for Service Worker registration Add an AllowServiceWorker setting and use it when registering/unregistering a Service Worker. BUG=419277 Committed: https://crrev.com/3dbc36e7379336e40083eca8340e0d9471bc93ef Cr-Commit-Position: refs/heads/master@{#299127}

Patch Set 1 #

Patch Set 2 : better diff #

Total comments: 12

Patch Set 3 : fixes #

Patch Set 4 : sync #

Unified diffs Side-by-side diffs Delta from patch set Stats (+131 lines, -18 lines) Patch
M chrome/browser/chrome_content_browser_client.h View 1 2 1 chunk +3 lines, -0 lines 0 comments Download
M chrome/browser/chrome_content_browser_client.cc View 1 2 1 chunk +10 lines, -0 lines 0 comments Download
M content/browser/renderer_host/render_process_host_impl.cc View 1 2 3 1 chunk +2 lines, -2 lines 0 comments Download
M content/browser/service_worker/service_worker_controllee_request_handler.h View 1 2 3 1 chunk +1 line, -1 line 0 comments Download
M content/browser/service_worker/service_worker_controllee_request_handler.cc View 1 2 3 4 chunks +5 lines, -4 lines 0 comments Download
M content/browser/service_worker/service_worker_dispatcher_host.h View 3 chunks +4 lines, -1 line 0 comments Download
M content/browser/service_worker/service_worker_dispatcher_host.cc View 1 2 7 chunks +39 lines, -7 lines 0 comments Download
M content/browser/service_worker/service_worker_dispatcher_host_unittest.cc View 1 2 4 chunks +42 lines, -2 lines 0 comments Download
M content/browser/service_worker/service_worker_provider_host.h View 1 2 3 2 chunks +4 lines, -0 lines 0 comments Download
M content/browser/service_worker/service_worker_provider_host.cc View 1 2 3 1 chunk +4 lines, -0 lines 0 comments Download
M content/browser/service_worker/service_worker_request_handler.cc View 1 2 3 1 chunk +3 lines, -1 line 0 comments Download
M content/public/browser/content_browser_client.h View 1 2 1 chunk +7 lines, -0 lines 0 comments Download
M content/public/browser/content_browser_client.cc View 1 chunk +7 lines, -0 lines 0 comments Download

Messages

Total messages: 31 (7 generated)
falken
PTAL I verified this works manually for the linked bug. I'd like to add unit ...
6 years, 2 months ago (2014-10-02 09:51:42 UTC) #2
michaeln
https://codereview.chromium.org/625533002/diff/20001/chrome/browser/chrome_content_browser_client.cc File chrome/browser/chrome_content_browser_client.cc (right): https://codereview.chromium.org/625533002/diff/20001/chrome/browser/chrome_content_browser_client.cc#newcode1470 chrome/browser/chrome_content_browser_client.cc:1470: return io_data->GetCookieSettings()->IsSettingCookieAllowed(scope, nit: maybe use wrapping style consistent with ...
6 years, 2 months ago (2014-10-02 20:32:51 UTC) #3
michaeln
https://codereview.chromium.org/625533002/diff/20001/chrome/browser/chrome_content_browser_client.cc File chrome/browser/chrome_content_browser_client.cc (right): https://codereview.chromium.org/625533002/diff/20001/chrome/browser/chrome_content_browser_client.cc#newcode1471 chrome/browser/chrome_content_browser_client.cc:1471: document_url); The docurl is not a good value for ...
6 years, 2 months ago (2014-10-02 20:46:29 UTC) #4
falken
Thanks! PTAL https://codereview.chromium.org/625533002/diff/20001/chrome/browser/chrome_content_browser_client.cc File chrome/browser/chrome_content_browser_client.cc (right): https://codereview.chromium.org/625533002/diff/20001/chrome/browser/chrome_content_browser_client.cc#newcode1470 chrome/browser/chrome_content_browser_client.cc:1470: return io_data->GetCookieSettings()->IsSettingCookieAllowed(scope, On 2014/10/02 20:32:51, michaeln wrote: ...
6 years, 2 months ago (2014-10-03 08:30:42 UTC) #6
falken
ping!
6 years, 2 months ago (2014-10-06 01:20:21 UTC) #7
michaeln
lgtm!
6 years, 2 months ago (2014-10-06 21:36:34 UTC) #8
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/625533002/60001
6 years, 2 months ago (2014-10-06 23:20:05 UTC) #10
commit-bot: I haz the power
Try jobs failed on following builders: chromium_presubmit on tryserver.chromium.linux (http://build.chromium.org/p/tryserver.chromium.linux/builders/chromium_presubmit/builds/15847)
6 years, 2 months ago (2014-10-06 23:58:10 UTC) #12
falken
jochen, can you please review the files: content/browser/renderer_host/render_process_host_impl.cc content/public/browser/content_browser_client.cc content/public/browser/content_browser_client.h
6 years, 2 months ago (2014-10-07 00:33:38 UTC) #14
jochen (gone - plz use gerrit)
+markus It's a bit unclear to me how the interaction with content settings should be.
6 years, 2 months ago (2014-10-07 11:50:05 UTC) #16
michaeln
There's something else missing from this CL (in addition to blocking on navigation), the showing ...
6 years, 2 months ago (2014-10-08 00:34:08 UTC) #17
falken
jochen, any specific concern about the interaction with content settings? michaeln, I think that's http://crbug.com/419284 ...
6 years, 2 months ago (2014-10-08 01:02:02 UTC) #18
michaeln
> michaeln, I think that's http://crbug.com/419284 which is P2 so I plan to leave > ...
6 years, 2 months ago (2014-10-08 01:08:26 UTC) #19
jochen (gone - plz use gerrit)
On 2014/10/08 at 01:02:02, falken wrote: > jochen, any specific concern about the interaction with ...
6 years, 2 months ago (2014-10-08 14:55:16 UTC) #20
falken
On 2014/10/08 14:55:16, jochen wrote: > On 2014/10/08 at 01:02:02, falken wrote: > > jochen, ...
6 years, 2 months ago (2014-10-08 15:19:58 UTC) #21
michaeln
> Yep, hooking up to cookie settings is the guidance from the privacy team. See ...
6 years, 2 months ago (2014-10-08 19:39:24 UTC) #22
kenjibaheux
On 2014/10/08 19:39:24, michaeln wrote: > > Yep, hooking up to cookie settings is the ...
6 years, 2 months ago (2014-10-09 08:13:31 UTC) #23
markusheintz_
On 2014/10/09 08:13:31, kenjibaheux wrote: > On 2014/10/08 19:39:24, michaeln wrote: > > > Yep, ...
6 years, 2 months ago (2014-10-09 08:42:50 UTC) #24
jochen (gone - plz use gerrit)
so far looks good. there needs to be something that reports service worker accesses to ...
6 years, 2 months ago (2014-10-09 11:56:49 UTC) #25
falken
On 2014/10/09 11:56:49, jochen wrote: > so far looks good. > > there needs to ...
6 years, 2 months ago (2014-10-09 14:00:40 UTC) #26
jochen (gone - plz use gerrit)
fair enough lgtm
6 years, 2 months ago (2014-10-10 11:08:33 UTC) #27
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/625533002/80001
6 years, 2 months ago (2014-10-10 15:40:36 UTC) #29
commit-bot: I haz the power
Committed patchset #4 (id:80001)
6 years, 2 months ago (2014-10-10 16:48:18 UTC) #30
commit-bot: I haz the power
6 years, 2 months ago (2014-10-10 16:49:02 UTC) #31
Message was sent while issue was closed.
Patchset 4 (id:??) landed as
https://crrev.com/3dbc36e7379336e40083eca8340e0d9471bc93ef
Cr-Commit-Position: refs/heads/master@{#299127}

Powered by Google App Engine
This is Rietveld 408576698