After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 576788 - Misc download improvements
Misc download improvements
Status: RESOLVED FIXED
Product: epiphany
Classification: Core
Component: Backend
unspecified
Other Linux
: Normal normal
: ---
Assigned To: Gustavo Noronha (kov)
Epiphany Maintainers
: 583426 (view as bug list)
Depends on:
Blocks:
 
 
Reported: 2009-03-26 00:55 UTC by Gustavo Noronha (kov)
Modified: 2009-05-22 21:55 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
use ephy_dot_dir() (2.12 KB, patch)
2009-03-26 00:57 UTC, Gustavo Noronha (kov)
committed Details | Review
remove files when cancelling (2.50 KB, patch)
2009-03-26 00:57 UTC, Gustavo Noronha (kov)
committed Details | Review
auto-download and lock-down support (4.75 KB, patch)
2009-03-26 00:57 UTC, Gustavo Noronha (kov)
committed Details | Review
reimplementation of the save as/cancel/${action} dialog (11.86 KB, patch)
2009-03-27 17:08 UTC, Gustavo Noronha (kov)
none Details | Review

Description Gustavo Noronha (kov) 2009-03-26 00:55:15 UTC
The webkit version of Epiphany still lacks proper download support, with all the features available in the gecko version. Since I have been working on this, I decided to open this bug report to attach patches/track progress.
Comment 1 Gustavo Noronha (kov) 2009-03-26 00:57:09 UTC
Created attachment 131391 [details] [review]
use ephy_dot_dir()
Comment 2 Gustavo Noronha (kov) 2009-03-26 00:57:32 UTC
Created attachment 131392 [details] [review]
remove files when cancelling
Comment 3 Gustavo Noronha (kov) 2009-03-26 00:57:58 UTC
Created attachment 131393 [details] [review]
auto-download and lock-down support
Comment 4 Gustavo Noronha (kov) 2009-03-26 00:59:33 UTC
I'll be working on readding the save/cancel/open dialog now. I have studied the mozilla code a bit, and have some ideas about how to implement it with the webkit backend.
Comment 5 Gustavo Noronha (kov) 2009-03-26 19:57:45 UTC
The third patch was actually modified a bit to handle cases where define_destination_uri would return FALSE. All three landed now.
Comment 6 Gustavo Noronha (kov) 2009-03-27 17:08:35 UTC
Created attachment 131507 [details] [review]
reimplementation of the save as/cancel/${action} dialog

This is basically a port of the original gecko code. We still lack functionality here, because webkitgtk+ doesn't yet have a fully featured WebKitNetworkRequest object.
Comment 7 Xan Lopez 2009-04-16 07:14:05 UTC
(In reply to comment #6)
> Created an attachment (id=131507) [edit]
> reimplementation of the save as/cancel/${action} dialog
> 
> This is basically a port of the original gecko code. We still lack
> functionality here, because webkitgtk+ doesn't yet have a fully featured
> WebKitNetworkRequest object.
> 

+	gdk_display = gtk_widget_get_display(priv->window);

Space between function name and (.

+/* These represent actions to be performed after the download is
+ * successfully completed; NONE means no download will happen,
+ * DOWNLOAD is just a way to tell the mime content handler that a file
+ * chooser should be displayed so that the user can select where to
+ * download to, and is usually turned into OPEN_LOCATION after that
+ * happens. OPEN will try to run the default application that handles
+ * that file type.

OK, if I got it right, DOWNLOAD *can't* actually be an action when the download has been finished. It's only used at the beginning, before it starts. If this is so can you clarify it in the comment? Also, does it make sense to have in the switch of update_download_row?

+  parent_window = gtk_widget_get_toplevel (GTK_WIDGET(web_view));

Space between macro name and (.

+  if (!GTK_WIDGET_TOPLEVEL (parent_window)) {
+    parent_window = NULL;
+  }

No braces?


+  action_label = (action == DOWNLOAD_ACTION_OPEN) ? GTK_STOCK_OPEN : STOCK_DOWNLOAD;

You mean action == DOWNLOAD_ACTION_OPEN_LOCATION here? You don't seem to ever set DOWNLOAD_ACTION_OPEN.


Comment 8 Xan Lopez 2009-05-22 06:13:42 UTC
*** Bug 583426 has been marked as a duplicate of this bug. ***
Comment 9 Gustavo Noronha (kov) 2009-05-22 21:55:34 UTC
Last patch committed. I'll get back to download when NetworkRequest lands.