Within my Firefox extension I'd like to detect the source of a page load -- for example, after clicking on: a link, a history entry or a bookmark. So far I've manage to detect the click on a link and using the Back/Forward history buttons.
However, I fail to detect clicks on items of the history menu, let alone clicks on items in the window of the history library (popping up when clicking "Show All History"). Same problem for the bookmark menu and the bookmark library window.
Is there a more or less straightforward way to accomplish this? For the bookmark menu I could think of adding a click listener to all bookmarks.