diff options
author | asargent@chromium.org <asargent@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-02-08 18:44:55 +0000 |
---|---|---|
committer | asargent@chromium.org <asargent@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-02-08 18:44:55 +0000 |
commit | b6ad7bab7995831a30872cf7016b8bad2289c9aa (patch) | |
tree | 38709c41d262cd23e595f26abb5543541bcf63e6 /chrome/renderer/user_script_idle_scheduler.cc | |
parent | 4e2f4eeebadeaf3c8577db2460366a608b2ebe04 (diff) | |
download | chromium_src-b6ad7bab7995831a30872cf7016b8bad2289c9aa.zip chromium_src-b6ad7bab7995831a30872cf7016b8bad2289c9aa.tar.gz chromium_src-b6ad7bab7995831a30872cf7016b8bad2289c9aa.tar.bz2 |
Make sure chrome.tab.executeScript runs in fragment-navigated frames.
BUG=29541
TEST=Install a test extension that has a browser action that uses
executeScript when you click on it to do something in the current tab like
call alert (the bug report has one). Then:
1) navigate to any site like http://www.google.com/
2) Add #foo to the end of url and hit enter.
3) Hit browser action button.
4) You should see the results.
Review URL: http://codereview.chromium.org/566041
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@38368 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/renderer/user_script_idle_scheduler.cc')
-rw-r--r-- | chrome/renderer/user_script_idle_scheduler.cc | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/chrome/renderer/user_script_idle_scheduler.cc b/chrome/renderer/user_script_idle_scheduler.cc index 9336a9d..94efbe7 100644 --- a/chrome/renderer/user_script_idle_scheduler.cc +++ b/chrome/renderer/user_script_idle_scheduler.cc @@ -31,6 +31,10 @@ void UserScriptIdleScheduler::DidFinishLoad() { method_factory_.NewRunnableMethod(&UserScriptIdleScheduler::MaybeRun)); } +void UserScriptIdleScheduler::DidChangeLocationWithinPage() { + DidFinishLoad(); +} + void UserScriptIdleScheduler::Cancel() { view_ = NULL; frame_ = NULL; |