summaryrefslogtreecommitdiffstats
path: root/chrome/browser/automation/automation_provider.cc
diff options
context:
space:
mode:
authoraa@google.com <aa@google.com@0039d316-1c4b-4281-b951-d872f2087c98>2008-11-03 20:08:33 +0000
committeraa@google.com <aa@google.com@0039d316-1c4b-4281-b951-d872f2087c98>2008-11-03 20:08:33 +0000
commitf29acf538815f1d71638ac9db8798998a113955f (patch)
tree9f06b1775d4b4fa81a81482b7f95640eeb17177d /chrome/browser/automation/automation_provider.cc
parent7ca2af2c8cb95ea08207b53076f183408e18f2ee (diff)
downloadchromium_src-f29acf538815f1d71638ac9db8798998a113955f.zip
chromium_src-f29acf538815f1d71638ac9db8798998a113955f.tar.gz
chromium_src-f29acf538815f1d71638ac9db8798998a113955f.tar.bz2
Change some places where we were using javascript: URLs to use
WebFrame::ExecuteJavaScript() instead. Review URL: http://codereview.chromium.org/8826 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@4480 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/automation/automation_provider.cc')
-rw-r--r--chrome/browser/automation/automation_provider.cc8
1 files changed, 4 insertions, 4 deletions
diff --git a/chrome/browser/automation/automation_provider.cc b/chrome/browser/automation/automation_provider.cc
index 7b9214c..820d446 100644
--- a/chrome/browser/automation/automation_provider.cc
+++ b/chrome/browser/automation/automation_provider.cc
@@ -1605,13 +1605,13 @@ void AutomationProvider::ExecuteJavascript(const IPC::Message& message,
// This routing id needs to be remembered for the reverse
// communication while sending back the response of
// this javascript execution.
- std::wstring url;
- SStringPrintf(&url,
- L"javascript:void(window.domAutomationController.setAutomationId(%d));",
+ std::wstring set_automation_id;
+ SStringPrintf(&set_automation_id,
+ L"window.domAutomationController.setAutomationId(%d);",
message.routing_id());
web_contents->render_view_host()->ExecuteJavascriptInWebFrame(
- frame_xpath, url);
+ frame_xpath, set_automation_id);
web_contents->render_view_host()->ExecuteJavascriptInWebFrame(
frame_xpath, script);
succeeded = true;