Commit Graph
4180 Commits
Author SHA1 Message Date
Mark Banner 538c212a76 Bug 1404578 - test_async_batchUpdatesForNode.js should be under browser/ not toolkit/. r=mak
MozReview-Commit-ID: 36doGyjaAta
2017-10-02 10:30:53 +01:00
Mark Banner a37a0a7508 Bug 1392533 - Make the places tree view directly communicate batch notifications to the results. r=mak
MozReview-Commit-ID: HpN0v0jSwdK
2017-09-27 15:26:35 +01:00
Mark Banner af294e627c Bug 1403486 - Convert some xpcshell-tests in toolkit/components/places/tests/bookmarks to Bookmarks.jsm API. r=mak
MozReview-Commit-ID: IjnRFqF95CP
2017-09-26 21:09:30 +01:00
Mark Banner 7f81d2dde0 Bug 1403494 - Remove batch mode handling from the tagging service as we will be handling batches differently with async Places APIs. r=mak
MozReview-Commit-ID: 6JfwviYdQta
2017-09-27 11:57:06 +01:00
Mark Banner 541e30942a Bug 1094903 - Convert xpcshell-tests in toolkit/components/places/tests/unit to Bookmarks.jsm (async) API. r=mak
This converts the majority of tests to the newer Async APIs. Some tests that are designed to only test the old APIs are moved to /legacy/,
these either have duplicate tests already existing, or no comparable test required.

MozReview-Commit-ID: HAjtK6hBhJJ
2017-07-14 09:55:10 +01:00
Andrea Marchesini 93901ebca1 Bug 1402888 - Remove nsIInputStreamPump::Init() offset and limit params, r=smaug 2017-09-26 07:21:44 +02:00
Marco Bonardo c3a2401529 Bug 1399879 - The Places hash SQL function is expensive on large urls. r=adw
This patch limits the amount of chars we hash and avoids some string copies.

MozReview-Commit-ID: AAcLtTzrYlb
2017-09-18 10:31:20 +02:00
Chris Peterson 90bcd3c611 Bug 870698 - Part 8: Replace Equals(NS_LITERAL_CSTRING("")) with EqualsLiteral(""). r=erahm
The NS_LITERAL_CSTRING macro creates a temporary nsLiteralCString to encapsulate the string literal and its length, but AssignLiteral() can determine the string literal's length at compile-time without nsLiteralCString.

MozReview-Commit-ID: B5Y8KyExPQ8
2017-09-06 15:00:31 -07:00
Chris Peterson bd442bfa70 Bug 870698 - Part 6: Replace Append(NS_LITERAL_CSTRING("")) with AppendLiteral(""). r=erahm
The NS_LITERAL_CSTRING macro creates a temporary nsLiteralCString to encapsulate the string literal and its length, but AssignLiteral() can determine the string literal's length at compile-time without nsLiteralCString.

MozReview-Commit-ID: F750v6NN81s
2017-09-07 18:25:25 -07:00
Chris Peterson ce551e51b9 Bug 870698 - Part 4: Replace Equals("") with EqualsLiteral(""). r=erahm
MozReview-Commit-ID: G1GhyvD29WK
2017-09-06 01:13:45 -07:00
Andrea Marchesini 85dec61858 Bug 1047098 - "Clear Recent History" must clean up all the ServiceWorkers, r=bkelly
This includes minor shutdown fixes by :asuth as discussed on
https://bugzilla.mozilla.org/show_bug.cgi?id=1047098#c56 and c57.
2017-09-21 21:32:00 +02:00
Wes Kocher e19b461577 Backed out changeset e89d2565799b (bug 1047098) for xpcshell bustage a=backout
MozReview-Commit-ID: FRFALkRxDxl
2017-09-21 13:48:10 -07:00
Andrea Marchesini 2ecedece68 Bug 1047098 - "Clear Recent History" must clean up all the ServiceWorkers, r=bkelly 2017-09-21 21:32:00 +02:00
Kershaw Chang a72059f797 Bug 1247843 - Part 2: Set request context ID for the channel used to load favicon. r=mak
This patch covers two cases when loading a favicon:
1. Get the request context ID of the document load group, when <link rel="icon"> is found in the page.
2. Use the top level document's request context ID when using the default favicon.
2017-09-20 20:09:00 -04:00
Marco Bonardo b4eaaf1e04 Bug 1391293 - Reduce Address Bar results flickering when typing additional chars. r=adw
MozReview-Commit-ID: HaIK8YJho1y
2017-09-08 11:39:44 +02:00
Nan Jiang 10b6a9f62b Bug 1397789 - Tune Places data expiration for page metadata collection. r=mak
MozReview-Commit-ID: Kqq1VNVvnYt
2017-09-14 09:59:33 -04:00
Simon Lindholm 77b0c4639e Bug 1392263 - Make TELEMETRY_1ST_RESULT count results of all types. r=mak
MozReview-Commit-ID: 82jJDZZG7kb
2017-09-14 00:06:54 +02:00
Simon Lindholm a631dc66a9 Bug 1393486 - Reduce subquery evaluations in awesomebar search SQL. r=mak 2017-09-09 02:36:00 -04:00
Kit Cambridge 0b3597988e Bug 1393904 - Ensure insertTree removes Sync tombstones for restored bookmarks. r=mak
MozReview-Commit-ID: EbGybRbhWKJ
2017-08-25 12:04:22 -07:00
Ed Lee 06a97dd34a Bug 1396282 - Add query for getting Highlights (recent bookmarks and recent history with metadata). r=mak
Adds index to moz_bookmarks.dateAdded for use by Highlights query for recent bookmarks.
MozReview-Commit-ID: 7Gs8H0kUij2
2017-09-02 13:15:04 -07:00
Bob Silverberg f81f618e29 Bug 1293853 - Part 2: Include separators in results from bookmarks.search, r=standard8
This API is only used by WebExtensions, which previously wanted to exclude separators,
but now we want the WebExtensions APIs to be able to return separators.

