fix for window.history bugs in panel module https://bugzilla.mozilla.org/show_bug.cgi?id=785914