Make beforeunload work in webview

This commit is contained in:
Cheng Zhao 2015-05-01 13:48:39 +08:00
parent 36d2512ff8
commit bfac7f7a17
3 changed files with 13 additions and 1 deletions

View file

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