Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(5328)

Unified Diff: chrome/common/extensions/docs/examples/api/webNavigation/basic/background.js

Issue 10704225: Send an webNavigation event for navigations triggered by window.history (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: chrome/common/extensions/docs/examples/api/webNavigation/basic/background.js
diff --git a/chrome/common/extensions/docs/examples/api/webNavigation/basic/background.js b/chrome/common/extensions/docs/examples/api/webNavigation/basic/background.js
index 66a4e4b89640ff5c1c45bc5a8a2ec4e807a0b018..7a46e26ae9014256c63280d1a2613625e266e7bc 100644
--- a/chrome/common/extensions/docs/examples/api/webNavigation/basic/background.js
+++ b/chrome/common/extensions/docs/examples/api/webNavigation/basic/background.js
@@ -10,7 +10,8 @@ var nav = new NavigationCollector();
var eventList = ['onBeforeNavigate', 'onCreatedNavigationTarget',
'onCommitted', 'onCompleted', 'onDOMContentLoaded',
- 'onErrorOccurred', 'onReferenceFragmentUpdated', 'onTabReplaced'];
+ 'onErrorOccurred', 'onReferenceFragmentUpdated', 'onTabReplaced',
+ 'onHistoryStateUpdated'];
eventList.forEach(function(e) {
chrome.webNavigation[e].addListener(function(data) {

Powered by Google App Engine
This is Rietveld 408576698