Properly adjusted onClose command module to annoy the user also in latest Firefox.

This commit is contained in:
antisnatchor
2013-02-04 12:09:46 +00:00
parent 79e8f34b06
commit 4852cab66d
2 changed files with 2 additions and 1 deletions

View File

@@ -22,6 +22,7 @@ beef.execute(function() {
if (e.stopPropagation) {
e.stopPropagation();
e.preventDefault();
e.returnValue = "There is currently a request to the server pending. You will lose recent changes by navigating away.";
}
}

View File

@@ -9,7 +9,7 @@ beef:
enable: true
category: "Persistence"
name: "Confirm Close Tab"
description: "Shows a confirm dialog to the user when he tries to close a tab. If he click yes, re-display the confirm dialog. Doesn't work on Opera < 12"
description: "Shows a confirm dialog to the user when he tries to close a tab. If he click yes, re-display the confirm dialog. Doesn't work on Opera < 12. In Chrome you can't keep opening confirm dialogs."
authors: ["antisnatchor"]
target:
user_notify: ["ALL"]