Revert "💄 for the beforeunload handler."

Restore the previous behavior of beforeunload handler.

This reverts commit b1f30c1eb6.
This commit is contained in:
Cheng Zhao 2013-09-02 16:39:00 +08:00
parent cfb957a603
commit 610ac5b045

View file

@ -13,7 +13,8 @@ void AtomJavaScriptDialogManager::RunBeforeUnloadDialog(
const string16& message_text,
bool is_reload,
const DialogClosedCallback& callback) {
bool prevent_reload = !message_text.empty() ||
bool prevent_reload = message_text.empty() ||
message_text == ASCIIToUTF16("false");
callback.Run(!prevent_reload, message_text);
}