From 0ddd36328d48b6b173e09ce693b9a2e856dc395c Mon Sep 17 00:00:00 2001 From: Thomas Schilling Date: Wed, 4 Aug 2010 13:12:22 +0000 Subject: Make synopsis frame behave properly in Firefox. In Firefox, pressing the back button first reverted the synopsis frame, and only clicking the back button a second time would update the main frame. --- html/haddock-util.js | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'html') diff --git a/html/haddock-util.js b/html/haddock-util.js index 5978f056..4a7e4255 100644 --- a/html/haddock-util.js +++ b/html/haddock-util.js @@ -198,7 +198,12 @@ function perform_search(full) function setSynopsis(filename) { if (parent.window.synopsis) { - parent.window.synopsis.location = filename; + if (parent.window.synopsis.location.replace) { + // In Firefox this avoids adding the change to the history. + parent.window.synopsis.location.replace(filename); + } else { + parent.window.synopsis.location = filename; + } } } -- cgit v1.2.3