Commit graph

177 commits

Author SHA1 Message Date
Andrew McCreight
364251a66e Bug 1544002 - nsNavHistoryResult::mRefreshParticipants should participate in cycle collection. r=mak
It is an array of cycle collected objects.

Differential Revision: https://phabricator.services.mozilla.com/D27337

--HG--
extra : moz-landing-system : lando
2019-04-15 10:11:38 +00:00
Sylvestre Ledru
265e672179 Bug 1511181 - Reformat everything to the Google coding style r=ehsan a=clang-format
# ignore-this-changeset

--HG--
extra : amend_source : 4d301d3b0b8711c4692392aa76088ba7fd7d1022
2018-11-30 11:46:48 +01:00
James Lee
9cc4a04230 Bug 1507809 - Remove 'ExcludeReadOnlyFolders' option from places' queries r=Standard8
Removed all references to 'ExcludeReadOnlyFolders' since Firefox doesn't
(and will not) support read only folders.

Differential Revision: https://phabricator.services.mozilla.com/D12821

--HG--
extra : moz-landing-system : lando
2018-11-26 13:18:05 +00:00
Gabriele Svelto
86d8798959 Bug 1502284 - Extend nsMaybeWeakPtr and make expose it to the rest of the code r=erahm
This adds a way to detect if an instance is holding a weak reference or a
strong one, makes non-critical failures less chatty and adds separate methods
for adding unique and non-unique instances to an array.

Differential Revision: https://phabricator.services.mozilla.com/D11645

--HG--
rename : toolkit/components/places/nsMaybeWeakPtr.h => xpcom/base/nsMaybeWeakPtr.h
extra : moz-landing-system : lando
2018-11-16 09:39:36 +00:00
Doug Thayer
218843ef6a Bug 1426245 - Replace OnItemAdded with bookmark-item-added r=mak
See https://docs.google.com/document/d/1G45vfd6RXFXwNz7i4FV40lDCU0ao-JX_bZdgJV4tLjk/edit#
for further info. This essentially follows the same philosophy as
the onVisits migration.

MozReview-Commit-ID: I4bOvFH0ZQR

Depends on D4605

Differential Revision: https://phabricator.services.mozilla.com/D4606

--HG--
extra : moz-landing-system : lando
2018-10-09 14:47:27 +00:00
Andrew McCreight
837f0af066 Bug 1493737 - Fix many trivial calls to do_QueryInterface r=smaug
If class A is derived from class B, then an instance of class A can be
converted to B via a static cast, so a slower QI is not needed.

Differential Revision: https://phabricator.services.mozilla.com/D6861

--HG--
extra : moz-landing-system : lando
2018-10-01 21:38:01 +00:00
Marco Bonardo
096ba418b1 Bug 1477930 - Remove taggingService HasTags synchronous API. r=Standard8
The tagging API is moving to the bookmarking API, this is part of it.
This will break the tags root open glyph in the Library, for now we don't have
an alternative, we'll re-evaluate in the future in bug 1477934.

Differential Revision: https://phabricator.services.mozilla.com/D2318

--HG--
extra : moz-landing-system : lando
2018-07-26 09:18:56 +00:00
Kris Maglione
0bfdb4329f Bug 1473631: Part 0a - Make preference callbacks typesafe. r=njn
I initially tried to avoid this, but decided it was necessary given the number
of times I had to repeat the same pattern of casting a variable to void*, and
then casting it back in a part of code far distant from the original type.

This changes our preference callback registration functions to match the type
of the callback's closure argument to the actual type of the closure pointer
passed, and then casting it to the type of our generic callback function. This
ensures that the callback function always gets an argument of the type it's
actually expecting without adding any additional runtime memory or
QueryInterface overhead for tracking it.

MozReview-Commit-ID: 9tLKBe10ddP

--HG--
extra : rebase_source : 7524fa8dcd5585f5a31fdeb37d95714f1bb94922
2018-07-06 12:24:41 -07:00
Mark Banner
19a4447068 Bug 1474638 - Remove nsIDownloadHistory::removeAllDownloads. r=mak
Depends on D2056

Differential Revision: https://phabricator.services.mozilla.com/D2057

--HG--
extra : moz-landing-system : lando
2018-07-11 18:10:22 +00:00
Mark Banner
2038dfcf2f Bug 1473533 - Change the nsINavHistoryObserver::OnDeleteVisits visit time parameter to be a boolean for partial removal. r=mak
MozReview-Commit-ID: YbkHjOv7FH

