[epiphany/tgt: 3/10] Avoid running external applications when embedded document displays
- From: Manuel Rego Casasnovas <manuelrego src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [epiphany/tgt: 3/10] Avoid running external applications when embedded document displays
- Date: Thu, 12 Sep 2013 07:44:33 +0000 (UTC)
commit 1a3fb3e7c1bfaa136680f9154aabfed03e0a30e4
Author: Javier M. Mellid <jmunhoz igalia com>
Date: Tue Jul 23 10:33:54 2013 +0200
Avoid running external applications when embedded document displays
Use embedded-documents to know if the browser should avoid running any
future action after downloading and displaying document in embedded
mode.
https://bugzilla.gnome.org/show_bug.cgi?id=689992
src/ephy-shell.c | 5 ++++-
1 files changed, 4 insertions(+), 1 deletions(-)
---
diff --git a/src/ephy-shell.c b/src/ephy-shell.c
index 860aa87..28ccde6 100644
--- a/src/ephy-shell.c
+++ b/src/ephy-shell.c
@@ -575,6 +575,7 @@ download_started_cb (WebKitWebContext *web_context,
GtkWindow *window = NULL;
WebKitWebView *web_view;
EphyEmbed *embed;
+ EphyDownload *ed;
gboolean ephy_download_set;
/* Is download locked down? */
@@ -605,8 +606,10 @@ download_started_cb (WebKitWebContext *web_context,
if (!window)
window = gtk_application_get_active_window (GTK_APPLICATION (shell));
- ephy_download_new_for_download (download, window);
+ ed = ephy_download_new_for_download (download, window);
embed = ephy_embed_container_get_active_child (EPHY_EMBED_CONTAINER (window));
+ if (ephy_embed_get_mode (embed) == EPHY_EMBED_MODE_DOCUMENT)
+ ephy_download_set_action (ed, EPHY_DOWNLOAD_ACTION_DO_NOTHING);
if (embed)
ephy_embed_download_started (embed, download);
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]