Commit Graph

24259 Commits

Author SHA1 Message Date
Sebastian Hengst
4d0bad92dd merge mozilla-inbound to mozilla-central. r=merge a=merge
MozReview-Commit-ID: Gsw48p934sI
2017-09-02 10:54:44 +02:00
Jim Chen
eec1c8ca82 Bug 1378410 - 2. Preprocess generated bindings; r=nalexander
Preprocess the generated bindings to support the new BuildFlag
annotation, so that we can compare bindings despite build flag changes.

The build system preprocessor is used because it's easy-to-use and
invoking the actual C++ preprocessor would require much more work.
However, as a result, we use a MOZ_PREPROCESSOR macro to make the build
system preprocessor not handle `#include` lines in the binding files.

MozReview-Commit-ID: 3Gweuwnb1V3

--HG--
extra : rebase_source : 3a1769e4b45bab3175b3609d08e53534380facce
2017-09-01 14:02:44 -04:00
Jim Chen
f0ca31be3a Bug 1378410 - 1. Support BuildFlag annotation for generated bindings; r=snorp
Add a BuildFlag annotation, which when specified for classes, will wrap
generated code in `#ifdef` or `#ifndef` blocks. This functionality is
used for conditionally excluding generated code when NIghtly becomes
Beta, without the need to regenerate bindings.

MozReview-Commit-ID: L2NFM8CHKqF

--HG--
extra : rebase_source : 6ebc82d11fd1aa4aeb57a46262e678480d23de83
2017-09-01 14:02:29 -04:00
Michael Comella
196f5f016f Bug 1388377: Add highlights empty state. r=liuche
MozReview-Commit-ID: 1M1nqWSoER3

--HG--
extra : rebase_source : 4c84e431baac1a64876bede36d05c0d3399b0f63
2017-08-31 15:21:43 -07:00
Michael Comella
b4266caa6c Bug 1388377: Rm WelcomePanelRow. r=liuche
We show a message:
1) On first run
2) When there are no highlights

However, these are actually the same case (there are no highlights) so I wanted
to defer to that situation.

I felt it was easier to rm the WelcomePanel and rewrite it than it was to try
to morph it into an empty state for the highlights.

MozReview-Commit-ID: CrRbzA0NoRx

--HG--
extra : rebase_source : ed21103350ea13813062e214d3aec22805cfa7d7
2017-08-31 14:39:40 -07:00
Gregory Szorc
54ce1a0575 Backed out changeset 512562477a1e, c5b310c419c4 (bug 1388377) for Android build bustage
--HG--
extra : histedit_source : 45a7c9ad2418f3fbf1f6b3d544806e43e337749e%2C73fe36a02238f02dcac1d1010504fb42a2008701
2017-09-01 17:07:21 -07:00
Michael Comella
c256431aed Bug 1388377: Add highlights empty state. r=liuche
MozReview-Commit-ID: 1M1nqWSoER3

--HG--
extra : rebase_source : d3047131d6e5fa9bc7a6973bd7d8a78065d1901e
2017-08-31 15:21:43 -07:00
Michael Comella
291c25858a Bug 1388377: Rm WelcomePanelRow. r=liuche
We show a message:
1) On first run
2) When there are no highlights

However, these are actually the same case (there are no highlights) so I wanted
to defer to that situation.

I felt it was easier to rm the WelcomePanel and rewrite it than it was to try
to morph it into an empty state for the highlights.

MozReview-Commit-ID: CrRbzA0NoRx

--HG--
extra : rebase_source : da48e11003d8decb8216d1439a9ca475f56cbb7e
2017-08-31 14:39:40 -07:00
Wes Kocher
8b84853ed6 Merge m-c to autoland, a=merge
MozReview-Commit-ID: GcHZLNPPNnI
2017-09-01 16:34:14 -07:00
Wes Kocher
5f157c17dc Merge inbound to central, a=merge
MozReview-Commit-ID: 3JxUEFuinHY
2017-09-01 16:29:10 -07:00
Dylan Roeh
cefc0f9ba9 Bug 1390261 - Add external storage to permissions required in FilePicker.getPermissionsForMimeType. r=snorp 2017-09-01 10:36:59 -05:00
Luca Greco
b1d2a209c5 Bug 1383160 - Fix Android pageAction popup behavior. r=mixedpuppy
MozReview-Commit-ID: 66PnjFv4IIx

