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

Unified Diff: third_party/WebKit/Source/devtools/front_end/sdk/ConsoleModel.js

Issue 1808533002: DevTools: wrap console evaluation with user gesture indicator for convenience. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 9 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/sdk/ConsoleModel.js
diff --git a/third_party/WebKit/Source/devtools/front_end/sdk/ConsoleModel.js b/third_party/WebKit/Source/devtools/front_end/sdk/ConsoleModel.js
index aff5da307645c6f3864ce0b9e8603c14857f9d7e..05bff62db497a46a45cf2471ee1e3f1a1a045bfe 100644
--- a/third_party/WebKit/Source/devtools/front_end/sdk/ConsoleModel.js
+++ b/third_party/WebKit/Source/devtools/front_end/sdk/ConsoleModel.js
@@ -214,7 +214,7 @@ WebInspector.ConsoleModel.evaluateCommandInConsole = function(executionContext,
}
if (/^\s*\{/.test(text) && /\}\s*$/.test(text))
text = '(' + text + ')';
- executionContext.evaluate(text, "console", !!useCommandLineAPI, false, false, true, printResult);
+ executionContext.evaluate(text, "console", !!useCommandLineAPI, false, false, true, true, printResult);
WebInspector.userMetrics.actionTaken(WebInspector.UserMetrics.Action.ConsoleEvaluated);
}

Powered by Google App Engine
This is Rietveld 408576698