Commit Graph

174 Commits

Author SHA1 Message Date
Doug Thayer
cc2403e3ed Bug 1340498 - Update onVisits uses to 'page-visited' r=mak
Consuming the new 'page-visited' notification was fairly trivial,
since it was already brought over to onVisits. There's not much to
say about this other than that I'm a little bit uncertain about
all the hoops we have to jump through to get a JSContext and
GlobalObject from History.cpp (which is discussed in the earlier
commit in the series).

MozReview-Commit-ID: LHaBWSylyLI
2018-02-14 09:11:49 -08:00
Dorel Luca
1dbfe28bab Backed out 5 changesets (bug 1340498) for build bustage due to conflicts with bug 1470325. a=backout
Backed out changeset 28bedb658af4 (bug 1340498)
Backed out changeset f950a2310e26 (bug 1340498)
Backed out changeset 5fcd31c65fe0 (bug 1340498)
Backed out changeset 515bb5e24dd7 (bug 1340498)
Backed out changeset 79a8619bd3e2 (bug 1340498)
2018-06-27 14:05:20 +03:00
Doug Thayer
01f61c42a3 Bug 1340498 - Update onVisits uses to 'page-visited' r=mak
Consuming the new 'page-visited' notification was fairly trivial,
since it was already brought over to onVisits. There's not much to
say about this other than that I'm a little bit uncertain about
all the hoops we have to jump through to get a JSContext and
GlobalObject from History.cpp (which is discussed in the earlier
commit in the series).

MozReview-Commit-ID: LHaBWSylyLI
2018-02-14 09:11:49 -08:00
Bogdan Tara
b9179b41dc Backed out 5 changesets (bug 1340498) for build bustages on nsDOMCSSAttrDeclaration.h CLOSED TREE
Backed out changeset 9ebcdb66ceff (bug 1340498)
Backed out changeset 63321093bb70 (bug 1340498)
Backed out changeset f8c799971f81 (bug 1340498)
Backed out changeset 21d8c1fbbbd1 (bug 1340498)
Backed out changeset fa40c179eb0d (bug 1340498)
2018-06-26 21:31:09 +03:00
Doug Thayer
2b253c73ae Bug 1340498 - Update onVisits uses to 'page-visited' r=mak
Consuming the new 'page-visited' notification was fairly trivial,
since it was already brought over to onVisits. There's not much to
say about this other than that I'm a little bit uncertain about
all the hoops we have to jump through to get a JSContext and
GlobalObject from History.cpp (which is discussed in the earlier
commit in the series).

MozReview-Commit-ID: LHaBWSylyLI
2018-02-14 09:11:49 -08:00
arthur.iakab
1258a01769 Backed out 5 changesets (bug 1340498) for build bustages on SelectionChangeListener.h on a CLOSED TREE
Backed out changeset c89b86622d38 (bug 1340498)
Backed out changeset b270d4a01986 (bug 1340498)
Backed out changeset 8ed32495b46f (bug 1340498)
Backed out changeset df9a67c58183 (bug 1340498)
Backed out changeset a5977e0708ea (bug 1340498)
2018-06-26 07:59:01 +03:00
Doug Thayer
22f01d15a0 Bug 1340498 - Update onVisits uses to 'page-visited' r=mak
Consuming the new 'page-visited' notification was fairly trivial,
since it was already brought over to onVisits. There's not much to
say about this other than that I'm a little bit uncertain about
all the hoops we have to jump through to get a JSContext and
GlobalObject from History.cpp (which is discussed in the earlier
commit in the series).

MozReview-Commit-ID: LHaBWSylyLI
2018-02-14 09:11:49 -08:00
arthur.iakab
81607b246c Backed out 5 changesets (bug 1340498) for build bustages on SelectionChangeListener.h on a CLOSED TREE
Backed out changeset fae677707059 (bug 1340498)
Backed out changeset 2adde1d1742a (bug 1340498)
Backed out changeset a444ab9cefde (bug 1340498)
Backed out changeset e2ac49ef2034 (bug 1340498)
Backed out changeset 6465310b3de9 (bug 1340498)
2018-06-26 03:53:21 +03:00
Doug Thayer
18b440efb6 Bug 1340498 - Update onVisits uses to 'page-visited' r=mak
Consuming the new 'page-visited' notification was fairly trivial,
since it was already brought over to onVisits. There's not much to
say about this other than that I'm a little bit uncertain about
all the hoops we have to jump through to get a JSContext and
GlobalObject from History.cpp (which is discussed in the earlier
commit in the series).

