diff options
author | abarth@chromium.org <abarth@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-07-16 18:54:38 +0000 |
---|---|---|
committer | abarth@chromium.org <abarth@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-07-16 18:54:38 +0000 |
commit | 740fab35301a73038485151be30940b214b571f7 (patch) | |
tree | f0a8c02dd94e9fc04c36f03a14105b64a0f01ecf /chrome/renderer/user_script_slave.cc | |
parent | 5ce2fd2d8edaf8f5e963f2e2a47f1872862284b7 (diff) | |
download | chromium_src-740fab35301a73038485151be30940b214b571f7.zip chromium_src-740fab35301a73038485151be30940b214b571f7.tar.gz chromium_src-740fab35301a73038485151be30940b214b571f7.tar.bz2 |
Enable isolated worlds for content scripts.
R=aa
TEST=LayoutTests/http/tests/security/isolatedWorld/ (will be landing soon after this patch)
BUG=12218
Review URL: http://codereview.chromium.org/155626
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@20883 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/renderer/user_script_slave.cc')
-rw-r--r-- | chrome/renderer/user_script_slave.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/chrome/renderer/user_script_slave.cc b/chrome/renderer/user_script_slave.cc index 9692736..48017c1 100644 --- a/chrome/renderer/user_script_slave.cc +++ b/chrome/renderer/user_script_slave.cc @@ -160,7 +160,7 @@ bool UserScriptSlave::InjectScripts(WebFrame* frame, StringPrintf(kInitExtension, script->extension_id().c_str())))); } - frame->ExecuteScriptInNewContext(&sources.front(), sources.size()); + frame->ExecuteScriptInNewWorld(&sources.front(), sources.size()); } } |