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

Unified Diff: third_party/WebKit/Source/devtools/front_end/main/Main.js

Issue 2843763004: [DevTools] Introduce EmulationModel which will encapsulate emulation (Closed)
Patch Set: +throttling Created 3 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: third_party/WebKit/Source/devtools/front_end/main/Main.js
diff --git a/third_party/WebKit/Source/devtools/front_end/main/Main.js b/third_party/WebKit/Source/devtools/front_end/main/Main.js
index 991a9be791109a4261719774e850bbcb1fdf5eec..fe21176a867e053d8beadc3a1374eedd5d822785 100644
--- a/third_party/WebKit/Source/devtools/front_end/main/Main.js
+++ b/third_party/WebKit/Source/devtools/front_end/main/Main.js
@@ -909,8 +909,6 @@ Main.BackendSettingsSync = class {
constructor() {
this._autoAttachSetting = Common.settings.moduleSetting('autoAttachToCreatedPages');
this._autoAttachSetting.addChangeListener(this._update, this);
- this._disableJavascriptSetting = Common.settings.moduleSetting('javaScriptDisabled');
- this._disableJavascriptSetting.addChangeListener(this._update, this);
SDK.targetManager.observeTargets(this, SDK.Target.Capability.Browser);
}
@@ -919,7 +917,6 @@ Main.BackendSettingsSync = class {
*/
_updateTarget(target) {
target.pageAgent().setAutoAttachToCreatedPages(this._autoAttachSetting.get());
- target.emulationAgent().setScriptExecutionDisabled(this._disableJavascriptSetting.get());
}
_update() {

Powered by Google App Engine
This is Rietveld 408576698