gecko-dev/uriloader
Sebastian Kaspari d652a7e6b4 Bug 1240710 - Pick (temporary) download directory depending on whether permission has been granted. r=nalexander,paolo,jchen
As soon as the user clicks on a link to download a file Gecko will start the download - even before prompting the
user. This led to problems when the user hadn't granted the permission to write to the downloads directory yet. The
download would fail even though the user (later) accepted the permission.

With this patch we will start the download to the app's cache directory (only if we do not have the permission) and
prompt the user. As soon as the user has accepted the permission the download will be moved to the public downloads
directory (even while still downloading). If the permission is denied the download will be cancelled.

After the permission has been granted all subsequent downloads will start writing to the downloads directory
directly.


MozReview-Commit-ID: CCqk9h7Sxor

--HG--
extra : rebase_source : 1634a39dcf6fff2d8eca88e28b3f3fb72dc97540
2016-02-18 15:11:42 +00:00
..
base Bug 1252839 - Remove some if stmt after allocation with 'new' - patch 1, r=bz 2016-03-02 18:50:48 +01:00
exthandler Bug 1240710 - Pick (temporary) download directory depending on whether permission has been granted. r=nalexander,paolo,jchen 2016-02-18 15:11:42 +00:00
prefetch Bug 1238160 - Rename nsILoadContext::GetIsInBrowserElement. r=smaug,mayhemer 2016-03-02 10:35:56 -06:00
moz.build Bug 1043820 - Remove PARALLEL_DIRS. r=gps 2014-07-29 08:57:59 +09:00