--HG--
extra : rebase_source : c5fdbe75cea18bcbfeedc8916c2b9c00ec20a429
2017-08-15 22:55:13 +02:00
Chenxia Liu
8202ae6977 Bug 1386735 - Rename FIXED_ROWS to clarify that they are Activity Stream sections. r=mcomella
MozReview-Commit-ID: 5aGMR2jm66s

--HG--
extra : rebase_source : f27b57b5608bf4a698c5bb61b91cd88998684411
2017-09-01 14:58:22 -07:00
Chenxia Liu
7cdb649f7f Bug 1386735 - Add additional preferences to Top Sites settings. r=mcomella
MozReview-Commit-ID: ADwLLbO41RN

--HG--
extra : rebase_source : 519e230f5feaa10cb08a1eeb2de72f014894ad40
2017-08-30 20:01:48 -07:00
Chenxia Liu
1bf5deb116 Bug 1386735 - Support disabling titles in StreamRecyclerView. r=mcomella
MozReview-Commit-ID: 15h7Lp497JN

--HG--
extra : rebase_source : 540b9b97975addab569f0f490959c0dc10755e36
2017-08-30 18:58:12 -07:00
Ryan VanderMeulen
1a86da24ad Backed out 9 changesets (bug 1383880) for decision task bustage.
Backed out changeset 53f5d47a7cb0 (bug 1383880)
Backed out changeset a0abda41172a (bug 1383880)
Backed out changeset 729a7e2091e8 (bug 1383880)
Backed out changeset a33f5a14a471 (bug 1383880)
Backed out changeset 5b10d321cfee (bug 1383880)
Backed out changeset 8056488d8aed (bug 1383880)
Backed out changeset e62c90e3c1e8 (bug 1383880)
Backed out changeset 91f116ce6c2a (bug 1383880)
Backed out changeset 045498bc36c4 (bug 1383880)
2017-09-01 15:37:08 -04:00
Sebastian Hengst
43bc951ac7 merge mozilla-inbound to mozilla-central. r=merge a=merge
MozReview-Commit-ID: ES9rKhiQo10
2017-09-01 10:38:51 +02:00
Wes Kocher
6472928439 Merge m-c to inbound, a=merge
MozReview-Commit-ID: 77Uz3uceUmk
2017-08-31 16:56:23 -07:00
Jim Chen
2cf88859ad Bug 1395170 - Fix lint warnings/errors from BasicGeckoViewPrompt; r=droeh
Fix the following lint errors/warnings,

* Using inlined constants on older versions
  Add version check for usages of Intent.EXTRA_ALLOW_MULTIPLE and
  Intent.EXTRA_MIME_TYPES.

* Calling new methods on older versions
  Change usages of AlertDialog.Builder#setOnDismissListener to
  Dialog#setOnDismissListener instead.

* Missing recycle() calls
  Add missing TypedArray#recycle call

MozReview-Commit-ID: EwZFDKqoCjL
2017-08-31 13:42:52 -04:00
Jim Chen
378bd857ed Bug 1395168 - Add tests for key synthesis; r=esawin
Add tests for synthesizing keys, including test for dummy keys and test
for wrong metastate for synthesized non-English keys (i.e. bug 1387889).

MozReview-Commit-ID: SvddU2BHle
2017-08-31 13:42:51 -04:00
Luca Greco
9e55b57841 Bug 1388098 - Fix Android options_ui on disable/enable addon. r=mixedpuppy
MozReview-Commit-ID: 4z4vJpDxzGB

--HG--
extra : rebase_source : e4d13535390579538aefa8cae3643fe112cfbd72
2017-08-07 18:54:16 +02:00
Jing-wei Wu
8aac538ea7 Bug 1393084 - Update page text selection handlers. r=nechen
MozReview-Commit-ID: GQjNT45a43r

--HG--
extra : rebase_source : cef6a4022e8c07391eb4e5e529a0537dc857c9d6
2017-08-28 14:02:53 +08:00
Grigory Kruglov
10116eac39 Bug 1395703 - Make sure modifiedBySync CV field isn't passed to ContentProvider on updates r=rnewman
Comment from bugzilla on this ugly hack:

