Commit Graph

320 Commits

Author SHA1 Message Date
Drew Willcoxon
a506b12c1c Bug 491983 - nsIBrowserHistory needs removeVisitsByTimeframe method, r=dietrich 2009-05-16 19:32:13 -07:00
Marco Bonardo
14124b5b86 Bug 488966 - Add a last_visit_date column with an index to moz_places, r=sdwilsh 2009-05-15 01:28:03 +02:00
Shawn Wilsher
1f5973679d Bug 490833 - mozIStorageStatement::getParameterIndex should only accept :-named parameters
This updates places to use the new API definition.
r=dietrich
2009-05-12 17:08:50 -04:00
Edward Lee
016935e941 Bug 489872 - [@ nsNavHistory::IsVisited] doesn't check null aURI. r=sdwilsh
For public entry points of nsNavHistory, add ENSURE_ARG for in-pointers and ENSURE_ARG_POINTER for out-pointers; NS_ASSERTION for private APIs. Test automatically finds functions from nav history service and calls them with null arguments.
2009-05-12 10:11:53 -05:00
Marco Bonardo
35dff56288 Bug 491954 - Views should select exact columns, r=sdwilsh 2009-05-11 11:05:56 +02:00
adw@mozilla.com
0f2289897a Bug 399799 - Provide better options to query for tags (r=dietrich) 2009-05-04 20:40:34 -07:00
TheOne
3d146e025e Bug 482856 - Inconsistent comment for hiding pages in nsNavHistory. r=mak 2009-04-24 11:23:53 +02:00
Edward Lee
ff475d4811 Bug 487810 - Refactor UpdateFrecency and FixInvalidFrecencies to share frecency updating logic. r=dietrich
Separate the last half of UpdateFrecency into UpdateFrecencyInternal to be reused by FixInvalidFrecencies. Existing tests touch both paths, e.g., test_000_frecency and test_migrateFrecency.
2009-04-23 16:12:51 -05:00
Edward Lee
77cde94ecc Bug 489443 - Places depends on a buggy behavior of SQLite's GROUP_CONCAT. r=dietrich, b191=beltzner
Don't bother GROUP_CONCATing tag titles that are empty. Restructure the BOOK_TAG_SQL #define to be somewhat more readable. Test by adding tags to a uri then renaming the tag to empty and making sure they don't show up in autocmoplete results.
2009-04-23 16:09:58 -05:00
Marco Bonardo
2501083269 Bug 488783 - Tags list no longer sorted (alphabetized) in latest Shiretoko nightly, r=dietrich a=blocking191 2009-04-22 14:22:53 +02:00
Marco Bonardo
bfa3af289e Bug 487777 - History menu is slow and takes ages to open, trunk version, r=dietrich 2009-04-18 14:12:06 +02:00
Shawn Wilsher
0fa0dccf7c Bug 487660 - Places depends on a buggy behavior of SQLite's SUBSTR
Places code wrongly assumed that SUBSTR used a zero-based index instead of a
one-based index.
r=dietrich
2009-04-10 13:51:51 -04:00
Shawn Wilsher
93af15cb71 Bug 487511 - nsINavHistoryObserver has no "onBeforeDeleteURI" callback
r=dietrich
2009-04-10 13:51:40 -04:00
Edward Lee
50e5966da6 Bug 476298 - Switch RecalculateFrecencies to just fix invalid frecencies. r=dietrich
Bug 476300 - Calculate all page frecencies when upgrading/migrating
Bug 482351 - 1 sort operation required by mDBInvalidFrecencies
Create a new method FixInvalidFrecencies that finds invalid (negative) frecencies and recalculates them. Use it for handling creating/migrating DBs as well as recalculating invalid places on daily idle (place frecencies are already estimated by decay). This obviates a few preferences, queries and methods related to recalculating on idle. The test uses mork history with a number of pages that now all get their frecencies calculated on migrate, where before this fix, the test fails with a bunch of pages still with negative frecencies.
2009-04-10 10:24:10 -05:00
Marco Bonardo
e1639848d1 Bug 487594 - 1 sort operation required by mDBGetTags, stop warning for now, r=sdwilsh 2009-04-10 13:39:51 +02:00
Marco Bonardo
656ade206b Bug 486978 - History in library is no longer sorted by visit date but by name, r=dietrich 2009-04-08 14:27:03 +02:00
Marco Bonardo
dc4275f79b Bug 485703 - Hide date containers not containing additional entries compared to previous ones, r=dietrich ui-r=beltzner 2009-04-07 11:45:04 +02:00
Marco Bonardo
709721be3e Bug 422163 - Split History container in the Library (like sidebar BY DATE), r=dietrich ui-r=beltzner 2009-04-03 01:41:20 +02:00
Shawn Wilsher
76f7104f4f Backed out changeset 2d1f7c7c7a2b (bug 483980) 2009-03-27 18:33:01 -04:00
Mark Finkle
4f6e409d0d Bug 483980: Allow history/bookmark observer components to register with a startup category, r=sdwilsh 2009-03-25 15:31:36 -05:00
Marco Bonardo
06b8e82c6e Bug 390614 - Split up the "Older than 6 days" history folder, r=dietrich, pike ui-r=beltzner a=mconnor 2009-03-23 13:42:03 +01:00
Shawn Wilsher
94d2e49103 Disable inefficient query warning (tracked in bug 482351)
rs=dietrich
2009-03-20 17:02:23 -04:00
Dietrich Ayala
688280cc02 backing out due to unit test failures 2009-03-18 19:13:10 -07:00
Marco Bonardo
22338016ad Bug 390614 - Split up the "Older than 6 days" history folder, r=dietrich,pike ui-r=beltzner a=mconnor 2009-03-18 23:38:38 +01:00
Marco Bonardo
266a76ab6d Bug 428690 - Two entries added to history menu when visiting a page that redirects, r=dietrich 2009-03-17 22:00:50 +01:00
Edward Lee
9fed57c6b0 Bug 476299 - Decay frecency values to estimate recalculating frecencies. r=dietrich
Bug 482069 - Awesome bar adaptiveness totally sucks
2009-03-14 01:08:51 -05:00
Marco Bonardo
93a4939182 Bug 482276 - mDBVisitsForFrecency query doesn't use indices for sorting (we can be 7x faster!), r=sdwilsh 2009-03-11 14:34:26 +01:00
Shawn Wilsher
d8f1be3ec1 Bug 480211 - Stop expiring history on every page visit
This makes the history code expire when we flush the temporary table data to
disk instead of every single time we add a visit.  This is also now done on a
background thread as opposed to the main thread, in a transaction with other
work.  In theory, this reduces fsyncs (but in practice, no change was noticed).
Regardless, this removes fsyncs from the main thread, which is always a good
thing to do.
r=dietrich
r=mak
2009-03-03 13:27:01 -05:00
Marco Bonardo
4662ddb1aa Bug 478218 - onQuit expiration is not working, changes are never synced to disk, r=dietrich a=blocking191 2009-02-16 12:09:19 +01:00
Marco Bonardo
a8b322321a bug 474582 - Disable lastModifiedTime check to try fixing test orange on Linux 2009-02-09 21:49:17 +01:00
Marco Bonardo
8af19aa0fb Bug 474582 - With initial migration Shiretoko doesn't import favorites from Internet Explorer 7 anymore, r=dietrich 2009-02-09 19:16:02 +01:00
Edward Lee
4384aa6ca1 Bug 476297 - Switch frecency idle timer to idle-daily observer. r=dietrich 2009-02-07 15:51:19 -06:00
Edward Lee
0a8120c04c Bug 477295 - Clean up unnecessary assignments of NS_ConvertUTF*. r=sdwilsh 2009-02-06 18:18:16 -06:00
Shawn Wilsher
8075a939ec Bug 476292 - Crashes on startup on OS X and Linux [@ nsNavBookmarks::IsRealBookmark] [@ PL_DHashTableOperate]
This fixes a crash when we initialize nsNavBookmarks with a database that is out
of date (the schema version is less than the current one).  Because the bookmark
service initializes the history service in its Init method, and the history
service tries to get the bookmark service if the database needs an upgrade, we
try to re-enter the bookmark service's constructor.  Bad things happen.

