[epiphany] embed: Fix crash with some password forms
- From: Bastien Nocera <hadess src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [epiphany] embed: Fix crash with some password forms
- Date: Mon, 14 Apr 2014 13:11:59 +0000 (UTC)
commit 0c050be0a1cd2196c85967be390bfa751d64457a
Author: Bastien Nocera <hadess hadess net>
Date: Mon Apr 14 13:51:10 2014 +0200
embed: Fix crash with some password forms
31bc1fe6 transformed a simple escape hatch of a comparison into an
assertion. But that assertion keeps getting triggered, so it's clearly
the wrong option for now.
https://bugzilla.gnome.org/show_bug.cgi?id=723909
embed/ephy-web-view.c | 3 ++-
1 files changed, 2 insertions(+), 1 deletions(-)
---
diff --git a/embed/ephy-web-view.c b/embed/ephy-web-view.c
index f58b6b0..36bb023 100644
--- a/embed/ephy-web-view.c
+++ b/embed/ephy-web-view.c
@@ -681,7 +681,8 @@ form_auth_data_save_requested (EphyWebExtensionProxy *web_extension,
GtkWidget *info_bar;
FormAuthRequestData *data;
- g_assert (webkit_web_view_get_page_id (WEBKIT_WEB_VIEW (web_view)) == page_id);
+ if (webkit_web_view_get_page_id (WEBKIT_WEB_VIEW (web_view)) != page_id)
+ return;
info_bar = ephy_web_view_create_form_auth_save_confirmation_info_bar (web_view, hostname, username);
data = g_slice_new (FormAuthRequestData);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]