MozReview-Commit-ID: 7PApWDwWMr1
2017-08-29 13:19:05 -04:00
Bob Silverberg 4dff9f8608 Bug 1293853 - Part 1: Add numeric typeCode to PlacesUtils.promiseBookmarksTree, r=standard8
This allows promiseBookmarksTree to return nodes that describe their type in both string (i.e., PlacesUtils.TYPE_X_*)
format and numeric (i.e., PlacesUtils.bookmarks.TYPE_*) formats. ext-bookmarks.js would prefer to be able to
use the numeric format as that is what is used throughout the rest of the file.

MozReview-Commit-ID: 7DpqAb3zVio
2017-08-29 10:27:38 -04:00
Mark Banner cb1b847e5b Bug 1395994 - Clone arrays to fix a leak of windows caused by PlacesTransactions keeping references to arrays passed to it. r=mak
MozReview-Commit-ID: CWMyLtmNQuW
2017-09-01 16:48:09 +01:00
Marco Bonardo 39c678dd5c Bug 1395333 - Remove an unexpected warning from nsNavHistoryResult.cpp. r=standard8
MozReview-Commit-ID: 1Ba2Nwvs0FB
2017-09-01 13:55:01 +02:00
Wes Kocher 3f192cf984 Merge m-c to inbound, a=merge
MozReview-Commit-ID: 77Uz3uceUmk
2017-08-31 16:56:23 -07:00
Simon Lindholm 8c34b5c40f Bug 1388331 - Use more precise criteria for stopping auto-complete searches. r=mak 2017-08-31 12:24:00 -04:00
Honza Bambas a90d5297b3 Bug 1395525 - Make all changes landed as part of tracker request tailing preferrable. r=dragana 2017-08-31 06:07:00 -04:00
Sebastian Hengst ee47b6ea7c merge mozilla-central to autoland. r=merge a=merge 2017-08-31 14:37:58 +02:00
Ryan VanderMeulen fc2383f30d Backed out changeset 299138aaaecb (bug 1388331) for causing browser_urlbar_keyed_search_reflows.js failures. 2017-08-30 21:04:30 -04:00
Marco Bonardo 17a280a362 Bug 1395082 - Intermittent toolkit/components/places/tests/browser/browser_visited_notfound.js. r=standard8
MozReview-Commit-ID: GzAZXNIbBCN
2017-08-30 17:32:20 +02:00
Honza Bambas 559460ce73 Bug 1358060 - Allow postponing of unimportant resources opening during page load, class-of-service Tail flag. r=dragana 2017-08-30 09:32:00 -04:00
Simon Lindholm ce116881b9 Bug 1388331 - Use more precise criteria for stopping auto-complete searches. r=mak 2017-08-30 08:00:00 -04:00
Andrew McCreight 84ee98de3c Bug 1391005 - Eliminate NS_INTERFACE_MAP_BEGIN_CYCLE_COLLECTION_INHERITED. r=peterv
Replace it with NS_INTERFACE_MAP_BEGIN_CYCLE_COLLECTION, because it
has been the same for a while.

