diff --git a/browser/atom_javascript_dialog_manager.cc b/browser/atom_javascript_dialog_manager.cc index f06a42680b..83f80a89f5 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); }