Correctly handle too huge back/forward history:
temporarily increase "browser.sessionhistory.max_entries" preference