Commit Graph

465 Commits

Author SHA1 Message Date
Ehsan Akhgari
8b85031475 Bug 797227 - Remove nsDownloadManager::mDownloadType; r=mak 2012-10-03 16:34:05 -04:00
Josh Matthews
be721d5624 Bug 795065 - Add privacy status to nsDownload. r=mak sr=bz 2012-10-03 13:10:20 -04:00
Randell Jesup
65539ef89c Bug 773151: Convert nsCAutoString->nsAutoCString CLOSED TREE r=bsmedberg 2012-09-01 22:35:17 -04:00
Ehsan Akhgari
e368dc9c85 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
Mark Capella
38befa6972 Bug 772272 - Remove do_load_httpd_js from xpcshell tests, Toolkits, r=ted, f=gps 2012-08-14 10:06:12 -04:00
Ms2ger
4c81482ae1 Bug 780387 - Part d: Stop using PRFloat64; r=bsmedberg 2012-08-09 09:09:42 +02:00
Aryeh Gregor
f040f500c1 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
Mike Hommey
70d7c821af Bug 774032 bonus - Use @DEPTH@ and @relativesrcdir@ in Makefile.in. r=ted 2012-08-04 20:26:44 +02:00
Aryeh Gregor
c81630fddb Bug 777292 - Convert incorrect conversions to nsresult and fix named constants; r=ehsan 2012-07-27 16:59:29 +03:00
Aryeh Gregor
d0ad5a7d0c Bug 777292 part 2 - Change all nsnull to nullptr 2012-07-30 17:20:58 +03:00
Nathan Froyd
bfff055672 Bug 370750 - consolidate mochitest files installation; r=glandium
With assistance on the patch from Ms2ger, Waldo, and Mossop.
2012-07-03 16:49:02 -04:00
Ehsan Akhgari
b03ad8e3e7 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
9f814b505f Backout a6175c97f365, 3ceeeaf0519f, bde34cebdcdc, 66dfa9606626, 86762d8c4de9, 717f908c990a, aa83d71fe7ee (bug 722868) for compilation failures 2012-06-28 19:00:30 +01:00
Ehsan Akhgari
3dfe40b202 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
0fc127a2bc Bug 747388 - Remove .part files on dl-failed on Android. r=mfinkle 2012-06-05 21:06:04 -07:00
Geoff Lankow
5cefea8480 Bug 749930 - Replace uses of nsILocalFile with nsIFile (compiled code only); r=bsmedberg 2012-06-06 14:08:30 +12:00
Gervase Markham
82ff7027aa Bug 716478 - update licence to MPL 2. 2012-05-21 12:12:37 +01:00
Hubert Figuiere
c7d281e46b 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
9180b309a7 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
9749fa7aa1 Bug 735697 - Close the old connection when switching to/from private mode. r=mak. 2012-03-22 13:02:28 -04:00
Phil Ringnalda
68abd2e005 Bug 726354 followup, the lowercase version of "Idl" is generally not spelled "dir" 2012-03-16 19:19:42 -07:00
David Rajchenbach-Teller
0e400a738d Bug 726354 - Quick fix. r=glandium 2012-03-16 22:23:28 +01:00
Ed Morley
f6653e490a Backout ba7da6256b23 (bug 726444) for talos regressions; a=mak 2012-03-11 23:38:53 +00:00
Paolo Amadini
749f7c69ab 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
fa0bd04455 Backed out changeset 118f97e6d4ed (bug 670275) for xpcshell orange. 2012-03-09 10:06:54 +00:00
Hub Figuière
8e07913feb 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
Makoto Kato
6096edb8e8 Bug 730212 - Set _WIN32_IE to 0x0603 (XPSP2). r=jimm 2012-02-26 00:20:36 +09:00
Mark Capella
3a0b126058 Bug 721496 - Remove MOZ_WINSDK_TARGETVER ifdefs for pre-Windows 7 SDKs. r=jimm 2012-02-23 01:33:19 +01:00
Geoff Lankow
a825a1156c Bug 718255 - Merge nsIPrefBranch2 with nsIPrefBranch - Part C, remove uses of nsIPrefBranch2 in toolkit/ ; r=bsmedberg 2012-01-17 14:18:29 +13:00
Panagiotis Koutsourakis
c2f12057d0 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
Panagiotis Koutsourakis
9c7dfb9706 Bug 702388 - Convert Makefiles to use |TEST_DIRS += foo| r=khuey
Files named Makefile.in containing the expression

DIRS += <foo>
or
DIRS = <foo>

inside the conditional expression

ifdef ENABLE_TESTS
...
endif

are changed to

TEST_DIRS += tests

outside any conditional expression.

The files

