Commit Graph

4121 Commits

Author SHA1 Message Date
Thom Chiovoloni
3e1366bdf6 Bug 1388149 - Make PlacesUtils.history.insertMany respect provided GUIDs r=markh
MozReview-Commit-ID: 7g6uABtHKg2

--HG--
extra : rebase_source : 0b43e026ad3de514d2ffbc56568bf3f4e3e17126
2017-08-07 16:01:10 -04:00
Mark Banner
17760ce731 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

--HG--
extra : rebase_source : 2c08a09de48cfb06c3e8db261dfe7ea1b1526e10
2017-08-08 07:58:59 +01:00
Mark Banner
0b94d0fe3e Bug 1385733 - Improve the performance of async transactions when bookmarking all tabs. r=adw
Optimise adding a folder with child bookmarks for transactions by allowing PlacesTransactions.NewFolder to take children details and use insertTree rather than needing separate NewFolder and then multiple NewBookmark transactions.

MozReview-Commit-ID: 6s9j0pbsiUB

--HG--
extra : rebase_source : 0b4029905dc76a0ca49d16a7e71c85f1f07b8e2d
2017-08-03 18:32:42 +01:00
Dan Banner
97335e3052 Bug 1382963 - Remove the require-await eslint rule from Places. r=standard8
MozReview-Commit-ID: LPWSUXQSPyH

--HG--
extra : rebase_source : 311f64f64c18146abab7e5c3b04aaec4ee87b756
2017-08-07 15:30:48 +01:00
Nicholas Nethercote
f941156987 Bug 1386600 - Change nsIStringBundle methods to return |AString| instead of |wstring|. r=emk,sr=dbaron.
This removes about 2/3 of the occurrences of nsXPIDLString in the tree. The
places where nsXPIDLStrings are null-checked are replaced with |rv| checks.

The patch also removes a couple of unused declarations from
nsIStringBundle.idl.

Note that nsStringBundle::GetStringFromNameHelper() was merged into
GetStringFromName(), because they both would have had the same signature.

--HG--
extra : rebase_source : ac40bc31c2a4997f2db0bd5069cc008757a2df6d
2017-08-04 14:40:52 +10:00
Masatoshi Kimura
8b713b2b0f Bug 1375125 - Stop using nsILocalFile in the tree. r=froydnj
This mechanically replaces nsILocalFile with nsIFile in
*.js, *.jsm, *.sjs, *.html, *.xul, *.xml, and *.py.

MozReview-Commit-ID: 4ecl3RZhOwC

--HG--
extra : rebase_source : 412880ea27766118c38498d021331a3df6bccc70
2017-08-04 17:49:22 +09:00
Masatoshi Kimura
f143125cc2 Bug 1326520 - Rename nsIURI.path to pathQueryRef. r=valentin.gosu
MozReview-Commit-ID: DqJdTGopR9G

--HG--
extra : rebase_source : e8c9eb03468c075b79013b6e0bd8b367229c24cd
2017-07-29 20:50:21 +09:00
Marco Bonardo
850d83289e Bug 1386540 - Remove deprecated and unused methods from PlacesUtils. r=standard8
MozReview-Commit-ID: 2am7bx3pGRc

--HG--
extra : rebase_source : f25f32817e045f7c5ec1bc8882db848f49a6674f
2017-08-02 14:24:16 +02:00
Rajesh Kathiriya
48e6bc2124 Bug 1374620 - Enabled the ESLint dot-notation rule across mozilla-central r=standard8
MozReview-Commit-ID: FadrI2li43G

--HG--
extra : rebase_source : b455e846ab79c8141150517e67e542e3e06d630e
2017-07-25 23:45:41 +05:30
Mark Banner
20ffb68786 Bug 1094812 - Remove now unused PlacesTransactions.RemoveBookmarksForUrls. r=mak
MozReview-Commit-ID: HFAQCIbbT5E

--HG--
extra : rebase_source : 35ec6a1d25f2ce4e07f5f99f0f3fa064462a9c29
2017-07-31 16:26:21 +01:00
Wes Kocher
5699744165 Merge m-c to autoland, a=merge
MozReview-Commit-ID: F1FR0irfoJU
2017-08-01 13:18:18 -07:00
Andrew Osmond
833d108847 Bug 1383404 - Part 5. PageIconProtocolHandler should set the content length when creating a channel. r=mak 2017-08-01 06:59:12 -04:00
tiago
7a9b4d8b79 Bug 1336518 - Move Sync history queries into PlacesSyncUtils. r=kitcambridge
MozReview-Commit-ID: Lood8ivLeJf

