Commit Graph
142 Commits
Author SHA1 Message Date
Nicholas Nethercote 91583ee197 Bug 1187138 (part 3) - Replace nsBaseHashtable::Enumerate() calls in toolkit/ with iterators. r=froydnj. 2015-11-24 16:53:46 -08:00
Andrew Krawchyk ec64c78b8b Bug 1124185 - Replace removeAllPages with history.clear() and deprecate it. r=mak 2015-10-28 13:51:59 -04:00
Nicholas Nethercote c90ef7de34 Bug 1186785 - Replace nsBaseHashtable::EnumerateRead() calls in toolkit/ with iterators. r=froydnj. 2015-10-19 15:46:46 -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
Andrew McCreight a099491825 Bug 1189369, part 2 - Don't implicitly convert nsMaybeWeakPtr to an nsCOMPtr. r=mak
This is only used in a few places, and it obscures what is happening.
2015-08-04 13:55:01 -07:00
Birunthan Mohanathas a29151dc87 Bug 1182996 - Fix and add missing namespace comments. rs=ehsan
The bulk of this commit was generated by running:

  run-clang-tidy.py \
    -checks='-*,llvm-namespace-comment' \
    -header-filter=^/.../mozilla-central/.* \
    -fix
2015-07-13 08:25:42 -07:00
Emanuel Hoogeveen b30abdc582 Bug 905127 - Part 1 - Make some functions from nsNetUtil not inline. r=jduell 2015-07-07 04:17:00 +02:00
David Rajchenbach-Teller 530ad877b1 Bug 1043863 - Use AsyncShutdown to shutdown Places. r=mak 2015-05-05 12:44:16 +02:00
Ryan VanderMeulen 6e8ebcf333 Backed out changesets ddad4d54c31e and ef85fdfd2fc7 (bug 1043863) for making browser_thumbnails_storage.js permafail on WinXP opt. 2015-05-26 14:05:18 -04:00
David Rajchenbach-Teller fe8f4d68b5 Bug 1043863 - Use AsyncShutdown to shutdown Places. r=mak 2015-05-05 12:44:16 +02:00
Mohamed Waleed 33af67854d Bug 1062894 - Avoid batching tag changes if number of changed tags is low. r=mak, ttaubert 2015-04-27 21:24:21 +02:00
Ehsan Akhgari 5de9885ad6 Bug 1158205 - Remove the unuesed hostSupports variable; r=mak 2015-04-25 11:33:55 -04:00
Mike Hommey 338d086ead Bug 1134920 - Use moz_xmalloc/moz_xrealloc/free instead of nsMemory::Alloc/Realloc/Free. r=nfroyd 2015-04-01 13:51:45 +09:00
Tim Taubert 9780b3defc Bug 1101553 - Remove nsPIPlacesHistoryListenersNotifier r=mak 2015-01-12 14:39:32 +01:00
Asaf Romano 926ea4a18e Bug 1105866 - Implement folderShorcutNode.targetFolderGuid (guid version of folderShortcutNode.folderItemId). r=mak 2014-12-10 19:03:15 +02:00
Asaf Romano 39d5730d96 Bug 1105208 - regression: (null) title for Bookmarks Toolbar, Bookmarks Menu, Unsorted Bookmarks. r=mak. 2014-11-27 22:44:29 +02:00
Asaf Romano af9f408732 Bug 1085291 - A bookmark node that is inserted by live-update code is missing bookmarkGuid value. r=mak (Relanding with the test file included this time). 2014-11-25 11:43:26 +02:00
Carsten "Tomcat" Book 4ac659e2c3 Backed out changeset 6db486ed2de1 (bug 1085291) for breaking Builds on a CLOSED TREE 2014-11-25 09:25:11 +01:00
Asaf Romano b3ed43173e Bug 1085291 - A bookmark node that is inserted by live-update code is missing bookmarkGuid value. r=mak. 2014-11-25 09:06:37 +02:00
Marco Bonardo 0f3e3062cd Bug 1090308 - Invalidate mDaysOfHistory when getObservers is invoked. r=Mano 2014-11-19 17:09:04 +01:00
Marco Bonardo cdf3d98b3b Bug 1089332 - Add a getObservers API for accessing the history observers list. r=Mano 2014-11-19 16:10:53 +01:00
Akshendra Pratap 8bf3ceeb4e Bug 334050 - Add a test for Places queries against multiple folders. r=mak 2014-11-12 08:11:00 +01:00
Alex Bardas 52e7d249a3 Bug 530209 - Improve search suggestions ui for locationbar prefs. r=mak 2014-11-12 08:16:00 -05:00
David Rajchenbach-Teller fd4e6aa6a4 Bug 834545 - Implement History.remove. r=mak 2014-10-22 13:36:58 +02:00
Marco Bonardo d9cf35c8a0 bug 1047811 - Part 2 - Use async transactions in Places. r=Mano 2014-09-10 12:46:17 +02:00
Carsten "Tomcat" Book 0fdd112314 Backed out changeset 925427a6d0b1 (bug 1047811) 2014-09-10 13:07:12 +02:00
Marco Bonardo b19eba3671 bug 1047811 - Part 2 - Use async transactions in Places. r=Mano 2014-09-10 12:46:17 +02:00
Ehsan Akhgari 5847679c76 Bug 1060974 - Fix more bad implicit constructors in places; r=mak 2014-09-03 18:25:36 -04:00
Roberto A. Vitillo 251f12652d Bug 559505 - Deprecate localstore.rdf and replace it with xulstore. r=enn, sr=bsmedberg
CLOSED TREE
2014-08-19 10:31:00 -04:00
Ed Morley 02dcbeb964 Backed out changeset 143ae44587b2 (bug 559505) for xperf failures 2014-08-20 17:10:05 +01:00
Roberto A. Vitillo 589046f479 Bug 559505 - Deprecate localstore.rdf and replace it with xulstore. r=enn, sr=bsmedberg 2014-08-19 10:31:00 -04:00
Nicholas Nethercote 663b82ea3b Bug 1050009 - Initialize pldhash tables with a length, not a capacity. r=roc.
* * *
imported patch rm-dummy-params
2014-08-06 06:31:21 -07:00
Anup Kumar 4e4dd2145e Bug 854925 - Remove SetCharsetForURI and GetCharsetForURI from nsINavHistoryService. r=mak 2014-07-25 13:37:00 +02:00
Chris Peterson f56fa77756 Bug 1031166 - Fix non-unified OS X build's warnings-as-errors in toolkit/components/places. r=mak 2014-06-26 23:34:56 -07:00
Birunthan Mohanathas d4ab56898a Bug 869836 - Part 9: Use AssignLiteral instead of Assign(NS_LITERAL_STRING(...)). 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 9f41043f62 Bug 869836 - Part 3: Use Append('c') instead of AppendLiteral("c"). r=ehsan 2014-05-22 06:48:51 +03:00
Birunthan Mohanathas 1ebdb921a5 Bug 869836 - Part 2: Use AppendLiteral instead of Append(NS_LITERAL_STRING(...)). r=ehsan 2014-05-22 06:48:50 +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
Jefry Lagrange 10594d766c Bug 568613 - Remove browser.history_expire_days usage from tree. r=mak 2014-04-24 07:47:00 -04:00
Drew Willcoxon 5a25763248 Bug 911307 - Reflect changes to top sites immediately in about:newtab (part 1, Places patch). r=mak 2014-03-28 23:30:04 -07:00
Phil Ringnalda 304bd1a718 Backed out 2 changesets (bug 911307) for frequent timeouts in browser_newtab_perwindow_private_browsing.js
Backed out changeset 70638b7c97f1 (bug 911307)
Backed out changeset 3951f7e82b4c (bug 911307)
2014-03-29 12:13:11 -07:00
Drew Willcoxon 4d07122113 Bug 911307 - Reflect changes to top sites immediately in about:newtab (part 1, Places patch). r=mak 2014-03-28 23:30:04 -07: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
Trevor Saunders b4ae5fdd96 bug 949821 - use MOZ_UTF16 more and NS_LITERAL_STRING less r=froydnj 2013-12-12 20:50:01 -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
Robert O'Callahan 51222bdd45 Bug 910989. Remove nsTHashtable::Init, fallible allocation, and MT hashtables. r=ehsan,bsmedberg 2013-09-02 20:41:57 +12:00
Raymond Lee 6b22554a73 Bug 627487 - Bookmark JSON backup should contain new-style GUIDs. r=mano 2013-09-03 11:56:25 +08: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
Marcos Aruj 14ea28ca9a Bug 880922 - Add depreciate warning to both SetCharsetForURI and GetCharsetForURI in nsNavHistory.cpp. r=mak 2013-07-11 16:43:00 -04:00