| 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 1696bdf19a133125f40ccba64bcffa62694dc8d2..63857cd80deda28b0936860fa440bd8eb1605c1c 100644
|
| --- a/third_party/WebKit/Source/devtools/front_end/main/Main.js
|
| +++ b/third_party/WebKit/Source/devtools/front_end/main/Main.js
|
| @@ -1013,6 +1013,8 @@
|
| 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.Capability.Browser);
|
| }
|
|
|
| @@ -1020,6 +1022,9 @@
|
| * @param {!WebInspector.Target} target
|
| */
|
| _updateTarget(target) {
|
| + var blockedEventsWarningThresholdSeconds = 0.1;
|
| + target.pageAgent().setBlockedEventsWarningThreshold(
|
| + this._blockedEventsWarningSetting.get() ? blockedEventsWarningThresholdSeconds : 0);
|
| target.pageAgent().setAutoAttachToCreatedPages(this._autoAttachSetting.get());
|
| target.emulationAgent().setScriptExecutionDisabled(this._disableJavascriptSetting.get());
|
| }
|
|
|