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

Issue 2708413003: DevTools: make disable javascript setting temporary (Closed)

Created:
3 years, 10 months ago by luoe
Modified:
3 years, 9 months ago
Reviewers:
dgozman, pfeldman
CC:
chromium-reviews, caseq+blink_chromium.org, lushnikov+blink_chromium.org, pfeldman+blink_chromium.org, apavlov+blink_chromium.org, devtools-reviews_chromium.org, blink-reviews, pfeldman, kozyatinskiy+blink_chromium.org
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

DevTools: make disable javascript setting temporary This makes the "disable javascript" setting temporary, similar to networkBlockedURLs. Before, disabling JS then opening a new tab with DevTools resulted in disabled JS on the new tab. Now, opening DevTools in the new tab will not have the same setting as the last tab. Behavior when closing/opening DevTools on the same tab, navigating the page, and toggling the checkbox should not be affected by this CL. BUG=684403 Review-Url: https://codereview.chromium.org/2708413003 Cr-Commit-Position: refs/heads/master@{#454885} Committed: https://chromium.googlesource.com/chromium/src/+/d86ba3089c88fd85df42b2660bf5dd8a2cda6dfe

Patch Set 1 #

Total comments: 1

Patch Set 2 : introduce temporary sessionStorage #

Total comments: 1

Patch Set 3 : a #

Total comments: 10

Patch Set 4 : rebase #

Patch Set 5 : ac #

Total comments: 4

Patch Set 6 : ac remove fallthroughs #

Patch Set 7 : ac #

Patch Set 8 : default global #

Unified diffs Side-by-side diffs Delta from patch set Stats (+64 lines, -26 lines) Patch
M third_party/WebKit/Source/devtools/front_end/Tests.js View 1 2 3 4 5 6 7 2 chunks +4 lines, -4 lines 0 comments Download
M third_party/WebKit/Source/devtools/front_end/common/Settings.js View 1 2 3 4 5 6 7 6 chunks +57 lines, -20 lines 0 comments Download
M third_party/WebKit/Source/devtools/front_end/help/Help.js View 1 2 3 4 5 6 7 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/Source/devtools/front_end/main/module.json View 1 2 3 4 5 6 7 1 chunk +1 line, -0 lines 0 comments Download
M third_party/WebKit/Source/devtools/front_end/sdk/NetworkManager.js View 1 2 1 chunk +0 lines, -1 line 0 comments Download
M third_party/WebKit/Source/devtools/front_end/sdk/module.json View 1 2 3 4 5 6 7 1 chunk +1 line, -0 lines 0 comments Download

Messages

Total messages: 25 (14 generated)
luoe
Please take a look
3 years, 10 months ago (2017-02-23 01:07:07 UTC) #3
pfeldman
https://codereview.chromium.org/2708413003/diff/1/third_party/WebKit/Source/devtools/front_end/main/Main.js File third_party/WebKit/Source/devtools/front_end/main/Main.js (right): https://codereview.chromium.org/2708413003/diff/1/third_party/WebKit/Source/devtools/front_end/main/Main.js#newcode87 third_party/WebKit/Source/devtools/front_end/main/Main.js:87: Common.moduleSetting('javaScriptDisabled').set(false); Should we introduce session settings instead? 'session' = ...
3 years, 10 months ago (2017-02-23 01:30:51 UTC) #4
luoe
Nice idea. There's only 2 places I can see that would use it, here and ...
3 years, 10 months ago (2017-02-23 01:33:21 UTC) #5
luoe
The latest patch is an attempt at introducing a temporary SessionStorage. Since 'session' conflicts with ...
3 years, 10 months ago (2017-02-25 02:53:03 UTC) #6
pfeldman
This looks good and does not add complexity. In fact, storageForType that you introduced lowers ...
3 years, 9 months ago (2017-02-27 17:46:33 UTC) #7
luoe
ptal https://codereview.chromium.org/2708413003/diff/40001/third_party/WebKit/Source/devtools/front_end/common/Settings.js File third_party/WebKit/Source/devtools/front_end/common/Settings.js (right): https://codereview.chromium.org/2708413003/diff/40001/third_party/WebKit/Source/devtools/front_end/common/Settings.js#newcode41 third_party/WebKit/Source/devtools/front_end/common/Settings.js:41: this._settingsStorage = globalStorage; On 2017/02/27 17:46:33, pfeldman wrote: ...
3 years, 9 months ago (2017-02-27 20:24:34 UTC) #8
pfeldman
lgtm % nits https://codereview.chromium.org/2708413003/diff/80001/third_party/WebKit/Source/devtools/front_end/common/Settings.js File third_party/WebKit/Source/devtools/front_end/common/Settings.js (right): https://codereview.chromium.org/2708413003/diff/80001/third_party/WebKit/Source/devtools/front_end/common/Settings.js#newcode68 third_party/WebKit/Source/devtools/front_end/common/Settings.js:68: default: You typically specify all the ...
3 years, 9 months ago (2017-03-01 23:23:19 UTC) #9
luoe
https://codereview.chromium.org/2708413003/diff/80001/third_party/WebKit/Source/devtools/front_end/common/Settings.js File third_party/WebKit/Source/devtools/front_end/common/Settings.js (right): https://codereview.chromium.org/2708413003/diff/80001/third_party/WebKit/Source/devtools/front_end/common/Settings.js#newcode68 third_party/WebKit/Source/devtools/front_end/common/Settings.js:68: default: On 2017/03/01 23:23:19, pfeldman wrote: > You typically ...
3 years, 9 months ago (2017-03-03 03:50:23 UTC) #10
luoe
Since all settings defaulted to globalStorage before, I don't think this CL should change the ...
3 years, 9 months ago (2017-03-03 19:46:57 UTC) #15
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/2708413003/140001
3 years, 9 months ago (2017-03-06 16:28:57 UTC) #22
commit-bot: I haz the power
3 years, 9 months ago (2017-03-06 18:04:50 UTC) #25
Message was sent while issue was closed.
Committed patchset #8 (id:140001) as
https://chromium.googlesource.com/chromium/src/+/d86ba3089c88fd85df42b2660bf5...

Powered by Google App Engine
This is Rietveld 408576698