Commit Graph

54 Commits

Author SHA1 Message Date
Brian R. Bondy
a0ee1a91ab Bug 795887 - Mirror existing sleep notification handling with process suspend notification handling. r=bsmedberg 2012-11-09 10:34:10 -05:00
Jan Horak
553fe1ba2a Bug 797349 - Add support for metadata::download-uri for later display in file manager by GIO. r=Neil
--HG--
extra : rebase_source : e9fb1abf9eb62aa57ed57a1bd5bf2277bc20d182
2012-10-08 01:46:00 -07:00
Josh Matthews
d257b2fa44 Bug 794606 - Make resuming a download correctly share the privacy status of the original download. r=mak 2012-10-04 15:08:28 -04:00
Josh Matthews
e7055454ba Bug 794602 - Make nsWebBrowserPersist::SaveURIInternal use channels with valid privacy statuses. r=bz,mfinkle,smaug,ehsan,jwalker,roc,unfocused 2012-10-04 15:07:51 -04:00
Ryan VanderMeulen
9f8074ca32 Backout e5269e137290, (bug 794606), e94dbc151121 (bug 794602), and 0ea0cfc7f6f4 (bug 792821) due to mochitest-other orange on a CLOSED TREE. 2012-10-04 19:34:19 -04:00
Josh Matthews
9fa9982775 Bug 794602 - Make nsWebBrowserPersist::SaveURIInternal use channels with valid privacy statuses. r=bz,mfinkle,smaug,ehsan,jwalker,roc,unfocused 2012-10-04 15:07:51 -04:00
Josh Matthews
a563509766 Bug 794606 - Make resuming a download correctly share the privacy status of the original download. r=mak 2012-10-04 15:08:28 -04:00
Josh Matthews
f8bc15a806 Bug 795065 - Add privacy status to nsDownload. r=mak sr=bz 2012-10-03 13:10:20 -04:00
Randell Jesup
eedf93a21d Bug 773151: Convert nsCAutoString->nsAutoCString CLOSED TREE r=bsmedberg 2012-09-01 22:35:17 -04:00
Ehsan Akhgari
0fd9123eac Bug 579517 - Part 1: Automated conversion of NSPR numeric types to stdint types in Gecko; r=bsmedberg
This patch was generated by a script.  Here's the source of the script for
future reference:

function convert() {
echo "Converting $1 to $2..."
find . ! -wholename "*nsprpub*" \
       ! -wholename "*security/nss*" \
       ! -wholename "*/.hg*" \
       ! -wholename "obj-ff-dbg*" \
       ! -name nsXPCOMCID.h \
       ! -name prtypes.h \
         -type f \
      \( -iname "*.cpp" \
         -o -iname "*.h" \
         -o -iname "*.c" \
         -o -iname "*.cc" \
         -o -iname "*.idl" \
         -o -iname "*.ipdl" \
         -o -iname "*.ipdlh" \
         -o -iname "*.mm" \) | \
    xargs -n 1 sed -i -e "s/\b$1\b/$2/g"
}

convert PRInt8 int8_t
convert PRUint8 uint8_t
convert PRInt16 int16_t
convert PRUint16 uint16_t
convert PRInt32 int32_t
convert PRUint32 uint32_t
convert PRInt64 int64_t
convert PRUint64 uint64_t

convert PRIntn int
convert PRUintn unsigned

convert PRSize size_t

convert PROffset32 int32_t
convert PROffset64 int64_t

convert PRPtrdiff ptrdiff_t

