diff options
author | aa@chromium.org <aa@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-01-17 00:06:27 +0000 |
---|---|---|
committer | aa@chromium.org <aa@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-01-17 00:06:27 +0000 |
commit | 49fed325fbf10a6c612b82360b941d500d8a2fa8 (patch) | |
tree | d4605501b1940f2df25948714a4540a7c8b33b7c /chrome/renderer/render_view.cc | |
parent | 5df5165d0e0d7e6493dbca6d4c98a173a616467d (diff) | |
download | chromium_src-49fed325fbf10a6c612b82360b941d500d8a2fa8.zip chromium_src-49fed325fbf10a6c612b82360b941d500d8a2fa8.tar.gz chromium_src-49fed325fbf10a6c612b82360b941d500d8a2fa8.tar.bz2 |
First pass as implementing the greasemonkey API. This patch
includes a javascript file with stubbed versions of all the
greasemoney API methods as well as changes to the Greasemonkey
slave to inject this javascript file along with other user
scripts into the page.I also have a userscript I'm using for
the unit testing of the API methods. I don't think there is
a good place for it in the chrome tree (if there is I'd like
to know), but you can view it here:
http://skrul.com/greasemonkey/test.user.js
Right now all the tests fail except for testLog and
testUnsafeWindow.
Review URL: http://codereview.chromium.org/18183
Patch from Steve Krulewitz <skrulx@gmail.com>.
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@8247 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/renderer/render_view.cc')
-rw-r--r-- | chrome/renderer/render_view.cc | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/chrome/renderer/render_view.cc b/chrome/renderer/render_view.cc index 7c85b65..9927171 100644 --- a/chrome/renderer/render_view.cc +++ b/chrome/renderer/render_view.cc @@ -2414,7 +2414,9 @@ void RenderView::EvaluateScript(const std::wstring& frame_xpath, if (!web_frame) return; - web_frame->ExecuteJavaScript(WideToUTF8(script), GURL()); + web_frame->ExecuteJavaScript(WideToUTF8(script), + GURL(), // script url + 1); // base line number } void RenderView::OnScriptEvalRequest(const std::wstring& frame_xpath, |