From the context of the FireFox extension ...
Is there a way to get notification of back / forward / goto / reload / etc. "History of events"? I am not looking for a way to cancel or change them, just to find out about them.
My best solution so far has been to connect user interface elements (menu items and buttons) to start navigating through the history. Obviously, this doesn’t work well in front of any, but most tightly controlled FireFox installations, since all that is required is one extension:
gBrowser.webNavigation.goBack()
... ruin my day, not to mention the web pages themselves playing games with history.
source
share