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

Issue 8395044: Disable the Developer Tools when Javascript is disabled. (Closed)

Created:
9 years, 1 month ago by Joao da Silva
Modified:
9 years, 1 month ago
CC:
chromium-reviews, Nirnimesh, John Grabowski, kkania, anantha, robertshield, dyu1, Paweł Hajdan Jr., dennis_jeffrey
Visibility:
Public.

Description

Deprecate the JavascriptEnabled policy. It now has the same effect as DefaultJavaScriptSetting = BLOCK. Added pyauto test for Javascript policies. BUG=100621, 102668 TEST=policy.PolicyTest.testJavascriptPolicies Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=108661

Patch Set 1 #

Total comments: 5

Patch Set 2 : Deprecated JavascriptEnabled #

Patch Set 3 : Fixed unit_tests, added some more tests #

Total comments: 8

Patch Set 4 : JavascriptEnabled is overridden by DefaultJavaScriptSetting; enabled JavascriptSetting test #

Patch Set 5 : rebased #

Patch Set 6 : rebased #

Unified diffs Side-by-side diffs Delta from patch set Stats (+196 lines, -39 lines) Patch
M chrome/app/policy/policy_templates.json View 1 2 3 1 chunk +7 lines, -2 lines 0 comments Download
M chrome/browser/automation/automation_provider_observers.h View 1 2 chunks +2 lines, -0 lines 0 comments Download
M chrome/browser/automation/automation_provider_observers.cc View 1 6 chunks +23 lines, -1 line 0 comments Download
M chrome/browser/policy/configuration_policy_handler.cc View 1 2 3 4 5 1 chunk +15 lines, -24 lines 0 comments Download
M chrome/browser/policy/configuration_policy_pref_store_unittest.cc View 1 2 3 7 chunks +60 lines, -5 lines 0 comments Download
M chrome/test/functional/policy.py View 1 2 3 3 chunks +72 lines, -5 lines 0 comments Download
M chrome/test/functional/policy_prefs_ui.py View 1 2 3 4 1 chunk +1 line, -2 lines 0 comments Download
M chrome/test/pyautolib/pyautolib.h View 1 1 chunk +3 lines, -0 lines 0 comments Download
M chrome/test/pyautolib/pyautolib.cc View 1 1 chunk +10 lines, -0 lines 0 comments Download
M chrome/test/pyautolib/pyautolib.i View 1 1 chunk +3 lines, -0 lines 0 comments Download

Messages

Total messages: 16 (0 generated)
Joao da Silva
Please review @nirnimesh: automation, pyautolib & functional test changes @mnissler: policy changes
9 years, 1 month ago (2011-10-26 14:47:01 UTC) #1
Mattias Nissler (ping if slow)
http://codereview.chromium.org/8395044/diff/1/chrome/browser/policy/configuration_policy_handler.cc File chrome/browser/policy/configuration_policy_handler.cc (right): http://codereview.chromium.org/8395044/diff/1/chrome/browser/policy/configuration_policy_handler.cc#newcode568 chrome/browser/policy/configuration_policy_handler.cc:568: if (value && value_type_ != value->GetType()) { This is ...
9 years, 1 month ago (2011-10-26 15:09:27 UTC) #2
Nirnimesh
Automation code LGTM
9 years, 1 month ago (2011-10-26 19:12:59 UTC) #3
Paweł Hajdan Jr.
Drive-by, no need to wait for me. http://codereview.chromium.org/8395044/diff/1/chrome/test/pyautolib/pyautolib.cc File chrome/test/pyautolib/pyautolib.cc (right): http://codereview.chromium.org/8395044/diff/1/chrome/test/pyautolib/pyautolib.cc#newcode130 chrome/test/pyautolib/pyautolib.cc:130: automation()->GetBrowserWindow(window_index); Please ...
9 years, 1 month ago (2011-10-27 08:26:20 UTC) #4
Joao da Silva
Thanks all for reviewing! @mnissler: Please have another look http://codereview.chromium.org/8395044/diff/1/chrome/browser/policy/configuration_policy_handler.cc File chrome/browser/policy/configuration_policy_handler.cc (right): http://codereview.chromium.org/8395044/diff/1/chrome/browser/policy/configuration_policy_handler.cc#newcode1343 chrome/browser/policy/configuration_policy_handler.cc:1343: ...
9 years, 1 month ago (2011-11-03 18:00:09 UTC) #5
Mattias Nissler (ping if slow)
http://codereview.chromium.org/8395044/diff/6002/chrome/app/policy/policy_templates.json File chrome/app/policy/policy_templates.json (right): http://codereview.chromium.org/8395044/diff/6002/chrome/app/policy/policy_templates.json#newcode276 chrome/app/policy/policy_templates.json:276: If this setting is disabled, web pages cannot use ...
9 years, 1 month ago (2011-11-03 18:42:02 UTC) #6
Joao da Silva
@mnissler: good point about the overriding order, it's been changed. PTAL. http://codereview.chromium.org/8395044/diff/6002/chrome/app/policy/policy_templates.json File chrome/app/policy/policy_templates.json (right): ...
9 years, 1 month ago (2011-11-03 20:46:54 UTC) #7
Mattias Nissler (ping if slow)
lgtm
9 years, 1 month ago (2011-11-04 09:47:30 UTC) #8
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/joaodasilva@chromium.org/8395044/19001
9 years, 1 month ago (2011-11-04 09:53:37 UTC) #9
commit-bot: I haz the power
Try job failure for 8395044-19001 (retry) on win_rel for step "chrome_frame_net_tests". It's a second try, ...
9 years, 1 month ago (2011-11-04 11:59:35 UTC) #10
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/joaodasilva@chromium.org/8395044/19001
9 years, 1 month ago (2011-11-04 12:48:40 UTC) #11
commit-bot: I haz the power
Try job failure for 8395044-19001 (retry) on win_rel for step "chrome_frame_net_tests". It's a second try, ...
9 years, 1 month ago (2011-11-04 14:20:46 UTC) #12
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/joaodasilva@chromium.org/8395044/19001
9 years, 1 month ago (2011-11-04 14:27:54 UTC) #13
commit-bot: I haz the power
Can't apply patch for file chrome/browser/policy/configuration_policy_handler.cc. While running patch -p1 --forward --force; patching file chrome/browser/policy/configuration_policy_handler.cc ...
9 years, 1 month ago (2011-11-04 14:28:35 UTC) #14
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/joaodasilva@chromium.org/8395044/23001
9 years, 1 month ago (2011-11-04 14:37:55 UTC) #15
commit-bot: I haz the power
9 years, 1 month ago (2011-11-04 16:00:56 UTC) #16
Change committed as 108661

Powered by Google App Engine
This is Rietveld 408576698