While processing bookmarks, we sometimes need to mark them for re-upload as we're inserting new ones or updating existing ones. For example, we might set or update a dateAdded field.
We perform insertions "in-bulk", and so we might be inserting some bookmarks which need to be re-uploaded, and some bookmarks which don't. We compile an array of ContentValue objects, and make a single call to our ContentProvider. This means we can't use a URI param to indicate our intent, and so a non-column field in ContentValues objects - modifiedFromSync - is set for those bookmarks which need special treatment during insertion.
Bug 1392802 added a similar mechanism for updating bookmarks. However, updates are done differently - currently, we perform a single call to our ContentProvider for each bookmark. Which means we _can_ use a URI field as a signaling mechanism, which is what that patch did. However, in haste I forgot to take into consideration existing signaling mechanism, which lead to update failures.
And so we're left with an even clumsier interface to our data store, with two ways to signal the same thing in different circumstances... A quick solution is to just make sure 'modifiedBySync' field never makes its way to contentprovider on updates; a more refined fix would probably modify update logic to use a ContentValues field for consistency... Either way, there's going to be something ugly, somewhere in the code.
I anticipate a lot of this code changing sometime soon in order to support better transactionality of bookmark syncing, and smarter merging, and so I'm inclined to just to the simple thing for now.

MozReview-Commit-ID: H10LFsqjbFY

--HG--
extra : rebase_source : f7f311d266d75c505bb8871a567ac96d39f1b1cb
2017-08-31 18:05:20 -04:00
Dustin J. Mitchell
aa0f008926 Bug 1383880: annotate source files with what they SCHEDULE; r=ahal
MozReview-Commit-ID: CR70dSg5R79

--HG--
extra : rebase_source : 38f4feaac373c64cb7f04e6ac702ebb1d5862751
2017-08-25 19:31:54 +00:00
Sebastian Hengst
e2f54c0cd7 merge mozilla-central to autoland. r=merge a=merge 2017-09-01 10:43:32 +02:00
Luca Greco
55efc527b7 Bug 1394846 - Fix EventEmitter.decorate exception on Firefox for Android. r=mixedpuppy
MozReview-Commit-ID: DhaVpD1zcaS

--HG--
extra : rebase_source : 507682cee9872099006af9bcc25f79411cf888d0
2017-08-29 18:26:29 +02:00
Wes Kocher
4cf89b3423 Merge m-c to inbound, a=merge
MozReview-Commit-ID: FusyUW1CQ4s
2017-09-01 16:33:28 -07:00
Kevin Jones
1c67003db7 Bug 1377733 - Add discarded property to tabs.Tab on Android. r=zombie, r=kmag
--HG--
extra : histedit_source : e76319b7f6759ae4f4767b3add77cb1b753f9545
2017-08-16 14:04:26 -06:00
Chenxia Liu
8d272b6721 Bug 1394459 - Support bookmarking, pinning of Pocket items in context menu. r=mcomella
MozReview-Commit-ID: GwZdlzQ5ZIR

--HG--
extra : rebase_source : bc9bbd81ffc512815755c701857dfaf182975135
2017-08-29 16:09:28 -07:00
Grigory Kruglov
8414560f22 Bug 1392505 - Let RepositorySessions track their own lastFetch and lastStore timestamps r=rnewman
This patch moves some of the state tracking (fetchEnd/storeEnd timestamps) away from RecordsChannel
and into individual RepositorySessions. The core assumption behind this move is that
sessions are better suited to know when they were fetched from during this sync, and when they
were stored to.
Sessions are growing in complexity - local ones are wrapped in a buffer, remote
now support batching downloads and uploads. In order to hide these details, it's easier to let
sessions keep track of the fetch/store timestamps in the way that fits their implementations.

Instead of flowing these timestamps upwards from sessions and into the SynchronizerSession,
the latter now simply queries sessions at the end of their flows.

The default behavior if a certain operation wasn't performed - that is, if fetchEnd or storeEnd
aren't set during sync for a session - is to return timestamp persisted during the previous sync.

This allows us to skip certain flows (no remote data available), and ensure that we're always
using correct timestamps of the same origin for any given session.