Differential Revision: https://phabricator.services.mozilla.com/D1970

--HG--
extra : moz-landing-system : lando
2018-07-05 13:18:31 +00:00
Doug Thayer
abe46fa52a 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

--HG--
extra : rebase_source : ef8fa174f902e6abd397fb80294e83843120aa81
2018-02-14 09:11:49 -08:00
Dorel Luca
d296624690 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
0a912f9667 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

--HG--
extra : rebase_source : fd064e53e8645c3914188c05e71c8800d6f2174b
2018-02-14 09:11:49 -08:00
Bogdan Tara
d2fb3a8812 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
4dd5940382 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

--HG--
extra : rebase_source : 1190d4f127453cdcb692deb5982e92a93e236b9e
2018-02-14 09:11:49 -08:00
Chris Peterson
2afd829d0f Bug 1469769 - Part 6: Replace non-failing NS_NOTREACHED with MOZ_ASSERT_UNREACHABLE. r=froydnj
This patch is an automatic replacement of s/NS_NOTREACHED/MOZ_ASSERT_UNREACHABLE/. Reindenting long lines and whitespace fixups follow in patch 6b.

MozReview-Commit-ID: 5UQVHElSpCr

--HG--
extra : rebase_source : 4c1b2fc32b269342f07639266b64941e2270e9c4
extra : source : 907543f6eae716f23a6de52b1ffb1c82908d158a
2018-06-17 22:43:11 -07:00
Mark Banner
a801c17c04 Bug 1465347 - Remove the ability to sort results by annotation as it is no longer used. r=mak
MozReview-Commit-ID: bl588eAmkD

Differential Revision: https://phabricator.services.mozilla.com/D1662
2018-06-15 07:39:32 +00:00
Mark Banner
11e49d2982 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

--HG--
extra : rebase_source : 22c01cf5b24468dd76dabe63fa9d1033d4138e54
2018-04-26 09:05:00 +01:00
Mark Banner
d13db67be4 Bug 1460849 - Allow new items (as well as existing) to be skipped in nsNavHistoryFolderResultNode::OnItemMoved if excludeItems is set. r=mak
MozReview-Commit-ID: CUCAsmG99A8

--HG--
extra : rebase_source : d190f2a5d236dfea25fe247142c69f9754b3cd4f
2018-05-11 13:23:41 +01:00
Marco Bonardo
1c9f0c12b7 Bug 834541 - Remove the public History.hasHistoryEntries synchronous API. r=standard8
MozReview-Commit-ID: KJW9YNwoSZb

--HG--
extra : rebase_source : c379c145386478eb0cadfefe20c881f8652e6c2d
2018-05-08 10:26:36 +02:00
Chris Peterson
71422dcaa9 Bug 1457813 - Part 2: Replace non-asserting NS_PRECONDITIONs with MOZ_ASSERTs. r=froydnj
s/NS_PRECONDITION/MOZ_ASSERT/ and reindent

MozReview-Commit-ID: KuUsnVe2h8L

--HG--
extra : source : c14655ab3df2c9b1465dd8102b9d25683359a37b
2018-04-28 12:50:58 -07:00
Marco Bonardo
c77ad1727f Bug 1354531 - Remove PlacesUtils.asyncHistory to make History internals access less convenient. r=standard8
MozReview-Commit-ID: K9oQTJbVAZF

--HG--
extra : rebase_source : 1f9c19911602a2620dace4d85c8174347c8eeb42
2018-05-03 15:08:06 +02:00
Marco Bonardo
fc344005a8 Bug 1453353 - Optimize transition limited history results to not invalidate on every visit. r=standard8
MozReview-Commit-ID: BJVVedtyFuB

--HG--
extra : rebase_source : 3faaf7b224075c9afb321b2668ebcbe836c29ab7
2018-04-17 18:26:00 +02:00
Sebastian Hengst
0819f35e51 Backed out 4 changesets (bug 525063) on request from Andi. a=backout
Backed out changeset 516c4fb1e4b8 (bug 525063)
Backed out changeset 6ff8aaef2866 (bug 525063)
Backed out changeset bf13e4103150 (bug 525063)
Backed out changeset d7d2f08e051c (bug 525063)
2018-04-13 16:01:28 +03:00
Tristan Bourvon
a3a77c0312 Bug 525063 - Initialize uninitialized class attributes in m-c. r=ehsan 2018-04-10 21:11:02 +02:00
Marco Bonardo
a68b7f8aea Bug 1293445 - 5 - Rename RESULTS_AS_TAG_QUERY. r=standard8
MozReview-Commit-ID: 7HwPKkGvAvv

