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

Unified Diff: content/shell/webkit_test_runner.js

Issue 11411282: [content shell] add support for testRunner.canOpenWindows and disallow opening windows per default … (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebased Created 8 years, 1 month 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
« no previous file with comments | « content/shell/shell_messages.h ('k') | content/shell/webkit_test_runner_bindings.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/shell/webkit_test_runner.js
diff --git a/content/shell/webkit_test_runner.js b/content/shell/webkit_test_runner.js
index 1cfe81d2cae182f3cea99d033758274ddf598cad..7665a903fce38d213e2adddba6791784a12e1621 100644
--- a/content/shell/webkit_test_runner.js
+++ b/content/shell/webkit_test_runner.js
@@ -8,6 +8,7 @@ var testRunner = testRunner || {};
native function Display();
native function GetWorkerThreadCount();
native function NotifyDone();
+ native function SetCanOpenWindows();
native function SetDumpAsText();
native function SetDumpChildFramesAsText();
native function SetPrinting();
@@ -41,6 +42,9 @@ var testRunner = testRunner || {};
Object.defineProperty(this,
"dumpChildFramesAsText",
{value: SetDumpChildFramesAsText});
+ Object.defineProperty(this,
+ "setCanOpenWindows",
+ {value: SetCanOpenWindows});
Object.defineProperty(this, "setPrinting", {value: SetPrinting});
Object.defineProperty(
this,
« no previous file with comments | « content/shell/shell_messages.h ('k') | content/shell/webkit_test_runner_bindings.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698