convert PRFloat64 double
2012-08-22 11:56:38 -04:00
Ms2ger
17e25febb8 Bug 780387 - Part d: Stop using PRFloat64; r=bsmedberg 2012-08-09 09:09:42 +02:00
Aryeh Gregor
6e5854f625 Bug 777292 - modules/libpref/, toolkit/: Remove conversions to nsresult that will always result in NS_SUCCEEDED; r=bsmedberg 2012-07-27 16:54:09 +03:00
Aryeh Gregor
e806eeab4f Bug 777292 part 2 - Change all nsnull to nullptr 2012-07-30 17:20:58 +03:00
Ehsan Akhgari
69a09c663a Bug 722868 - Part 2: Make the download manager aware of the deleteTemporaryPrivateFileWhenPossible API; r=gavin 2012-04-24 23:01:35 -04:00
Ed Morley
a82421537c Backout a6175c97f365, 3ceeeaf0519f, bde34cebdcdc, 66dfa9606626, 86762d8c4de9, 717f908c990a, aa83d71fe7ee (bug 722868) for compilation failures 2012-06-28 19:00:30 +01:00
Ehsan Akhgari
aa027028dd Bug 722868 - Part 2: Make the download manager aware of the deleteTemporaryPrivateFileWhenPossible API; r=gavin 2012-04-24 23:01:35 -04:00
Brian Nicholson
5a2f552641 Bug 747388 - Remove .part files on dl-failed on Android. r=mfinkle 2012-06-05 21:06:04 -07:00
Geoff Lankow
00f3a215c9 Bug 749930 - Replace uses of nsILocalFile with nsIFile (compiled code only); r=bsmedberg 2012-06-06 14:08:30 +12:00
Gervase Markham
ca171eec44 Bug 716478 - update licence to MPL 2. 2012-05-21 12:12:37 +01:00
Hubert Figuiere
f4ad6bf131 Bug 670275 - Downloading a file should put it in the system's recently-used list. r=karlt 2011-07-08 17:29:00 -07:00
Paolo Amadini
fc466abc21 Bug 726444 - Implement the Downloads Panel. r=mak ui-r=limi
Includes: Bug 697679 - By Javi Rueda <leofigueres@yahoo.com>.
2012-04-17 13:35:09 +02:00
Marco Bonardo
6c788161c3 Bug 735697 - Close the old connection when switching to/from private mode. r=mak. 2012-03-22 13:02:28 -04:00
Ed Morley
fe0db58bce Backout ba7da6256b23 (bug 726444) for talos regressions; a=mak 2012-03-11 23:38:53 +00:00
Paolo Amadini
ebd422385f Bug 726444 - Implement the Downloads Panel. r=mak ui-r=limi
Includes: Bug 697679 - By Javi Rueda <leofigueres@yahoo.com>.
2012-03-10 15:00:45 +01:00
Jonathan Kew
43bc810684 Backed out changeset 118f97e6d4ed (bug 670275) for xpcshell orange. 2012-03-09 10:06:54 +00:00
Hub Figuière
877a138481 Bug 670275 - Downloading a file should put it in the system's recently-used list. r=karlt 2011-07-08 17:29:00 -07:00
Panagiotis Koutsourakis
ab4c9c184e Bug 716661 - Convert observers in nsDownloadManager to weak observers. r=mak
Make nsDownloadManager inherit from nsSupportsWeakReference, expose
the new interface, and change the last argument of the addObserver
calls to true to signify that we are adding a weak observer.
2012-02-10 16:06:37 +01:00
Josh Matthews
a0e2f57b74 Bug 713172 - Followup to finalize statements instead of nulling them out. r=mak 2012-01-11 17:13:49 -05:00
Josh Matthews
f0f63e1d5d Bug 713172 - Ensure the download manager database connection isn't closed while it could still be required. r=mak 2012-01-09 13:48:19 -05:00
Rafael Ávila de Espíndola
2553cc03e2 Bug 711536 - finalize statements and close connection. r=mak. 2011-12-19 13:55:08 -05:00
Michael Wu
3e0835d415 Bug 694206 - Add Gonk (B2G) widget backend, r=cjones 2011-11-10 16:17:46 -08:00
Oonishi Atsushi
ebc58fb880 Bug 311007 - Add aFlags arg to onLocationChange(...), to distinguish between same-document and different-document. r=smaug, sr=bzbarsky 2011-11-10 15:01:11 +01:00
Marco Bonardo
84882f1d0f Bug 397424 follow-up - Remove extraneaous semicolon to fix Maemo bustage. 2011-11-04 21:45:22 +01:00
Felix Fung
5730c65256 Bug 397424 - Downloads cause high CPU usage. r=gavin
This addresses an issue with the download manager that can cause high CPU usage
when there is an active download.  The underlying issue is the frequency of
updates that the download progress listener receives.
Things changed:
- reduced the number of null checks in DownloadUtils.jsm's getDownloadStatus
  function by one (down to two from three).
- obtain and format strings from the nsIStringBundle.  This removes all the
  calls to String.replace in DownloadUtils.jsm.
