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

Unified Diff: webkit/tools/test_shell/layout_test_controller.cc

Issue 155626: Enable isolated worlds for content scripts.... (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: '' Created 11 years, 5 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
« chrome/renderer/user_script_slave.cc ('K') | « webkit/glue/webframe_impl.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: webkit/tools/test_shell/layout_test_controller.cc
===================================================================
--- webkit/tools/test_shell/layout_test_controller.cc (revision 20764)
+++ webkit/tools/test_shell/layout_test_controller.cc (working copy)
@@ -351,7 +351,7 @@
WorkItemIsolatedWorldScript(const string& script) : script_(script) {}
bool Run(TestShell* shell) {
WebScriptSource source(WebString::fromUTF8(script_));
- shell->webView()->GetMainFrame()->ExecuteScriptInNewContext(&source, 1);
+ shell->webView()->GetMainFrame()->ExecuteScriptInNewWorld(&source, 1);
return false;
}
private:
« chrome/renderer/user_script_slave.cc ('K') | « webkit/glue/webframe_impl.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698