开发者

Why is Firefox 4 triggering the beforeunload event twice?

I have a web page which catches the 'beforeunload' event to put up a confirmation dialog for the user. In Firefox 4 and 5 I am finding that, when closing the page would also close the browser, this dialog is coming up twice. Furthermore, if the user clicks 'Stay on page' the second time, the browser then no longer allows individual tabs to close. You can still shut down the entire browser th开发者_高级运维ough.

I presume this is a Firefox bug, but is there any workaround?


yes it is a bug see here https://bugzilla.mozilla.org/show_bug.cgi?id=619857

I'm also in the middle of finding a work around i will inform you if i get to know one.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