onbeforeunload website message in Firefox 4

Discuss how to use and promote Web standards with the Mozilla Gecko engine.
Post Reply
mario0244
Posts: 2
Joined: April 18th, 2011, 12:46 pm

onbeforeunload website message in Firefox 4

Post by mario0244 »

Why Firefox 4 is not showing a custom website message defined in onbeforeunload event? Why was this feature left out while every other browser still supports it? Will this ever be fixed in future releases?

Code: Select all

window.onbeforeunload = function() {
    return 'Why Firefox is not showing this message? All other browsers are...';
}


I'd hate to turn away users who use Firefox 4 as in my application in certain scenarios I do need to show a custom message. Same goes for many legitimate websites.

Good day.
User avatar
jscher2000
Posts: 11762
Joined: December 19th, 2004, 12:26 am
Location: Silicon Valley, CA USA
Contact:

Re: onbeforeunload website message in Firefox 4

Post by jscher2000 »

This is by design and for security reasons. Sorry.

"Remove site-supplied text for beforeunload and onunload dialogs, and improve button text"
https://bugzilla.mozilla.org/show_bug.cgi?id=588292
mario0244
Posts: 2
Joined: April 18th, 2011, 12:46 pm

Re: onbeforeunload website message in Firefox 4

Post by mario0244 »

Thanks for the link. I have hopes on this case: https://bugzilla.mozilla.org/show_bug.cgi?id=641509

But I just can't believe this. There is no threat in showing custom text. In my opinion this was not a very smart thing to do.
Post Reply