fix for window.history bug in panel module

https://bug785914.bugzilla.mozilla.org/attachment.cgi?id=755521