MozillaZine

onbeforeunload website message in Firefox 4

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

Post Posted April 18th, 2011, 1:01 pm

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.

jscher2000

User avatar
 
Posts: 9674
Joined: December 19th, 2004, 12:26 am
Location: Silicon Valley, CA USA

Post Posted April 18th, 2011, 4:28 pm

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

Post Posted April 19th, 2011, 1:00 pm

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.

Return to Web Development / Standards Evangelism


Who is online

Users browsing this forum: No registered users and 6 guests