Active
Project:
SaveGuard
Version:
7.x-1.x-dev
Component:
Code
Priority:
Minor
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
4 Aug 2016 at 10:14 UTC
Updated:
4 Aug 2016 at 10:14 UTC
Jump to comment: Most recent
Firefox documentation (https://developer.mozilla.org/de/docs/Web/API/WindowEventHandlers/onbefo...) says:
window.onbeforeunload = function(e) {
var dialogText = 'Dialog text here';
e.returnValue = dialogText;
return dialogText;
};is correct. e.returnValue should have the text assigned. Currently the modules implementation is:
window.onbeforeunload = function() {
return msg;
};I ended up this way:
window.onbeforeunload = function(e) {
e.returnValue = msg;
return msg;
};
Comments