--HG--
extra : rebase_source : dcb8207378afc6ce2995acfe4f235f3ed728a188
2017-07-30 17:46:56 -03:00
Wes Kocher
40c3480d89 Merge inbound to central, a=merge
MozReview-Commit-ID: JNxfwQh0cac

--HG--
rename : gfx/layers/wr/WebRenderCompositableHolder.h => gfx/layers/wr/AsyncImagePipelineManager.h
2017-07-28 17:40:43 -07:00
Nicholas Nethercote
49eb219ff5 Bug 1383982 (attempt 2) - Introduce a general mechanism for measuring memory usage of graph-like structures. r=erahm.
--HG--
extra : rebase_source : 7075f9570a4262158351ce9ac3ca8360ea4d5394
2017-07-28 20:10:04 +10:00
Sebastian Hengst
9077ac8886 Backed out changeset a57d8f30d1bf (bug 1383982) for build bustage at nsGlobalWindow.cpp:13826: 'class nsWindowSizes' has no member named 'mMallocSizeOf'. r=backout 2017-07-28 09:50:48 +02:00
Nicholas Nethercote
5c3abe8aab Bug 1383982 - Introduce a general mechanism for measuring memory usage of graph-like structures. r=erahm.
All the SizeOf{In,Ex}cludingThis() functions take a MallocSizeOf function
which measures memory blocks. This patch introduces a new type, SizeOfState,
which includes a MallocSizeOf function *and* a table of already-measured
pointers, called SeenPtrs. This gives us a general mechanism to measure
graph-like data structures, by recording which nodes have already been
measured. (This approach is used in a number of existing reporters, but not in
a uniform fashion.)

The patch also converts the window memory reporting to use SizeOfState in a lot
of places, all the way through to the measurement of Elements. This is a
precursor for bug 1383977 which will measure Stylo elements, which involve
Arcs.

The patch also converts the existing mAlreadyMeasuredOrphanTrees table in the
OrphanReporter to use the new mechanism.

--HG--
extra : rebase_source : 2c23285f8b6c3b667560a9d14014efc4633aed51
2017-07-28 15:03:44 +10:00
Kit Cambridge
5c9899d993 Bug 1383621 - Use the async bookmarks API to insert the mobile query. r=markh
MozReview-Commit-ID: KaeXwFHEg7K

--HG--
extra : rebase_source : b67f8662e221614041aad391d71bdf381ce4e8b0
2017-07-24 16:45:17 -07:00
Carsten "Tomcat" Book
c4e7d0a39e merge mozilla-central to autoland
--HG--
extra : rebase_source : 0f0f666839de9bee40c2d469fd8dd7e63b266f69
2017-07-27 11:38:15 +02:00
Carsten "Tomcat" Book
d360d49d2a merge mozilla-inbound to mozilla-central a=merge 2017-07-27 10:57:25 +02:00
Wes Kocher
ad35031103 Merge m-c to inbound, a=merge
MozReview-Commit-ID: LhiAcCiFBus
2017-07-26 18:33:18 -07:00
Marco Bonardo
4a6d03679e Bug 1382291 - Intermittent browser/components/places/tests/browser/browser_markPageAsFollowedLink.js. r=adw
MozReview-Commit-ID: KBukQFU9WPn

--HG--
extra : rebase_source : bcad7bf7011f510f574c49b168bb4b4ccf5cc8f2
2017-07-26 13:52:24 +02:00
Kit Cambridge
932f724512 Bug 1382363 - Change most uses of promiseDBConnection to withConnectionWrapper in PlacesSyncUtils. r=markh
The read-only `promiseDBConnection` can return stale data if writes
are still pending. This patch changes `PlacesSyncUtils` to use the
read-write `withConnectionWrapper` instead, ensuring we fetch
up-to-date info.

I didn't change `fetchURLFrecency` and `fetchGuidsWithAnno`.
`fetchURLFrecency` is only used to set the sort index for history
records, and frecency is recalculated in the background, anyway.
`fetchGuidsWithAnno` is only used in tests.

MozReview-Commit-ID: Gq16sNm7K2e

--HG--
extra : rebase_source : e597233dae23d7582f34faeb83365896b6c22a75
2017-07-25 11:53:45 -07:00
Bevis Tseng
95b18d794e Bug 1382172 - Name nsITimerCallback instances in native implementation. r=billm
--HG--
extra : rebase_source : 84de1abfcc30a6964144c2e6718a508c71027b65
2017-07-27 02:18:20 +08:00
Marco Bonardo
0d8364d937 Bug 1371611 - UnifiedComplete::LoadPrefs is slow. r=Paolo
MozReview-Commit-ID: G0r2aogwvyb

