Note that also doing this in a JS shell shows that pagehide fires twice when I load the testcase:
gBrowser.selectedBrowser.addEventListener("pagehide", function _onPageHide() { print("Got pagehide"); }, true);
Note that also doing this in a JS shell shows that pagehide fires twice when I load the testcase:
gBrowser. selectedBrowser .addEventListen er("pagehide" , function _onPageHide() { print("Got pagehide"); }, true);