aboutsummaryrefslogtreecommitdiffstats
path: root/embed
diff options
context:
space:
mode:
authorCarlos Garcia Campos <cgarcia@igalia.com>2013-01-04 21:50:37 +0800
committerCarlos Garcia Campos <carlosgc@gnome.org>2013-01-04 21:52:31 +0800
commit6f0ffa44c1bca2927e3e1a337fa1ce7349bd0e66 (patch)
tree235f2473a501978d386bc0628b9436d0c42b0d8c /embed
parent5fd8c27e1de6ddccf9ef14811df865f129cbc461 (diff)
downloadgsoc2013-epiphany-6f0ffa44c1bca2927e3e1a337fa1ce7349bd0e66.tar
gsoc2013-epiphany-6f0ffa44c1bca2927e3e1a337fa1ce7349bd0e66.tar.gz
gsoc2013-epiphany-6f0ffa44c1bca2927e3e1a337fa1ce7349bd0e66.tar.bz2
gsoc2013-epiphany-6f0ffa44c1bca2927e3e1a337fa1ce7349bd0e66.tar.lz
gsoc2013-epiphany-6f0ffa44c1bca2927e3e1a337fa1ce7349bd0e66.tar.xz
gsoc2013-epiphany-6f0ffa44c1bca2927e3e1a337fa1ce7349bd0e66.tar.zst
gsoc2013-epiphany-6f0ffa44c1bca2927e3e1a337fa1ce7349bd0e66.zip
ephy-shell: There can be two widgets for the same download in WebKit2
In WebKit2 WebKitWebContext::download-started signal is always emitted, even for downloads started manually. We only want to create a new download when the download operation has been started by WebKit. https://bugzilla.gnome.org/show_bug.cgi?id=678993
Diffstat (limited to 'embed')
-rw-r--r--embed/ephy-download.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/embed/ephy-download.c b/embed/ephy-download.c
index 988a0abdb..445748299 100644
--- a/embed/ephy-download.c
+++ b/embed/ephy-download.c
@@ -1062,6 +1062,7 @@ ephy_download_new_for_download (WebKitDownload *download,
ephy_download->priv->download = g_object_ref (download);
#ifdef HAVE_WEBKIT2
+ g_object_set_data (G_OBJECT (download), "ephy-download-set", GINT_TO_POINTER (TRUE));
request = webkit_download_get_request (download);
ephy_download->priv->source = g_strdup (webkit_uri_request_get_uri (request));
#else