How do I detect if the user goes back or forward through the history in the current tab?
I’m going to implement a simple web extension for my personal needs (currently for Chrome, but I consider moving to Firefox and abandon the former), and this extension only requires the history
and tabs
permissions. What I’m looking for is a way to detect if I move forward or back within the current tab.