MozReview-Commit-ID: 5agRGFyUry1
2017-08-29 16:02:48 -07:00
Eric Rahm b3a9bd1c4c Bug 1393235 - Fix improper usages of string functions. r=njn
This fixes usages of `Find`, `RFind` and the equality operator that kind of
work right now but will break with the proper type checking of a templatized
version of the string classes.

For `Find` and `RFind` it appears that `nsCString::(R)Find("foo", 0)` calls
were being coerced to the `Find(char*, bool, int, int)` versions. The intent was
probably to just start searching from position zero.

For the equality operator, the type of nullptr is nullptr_t rather than
char(16_t)* so we'd need to add an operator overload that takes nullptr_t. In
this case just using `IsVoid` is probably more appropriate.
2017-08-22 19:30:46 -07:00
Ehsan Akhgari 1a344417e2 Bug 1382923 - Avoid AddRef()ing the History service in the Link constructor; r=smaug 2017-08-28 00:51:26 -04: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
Ryan VanderMeulen 33f08ea17c Merge autoland to m-c. a=merge 2017-08-24 20:20:08 -04:00
Simon Lindholm bcbf0262b7 Bug 1393483 - Correctly pass cancel token to _onResultRow. r=mak 2017-08-24 08:20:00 -04:00
Mark Banner 047abda0e0 Bug 1316348 - Make eraseEverything notify for removals within the top-level bookmarks folders to ensure correct updates on the UI. r=mak
MozReview-Commit-ID: 2bt24qqOd4S
2017-08-23 15:54:36 +01:00
Marco Bonardo 18b37ff3ae Bug 1320301 - Add partial support to sqlite3_interrupt. r=asuth
MozReview-Commit-ID: V3ZjLEjqmT
2017-07-31 22:27:23 +02:00
sellsellgo 4c0b11f583 Bug 1347452 - Assigned item.guid using PlacesUtils.history.makeGuid() in insertBookmark(). r=mak
MozReview-Commit-ID: LgVFlgNEzHf
2017-08-17 09:50:25 +02:00
Mark Banner 44963145a5 Bug 1392098 - Enable the new ESLint no-useless-run-test rule across the tree. r=mossop
MozReview-Commit-ID: 35MaseieNUk
2017-08-20 18:52:05 +01:00
Masatoshi Kimura 76347b3b52 Bug 1392070 - Stop using the StopIteration object in Sqlite.jsm. r=mak
MozReview-Commit-ID: BP3RuM5EweE
2017-08-19 22:10:44 +09:00
Simon Lindholm b9440a31ba Bug 1387780 - Optimize string searching in MatchAutoCompleteFunction. r=adw, r=emk 2017-08-20 17:21:00 -04:00
Simon Lindholm 79bcb3d96d Bug 1387780 - Avoid memory allocations when calling MatchAutoCompleteFunction. r=adw, r=froydnj 2017-08-20 17:19:00 -04:00
Nicolas Ouellet-Payeur 65fdd39ce6 Bug 1353217 - importing bookmarks from html doesn't need to reset the bookmarks engine. r=markh
MozReview-Commit-ID: 4F7KF5ZkNuX
2017-08-11 00:19:01 +00:00
Adam Gashlin f6700b8894 Bug 1376533 - Use low priority timer for places expiration r=kitcambridge
MozReview-Commit-ID: 2FVldA507J3
2017-08-10 13:57:13 -07:00
Kit Cambridge 8505ada685 Bug 1389716 - Bookmarks.reorder shouldn't call withConnectionWrapper from within a transaction. r=mak
MozReview-Commit-ID: A6aMesfFcpF
2017-08-11 19:02:48 -07:00
Andrew Sutherland 92b9406e9d Bug 1388584 - Part 1: Bind ATTACH DATABASE path argument. r=adw r=markh a=Aryx
This is for the trunk/nightly landing only, and approval was explicitly
requested from #sheriffs to land without tests as a preliminary stop-gap.

Tests and a proper fix will land as part of bug 1389660, but that will be a few
days.
2017-08-12 02:33:09 -04:00
Michael Layzell 23713b702a Bug 1372433 - Label the PContent::Msg_NotifyVisited runnable, r=billm
I don't bother to label the runnables in the parent process being fired by
VisitedQuery, as we are not planning to perform scheduling in the parent process
if I remember correctly. It would be possible to label those runnables as well.

MozReview-Commit-ID: EosNOu62fEV
2017-08-11 18:07:58 -04:00