--HG--
extra : rebase_source : e8c8bb963061c23907bacc68082d4e70a609bbf2
2018-04-04 16:14:20 +02:00
Marco Bonardo
df5bf9e86f Bug 1293445 - 4 - Remove RESULTS_AS_TAG_CONTENTS. r=standard8
MozReview-Commit-ID: rybSCGrfnf

--HG--
extra : rebase_source : 86105516beb29be7adb941c8039093451864b44b
2018-04-03 18:32:00 +02:00
Mark Banner
10601884d2 Bug 937808 - Fix showing the last modified date in the library window when a favicon is updated. r=mak
MozReview-Commit-ID: 68WlsvN7bYR

--HG--
extra : rebase_source : 4a711e452ea006004bec55be7fd08188febd9fb1
2018-04-04 12:01:19 +01:00
Marco Bonardo
6881df38e6 Bug 1450245 - When a query uri changes, its contents should live update. r=standard8
MozReview-Commit-ID: 8aixSdJU8jz

--HG--
extra : rebase_source : 13800398e6b6b327542fda6289115b493d7c4557
2018-03-30 16:20:17 +02:00
Marco Bonardo
2adede362f Bug 1446951 - 9 - Move EvaluateQueryForNode. r=standard8
MozReview-Commit-ID: 5YfaRfhcbxY

--HG--
extra : rebase_source : d3e123271879d08c639db7b7be432bbc887aec2d
2018-03-20 12:24:05 +01:00
Marco Bonardo
c340c25882 Bug 1446951 - 8 - Reduce the number of query node constructors to one. r=standard8
MozReview-Commit-ID: ICDxftFlePN

--HG--
extra : rebase_source : 81b47fe3358ab0f6f69f4c29bc27160eff1656a8
2018-03-20 11:29:54 +01:00
Marco Bonardo
fc82abaf16 Bug 1446951 - 7 - Remove some internal use of GetHas* APIs. r=standard8
MozReview-Commit-ID: E4JudYNzLFT

--HG--
extra : rebase_source : 726ef80d87cf10119b3ce156d176eeac13af9e32
2018-03-20 01:07:01 +01:00
Marco Bonardo
8657a476be Bug 1446951 - 6 - Change internal results code to support a single query. r=standard8
MozReview-Commit-ID: 5ceutaSM6Vk

--HG--
extra : rebase_source : 1de38692f1acc5569745d3b6d8aa02c4fd62c229
2018-03-19 11:58:35 +01:00
Marco Bonardo
7ad7257a84 Bug 1446951 - 5 - Remove QueryStringToQueryArray. r=standard8
MozReview-Commit-ID: H6nMhiXgDKA

--HG--
extra : rebase_source : 4ef80310c588ea6ae6e7fd5ae4b9ef201a3ab4bd
2018-03-16 21:36:02 +01:00
Marco Bonardo
fc2611f53a Bug 1446951 - 4 - Make QueriesToQueryString and QueryStringToQueries singular. r=standard8
MozReview-Commit-ID: K8x2x0kARDn

--HG--
extra : rebase_source : 6428ba1b52e5c6e4714ad970b1397e181ed42e72
2018-03-16 18:43:57 +01:00
Marco Bonardo
26f5fb6357 Bug 1446951 - 2 - Change nsINavHistoryQueryResultNode::GetQueries to a query attribute. r=standard8
MozReview-Commit-ID: 77xEeAE13xW

--HG--
extra : rebase_source : 287644bf9fad4960c963dd7e07a4a7fe1f8c569e
2018-03-16 16:20:22 +01:00
Marco Bonardo
240b8426bf Bug 1446951 - 1 - Remove nsINavHistory::ExecuteQueries. r=standard8
MozReview-Commit-ID: ATQLGKzMtnn

--HG--
extra : rebase_source : 17fe8abde9832bd475137eb9b629096bc4d0d1a8
2018-03-16 15:38:05 +01:00
Sylvestre Ledru
fa45a3c670 Bug 1443080 - Use the static call for static methods (not instance) r=Ehsan
MozReview-Commit-ID: JwHh4bzxuTR