- modifies the download manager back-end to update the percentComplete and size
  property on downloads before dispatching a state changed notification for
  downloads entering the DOWNLOAD_DOWNLOADING state.  This saves us two calls to
  setAttribute on downloads that we know how big they are, and saves us the same
  two calls to setAttribute for indeterminate downloads as well as not
  dispatching a ValueChange event on the progressmeter every time
  onProgressChange is called on the DownloadProgressListener.
- has nsDownload implement nsIClassInfo so we do not need to QueryInterface when
  going through the list of active downloads in both the download manager's UI
  and the browser's taskbar UI.
2011-11-03 15:25:55 -07:00
Ehsan Akhgari
2a602a5685 Bug 690892 - Replace PR_TRUE/PR_FALSE with true/false on mozilla-central; rs=dbaron
Landing on a CLOSED TREE
2011-10-17 10:59:28 -04:00
Jeff Walden
b7753477cf Bug 693469 - Implement mozilla::ArrayLength and mozilla::ArrayEnd, and replace uses of NS_ARRAY_LENGTH whenever possible. (Exceptions: assigning to static initializers, use in static assertions, as template parameters, etc. These will go away when the relevant compilers have C++11 constexpr support.) r=cjones
--HG--
extra : rebase_source : b4bae9a0f85abf2feb828609b50e756916b99a6f
2011-10-10 22:50:08 -07:00
Jeff Walden
eb2cb918a4 Back out everything since 5435ee09cf7b. Tinderbox compilers hate me. r=epic-fail 2011-10-12 12:21:53 -07:00
Jeff Walden
77ebbde4ab Bug 639469 - Implement mozilla::ArrayLength and mozilla::ArrayEnd, and replace uses of NS_ARRAY_LENGTH whenever possible. r=cjones
--HG--
extra : rebase_source : 860a8271bf7e51cde358f2a4185c410de1fc2960
2011-10-10 22:50:08 -07:00
Michael Wu
d8e503c38b Bug 675553 - Switch from PRBool to bool on a CLOSED TREE , r=bsmedberg,khuey,bz,cjones
--HG--
rename : tools/trace-malloc/bloatblame.c => tools/trace-malloc/bloatblame.cpp
2011-09-28 23:19:26 -07:00
Paolo Amadini
5bcf37a7bd Bug 591289 - Save chosen download file name and other metadata in Places history [r=sdwilsh, ui-r=limi] 2011-08-15 18:08:48 -07:00
Ms2ger
36c532ffa2 Bug 670235 - Remove nsIDOMWindowInternal; r=sicking 2011-07-15 12:31:34 +02:00
Marco Bonardo
e1678f1592 Bug 662806 - nsINavHistoryObserver: pass GUID to onPageChanged.
r=philikon sr=rstrong
2011-06-30 22:06:56 +02:00
Marco Bonardo
f7be880d3b Bug 662806 - nsINavHistoryObserver: pass GUID to onTitleChanged.
r=dietrich sr=rstrong
2011-06-30 22:05:49 +02:00
Marco Bonardo
9a02cdb748 Bug 660109 - Allow to distinguish history removals caused by expiration from those requested by the user.
r=dietrich sr=rstrong
2011-06-30 15:34:10 +02:00
Dão Gottwald
9875ff106c Backed out changeset dc3780dd8a43 (bug 311007). Going to change onLocationChange instead of adding onLocationChange2. 2011-06-14 00:02:28 +02:00
Marco Bonardo
11fd2bc973 Merge Places and mozilla-central 2011-06-09 12:14:24 +02:00
Philipp von Weitershausen
396ff23f45 Bug 633266 - nsINavHistoryObserver: also pass in GUID whenever we pass in a URI. r=mak
Part 3: Implementation
2011-06-08 17:10:29 +02:00
Oonishi Atsushi
a32cac7d4c Bug 311007 - Add onLocationChange2 which distinguishes between same-document and different-document location changes to web progress listeners. r=smaug, sr=bzbarsky 2011-06-04 05:31:07 +09:00
timeless@mozdev.org
564ada81e6 Bug 584316 - Fix DownloadManager usage of deprecated Storage binding APIs. r=sdwilsh 2011-05-16 12:41:28 +02:00
Ed Morley
99856dd6e9 Bug 652445 - Remove WinCE code (incl Faststart & nsSplashScreenWin) from toolkit; r=dtownsend 2011-04-29 12:38:26 +02:00