From f29acf538815f1d71638ac9db8798998a113955f Mon Sep 17 00:00:00 2001 From: "aa@google.com" Date: Mon, 3 Nov 2008 20:08:33 +0000 Subject: 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 --- chrome/browser/automation/automation_provider.cc | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'chrome/browser/automation/automation_provider.cc') 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; -- cgit v1.1