Index: webkit/glue/webframe_impl.cc |
diff --git a/webkit/glue/webframe_impl.cc b/webkit/glue/webframe_impl.cc |
index 1e0e778fd8b4656aeb0694b43b0f6706012ec088..b19ab2d451c45cb3049bcaa29426c600ed55ce9a 100644 |
--- a/webkit/glue/webframe_impl.cc |
+++ b/webkit/glue/webframe_impl.cc |
@@ -320,6 +320,13 @@ void WebFrameImpl::LoadRequest(WebRequest* request) { |
InternalLoadRequest(request, data, false); |
} |
+void WebFrameImpl::ExecuteJavaScript(const std::wstring& code, |
+ const std::wstring& url) { |
+ frame_->loader()->executeScript(webkit_glue::StdWStringToString(url), |
+ 1 /* base line number (for errors) */, |
+ webkit_glue::StdWStringToString(code)); |
+} |
+ |
void WebFrameImpl::InternalLoadRequest(const WebRequest* request, |
const SubstituteData& data, |
bool replace) { |