summaryrefslogtreecommitdiffstats
path: root/chrome/browser/debugger/debugger_view.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/debugger/debugger_view.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/debugger/debugger_view.cc')
-rw-r--r--chrome/browser/debugger/debugger_view.cc3
1 files changed, 1 insertions, 2 deletions
diff --git a/chrome/browser/debugger/debugger_view.cc b/chrome/browser/debugger/debugger_view.cc
index 89cb4e8..127c987 100644
--- a/chrome/browser/debugger/debugger_view.cc
+++ b/chrome/browser/debugger/debugger_view.cc
@@ -132,9 +132,8 @@ void DebuggerView::OpenURLFromTab(TabContents* source,
}
void DebuggerView::ExecuteJavascript(const std::string& js) {
- const std::string url = StringPrintf("javascript:void(%s)", js.c_str());
web_contents_->render_view_host()->ExecuteJavascriptInWebFrame(L"",
- UTF8ToWide(url));
+ UTF8ToWide(js));
}
void DebuggerView::LoadingStateChanged(TabContents* source) {