From 610ac5b045e03bd666d054d7aca01b34a421c8fc Mon Sep 17 00:00:00 2001 From: Cheng Zhao Date: Mon, 2 Sep 2013 16:39:00 +0800 Subject: [PATCH] Revert ":lipstick: for the beforeunload handler." Restore the previous behavior of beforeunload handler. This reverts commit b1f30c1eb609c8abab2db791cbbf0b01373564b1. --- browser/atom_javascript_dialog_manager.cc | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/browser/atom_javascript_dialog_manager.cc b/browser/atom_javascript_dialog_manager.cc index f06a42680b7..83f80a89f57 100644 --- a/browser/atom_javascript_dialog_manager.cc +++ b/browser/atom_javascript_dialog_manager.cc @@ -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); }