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

Unified Diff: chrome/test/data/extensions/api_test/webnavigation/framework.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/test/data/extensions/api_test/webnavigation/framework.js
diff --git a/chrome/test/data/extensions/api_test/webnavigation/framework.js b/chrome/test/data/extensions/api_test/webnavigation/framework.js
index f2edf0d86f1475d50ea972533e2a78995dbe7280..eae8f7162b08a872678b1c05fe05471dc6985593 100644
--- a/chrome/test/data/extensions/api_test/webnavigation/framework.js
+++ b/chrome/test/data/extensions/api_test/webnavigation/framework.js
@@ -167,6 +167,10 @@ function initListeners() {
function(details) {
captureEvent("onTabReplaced", details);
});
+ chrome.webNavigation.onHistoryStateUpdated.addListener(
+ function(details) {
+ captureEvent("onHistoryStateUpdated", details);
+ });
}
// Returns the usual order of navigation events.

Powered by Google App Engine
This is Rietveld 408576698