MozReview-Commit-ID: LHaBWSylyLI
2018-02-14 09:11:49 -08:00
Mark Banner
bcb5601b9f Bug 824502 - Change folder=<id> to parent=<guid> in Places' bookmark queries. r=mak
This allows queries to be stable across devices, and requires less work to obtain the ids.

MozReview-Commit-ID: 5KAKKags7o9
2018-04-26 09:05:00 +01:00
Mark Banner
ef10b7a31e Bug 478035 - Move the code for obtaining the places built-in folder ids from nsNavBookmarks to Database. r=mak
MozReview-Commit-ID: 74we2Z47xY
2018-04-18 15:53:07 +01:00
Marco Bonardo
63caae06bd Bug 1452376 - Replace GetDescendantFolders with a recursive subquery. r=standard8
MozReview-Commit-ID: 7eXfqzX2qLl
2018-04-10 00:20:36 +02:00
Mark Banner
c674e1b442 Bug 1432435 - Remove synchronous Bookmarks::getBookmarkURI. r=mak
MozReview-Commit-ID: GSQOoSoeibq
2018-03-23 17:32:37 +00:00
Marco Bonardo
b18d35da18 Bug 1446951 - 5 - Remove QueryStringToQueryArray. r=standard8
MozReview-Commit-ID: H6nMhiXgDKA
2018-03-16 21:36:02 +01:00
Mark Banner
f190c32a0e Bug 1437516 - Remove nsINavHistoryService/nsINavBookmarksService::runInBatchMode. r=mak
MozReview-Commit-ID: D1H3xdjpMAx
2018-03-13 16:19:33 +00:00
Kit Cambridge
2581136b40 Bug 1199077 - Add Places APIs to store the bookmarks sync ID and last sync time. r=mak,tcsc
MozReview-Commit-ID: 7yEGZl5pIru
2018-03-03 11:27:58 -08:00
Kit Cambridge
1e89ded632 Bug 1199077 - Split change sources for automatic and manual bookmark restores. r=mak
MozReview-Commit-ID: 1glcCPj2X90
2018-03-01 13:37:13 -08:00
Ursula Sarracini
09e27a942f Bug 1440276 - Activity Stream spikes after Bookmark activity, triggering lots of main thread work r=mak
MozReview-Commit-ID: BoCZEDXpSKD
2018-02-28 11:17:42 -05:00
Marco Bonardo
571f75dc13 Bug 1432425 - Remove synchronous Bookmarks::RemoveFolderChildren. r=kitcambridge,standard8
MozReview-Commit-ID: GPrNcmEIgpZ
2018-02-25 21:44:41 +01:00
Marco Bonardo
d1b2359a28 Bug 1432426 - Remove synchronous Bookmarks::moveItem. r=standard8
MozReview-Commit-ID: Bg5Py6aiEDw
2018-02-24 16:10:47 +01:00
Marco Bonardo
c4f1208792 Bug 656936 - Remove Bookmarks::GetRemoveFolderTransaction. r=standard8
MozReview-Commit-ID: DLyjzC7ODyB
2018-02-23 17:27:43 +01:00
Marco Bonardo
f485280949 Bug 1432427 - Remove synchronous Bookmarks::insertSeparator. r=standard8
MozReview-Commit-ID: 2rZ1Vr1kwhi
2018-02-23 15:50:28 +01:00
Marco Bonardo
32e847a68e Bug 1433307 - Remove synchronous Bookmarks::getKeywordForBookmark. r=standard8
MozReview-Commit-ID: 1XR5N2WJ7P7
2018-02-09 17:10:26 +01:00
Marco Bonardo
cb8b543fb5 Bug 1434607 - Remove synchronous Bookmarks::setKeywordForBookmark. r=standard8
MozReview-Commit-ID: 3thDN9FIDgm
2018-02-01 11:02:41 +01:00
Marco Bonardo
a6d907b810 Bug 1313188 - Multiple bookmark keywords for same (uri, postData) pair possible. r=kitcambridge,standard8
MozReview-Commit-ID: 662vWkemAMq
2018-02-06 15:58:31 +01:00
Marco Bonardo
cdce0356dc Bug 1437040 - Remove synchronous Bookmarks::GetItemIndex. r=standard8
MozReview-Commit-ID: GpNkBI1Qe42
2018-02-09 15:23:21 +01:00
Marco Bonardo
0b62f49b75 Bug 1432434 - Remove Bookmarks::getItemDateAdded and setItemDateAdded. r=kitcambridge
MozReview-Commit-ID: XVoil1CK7c
2018-02-08 23:24:38 +01:00
Mark Banner
d4f537f98d Bug 1436966 - Remove the bookmark-observers & history-observers category listeners. r=mak
MozReview-Commit-ID: 2dsyxZG98IR
2018-02-09 11:21:14 +00:00
Marco Bonardo
cd64d76411 Bug 539517 - remove synchronous Bookmarks::SetItemIndex API. r=standard8
MozReview-Commit-ID: 20kwLPazqPC
2018-02-08 18:45:00 +01:00
Marco Bonardo
60e8a725bb Bug 1433304 - Remove synchronous Bookmarks::GetIdForItemAt. r=standard8
MozReview-Commit-ID: HZ2AiPgFawN
2018-02-08 15:40:23 +01:00
Marco Bonardo
c209f6c50e Bug 1433305 - Remove synchronous Bookmarks::GetItemLastModified. r=standard8
MozReview-Commit-ID: 5bQfv3SqaR3
2018-02-07 18:23:06 +01:00
Marco Bonardo
1d165cad60 Bug 1432437 - Remove synchronous changeBookmarkURI. r=standard8
MozReview-Commit-ID: Jy76eKCN7wp
2018-01-24 12:13:02 +01:00
Dorel Luca
e19a743ab2 Backed out changeset 8ebfca2b0c21 (bug 1432437) for Xpcshell test failure on toolkit/components/places/tests/unit/test_sync_utils.js 2018-01-26 01:43:17 +02:00
Marco Bonardo
ed36d30d49 Bug 1432439 - Remove getBookmarkIdsForURI. r=standard8
MozReview-Commit-ID: FoXR3IclKQk
2018-01-23 13:12:23 +01:00
Marco Bonardo
3cbca9cebe Bug 1432437 - Remove synchronous changeBookmarkURI. r=standard8
MozReview-Commit-ID: Jy76eKCN7wp
2018-01-24 12:13:02 +01:00
Marco Bonardo
23e81e710a Bug 1432746 - Some folders in the Library may not show their bookmark children. r=standard8
Don't use the parent node options when creating new folder nodes, since they should retain
their original options.
Additionally, we can filter nodes in the queries rather than building a lot of nodes that
will be filtered out.

