From ff6456c561bc99141ff06384c8c3fbd45162a628 Mon Sep 17 00:00:00 2001 From: "rafaelw@chromium.org" Date: Wed, 20 May 2009 05:01:03 +0000 Subject: tabs.onUpdated now sends 'url' when 'state' has changed to 'loading' when navigating to a new url. If a reload is in progress, 'loading' will not be accompanied by 'url'. Also, refactored some code so that string constants are defined and shared. BUG=11200 R=erikkay Review URL: http://codereview.chromium.org/113552 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@16467 0039d316-1c4b-4281-b951-d872f2087c98 --- chrome/test/data/extensions/samples/tabs/tabs_api.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'chrome/test') diff --git a/chrome/test/data/extensions/samples/tabs/tabs_api.html b/chrome/test/data/extensions/samples/tabs/tabs_api.html index 8c5fb3b..cc21232 100644 --- a/chrome/test/data/extensions/samples/tabs/tabs_api.html +++ b/chrome/test/data/extensions/samples/tabs/tabs_api.html @@ -180,7 +180,7 @@ function refreshTab(tabId) { } chrome.tabs.onUpdated.addListener(function(tabId, props) { - appendToLog('tabs.onUpdated -- tab: ' + tabId + ' status ' + props.status); + appendToLog('tabs.onUpdated -- tab: ' + tabId + ' status ' + props.status + ' url ' + props.url); refreshTab(tabId); }); -- cgit v1.1