Adds a test to ensure that we don't do this again.

r=dietrich
r=MaK77
2009-02-03 21:58:21 -05:00
Jeff Muizelaar
a7c6031376 nsNavHistory::AddDocumentRedirect doesn't handle INTERNAL redirects - bug 475069 r=mak77 2009-01-29 14:26:04 -05:00
Shawn Wilsher
4756beb1ae Bug 449406 - bookmarks of TRANSITION_DOWNLOAD and TRANSITION_EMBED don't show up in the location bar if they've been visited
This adds a new function to nsNavBookmarks that determines if a place id is a
"real" bookmark (not a livemark child).  It also makes a number of places use
this new function to unify and simplify a number of code paths.

Additionally, it changes how frecency is calculated for bookmarked items.  If a
visit is bookmarked (aIsBookmarked is true in CalculateFrecencyInternal), the
visited bookmark bonus is now added for all visits.  The visit bonus was also
cut in half for bookmarks so TRANSITION_BOOKMARK will still end up with the same
value (150).

r=dietrich
r=MaK77
2009-01-27 21:01:33 -05:00
Edward Lee
a0fa2b97c8 Bug 471903 - pref urlbar.autocomplete.enabled is no longer implemented. r=dietrich
Bug 472943 - Two confusable preferences, "browser.urlbar.search.sources" and "browser.urlbar.default.behavior", should be unified