MozReview-Commit-ID: MmlGDe5QgV
2018-01-24 17:55:42 +01:00
Marco Bonardo
443dfd2029 Bug 1432436 - Remove getItemType. r=standard8
MozReview-Commit-ID: 1gnQzJkYZgH
2018-01-23 16:02:03 +01:00
Marco Bonardo
e312491935 Bug 1428342 - Make Places queries directly inherit options from their parent. r=standard8
Rather then trying to guess options from the parent or the root node, make query nodes directly
inherit some options from their parent.

MozReview-Commit-ID: 1YgDjrrMqGY
2017-12-14 10:06:37 -06:00
Chris Peterson
677bf4030c Bug 1428535 - Add missing override specifiers to overridden virtual functions. r=froydnj
MozReview-Commit-ID: DCPTnyBooIe
2017-11-05 19:37:28 -08:00
Doug Thayer
5394d406e4 Bug 1421703 - replace onVisit with onVisits r=mak
There's a heavy enough overhead to going through XPConnect for
every observer for every visit on the nsINavHistoryObserver
interface, so this patch reduces that by replacing the single-
visit notification with one which accepts an array of visits.

Some notes: To avoid problems with the orderings of the various
ways in which we notify about visits, we have to send our bulk
onVisits notification before doing any of the others. This does
mean it technically behaves slightly different than the prior
approach of interleaving the notifications, but I can't find any
way in which this has any consequences to the end result, and it
doesn't break any tests.