--HG--
extra : rebase_source : 0085dc3fd540b7e74c89a2e1d01148fcf1003775
2017-07-26 18:47:35 +02:00
Mark Banner
d38cdb7249 Bug 1371679 - Use skipDescendantsOnItemRemoval in nsNavHistoryResult to improve performance when deleting bookmark folders. r=mak
MozReview-Commit-ID: FaotgKVaEmH

--HG--
extra : rebase_source : f75a5ab77bdfd887dfe432e3a994b3c902b0b291
2017-08-01 12:40:40 +01:00
Kartikaya Gupta
ba4b3b9101 Bug 1384233 - Remove SizePrintfMacros.h. r=froydnj
We have a minimum requirement of VS 2015 for Windows builds, which supports
the z length modifier for format specifiers. So we don't need SizePrintfMacros.h
any more, and can just use %zu and friends directly everywhere.

MozReview-Commit-ID: 6s78RvPFMzv

--HG--
extra : rebase_source : 009ea39eb4dac1c927aa03e4f97d8ab673de8a0e
2017-07-26 16:03:57 -04:00
Marco Bonardo
c17b373905 Bug 1376676 - Avoid a race condition where the History.cpp cloned connection may not be closed. r=asuth
MozReview-Commit-ID: YXmasMLBg4

--HG--
extra : rebase_source : 12b4876363037c73c29435a8ad7b6c9cf8b73846
2017-07-24 23:08:44 +02:00
Marco Bonardo
84f62fe35b Bug 1383639 - Fix and add missing Places tests to manifests. r=adw
MozReview-Commit-ID: ImH7ob2tLxh

--HG--
extra : rebase_source : b48ae45a22596bd9048da961a14cdcac526f1bb7
2017-07-24 17:28:20 +02:00
Thom Chiovoloni
23b85ab316 Bug 1337978 - Unify the multiple notions of 'weak upload' in sync. r=kitcambridge,markh
MozReview-Commit-ID: 5vTCAhUfMzm

--HG--
extra : rebase_source : fea6783352868e15481a751923aac2a166ad5506
2017-07-18 14:18:04 -04:00
Marco Bonardo
ddce39c3bd Bug 1378035 - Allow the urlbar prefs to define different buckets for different contexts. r=Paolo
MozReview-Commit-ID: 2O58OkhFygl

--HG--
extra : rebase_source : 56773db404ae260ddb6ee1191d6432fe95567a30
2017-07-21 15:01:56 +02:00
Sebastian Hengst
804a36e668 Backed out changeset f5922a7ed25a (bug 1374620) for failing eslint at telemetry/tests/unit/test_TelemetrySend.js:358: ["os"] is better written in dot notation. r=backout 2017-07-31 14:44:34 +02:00
Rajesh Kathiriya
22dfa54ef4 Bug 1374620 - Enabled the ESLint dot-notation rule across mozilla-central r=standard8
MozReview-Commit-ID: FadrI2li43G

--HG--
extra : rebase_source : 5992bdde34bcc2421350433bc8c1e498a6bba848
2017-07-25 23:45:41 +05:30
Marco Bonardo
3a8adcdf32 Bug 1275878 - Part 2: Replace places-will-close-connection notification with a shutdown blocker. r=adw
MozReview-Commit-ID: A2sn2OreX4K

--HG--
extra : rebase_source : 6c9dd729c2aad0b5870f0cbf1e565a33376c4f56
2016-05-19 23:50:27 +02:00
Marco Bonardo
12415f39f7 Bug 1275878 - Part 1: move back clear history operations to History.clear(). r=adw
MozReview-Commit-ID: DbEJgKbTxd7

--HG--
extra : rebase_source : f257f99aff6eebc44fac46d0e2d2579dae50ace2
2016-05-17 09:35:45 +02:00
Marco Bonardo
554c57d734 Bug 1383027 - Remove a test use of PlacesUtils.getBookmarksForURI. r=past
MozReview-Commit-ID: FLiqzgoTTHZ

--HG--
extra : rebase_source : 20c708d001111ee9c38b667110bccc2746d9df88
2017-07-21 13:50:06 +02:00
Mark Banner
de21cc127c Bug 1381049 - Fix cases of async function definitions without await in Places code. r=mak
MozReview-Commit-ID: 3G3BD5SrJ8b

--HG--
extra : rebase_source : 29d06e076a7fda3cf9b2d6089cefb7bd43de1a03
2017-07-14 17:32:22 +01:00
Marco Bonardo
3c6bd16b59 Bug 1347427 - Remove intermittent browser_bug248970.js test, cause it's not testing anything useful. r=standard8
MozReview-Commit-ID: 6P6UixK13Ns