Prior behaviour was to "make up" a timestamp at the RecordsChannel level in cases of certain
errors or skipped flows, which resulted in comparing timestamps of different origins on the consequent sync.

MozReview-Commit-ID: 2wqeTo7mhz3

--HG--
extra : rebase_source : 21b02d4164abf75422920225749ffcfd3fc71e91
2017-08-30 19:48:21 -04:00
Grigory Kruglov
1c3783ec74 Bug 1392505 - Pre: remove unused delegate interface r=rnewman
MozReview-Commit-ID: K93rK1pILky

--HG--
extra : rebase_source : 9f8927d4298759ca7f9b862e51932a54ed7cb590
2017-08-25 21:44:37 -04:00
Michael Kaply
19e1e017dc Bug 1395355 - Typo preventing locale distribution engines from loading. r=gandalf
MozReview-Commit-ID: DerafUV5lNA

--HG--
extra : rebase_source : 33283085571e5fd68cdff50eb7fc1ef5ca0d925c
2017-08-30 17:15:55 -05:00
Grigory Kruglov
ba86f4a1fb Bug 1392802 - Increment localVersion while reconciling a bookmark if we modified its dateAdded t.s. r=rnewman
We might decide that there's an older dateAdded timestamp present for an incoming bookmark while processing it,
in which case we need to ensure that our changes will be uploaded.

MozReview-Commit-ID: BKLh4rYBiRu

--HG--
extra : rebase_source : 3f8ac41de99d7082cd9d7fc7254386d99d5431bd
2017-08-29 20:12:46 -04:00
Wes Kocher
940bdbc699 Merge autoland to central, a=merge
MozReview-Commit-ID: Jz9iBkuBrpV
2017-08-30 19:52:39 -07:00
Geoff Brown
01a902a282 Bug 1390059 - Disable all robocop PixelTests, for intermittent failures; r=me,test-only 2017-08-30 10:11:26 -06:00
Kris Maglione
8b415f700f Bug 1394556: Part 1 - Fix strict mode errors in JSM scripts. r=Mossop
MozReview-Commit-ID: 4LmJQql7Y2c

--HG--
extra : rebase_source : f18b5547a5a57db4e8b990bfc34f06690ac9da7a
extra : histedit_source : 7281bafbde4bf231752d9d868ec8ca1d2f55a2f9
2017-08-30 01:50:27 -07:00
John Lin
0418d058b1 Bug 1394693 - return more appropriate screen orientation types. r=esawin
Allow sensor to change which direction the screen is facing when using 'portrait' or 'landscape' to lock screen orientation.

MozReview-Commit-ID: 4Fqfv4bNuKD

--HG--
extra : rebase_source : 6aed9dc06b151a9bb954a0b088dbd53b8fc52154
2017-08-29 13:43:57 +08:00
Nevin Chen
5798b572bc Bug 1394356 - Temporary remove add to home screen for Android O. r=jwu
MozReview-Commit-ID: 8Uz9QM7i4SD

--HG--
extra : rebase_source : 3db8d29843af5b0b720b9d15dc7e71784703c679
2017-08-29 17:53:56 +08:00
Nevin Chen
e25a8bdf4f Bug 1394361 - Tab title is cropped and not align to close button. r=jwu
MozReview-Commit-ID: JDqgSulYqAx

--HG--
extra : rebase_source : b013868e4f06a8f28bd0de152df1278d9407e4f9
2017-08-29 15:12:21 +08:00
Mark Hammond
273d4d9a9d Bug 1392449 - introduce shouldReconcileRecords so reconcileRecords never returns null. r=Grisha
MozReview-Commit-ID: L0rsLmzNTRr

--HG--
extra : rebase_source : c1ff236c9f4cdcc95fbb9bcda70c8fe6452f66d1
2017-08-29 17:31:10 +10:00
Chenxia Liu
bebcff6a7d Bug 1393700 - Add test for parsing JSON response. r=mcomella
MozReview-Commit-ID: KTy3Mltrfg9

--HG--
extra : rebase_source : 3b2f7a9f7ec2045dc46b1c5c04a157bb23eebdf7
2017-08-28 16:40:39 -07:00
Kartikaya Gupta
249641a628 Bug 1394510 - Fix GeckoLayerClient touch generation code. r=botond
MozReview-Commit-ID: I8QlHFM2ew9

