Commit Graph

56 Commits

Author SHA1 Message Date
Benedict Singer
eef8ddc2e4 Bug 787134 - Make links not in a document or with an invalid href respond to :link selector. r=bzbarsky 2012-12-07 09:35:14 -05:00
Ted Mielczarek
9017b65900 bug 816963 - Enable crash reporting in places C++ unit tests. r=mak 2012-11-30 14:26:19 -05:00
Daniel Holbert
3ea5c0f58b Bug 815058 followup: Add FAIL_ON_WARNINGS to 2 test dirs that this bug's patch made warning-free. r=Ms2ger 2012-11-28 09:55:41 -08:00
Matt Joras
0d8fd6916a Bug 798033 - Removes 'using namespace' from toolkit headers - r=bsmedberg 2012-11-01 18:09:22 -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
Mike Hommey
6173fa297f Bug 774032 bonus - Use @DEPTH@ and @relativesrcdir@ in Makefile.in. r=ted 2012-08-04 20:26:44 +02:00
Aryeh Gregor
e806eeab4f Bug 777292 part 2 - Change all nsnull to nullptr 2012-07-30 17:20:58 +03:00
Ehsan Akhgari
8e4039f7a3 Bug 758992 - Make the classes which use the XPCOM nsISupports implementation macros final, to avoid the warning about deleting using a pointer to a base class with virtual functions and no virtual dtor (toolkit parts); r=jrmuizel 2012-06-19 23:27:32 -04:00
Daniel Holbert
e3318202f7 Bug 757644: Tweak constructor init-list order in mock_Link.h to fix build warning. r=ehsan 2012-05-22 16:25:23 -07:00
Gervase Markham
ca171eec44 Bug 716478 - update licence to MPL 2. 2012-05-21 12:12:37 +01:00
Nicholas Nethercote
d8a85cb65a Bug 682431 (part 2) - Add memory reporters for URIs and Links. r=biesi,bz,jlebar.
--HG--
extra : rebase_source : db4f094a7d334914b986bb66f5bf1089aafda561
2012-02-19 19:51:48 -08:00
Rafael Ávila de Espíndola
a2170ade48 Bug 721812 - WaitForConnectionClosed can create a TOPIC_PLACES_CONNECTION_CLOSED spinner too late. r=mak. 2012-02-01 17:29:30 +01:00
Marco Bonardo
2f70acaa24 Bug 712767: Send profile shutdown topics to cpp tests requesting a profile.
r=waldo
2012-01-20 14:47:51 +01:00
Marco Bonardo
16b5de3dad Bug 619623 - Ensure proper tests ordering in test_IHistory.cpp.
r=dietrich
2011-12-03 01:19:58 +01:00
Marco Bonardo
976181352a Bug 619623 - Revert a check in test_IHistory, since, even if less frequent, a timeout is not better than a failure. 2011-11-05 13:48:29 +01:00
Marco Bonardo
44e36af0d8 Bug 619623 - Try to fix some intermittent failures in test_IHistory.cpp.
r=dietrich
2011-11-05 01:01:38 +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
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
Ehsan Akhgari
b542efd4e6 Bug 666414 - Prevent AddRef and Release from being called on the pointers wrapped in nsCOMPtr and nsRefPtr; r=bsmedberg 2011-09-16 16:22:44 -04:00
Rafael Ávila de Espíndola
c7e7073052 Bug 687696 - Use nsRefPtr instead nsCOMPtr. r=mak.
--HG--
extra : rebase_source : 7d8238fc2202e86c23a3426bb076a11dcb11b7a8
2011-09-23 21:29:48 -04:00
Rafael Ávila de Espíndola
e82895a375 Bug 687696 - Generate places shutdown events in the cpp tests. r=mak.
This uses the NS_XPCOM_WILL_SHUTDOWN_OBSERVER_ID notification to produce
the places shutdown messages, emulating what happens in the browser.