./layout/Makefile.in
./layout/Makefile.in
./layout/style/Makefile.in
./rdf/Makefile.in
./security/manager/Makefile.in
./content/Makefile.in
./content/smil/Makefile.in
./content/xul/templates/Makefile.in
./content/xul/content/Makefile.in
./content/base/Makefile.in
./content/media/Makefile.in
./parser/htmlparser/Makefile.in
./dom/sms/Makefile.in
./js/jsd/Makefile.in
./js/xpconnect/Makefile.in
./widget/Makefile.in
./widget/windows/Makefile.in
./Makefile.in
./startupcache/Makefile.in
./storage/Makefile.in
./gfx/Makefile.in
./intl/strres/Makefile.in
./intl/uconv/Makefile.in
./intl/unicharutil/Makefile.in
./intl/lwbrk/Makefile.in
./embedding/Makefile.in
./modules/libjar/Makefile.in
./modules/libpref/Makefile.in
./build/Makefile.in
./build/win32/Makefile.in
./xpcom/Makefile.in
./extensions/spellcheck/hunspell/Makefile.in
./extensions/cookie/Makefile.in
./netwerk/Makefile.in
./netwerk/streamconv/Makefile.in
./editor/txmgr/Makefile.in
./toolkit/mozapps/shared/Makefile.in
./toolkit/mozapps/update/Makefile.in
./toolkit/library/Makefile.in
./toolkit/library/Makefile.in
./toolkit/crashreporter/Makefile.in
./toolkit/components/perf/Makefile.in
./toolkit/components/perf/Makefile.in
./toolkit/components/feeds/Makefile.in
./toolkit/components/url-classifier/Makefile.in

contain the string

ifdef ENABLE_TESTS

but have some other statement inside (e.g. TOOL_DIRS += <foo> etc) and
they remain unchanged by this patch.
2012-02-04 17:32:24 +00:00
Josh Matthews
4343061647 Bug 713172 - Followup to finalize statements instead of nulling them out. r=mak 2012-01-11 17:13:49 -05:00
Josh Matthews
219776d71c 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
b5c7832ee2 Bug 713293 - Send quit-application in toolkit/components/downloads/test/schema_migration/head_migration.js. r=mak. 2011-12-29 10:08:03 -05:00
Rafael Ávila de Espíndola
ce8e4e8cb8 Bug 713243 - Send quit-application in head_download_manager.js. r=mak.
--HG--
extra : rebase_source : d4e622485cbd07f96abc9eff13b6ea1f26074fc6
2011-12-28 11:33:36 -05:00
Rafael Ávila de Espíndola
a5d3baa93a Bug 713284 - finalize statement in test_migration_to_2.js. r=mak. 2011-12-28 10:42:42 -05:00
Rafael Ávila de Espíndola
c0fab672de Bug 713289 - finalize statement in test_migration_to_5.js. r=mak. 2011-12-28 10:39:00 -05:00
Rafael Ávila de Espíndola
6d8d96506e Bug 713286 - finalize statement in test_migration_to_3.js. r=mak. 2011-12-28 10:35:41 -05:00
Rafael Ávila de Espíndola
56ecb0ea61 Bug 713288 - finalize statement in test_migration_to_4.js. r=mak. 2011-12-28 10:32:33 -05:00
Rafael Ávila de Espíndola
a24d708a82 Bug 713291 - finalize statement in test_migration_to_6.js. 2011-12-28 10:28:15 -05:00
Rafael Ávila de Espíndola
2821fa3a90 Bug 713242 - finalize statements in test_removeDownloadsByTimeframe.js. r=mak. 2011-12-28 10:02:25 -05:00
Rafael Ávila de Espíndola
d115351db1 Bug 711536 - finalize statements and close connection. r=mak. 2011-12-19 13:55:08 -05:00
Michael Wu
5dd6a67845 Bug 694206 - Add Gonk (B2G) widget backend, r=cjones 2011-11-10 16:17:46 -08:00
Oonishi Atsushi
8f0353652d 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
44de1ec393 Bug 700591 - fix test_history_expiration.js DST timebomb.
r=dietrich
2011-11-08 18:25:21 +01:00
Phil Ringnalda
6a9805cfa3 No bug, no r=, no a=, Try to defuse test_history_expiration daylight saving time timebomb by going back an extra day 2011-11-08 00:08:47 -08:00
Ed Morley
7ea8e12caa Backout 4997c6f8b24d (bug 616542) for causing locally run mochitest-browser-chrome test runs to fail 2011-11-05 18:35:59 +00:00
Rail Aliiev
ac65d0d88e Bug 616542 - Shorten file path length of mochitest; r=ted 2011-11-04 21:13:42 +00:00
Marco Bonardo
74a4444079 Bug 397424 follow-up - Remove extraneaous semicolon to fix Maemo bustage. 2011-11-04 21:45:22 +01:00
Felix Fung
42b50d5d59 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