--HG--
extra : rebase_source : 2f31ead6fc3f4d025296e1e409421558d410a6c7
2017-07-17 21:59:41 +02:00
Kit Cambridge
18e2c40fe8 Bug 1380718 - Include the operation name in bookmark validation errors. r=mak
MozReview-Commit-ID: H4vp6ZULSq7

--HG--
extra : rebase_source : a3bb16fd51700d9de0d31bf574a82e5ce4dfca94
2017-07-13 10:09:49 -07:00
Mark Banner
e3138a222a Bug 1292426 - Rewrite browser_visituri_privatebrowsing_perwindowpb.js to use modern async facilities and ensure we await on the final check to avoid intermittents. r=mak
MozReview-Commit-ID: G2znd7sq5x5

--HG--
extra : rebase_source : b9c47527e4f7e3ad16a0dc5dfde6a85ed7c146f7
2017-07-17 12:31:12 +01:00
Mayank Srivastav
a78d4768e0 Bug 1354032 - Remove Places analyze call and use PRAGMA optimize(0x02) for optimizations. r=mak
MozReview-Commit-ID: AOkh3vOKD4E

--HG--
extra : rebase_source : a8a02b6fc4e5bc607f04c10192edef78f1109749
2017-05-30 19:14:39 +05:30
Sebastian Hengst
86c27b0a76 Backed out changeset 03b8979ccf32 (bug 1354032) for failing database-related mochitests, e.g. browser/components/resistfingerprinting/test/mochitest/test_geolocation.html. r=backout on a CLOSED TREE 2017-07-15 15:51:28 +02:00
Mayank Srivastav
1404e8bc7e Bug 1354032 - Remove Places analyze call and use PRAGMA optimize(0x02) for optimizations. r=mak
MozReview-Commit-ID: AOkh3vOKD4E

--HG--
extra : rebase_source : 90f13425b7d5aec779787612781c2a49dd005037
2017-05-30 19:14:39 +05:30
Kit Cambridge
3da5c62b82 Bug 1380740 - Remove remaining visit title fallbacks for untitled bookmarks. r=mak
MozReview-Commit-ID: 1f4HMWzxXat

--HG--
extra : rebase_source : cba8855f18a12aa48ff9cd0b10036297738237b2
2017-07-13 19:08:40 -07:00
Ryan VanderMeulen
019bd042fc Merge autoland to m-c. a=merge 2017-07-14 09:16:03 -04:00
Marco Bonardo
3b84e3b5df Bug 1359899 - Add a way to control the awesomebar contents mixup through prefs. r=Paolo
Allows to set browser.urlbar.maxHistoricalSearchSuggestions to fetch a given number of
historical search suggestions.
Allots to set browser.urlbar.matchBuckets to change the location bar mixup of results.
The system is based on an array of buckets, each bucket is an array containing the type
of the match accepted by the bucket (MATCHTYPE) and the number of available slots in the bucket.
At every new match insertion, addMatch() loops all the buckets to find the first
compatible and available slot.

Note that the pref format may change in the future, we plan to add an id to each bucket and
frecency may change from an absolute to a relative value.

MozReview-Commit-ID: 5j7esakF5bu

--HG--
extra : rebase_source : e6470d1fe0015664935628bef069a7684052c0d5
2017-07-05 14:35:54 +02:00
Mark Banner
9651d46673 Bug 1378711 - Ensure that current places transactions have completed before clearing batch processing mode to avoid messing up the undo queue. r=mak
MozReview-Commit-ID: 7k0sgZIaUyB

--HG--
extra : rebase_source : 36a599395a13374550644dd5a2c63f8938de8d6d
2017-07-06 11:57:44 +01:00
Marco Bonardo
deccd6c2ca Bug 1380302 - Fix -Wmaybe-uninitialized warnings in Places. r=adw
MozReview-Commit-ID: 2HxDMhYzaib

--HG--
extra : rebase_source : dfaab44c56d811c551999208025fe449ed3c1d92
2017-07-12 21:29:58 +02:00
Kit Cambridge
7d92c90880 Bug 1379412 - Don't fall back to the history visit title when fetching folder children. r=mak
MozReview-Commit-ID: 3ynWSLAPDZ3

--HG--
extra : rebase_source : 0127cee5cb826a75b6c388018e769951724a9166
2017-07-10 11:27:39 -07:00
Kit Cambridge
8311a354e2 Bug 1379798 - Ensure insertTree notifies observers with the correct parent ID. r=standard8
MozReview-Commit-ID: LBm8VddumPJ

--HG--
extra : rebase_source : 6c1624a408843afe64f7efab24704502034bee9d
2017-07-10 14:38:21 -07:00