--HG--
extra : rebase_source : ddd5bf7973458df14c31f72567b147996b0fac00
2011-09-21 14:14:40 -04:00
Boris Zbarsky
e167b0caba Bug 598833 part 9. Store an Element pointer in Link. r=smaug,sdwilsh 2011-05-31 21:46:57 -04:00
Marco Bonardo
5bab90c7db Bug 619623 - Disable Idle Service to check if it's related with the intermittent failure.
r=sdwilsh
2011-04-29 18:12:23 +02:00
Matheus Kerschbaum
93480c6366 Bug 639754 - Remove MOZ_IPC checks since IPC is always built now; r=bsmedberg 2011-04-02 19:14:00 -07:00
Marco Bonardo
23946d5818 Bug 619623 - Intermittent failure in test_IHistory.cpp | Wait for frecency.
r=sdwilsh a=tests-only
2011-02-24 14:03:51 +01:00
Phil Ringnalda
79b29477df Bug 619623 - reorder the parts of the error messages so tbpl can spot the filename, r=sdwilsh, a=test 2010-12-18 19:30:46 -08:00
Shawn Wilsher
82cd6792ff Bug 607117 - create GUIDs for all bookmark and history items automatically
Part 2 - Make entries in moz_places generate guids automagically
r=mak
2010-12-02 14:09:52 -08:00
Shawn Wilsher
9cdab945a8 Merge mozilla-central into Places. 2010-11-29 08:43:57 -08:00
Shawn Wilsher
75c838117e Fix orange on linux opt builds by ifdefing around the problem. a=orange :( 2010-11-17 14:42:13 -08:00
Marco Bonardo
c3cb283d6a Bug 610442 - TRANSITION_EMBED visits should be session persistent
r=sdwilsh a=blocking
2010-11-12 14:24:25 -08:00
Shawn Wilsher
3e1f89f94a Backed out changeset 6716b289e613. 2010-11-12 08:57:43 -08:00
Shawn Wilsher
15eb6225a3 Disables all link coloring lookups to the db. Wanted to run this on try, but it is not cooperating. There will be orange, but that's OK. This will be backed out shortly. 2010-11-12 08:56:09 -08:00
Shawn Wilsher
4d309d490a Bug 599969 - Do not use steps for async visit adding.
Part 1 - use one event (ran on the background thread) for adding a visit, and
one event (ran on the main thread) for notifying.
r=mak
r=bmcbride for test change
2010-11-08 11:42:08 -08:00
Shawn Wilsher
ffb1973389 Merging mozilla-central to Places. 2010-10-29 11:39:41 -07:00
Shawn Wilsher
c6b0570139 Bug 607469 - IPC-only Crash [@ mozilla::places::History::NotifyVisited]
r=dougt
a=blocking

--HG--
extra : rebase_source : 74fbebfccb8544ef56adb0f66e778372148b0506
2010-10-27 13:14:16 -07:00
Marco Bonardo ext:(%2C%20Shawn%20Wilsher%20%3Cme%40shawnwilsher.com%3E)
50d31806a3 Bug 552023 - Kill Places partitioned temp tables.
r=sdwilsh
r=mak
a=blocking2.0
2010-08-09 17:59:59 +02:00
Mark Banner
45e775309d Bug 614550 - Ensure places is enabled for places related c++ tests; r=mak, a=test-only change 2010-11-24 15:13:47 +00:00
Benjamin Stover
e4051ec461 Bug 556400 - Add visits Asynchronously. r=mak r=sdwilsh sr=bz 2010-07-13 18:00:33 -07:00
Dave Townsend
f1d4bafdbd Backed out changeset f9a700607b86 from bug556400 due to possible browser-chrome failures.
--HG--
extra : transplant_source : %AC%2C%060%A3Shzk%F0%19i%87%AB%D8%87%B8%5E%80%A6
2010-07-02 20:01:44 -07:00
Benjamin Stover
97eb3d6fee Bug 556400 - Make adding visits asynchronous. r=sdwilsh r=mak sr=bz 2010-06-30 16:08:28 -07:00
Daniel Holbert
942fda5f5c Bug 560393, part 1: (places directory) Fix warning: "format '%d' expects type 'int', but argument [N] has type 'size_t'". r=sdwilsh 2010-05-06 11:52:15 -07:00
timeless@mozdev.org
18f4a5a5a3 Bug 555659 - places/tests/cpp/mock_Link.h doesn't initialize mRegistered and mContent, r=sdwilsh, a=1
--HG--
extra : rebase_source : b1993fad9fc5674e673c10150a2fb12e9216fea4
2010-03-29 02:10:00 -07:00
Robert Longson
7f73b235c7 Bug 510202 - simplify C++ code now that bug 461199 has landed. r=sdwilsh,sr=bzbarsky 2010-03-13 10:32:19 +00:00
Daniel Holbert
a3dfa5360d Trivial followup for bug 461199: fix new compiler warning about unsigned-vs-signed comparison. (carrying forward rs=sdwilsh from previous related followup) 2010-02-25 17:53:41 -08:00
Daniel Holbert
00ed82e5e1 Bug 461199 followup: Fix build warning "ISO C++ does not support the 'z' printf length modifier". rs=sdwilsh 2010-02-25 10:20:43 -08:00
Shawn Wilsher
149f5aac0a Bug 542592 - Change how we use/store nsDocument::mLinkMap
This makes changes nsDocument::mLinkMap in a number of ways:
1) renamed to mStyledLinks to better reflect its new nature.
2) change it to an nsTHashtable of Link*.  It no longer has a strong reference
3) add some assertions to make sure we call ForgetLink and AddStyleRelevantLink
   in pairs.
This also makes mozilla::dom::Link::ResetLinkState take a boolean indicating if
we should notify or not.
r=bz
2010-02-24 08:37:03 -08:00