Commit Graph

151 Commits

Author SHA1 Message Date
Kris Maglione
bc973f9b6a Bug 1269398: Add visitType, visitId, and fromVisitId fields to history visit query results. r=mak
MozReview-Commit-ID: BCsztVsCH98
2016-05-13 13:47:24 -07:00
Marco Bonardo
90b42d97cf Bug 1262887 - Long URLs stored in history cause slow address bar. r=adw
MozReview-Commit-ID: 8h2nVKBe6tP
2016-04-22 11:47:31 +02: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
Timur Valeev
b427c48919 Bug 1254923 - Remove RemoveAllPages API. r=mak 2016-03-09 19:34:51 +03:00
Marco Bonardo
2ce7866435 Bug 1250363 - Speed up history removals through a simulated per-statement trigger. r=yoric
This aims at speeding up DELETE FROM moz_places like queries.
The primary reason of slowness is the FOR EACH ROW trigger that takes care of updating the moz_hosts table when places are removed.
Unfortunately Sqlite doesn't support FOR EACH STATEMENT triggers, that means the trigger will hit multiple times for pages in the same host.
The patch introduces an additional temp table to accumulate hosts during a delete, then a trigger takes care of updating moz_hosts only once per touched host, rather than once per removed place.

MozReview-Commit-ID: BlJRLQZoC07
2016-02-23 02:21:03 +01:00
Andrew Krawchyk
5125d4d52b Bug 1220654 - Replace removeVisitsTimeframe with History.removeVisitsByFilter and deprecate it. r=mak
***
yield on removeVisitsByFilter in tests

MozReview-Commit-ID: JGDaJGEmtoD
***
update bookmarked place tests, inline object declarations

MozReview-Commit-ID: Cxec22UHui0
***
updates for code review

MozReview-Commit-ID: AIRqrJ0B6GQ
2016-02-16 14:52:59 -05:00
Marco Bonardo
8876034697 Bug 1244650 - Failure to clear Forms and Search Data on exit. r=yoric
The problem is due to sanitization happening too late in the shutdown cycle.
The Sanitizer depends on Places shutdown, that recently moved to async shutdown.
That change caused shutdown to happen completely at profile-before-change, unfortunately
during that phase it's impossible to predict which services are already shutdown.
The patch restores the previous Places shutdown procedure, thus clients are notified
earlier, during profile-change-teardown.

Additional meaningful changes:
* Fixes FX_SANITIZE_TOTAL telemetry to properly count total time taken by sanitize.
* Makes each cleanup operation isolated from other errors to try cleaning up as most as possible.
* In case of multiple sanitization sub steps, each step is isolated by a try/catch, the last seen exception is reported upstream.
* Makes FX_SANITIZE_HISTORY actually measure history, not other random stuff.
* Removes TOPIC_SIMULATE_PLACES_MUST_CLOSE_1 since we can now just use profile-change-teardown for shutdown phase 1.

MozReview-Commit-ID: HroLvbi25IC
2016-02-04 13:51:34 +01:00
Marco Bonardo
00fc9d7055 Bug 1243779 - Remove uriIsPrefix option from nsINavHistoryQuery.r=adw
MozReview-Commit-ID: CM2Jm6iApct
2016-02-10 17:16:23 +01:00
Marco Bonardo
a1da727ca8 Bug 1240013 - Crash in nsNavBookmarks::OnVisit by setting long location.hash. r=Yoric 2016-01-26 18:43:53 +01:00
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