Commit Graph

387 Commits

Author SHA1 Message Date
Randell Jesup
29ac5c0b8c Bug 773151: Convert nsCAutoString->nsAutoCString CLOSED TREE r=bsmedberg 2012-09-01 22:35:17 -04:00
Ehsan Akhgari
8c296bbcd4 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
d35354cd9e Bug 772272 - Remove do_load_httpd_js from xpcshell tests, Toolkits, r=ted, f=gps 2012-08-14 10:06:12 -04:00
Ms2ger
8fcd7f8f16 Bug 780387 - Part d: Stop using PRFloat64; r=bsmedberg 2012-08-09 09:09:42 +02:00
Aryeh Gregor
ec556ac7f6 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
c1b35e7b2a Bug 774032 bonus - Use @DEPTH@ and @relativesrcdir@ in Makefile.in. r=ted 2012-08-04 20:26:44 +02:00
Aryeh Gregor
2e7996f8d1 Bug 777292 - Convert incorrect conversions to nsresult and fix named constants; r=ehsan 2012-07-27 16:59:29 +03:00
Aryeh Gregor
57c0ad57fb Bug 777292 part 2 - Change all nsnull to nullptr 2012-07-30 17:20:58 +03:00
Nathan Froyd
5b30baa4c3 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
b86aa0ccf9 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
7db6803233 Backout a6175c97f365, 3ceeeaf0519f, bde34cebdcdc, 66dfa9606626, 86762d8c4de9, 717f908c990a, aa83d71fe7ee (bug 722868) for compilation failures 2012-06-28 19:00:30 +01:00
Ehsan Akhgari
c20e620904 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
f4b9964d7e Bug 747388 - Remove .part files on dl-failed on Android. r=mfinkle 2012-06-05 21:06:04 -07:00
Geoff Lankow
1214b72681 Bug 749930 - Replace uses of nsILocalFile with nsIFile (compiled code only); r=bsmedberg 2012-06-06 14:08:30 +12:00
Gervase Markham
87620f5676 Bug 716478 - update licence to MPL 2. 2012-05-21 12:12:37 +01:00
Hubert Figuiere
38a23ae94d 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
cc07746d4f 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
a2f365ca6e Bug 735697 - Close the old connection when switching to/from private mode. r=mak. 2012-03-22 13:02:28 -04:00
Phil Ringnalda
ac8f47f032 Bug 726354 followup, the lowercase version of "Idl" is generally not spelled "dir" 2012-03-16 19:19:42 -07:00
David Rajchenbach-Teller
e174944667 Bug 726354 - Quick fix. r=glandium 2012-03-16 22:23:28 +01:00
Ed Morley
f558fef737 Backout ba7da6256b23 (bug 726444) for talos regressions; a=mak 2012-03-11 23:38:53 +00:00
Paolo Amadini
2a53c9bbe4 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
5822a6d833 Backed out changeset 118f97e6d4ed (bug 670275) for xpcshell orange. 2012-03-09 10:06:54 +00:00
Hub Figuière
3d7db268c1 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
2bfc9b451e Bug 730212 - Set _WIN32_IE to 0x0603 (XPSP2). r=jimm 2012-02-26 00:20:36 +09:00
Mark Capella
7c9075ff14 Bug 721496 - Remove MOZ_WINSDK_TARGETVER ifdefs for pre-Windows 7 SDKs. r=jimm 2012-02-23 01:33:19 +01:00
Geoff Lankow
63ce20111b 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
6aac93c689 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
583eb38038 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
b8515eee7f Bug 713172 - Followup to finalize statements instead of nulling them out. r=mak 2012-01-11 17:13:49 -05:00
Josh Matthews
b5b4595c2e 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
45af65d223 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
fbc4abb759 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
aec621ebf4 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
2e4178e8e5 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
f56871cc56 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
bbd222caec 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
59d5837312 Bug 713291 - finalize statement in test_migration_to_6.js. 2011-12-28 10:28:15 -05:00
Rafael Ávila de Espíndola
c263d22263 Bug 713242 - finalize statements in test_removeDownloadsByTimeframe.js. r=mak. 2011-12-28 10:02:25 -05:00
Rafael Ávila de Espíndola
66d5362abb Bug 711536 - finalize statements and close connection. r=mak. 2011-12-19 13:55:08 -05:00
Michael Wu
34d5f356e4 Bug 694206 - Add Gonk (B2G) widget backend, r=cjones 2011-11-10 16:17:46 -08:00
Oonishi Atsushi
5db5ec8f54 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
cbab8129a2 Bug 700591 - fix test_history_expiration.js DST timebomb.
r=dietrich
2011-11-08 18:25:21 +01:00
Phil Ringnalda
36f9367c7e 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
7bc582f20f 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
8a56fd9db2 Bug 616542 - Shorten file path length of mochitest; r=ted 2011-11-04 21:13:42 +00:00
Marco Bonardo
b4d35407e6 Bug 397424 follow-up - Remove extraneaous semicolon to fix Maemo bustage. 2011-11-04 21:45:22 +01:00
Felix Fung
e337f8e76f 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
Mark Banner
da396f0de1 Bug 693949 - Drop nsCStringArray. r=bsmedberg 2011-10-28 08:35:45 +01: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