For now, I've only found a way to listen to "reload" event using:
chrome.webNavigation.onCommitted.addListener(function(details) {
if (details.frameId == 0) {
if (details.transitionType == "reload") {
// do something
}
}
});
What about "go back" and "go next" events? I'm looking for a Firefox's nsISHistoryListener
alternative in Chrome.
Edit: Submitted a feature request to Chromium.