--HG--
rename : toolkit/components/places/tests/autocomplete/test_search_sources.js => toolkit/components/places/tests/autocomplete/test_enabled.js
2009-01-21 02:00:04 -06:00
Fred Jendrzejewski
7d5761cdfa Bug 461047 - Replace nsStringArray with nsTArray<nsString>. r+sr=roc 2009-01-18 21:14:14 +01:00
Robert O'Callahan
1a9b00de4e Backed out changeset 8019a959aade 2009-01-16 22:20:33 +13:00
Fred Jendrzejewski
b79ad6fa55 Bug 461047. Replace nsStringArray with nsTArray<nsString>. r+sr=roc
--HG--
extra : rebase_source : 7a20af24c97867efbb28dafa6a70ea1b4cf00e58
2009-01-16 20:51:04 +13:00
Neil Rashbrook
db65d28baa Bug 470586 - Crash calling removePagesFromHost when sidebar is showing pages grouped by day and site, r=sdwilsh 2009-01-15 15:37:33 +01:00
Ben Turner
0f0d556f13 Backed out changeset 96a66c1a50bd for failing unit tests. 2009-01-14 18:23:21 -08:00
Neil Rashbrook
cc742092ce Bug 470586 Can crash removing all pages from a host when the sidebar is grouped r=sdwilsh 2009-01-14 22:33:37 +00:00
Marco Bonardo
4c89a6229d Bug 454977 - remove INSERT OR REPLACE to avoid error prone paths with views, r=dietrich 2009-01-13 11:48:25 +01:00
Phil Ringnalda
2dff174183 I would not have choosen the weekend before a freeze for so much CLOSED TREE 2009-01-11 20:12:32 -08:00
Edward Lee
e10c805dd2 Bustage fix Bug 463483 (finalized typed query statement) 2009-01-07 16:53:54 -08:00
Edward Lee
dacf203db8 Bug 463483 - matchOnlyTyped no longer honored with special filters. r=dietrich
Bug 463558 - Switch matchOnlyTyped to restrict.typed "~" (default.behavior + 32)
2009-01-07 15:47:56 -08:00
Marco Bonardo
1d07d32522 Bug 466407 - History menu often shows duplicated items, r=dietrich 2009-01-08 00:37:01 +01:00
Dietrich Ayala
9659c3c58d Bug 464486 - lots of bookmark corruption reported via user support (r=marco, sdwilsh) 2009-01-03 09:26:11 -08:00
Marco Bonardo
e6b8308902 Bug 466564 - RemoveDuplicateURIs is not aware of temp views, r=dietrich 2008-12-30 22:42:23 +01:00