--HG--
extra : rebase_source : 8b8c849658d0721fbd32bef2a29dc6b3af98b7d9
2017-08-29 20:44:21 -04:00
Michael Comella
2327c4c112 Bug 1388379: Use new suggestedsites assets for restricted profile. r=liuche
MozReview-Commit-ID: DXugwOekBVJ

--HG--
extra : rebase_source : 4e4f8068a772ff7b5cc8086d5e2673e745dd7ca5
2017-08-28 17:56:51 -07:00
Michael Comella
485f4fbea6 Bug 1388379: Use new suggestedsites assets for default profile. r=liuche
MozReview-Commit-ID: KCafeCJpNh8

--HG--
extra : rebase_source : ef1836967148e4e783f8dd1bd6b66844b9e2612f
2017-08-28 17:40:08 -07:00
Michael Comella
e46d523922 Bug 1388379: Rm xxxhdpi/suggestedsites_twitter. r=liuche
This is the only suggested site in xxxhdpi and is thus inconsistent.

MozReview-Commit-ID: F9HvsXKsFSq

--HG--
extra : rebase_source : f7b42c5818c1e6c6012386e56f3c224c29de0966
2017-08-28 17:45:53 -07:00
Wes Kocher
de530c1ea6 Merge m-c to autoland, a=merge
MozReview-Commit-ID: 5c1Pgm4aVKe
2017-08-29 16:17:50 -07:00
Wes Kocher
2198196808 Merge inbound to central, a=merge
MozReview-Commit-ID: G6QZZ8RGk6n
2017-08-29 16:14:22 -07:00
L10n Bumper Bot
dd1b0e2d00 no bug - Bumping Fennec l10n changesets r=release a=l10n-bump
an -> ['android', 'android-api-15', 'android-multilocale']
ar -> ['android', 'android-api-15', 'android-multilocale']
as -> ['android', 'android-api-15', 'android-multilocale']
ast -> ['android', 'android-api-15', 'android-multilocale']
az -> ['android', 'android-api-15', 'android-multilocale']
be -> ['android', 'android-api-15', 'android-multilocale']
bg -> ['android', 'android-api-15', 'android-multilocale']
bn-BD -> ['android', 'android-api-15']
bn-IN -> ['android', 'android-api-15', 'android-multilocale']
br -> ['android', 'android-api-15', 'android-multilocale']
ca -> ['android', 'android-api-15', 'android-multilocale']
cak -> ['android', 'android-api-15', 'android-multilocale']
cs -> ['android', 'android-api-15', 'android-multilocale']
cy -> ['android', 'android-api-15', 'android-multilocale']
da -> ['android', 'android-api-15', 'android-multilocale']
de -> ['android', 'android-api-15', 'android-multilocale']
dsb -> ['android', 'android-api-15', 'android-multilocale']
el -> ['android', 'android-api-15', 'android-multilocale']
en-GB -> ['android', 'android-api-15', 'android-multilocale']
en-ZA -> ['android', 'android-api-15', 'android-multilocale']
eo -> ['android', 'android-api-15', 'android-multilocale']
es-AR -> ['android', 'android-api-15', 'android-multilocale']
es-CL -> ['android', 'android-api-15', 'android-multilocale']
es-ES -> ['android', 'android-api-15', 'android-multilocale']
es-MX -> ['android', 'android-api-15', 'android-multilocale']
et -> ['android', 'android-api-15', 'android-multilocale']
eu -> ['android', 'android-api-15', 'android-multilocale']
fa -> ['android', 'android-api-15', 'android-multilocale']
ff -> ['android', 'android-api-15', 'android-multilocale']
fi -> ['android', 'android-api-15', 'android-multilocale']
fr -> ['android', 'android-api-15', 'android-multilocale']
fy-NL -> ['android', 'android-api-15', 'android-multilocale']
ga-IE -> ['android', 'android-api-15', 'android-multilocale']
gd -> ['android', 'android-api-15', 'android-multilocale']
gl -> ['android', 'android-api-15', 'android-multilocale']
gn -> ['android', 'android-api-15', 'android-multilocale']
gu-IN -> ['android', 'android-api-15', 'android-multilocale']
he -> ['android', 'android-api-15', 'android-multilocale']
hi-IN -> ['android', 'android-api-15', 'android-multilocale']
hr -> ['android', 'android-api-15', 'android-multilocale']
hsb -> ['android', 'android-api-15', 'android-multilocale']
hu -> ['android', 'android-api-15', 'android-multilocale']
hy-AM -> ['android', 'android-api-15', 'android-multilocale']
id -> ['android', 'android-api-15', 'android-multilocale']
is -> ['android', 'android-api-15', 'android-multilocale']
it -> ['android', 'android-api-15', 'android-multilocale']
ja -> ['android', 'android-api-15', 'android-multilocale']
ka -> ['android', 'android-api-15', 'android-multilocale']
kab -> ['android', 'android-api-15', 'android-multilocale']
kk -> ['android', 'android-api-15', 'android-multilocale']
kn -> ['android', 'android-api-15', 'android-multilocale']
ko -> ['android', 'android-api-15', 'android-multilocale']
lo -> ['android', 'android-api-15', 'android-multilocale']
lt -> ['android', 'android-api-15', 'android-multilocale']
lv -> ['android', 'android-api-15', 'android-multilocale']
mai -> ['android', 'android-api-15', 'android-multilocale']
ml -> ['android', 'android-api-15', 'android-multilocale']
mr -> ['android', 'android-api-15', 'android-multilocale']
ms -> ['android', 'android-api-15', 'android-multilocale']
my -> ['android', 'android-api-15', 'android-multilocale']
nb-NO -> ['android', 'android-api-15', 'android-multilocale']
ne-NP -> ['android', 'android-api-15']
nl -> ['android', 'android-api-15', 'android-multilocale']
nn-NO -> ['android', 'android-api-15', 'android-multilocale']
or -> ['android', 'android-api-15', 'android-multilocale']
pa-IN -> ['android', 'android-api-15', 'android-multilocale']
pl -> ['android', 'android-api-15', 'android-multilocale']
pt-BR -> ['android', 'android-api-15', 'android-multilocale']
pt-PT -> ['android', 'android-api-15', 'android-multilocale']
rm -> ['android', 'android-api-15', 'android-multilocale']
ro -> ['android', 'android-api-15', 'android-multilocale']
ru -> ['android', 'android-api-15', 'android-multilocale']
sk -> ['android', 'android-api-15', 'android-multilocale']
sl -> ['android', 'android-api-15', 'android-multilocale']
son -> ['android', 'android-api-15', 'android-multilocale']
sq -> ['android', 'android-api-15', 'android-multilocale']
sr -> ['android', 'android-api-15', 'android-multilocale']
sv-SE -> ['android', 'android-api-15', 'android-multilocale']
ta -> ['android', 'android-api-15', 'android-multilocale']
te -> ['android', 'android-api-15', 'android-multilocale']
th -> ['android', 'android-api-15', 'android-multilocale']
tr -> ['android', 'android-api-15', 'android-multilocale']
trs -> ['android', 'android-api-15']
uk -> ['android', 'android-api-15', 'android-multilocale']
ur -> ['android', 'android-api-15', 'android-multilocale']
uz -> ['android', 'android-api-15', 'android-multilocale']
vi -> ['android', 'android-api-15']
wo -> ['android', 'android-api-15', 'android-multilocale']
xh -> ['android', 'android-api-15', 'android-multilocale']
zam -> ['android', 'android-api-15', 'android-multilocale']
zh-CN -> ['android', 'android-api-15', 'android-multilocale']
zh-TW -> ['android', 'android-api-15', 'android-multilocale']
2017-08-29 12:00:48 -07:00
Sebastian Hengst
2a9cc8e3be merge mozilla-inbound to mozilla-central. r=merge a=merge
MozReview-Commit-ID: BQuBmVtsdki
2017-08-29 20:30:41 +02:00
Jim Chen
324acfa7c1 Bug 1394497 - Use null as profile in GeckoView.preload; r=snorp
We should use null as the profile in GeckoView.preload. We will call
GeckoProfile.initFromArgs later on in GeckoThread.getProfile, when the
profile is actually needed.

MozReview-Commit-ID: JJzIVEiuZPn
2017-08-29 00:06:35 -04:00