MozReview-Commit-ID: GdeooH8mCkg
2017-12-20 14:27:24 -08:00
Kit Cambridge
8767b96115 Bug 1417101 - Remove the annotation observer from the bookmarks service. r=mak
Since `SetItemAnnotation` already queries `moz_bookmarks`, we can fetch
and pass the changed bookmark's info directly to
`nsNavBookmarks::NotifyItemChanged`, without going through the anno
observer.

This patch refactors the internal `Set*` methods to receive an optional
`BookmarkData` for item annotation changes, and fire `OnItemChanged`
notifications after notifying anno observers. `NotifyItemChanged` also
updates the bookmark's last modified time if requested.

MozReview-Commit-ID: Hz5qiOmAjsD
2017-11-16 16:49:03 -08:00
Noemi Erli
3f6bbbe3de Backed out changeset e0eab399db59 (bug 1417101) for Static errors in toolkit/components/places/target r=backout on a CLOSED TREE 2017-11-18 02:48:42 +02:00
Kit Cambridge
8c11514fef Bug 1417101 - Remove the annotation observer from the bookmarks service. r=mak
Since `SetItemAnnotation` already queries `moz_bookmarks`, we can fetch
and pass the changed bookmark's info directly to
`nsNavBookmarks::NotifyItemChanged`, without going through the anno
observer.

This patch refactors the internal `Set*` methods to pass an optional
`BookmarkData` from `SetItemAnnotation`, and fire `OnItemChanged`
notifications after notifying anno observers. `NotifyItemChanged` also
updates the bookmark's last modified time if requested.

MozReview-Commit-ID: Hz5qiOmAjsD
2017-11-16 16:49:03 -08:00
Mark Banner
f3d066d2c6 Bug 1405317 - When inserting trees of bookmarks, avoid updating the last modified date when marking annotations. r=mak
MozReview-Commit-ID: Ik8DKwtiXoM
2017-10-03 21:18:10 +01:00
Mark Banner
341e31f32f Bug 1371679 - Use skipDescendantsOnItemRemoval in nsNavHistoryResult to improve performance when deleting bookmark folders. r=mak
MozReview-Commit-ID: FaotgKVaEmH
2017-08-01 12:40:40 +01:00
Sebastian Hengst
2afaed5968 Backed out changeset 409b4345b85a (bug 1371679) as requested by Standard8. r=backout 2017-08-10 17:48:02 +02:00
Mark Banner
041e6b076d Bug 1388250 - Remove old sync isBookmarked and getBookmarkedURIFor APIs from nsINavBookmarksService. r=Paolo
Also remove IsBookmarkedInDatabase(), mItemCount, RecursiveFindRedirectedBookmark(), UpdateKeywordsForRemovedBookmark() from nsNavBookmarks as they aren't used anywhere.

MozReview-Commit-ID: 4cZXAdRuVoF
2017-08-08 07:58:59 +01:00
Mark Banner
ccd88e40ed Bug 1371679 - Use skipDescendantsOnItemRemoval in nsNavHistoryResult to improve performance when deleting bookmark folders. r=mak
MozReview-Commit-ID: FaotgKVaEmH
2017-08-01 12:40:40 +01:00
Marco Bonardo
c3c9c995c4 Bug 1380302 - Fix -Wmaybe-uninitialized warnings in Places. r=adw
MozReview-Commit-ID: 2HxDMhYzaib
2017-07-12 21:29:58 +02:00
Kit Cambridge
4a92ee05e5 Bug 1379412 - Don't fall back to the history visit title when fetching folder children. r=mak
MozReview-Commit-ID: 3ynWSLAPDZ3
2017-07-10 11:27:39 -07:00