| 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 d012c5ab92ed540bf3cab2d2f650fa80a5aaa7cd..e97101070635dfc6ccd0de16e2b690472829e943 100644
|
| --- a/third_party/WebKit/Source/devtools/front_end/main/Main.js
|
| +++ b/third_party/WebKit/Source/devtools/front_end/main/Main.js
|
| @@ -1052,16 +1052,27 @@ WebInspector.BackendSettingsSync = function()
|
| this._autoAttachSetting.addChangeListener(this._update, this);
|
| this._disableJavascriptSetting = WebInspector.settings.moduleSetting("javaScriptDisabled");
|
| this._disableJavascriptSetting.addChangeListener(this._update, this);
|
| + this._blockedEventsWarningSetting = WebInspector.settings.moduleSetting("blockedEventsWarningEnabled");
|
| + this._blockedEventsWarningSetting.addChangeListener(this._update, this);
|
| WebInspector.targetManager.observeTargets(this, WebInspector.Target.Type.Page);
|
| }
|
|
|
| WebInspector.BackendSettingsSync.prototype = {
|
| + /**
|
| + * @param {!WebInspector.Target} target
|
| + */
|
| + _updateTarget: function(target)
|
| + {
|
| + target.pageAgent().setAutoAttachToCreatedPages(this._autoAttachSetting.get());
|
| + target.emulationAgent().setScriptExecutionDisabled(this._disableJavascriptSetting.get());
|
| +
|
| + var blockedEventsWarningThresholdSeconds = 0.1;
|
| + target.inputAgent().setBlockedEventsWarningThreshold(this._blockedEventsWarningSetting.get() ? blockedEventsWarningThresholdSeconds : 0);
|
| + },
|
| +
|
| _update: function()
|
| {
|
| - for (var target of WebInspector.targetManager.targets(WebInspector.Target.Type.Page)) {
|
| - target.pageAgent().setAutoAttachToCreatedPages(this._autoAttachSetting.get());
|
| - target.emulationAgent().setScriptExecutionDisabled(this._disableJavascriptSetting.get());
|
| - }
|
| + WebInspector.targetManager.targets(WebInspector.Target.Type.Page).forEach(this._updateTarget, this);
|
| },
|
|
|
| /**
|
| @@ -1070,8 +1081,7 @@ WebInspector.BackendSettingsSync.prototype = {
|
| */
|
| targetAdded: function(target)
|
| {
|
| - target.pageAgent().setAutoAttachToCreatedPages(this._autoAttachSetting.get());
|
| - target.emulationAgent().setScriptExecutionDisabled(this._disableJavascriptSetting.get());
|
| + this._updateTarget(target);
|
| target.renderingAgent().setShowViewportSizeOnResize(true);
|
| },
|
|
|
|
|