Marco Bonardo
6b33830513
Bug 1359887 - Potential deadlock when forcing wal checkpoints on Places startup. r=past
...
Don't enforce wal checkpoints during Places startup, since that can possibly cause a deadlock that would
make some early synchronous API calls bailout. That would indeed cause unexpected intermittent failures
in tests.
Regardless, forcing checkpoints like this in modern filesystems is unlikely to add much value, since
the probabilities to lose the whole contents of the journal are very low.
Additionally we have better startup handling of invalid databases, so we should be able to recover in any case.
MozReview-Commit-ID: G7nISZkd8s2
2017-04-29 16:49:35 +02:00
Gijs Kruitbosch
d20be8849c
Bug 1344282 - prep: add a makeGuid method to nsINavHistory, r=mak
...
MozReview-Commit-ID: JKIjtcqyTzc
2017-03-13 22:22:57 +00:00
Kit Cambridge
9b2962b6d8
Bug 1304862 - Use mozilla::Base64URLEncode to generate bookmark GUIDs. r=mak
...
MozReview-Commit-ID: 5VElDCLBcBV
2016-08-08 10:52:29 -07:00
Michael Layzell
b3412e432b
Bug 1292224 - Remove duplicate mRefCnt member from nsNavHistoryFolderResultNode, r=adw
2016-08-05 13:51:34 -04:00
Kyle Huey
a9cf047227
Bug 1265927: Move nsRunnable to mozilla::Runnable, CancelableRunnable to mozilla::CancelableRunnable. r=froydnj
2016-04-25 17:23:21 -07:00
Nathan Froyd
4e6d8f6705
Bug 1207245 - part 6 - rename nsRefPtr<T> to RefPtr<T>; r=ehsan; a=Tomcat
...
The bulk of this commit was generated with a script, executed at the top
level of a typical source code checkout. The only non-machine-generated
part was modifying MFBT's moz.build to reflect the new naming.
CLOSED TREE makes big refactorings like this a piece of cake.
# The main substitution.
find . -name '*.cpp' -o -name '*.cc' -o -name '*.h' -o -name '*.mm' -o -name '*.idl'| \
xargs perl -p -i -e '
s/nsRefPtr\.h/RefPtr\.h/g; # handle includes
s/nsRefPtr ?</RefPtr</g; # handle declarations and variables
'
# Handle a special friend declaration in gfx/layers/AtomicRefCountedWithFinalize.h.
perl -p -i -e 's/::nsRefPtr;/::RefPtr;/' gfx/layers/AtomicRefCountedWithFinalize.h
# Handle nsRefPtr.h itself, a couple places that define constructors
# from nsRefPtr, and code generators specially. We do this here, rather
# than indiscriminantly s/nsRefPtr/RefPtr/, because that would rename
# things like nsRefPtrHashtable.
perl -p -i -e 's/nsRefPtr/RefPtr/g' \
mfbt/nsRefPtr.h \
xpcom/glue/nsCOMPtr.h \
xpcom/base/OwningNonNull.h \
ipc/ipdl/ipdl/lower.py \
ipc/ipdl/ipdl/builtin.py \
dom/bindings/Codegen.py \
python/lldbutils/lldbutils/utils.py
# In our indiscriminate substitution above, we renamed
# nsRefPtrGetterAddRefs, the class behind getter_AddRefs. Fix that up.
find . -name '*.cpp' -o -name '*.h' -o -name '*.idl' | \
xargs perl -p -i -e 's/nsRefPtrGetterAddRefs/RefPtrGetterAddRefs/g'
if [ -d .git ]; then
git mv mfbt/nsRefPtr.h mfbt/RefPtr.h
else
hg mv mfbt/nsRefPtr.h mfbt/RefPtr.h
fi
2015-10-18 01:24:48 -04:00
Nicholas Nethercote
0247de46d8
Bug 1127201 (attempt 2, part 1) - Replace most NS_ABORT_IF_FALSE calls with MOZ_ASSERT. r=Waldo.
2015-02-09 14:34:50 -08:00
Andrew McCreight
e048a7df33
Back out Bug 1127201 (part 2) for various problems.
2015-02-06 15:04:32 -08:00
Nicholas Nethercote
40ab0270d5
Bug 1127201 (part 2) - Convert all NS_ABORT_IF_FALSE calls to MOZ_ASSERT. r=Waldo.
2015-02-04 20:05:36 -08:00
Mike Hommey
715db83e04
Bug 1126593 - Add a global fallible instance, so that using fallible works directly, everywhere. r=njn
2015-02-02 09:56:13 +09:00
Asaf Romano
bba5e8921d
Bug 1107308 - Round dateAdded and lastModified values to milliseconds precision in places cpp components. r=mak
2014-12-04 14:09:48 -08:00
Andrew McCreight
a966f427cd
Bug 1038207 - Fix various classes that reimplement nsISupports. r=ehsan
2014-07-14 12:21:34 -07:00
Birunthan Mohanathas
a575bd9831
Bug 869836 - Part 8: Use Append('c') instead of Append("c"). r=ehsan
2014-05-22 06:48:52 +03:00
Birunthan Mohanathas
fd86bf4972
Bug 869836 - Part 7: Use AppendLiteral instead of Append where possible. r=ehsan
2014-05-22 06:48:51 +03:00
Birunthan Mohanathas
eeb9aaaa94
Bug 900908 - Part 3: Change uses of numbered macros in nsIClassInfoImpl.h/nsISupportsImpl.h to the variadic variants. r=froydnj
2014-04-27 03:06:00 -04:00
Ehsan Akhgari
860f2c1f29
Bug 969757 - Remove the dead code in our tree which pretends to support OS/2; r=roc,mcmanus,gps,jorendorf,bsmedberg sr=bsmedberg
2014-02-10 17:57:01 -05:00
Ehsan Akhgari
68bfe70f09
Bug 927728 - Part 1: Replace PRUnichar with char16_t; r=roc
...
This patch was automatically generated by the following script:
#!/bin/bash
# Command to convert PRUnichar to char16_t
function convert() {
echo "Converting $1 to $2..."
find . ! -wholename "*nsprpub*" \
! -wholename "*security/nss*" \
! -wholename "*modules/libmar*" \
! -wholename "*/.hg*" \
! -wholename "obj-ff-dbg*" \
! -name prtypes.h \
! -name Char16.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 PRUnichar char16_t
2014-01-04 10:02:17 -05:00
Ehsan Akhgari
9f7249b2f0
Bug 943993 - Build toolkit/components/places in unified mode; r=mak
2013-11-29 18:29:49 -05:00
Birunthan Mohanathas
b55ff3bd65
Bug 784739 - Switch from NULL to nullptr in toolkit/components/ (1/2); r=ehsan
2013-10-10 16:38:05 -04:00
Joshua Cranmer
4c1f2d0784
Bug 884061 - Part 3v: Use NS_DECL_THREADSAFE_ISUPPORTS in toolkit/, r=Mossop
2013-07-18 21:24:15 -05:00
Asaf Romano
f818d0ec78
Relanding Bug 834539 - Replace getPageTitle with an async API. r=mak. sr=gavin.
2013-06-19 10:18:38 +03:00
Ryan VanderMeulen
907d25848e
Backed out changeset 8416c29fecda (bug 834539) for xpcshell failures.
...
CLOSED TREE
2013-06-18 14:46:00 -04:00
Asaf Romano
0fa461434f
Bug 834539 - Replace getPageTitle with an async API. r=mak. sr=gavin.
2013-06-18 19:24:31 +03:00
Ehsan Akhgari
5ab06de081
Bug 817477 - Remove support for global private browsing mode; r=jdm,glandium
2013-01-29 13:12:13 -05:00
Josh Matthews
e77a3bf92a
Bug 723005 - Remove all checks for global privacy status in history-related code, and add them to callers when appropriate. r=mak sr=gavin
2012-02-18 01:40:10 -05:00
Isaac Aggrey
990e90e88a
Bug 791906: Replace NSPR integer limit constants with stdint ones; r=ehsan
2012-09-28 01:57:33 -05:00
Randell Jesup
3b4961b603
Bug 773151: Convert nsCAutoString->nsAutoCString CLOSED TREE r=bsmedberg
2012-09-01 22:35:17 -04:00
Ehsan Akhgari
243c878d26
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
Aryeh Gregor
8b4a23fc4c
Bug 777292 part 2 - Change all nsnull to nullptr
2012-07-30 17:20:58 +03:00
David Zbarsky
9050aef271
Bug 763350 - Clean up some includes in content/ and dom/ r=smaug
2012-07-01 16:45:59 -07:00
Gervase Markham
cb6a072c2a
Bug 716478 - update licence to MPL 2.
2012-05-21 12:12:37 +01:00
Benjamin Smedberg
71dfbe9d16
Bug 737164 part C - switch various in-tree callers which are using fallible strings to keep using them
2012-05-08 13:55:24 -04:00
Henri Sivonen
ee70c964a0
Bug 482911 - Reimplement Netscape bookmark import using the HTML5 parser. r=mak, sr=gavin.
2012-03-23 09:15:36 +02:00
Henri Sivonen
eeb0bdb42f
Back out changeset d2693e86769d (bug 482911) due to crashes on Mac xpcshell tests. r=orange.
2012-03-23 11:25:08 +02:00
Henri Sivonen
2ca517185c
Bug 482911 - Reimplement Netscape bookmark import using the HTML5 parser. r=mak, sr=gavin.
2012-03-23 09:15:36 +02:00
David Mandelin
0a4c9bd844
Bug 725550: remove obsolete typedef jsdouble, r=jwalden
2012-02-24 14:19:52 -08:00
Marco Bonardo
7aa79ce5b7
Backout 4fc2f49371a8 (bug 725550) for build failures
2012-02-25 00:16:47 +01:00
David Mandelin
d85948e391
Bug 725550: remove obsolete typedef jsdouble, r=jwalden
2012-02-24 14:19:52 -08:00
Marco Bonardo
52fde4f398
Bug 613588 (Backend) - Load-on-demand livemarks.
...
r=dietrich,mano
2012-02-24 13:42:24 +01:00
Rafael Ávila de Espíndola
215195b6ee
Bug 721603 - We should spin the loop after calling asyncClose in Database.cpp. r=mak.
2012-02-16 07:03:53 -05:00
Marco Bonardo
4d082c68c5
Bug 723124 - Telemetry for time needed for idle frecency update.
...
r=dietrich
2012-02-04 15:12:42 +01:00
Matthew Noorenberghe
033ce45158
Bug 646993 - Cap the bookmark title length to TITLE_LENGTH_MAX r=mak
2011-10-28 20:37:13 -07:00
Marco Bonardo
50a7797537
Bug 695554 - Split a Database class out of the History service. (expected fake Ts_shutdown regressions!)
...
r=dietrich
2011-10-27 11:11:34 +02:00
Philipp von Weitershausen
3239b7f8be
Bug 676110 - Part 3b: Remove double enqueuing from PlacesEvent. r=mak
2011-08-19 10:12:11 -07:00
Marco Bonardo
c9fd6aa310
Bug 493783 - Fix some Places warnings.
...
r=sdwilsh
2011-05-10 03:10:25 +02:00
Mitchell Field
8969bddd5d
Bug 595513 - Reduce makefile recursion in toolkit. r=khuey
2011-03-08 14:58:46 +11:00