--HG--
extra : rebase_source : 5f5e37517aa80c2e7b5933962178d761074886e7
2018-03-16 14:29:15 +01:00
Mark Banner
2155e56144 Bug 1310295 - Make left pane queries virtual in the Places Library window. r=kitcambridge,mak
MozReview-Commit-ID: DcEMAlrXu8R

--HG--
extra : rebase_source : c98e6a50702ef0c238d036fa2a26f4a6ac9f15af
2018-02-16 20:30:04 +00:00
Dorel Luca
7065341d2f Backed out 2 changesets (bug 1310295) for Mochitest and TV failures on browser/components/places/tests/browser/browser_bookmark_folder_moveability.js
Backed out changeset a277657bfffa (bug 1310295)
Backed out changeset b1af75c617ea (bug 1310295)

--HG--
extra : rebase_source : cb7317f5afa7c828ec3b6d9b7679b474fa9cf5da
2018-03-14 18:23:46 +02:00
Mark Banner
80abee119b Bug 1310295 - Make left pane queries virtual in the Places Library window. r=kitcambridge,mak
MozReview-Commit-ID: DcEMAlrXu8R

--HG--
extra : rebase_source : a956958f5c9adde0ee775e9bc918a8970564bbb7
2018-02-16 20:30:04 +00:00
Coroiu Cristina
0f6841e0d2 Backed out 2 changesets (bug 1443080) for spidermonkey build bustage at build/src/js/src/jit/BaselineCacheIRCompiler.cpp
Backed out changeset 7d509bb8a35d (bug 1443080)
Backed out changeset 53bdcd5937cd (bug 1443080)

--HG--
extra : rebase_source : 59b5350d2959c0b065aedd34bfe8337216c0ea4b
2018-03-14 11:13:21 +02:00
Sylvestre Ledru
c07eb73986 Bug 1443080 - Use the static call for static methods (not instance) r=Ehsan
MozReview-Commit-ID: JwHh4bzxuTR

--HG--
extra : rebase_source : 17c91bfd7241e3e522b1413b6e544df74f5361a0
2018-03-05 13:43:54 +01:00
Marco Bonardo
1ee2c065a6 Bug 1433307 - Remove synchronous Bookmarks::getKeywordForBookmark. r=standard8
MozReview-Commit-ID: 1XR5N2WJ7P7

--HG--
extra : rebase_source : d12756b14dd8917acd49676c43de9e05d0d3aec8
2018-02-09 17:10:26 +01:00
Mark Banner
e68518807c Bug 1423896 - Make the new All Bookmarks folder query only update on the mobile folder status change for better performance. r=mak
MozReview-Commit-ID: 4sIR6d0ZabJ

--HG--
extra : rebase_source : 34c250b697160897f1cbc4cbcc3351d57d9d19b6
2018-02-05 17:19:26 +00:00
Mark Banner
362505f227 Bug 1423896 - Make the All Bookmarks folder for the left pane of the Library a virtual query. r=mak
MozReview-Commit-ID: HzJ9y1fiEz1

--HG--
extra : rebase_source : 27b0280e9dfef2626d187f9b8a81f23e4583302f
2017-12-07 14:15:39 +00:00
Coroiu Cristina
1c85c04c62 Backed out 5 changesets (bug 1423896) for bustage at /src/toolkit/components/places/nsNavHistoryResult.cpp on a CLOSED TREE
Backed out changeset 4012bc74e900 (bug 1423896)
Backed out changeset 12239646395f (bug 1423896)
Backed out changeset abf61cd5fb77 (bug 1423896)
Backed out changeset 569173c95238 (bug 1423896)
Backed out changeset 6401e950298d (bug 1423896)
2018-02-07 14:07:31 +02:00
Mark Banner
7ed82100ce Bug 1423896 - Make the new All Bookmarks folder query only update on the mobile folder status change for better performance. r=mak
MozReview-Commit-ID: 4sIR6d0ZabJ

--HG--
extra : rebase_source : d33eaf982c469128ed4a9ac8e27079426426ab2c
2018-02-05 17:19:26 +00:00
Mark Banner
7785b2e489 Bug 1423896 - Make the All Bookmarks folder for the left pane of the Library a virtual query. r=mak
MozReview-Commit-ID: HzJ9y1fiEz1

--HG--
extra : rebase_source : 27b0280e9dfef2626d187f9b8a81f23e4583302f
2017-12-07 14:15:39 +00:00
Marco Bonardo
52f4c19c6b 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

--HG--
extra : rebase_source : 66eea325825007266e08424630b092b9e8d75b67
2018-01-24 17:55:42 +01:00