diff --git a/modules/persistence/confirm_close_tab/command.js b/modules/persistence/confirm_close_tab/command.js index 61c12ae79..093149ab4 100644 --- a/modules/persistence/confirm_close_tab/command.js +++ b/modules/persistence/confirm_close_tab/command.js @@ -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."; } } diff --git a/modules/persistence/confirm_close_tab/config.yaml b/modules/persistence/confirm_close_tab/config.yaml index 8ebef1f15..154bcfb64 100644 --- a/modules/persistence/confirm_close_tab/config.yaml +++ b/modules/persistence/confirm_close_tab/config.yaml @@ -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"]