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

Issue 2377603002: Disable ServiceWorker when JS is disabled (Closed)

Created:
4 years, 2 months ago by shimazu
Modified:
4 years, 2 months ago
CC:
blink-worker-reviews_chromium.org, chromium-reviews, darin-cc_chromium.org, horo+watch_chromium.org, jam, jsbell+serviceworker_chromium.org, kinuko+watch, kinuko+serviceworker, michaeln, nhiroki, serviceworker-reviews, shimazu+serviceworker_chromium.org, tzik
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Disable ServiceWorker when JS is disabled This patch restricts the service worker when JavaScript is disabled by checking the settings in ChromeContentBrowserClient::AllowServiceWorker(). BUG=632823 Committed: https://crrev.com/ce8af8812b8de0246975c932063b1e03ed570068 Cr-Commit-Position: refs/heads/master@{#423745}

Patch Set 1 #

Total comments: 4

Patch Set 2 : Added browser tests #

Total comments: 2

Patch Set 3 : rebase #

Patch Set 4 : Check the icon to notify JS is diabled #

Patch Set 5 : wrap by FILE_PATH_LITERAL #

Total comments: 14

Patch Set 6 : Updated comments, removed the mock headers and renamed the function #

Unified diffs Side-by-side diffs Delta from patch set Stats (+176 lines, -45 lines) Patch
M chrome/browser/chrome_content_browser_client.cc View 1 2 3 4 5 1 chunk +16 lines, -4 lines 0 comments Download
M chrome/browser/chrome_service_worker_browsertest.cc View 1 2 3 4 5 5 chunks +88 lines, -2 lines 0 comments Download
M chrome/browser/content_settings/tab_specific_content_settings.h View 1 2 3 4 5 2 chunks +16 lines, -9 lines 0 comments Download
M chrome/browser/content_settings/tab_specific_content_settings.cc View 1 2 3 4 5 7 chunks +38 lines, -20 lines 0 comments Download
M chrome/browser/content_settings/tab_specific_content_settings_unittest.cc View 1 2 3 4 5 2 chunks +10 lines, -3 lines 0 comments Download
M chrome/browser/ui/content_settings/content_setting_bubble_model_unittest.cc View 1 2 3 4 5 2 chunks +3 lines, -2 lines 0 comments Download
M content/browser/service_worker/service_worker_dispatcher_host.cc View 5 chunks +5 lines, -5 lines 0 comments Download

Messages

Total messages: 41 (24 generated)
shimazu
PTAL, thanks:)
4 years, 2 months ago (2016-09-27 10:17:25 UTC) #4
jochen (gone - plz use gerrit)
please add a test
4 years, 2 months ago (2016-09-27 19:19:29 UTC) #8
falken
https://codereview.chromium.org/2377603002/diff/1/chrome/browser/chrome_content_browser_client.cc File chrome/browser/chrome_content_browser_client.cc (right): https://codereview.chromium.org/2377603002/diff/1/chrome/browser/chrome_content_browser_client.cc#newcode1786 chrome/browser/chrome_content_browser_client.cc:1786: // Check if Cookie is allowed nit: add a ...
4 years, 2 months ago (2016-09-28 13:51:27 UTC) #9
shimazu
Thanks for your comments! Added tests and fixed the comments. PTAL again:) https://codereview.chromium.org/2377603002/diff/1/chrome/browser/chrome_content_browser_client.cc File chrome/browser/chrome_content_browser_client.cc ...
4 years, 2 months ago (2016-09-29 04:26:34 UTC) #10
jochen (gone - plz use gerrit)
https://codereview.chromium.org/2377603002/diff/20001/chrome/browser/chrome_service_worker_browsertest.cc File chrome/browser/chrome_service_worker_browsertest.cc (right): https://codereview.chromium.org/2377603002/diff/20001/chrome/browser/chrome_service_worker_browsertest.cc#newcode209 chrome/browser/chrome_service_worker_browsertest.cc:209: EXPECT_EQ(expected_title2, title_watcher2.WaitAndGetTitle()); you could check that the tab's tab_specific_content_settings ...
4 years, 2 months ago (2016-09-29 12:15:49 UTC) #11
shimazu
Added the check of ContentSettings and moved the initialization codes of content settings related to ...
4 years, 2 months ago (2016-10-04 09:21:48 UTC) #14
jochen (gone - plz use gerrit)
lgtm
4 years, 2 months ago (2016-10-04 14:50:45 UTC) #17
falken
I don't understand why it's safe to add JAVASCRIPT to the Clear* functions. Why was ...
4 years, 2 months ago (2016-10-05 01:16:50 UTC) #20
shimazu
> I don't understand why it's safe to add JAVASCRIPT to the Clear* functions. Why ...
4 years, 2 months ago (2016-10-05 02:10:58 UTC) #23
falken
lgtm I don't totally understand the clear settings on navigation thing, but defer to jochen ...
4 years, 2 months ago (2016-10-05 03:38:00 UTC) #24
jochen (gone - plz use gerrit)
On 2016/10/05 at 03:38:00, falken wrote: > lgtm > > I don't totally understand the ...
4 years, 2 months ago (2016-10-06 12:11:38 UTC) #29
shimazu
On 2016/10/06 12:11:38, jochen wrote: > On 2016/10/05 at 03:38:00, falken wrote: > > lgtm ...
4 years, 2 months ago (2016-10-06 13:02:42 UTC) #30
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/2377603002/100001
4 years, 2 months ago (2016-10-06 13:03:36 UTC) #33
commit-bot: I haz the power
Try jobs failed on following builders: linux_android_rel_ng on master.tryserver.chromium.android (JOB_FAILED, https://build.chromium.org/p/tryserver.chromium.android/builders/linux_android_rel_ng/builds/155413)
4 years, 2 months ago (2016-10-06 14:16:06 UTC) #35
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/2377603002/100001
4 years, 2 months ago (2016-10-06 23:43:16 UTC) #37
commit-bot: I haz the power
Committed patchset #6 (id:100001)
4 years, 2 months ago (2016-10-06 23:49:44 UTC) #39
commit-bot: I haz the power
4 years, 2 months ago (2016-10-06 23:52:42 UTC) #41
Message was sent while issue was closed.
Patchset 6 (id:??) landed as
https://crrev.com/ce8af8812b8de0246975c932063b1e03ed570068
Cr-Commit-Position: refs/heads/master@{#423745}

Powered by Google App Engine
This is Rietveld 408576698