Граф коммитов

23874 Коммитов

Автор SHA1 Сообщение Дата
Sebastian Hengst c78042f2d4 Backed out changeset fb8b790f8f47 (bug 1369604) 2017-07-29 18:35:20 +02:00
Sebastian Hengst f868385951 Backed out changeset 77abc92bd89c (bug 1369604) 2017-07-29 18:35:14 +02:00
Michael Comella bbba354081 Bug 1369604: Add additional comments to Highlights performance changes. r=mcomella
MozReview-Commit-ID: A5uzxbKisWF

--HG--
extra : rebase_source : c570bf64418ac54ad87a879087df896a6cdc33c2
2017-07-28 18:06:48 -07:00
Michael Comella 6da7b54e41 Bug 1369604 - review: rm comment from WONTFIX'd bug. r=mcomella
MozReview-Commit-ID: 5zgonuODZHQ

--HG--
extra : rebase_source : a6f1942451e5774ab33f003a10cac5fb1d875f9e
2017-07-28 17:58:05 -07:00
Michael Comella 25c5f1f199 Bug 1369604: Force lazily-loaded metadata to load on background thread. r=liuche
This undoes a caveat created from the last changeset; I did not profile this
change.

MozReview-Commit-ID: 6jpXyt0GRUj

--HG--
extra : rebase_source : e200e7942782ad042a6bb703f137dac71a398a21
2017-07-28 15:02:57 -07:00
Michael Comella 5310c65e39 Bug 1369604: Replace Metadata JSON parsing with faster regex matching. r=liuche
I replaced JSON parsing for all highlight candidates (at most, 500) with a
faster estimation using regex: we only use the full JSON parsing to get the
perfect values for the items to be shown (~5).

One caveat of this change: JSON parsing will be moved to the main thread when
the getMetadataSlow is lazily-loaded.

Disclaimer: my device seems to be running faster than yesterday so profiling
may not be consistent but here are the profiling results:
- HighlightsRanking.extractFeatures: 78.1% -> 54.5%
- Highlight.<init>: 26.5% -> 14.5%
- JSONObject.<init>: 11.4% -> rm'd
- initFast*: (replaced JSONObject.<init> & friends) -> 4.2%

With ^ the disclaimer in mind, runtime decreased from 12.6s to 5.3s (this is
slower due to profiling).

MozReview-Commit-ID: CTqAyDDmaJQ

--HG--
extra : rebase_source : 1318c460b55159e38a5dd41d53ebcee00e67029c
2017-07-28 13:45:41 -07:00
Michael Comella e0a73587d5 Bug 1369604: Replace features HashMap with indexing into an array. r=liuche
After the previous changeset, some numbers stood out:
- HighlightsRanking.extractFeatures: 44.9%
- HighlightCandidate.getFeatureValue: 19.4%
- Collections.secondaryHash: 17.3%
- HashMap.get: 11.7%

My hypothesis was that our HighlightCandidate.features implementation was slow:
it was mapping FeatureNames -> values in a HashMap but HashMap look-ups are
slower than a direct memory access.

I replaced the implementation with a direct access from an array - about as
fast as we can get. This encouraged me to make some changes with the following
benefits:
- Rewrote HighlightsRanking.normalize to save iterations and allocations.
- Rm code from HighlightsRanking.scoreEntries: we no longer need to iterate to
construct the filtered items, we just index directly into the list
- Rewrote HighlightsRanking.decay(), which I think is a little clearer now.
- Saved a few iterator/object allocations inside inner loops in places.

The tests pass and we have coverage for the normalize changes but not for
scoreEntries.

---

For perf, my changes affected multiple methods so the percentages are no longer
reliable but I can verify absolute runtime changes. I ran three tests, the best
of which showed an overall 33% runtime compared to the previous changeset and
the other two profiles showed a 66% overall runtime. In particular, for the
middle run, the changes for affected methods go from X microseconds to Y
microseconds:
- Features.get: 3,554,796 -> 322,145
- secondaryHash: 3,165,785 -> 35,253
- HighlightsRanking.normalize: 6,578,481 -> 1,734,078
- HighlightsRanking.scoreEntries: 3,017,272 -> 448,300

As far as I know, my changes should not have introduced any new inefficiencies
to the code.

MozReview-Commit-ID: 9THXe8KqBbB

--HG--
extra : rebase_source : a190bc2e7c0f3ed2b5cb65202b902dcd455b3aa8
2017-07-26 17:16:14 -07:00
Michael Comella 9c75c2a05e Bug 1369604: Use HighlightCandidateCursorIndices to cache. r=liuche
This reduces the calls to `getColumnIndexOrThrow` to 9 (from 1.6k) and
HighlightsRanking.extractFeatures goes from 77.1% inclusive CPU time -> 40.8%,
14.6k ms -> 7.1k ms.

MozReview-Commit-ID: L6HqvBK5I4i

--HG--
extra : rebase_source : f67c5ed207a4684edc4a3e7779dabd59c7f98608
2017-07-24 18:12:05 -07:00
Wes Kocher 4383c4b9db Backed out 6 changesets (bug 1369604) for android bustage in activitystream/Utils.java a=backout CLOSED TREE
Backed out changeset 07ae1124989b (bug 1369604)
Backed out changeset 10a40b857266 (bug 1369604)
Backed out changeset e49ad83bc31b (bug 1369604)
Backed out changeset b33806ccdd9f (bug 1369604)
Backed out changeset e226cd5d64b2 (bug 1369604)
Backed out changeset 9e2a5ef546dd (bug 1369604)

MozReview-Commit-ID: 2IwX8r9b56D
2017-07-28 19:31:38 -07:00
Michael Comella 89be7ed01c Bug 1369604: Add additional comments to Highlights performance changes. r=mcomella
MozReview-Commit-ID: A5uzxbKisWF

--HG--
extra : rebase_source : dd1f11bdde21094c7bcb0ba7e4b329cbd1d32152
2017-07-28 18:06:48 -07:00
Michael Comella 2a18f14708 Bug 1369604 - review: rm comment from WONTFIX'd bug. r=mcomella
MozReview-Commit-ID: 5zgonuODZHQ

--HG--
extra : rebase_source : 6134d15c81b174f44bbe61f21b2b19da5d68ede0
2017-07-28 17:58:05 -07:00
Michael Comella 20f26fac53 Bug 1369604: Force lazily-loaded metadata to load on background thread. r=liuche
This undoes a caveat created from the last changeset; I did not profile this
change.

MozReview-Commit-ID: 6jpXyt0GRUj

--HG--
extra : rebase_source : 7d09b16829376caf1116364e71dddbab7a5314a3
2017-07-28 15:02:57 -07:00
Michael Comella 1c5e09f003 Bug 1369604: Replace Metadata JSON parsing with faster regex matching. r=liuche
I replaced JSON parsing for all highlight candidates (at most, 500) with a
faster estimation using regex: we only use the full JSON parsing to get the
perfect values for the items to be shown (~5).

One caveat of this change: JSON parsing will be moved to the main thread when
the getMetadataSlow is lazily-loaded.

Disclaimer: my device seems to be running faster than yesterday so profiling
may not be consistent but here are the profiling results:
- HighlightsRanking.extractFeatures: 78.1% -> 54.5%
- Highlight.<init>: 26.5% -> 14.5%
- JSONObject.<init>: 11.4% -> rm'd
- initFast*: (replaced JSONObject.<init> & friends) -> 4.2%

With ^ the disclaimer in mind, runtime decreased from 12.6s to 5.3s (this is
slower due to profiling).

MozReview-Commit-ID: CTqAyDDmaJQ

--HG--
extra : rebase_source : 8cc0ca6ba8cecbf00abdc5de9477a5760d89df0b
2017-07-28 13:45:41 -07:00
Michael Comella 2051df0aa9 Bug 1369604: Replace features HashMap with indexing into an array. r=liuche
After the previous changeset, some numbers stood out:
- HighlightsRanking.extractFeatures: 44.9%
- HighlightCandidate.getFeatureValue: 19.4%
- Collections.secondaryHash: 17.3%
- HashMap.get: 11.7%

My hypothesis was that our HighlightCandidate.features implementation was slow:
it was mapping FeatureNames -> values in a HashMap but HashMap look-ups are
slower than a direct memory access.

I replaced the implementation with a direct access from an array - about as
fast as we can get. This encouraged me to make some changes with the following
benefits:
- Rewrote HighlightsRanking.normalize to save iterations and allocations.
- Rm code from HighlightsRanking.scoreEntries: we no longer need to iterate to
construct the filtered items, we just index directly into the list
- Rewrote HighlightsRanking.decay(), which I think is a little clearer now.
- Saved a few iterator/object allocations inside inner loops in places.

The tests pass and we have coverage for the normalize changes but not for
scoreEntries.

---

For perf, my changes affected multiple methods so the percentages are no longer
reliable but I can verify absolute runtime changes. I ran three tests, the best
of which showed an overall 33% runtime compared to the previous changeset and
the other two profiles showed a 66% overall runtime. In particular, for the
middle run, the changes for affected methods go from X microseconds to Y
microseconds:
- Features.get: 3,554,796 -> 322,145
- secondaryHash: 3,165,785 -> 35,253
- HighlightsRanking.normalize: 6,578,481 -> 1,734,078
- HighlightsRanking.scoreEntries: 3,017,272 -> 448,300

As far as I know, my changes should not have introduced any new inefficiencies
to the code.

MozReview-Commit-ID: 9THXe8KqBbB

--HG--
extra : rebase_source : 0c3f4c4f1e854d96c77bace60392fc4c7274e6e7
2017-07-26 17:16:14 -07:00
Michael Comella e9ca4bd675 Bug 1369604: Use HighlightCandidateCursorIndices to cache. r=liuche
This reduces the calls to `getColumnIndexOrThrow` to 9 (from 1.6k) and
HighlightsRanking.extractFeatures goes from 77.1% inclusive CPU time -> 40.8%,
14.6k ms -> 7.1k ms.

MozReview-Commit-ID: L6HqvBK5I4i

--HG--
extra : rebase_source : b190f8f29a2f1720d5a5b9eb2f703a9433ac6ace
2017-07-24 18:12:05 -07:00
Nick Alexander 7a883b81e5 Bug 1384695 - Use jcenter and maven.google.com Gradle tooltool archives. r=sebastian
These archives were produced by
https://treeherder.mozilla.org/#/jobs?repo=try&revision=b6d8156b5e765b1a9087ff27902268968ae36df6&selectedJob=118204985,
which will of course expire shortly.

MozReview-Commit-ID: 1op5wdp81vZ

--HG--
extra : rebase_source : e546c629506e3c29d0720ef4709a14f4a24de45b
2017-07-26 15:36:54 -07:00
Nick Alexander 727570c6d9 Bug 1384695 - Fetch Android Gradle dependencies from jcenter and maven.google.com. r=sebastian
I took the time to change jcentral (which is just wrong) to jcenter,
which is the tag used in the nexus.xml.

Order matters!  Gradle resolves dependencies in the order given.  That
is, jcenter is preferred to google.

MozReview-Commit-ID: CcWBukhiHa4

--HG--
extra : rebase_source : 73a3b3f013d9154ff3f5732593ba9fbe2b75d1f0
2017-07-26 12:03:45 -07:00
Luca Greco 3a310dee99 Bug 1382572 - Display Android options_ui of newly installed WebExtensions when about:addons is opened. r=mixedpuppy
MozReview-Commit-ID: HbTghvTdQ28

--HG--
extra : rebase_source : eed5d6b9642360d0b10ea3cf831806aa110f5a46
2017-07-28 14:58:44 +02:00
Wes Kocher 316fd8283a Merge m-c to inbound, a=merge
MozReview-Commit-ID: KcxntLtRalL

--HG--
rename : taskcluster/actions/__init__.py => taskcluster/taskgraph/actions/__init__.py
rename : taskcluster/actions/add-new-jobs.py => taskcluster/taskgraph/actions/add-new-jobs.py
rename : taskcluster/actions/registry.py => taskcluster/taskgraph/actions/registry.py
rename : taskcluster/actions/retrigger.py => taskcluster/taskgraph/actions/retrigger.py
rename : taskcluster/actions/run_missing_tests.py => taskcluster/taskgraph/actions/run_missing_tests.py
rename : taskcluster/actions/test-retrigger-action.py => taskcluster/taskgraph/actions/test-retrigger-action.py
rename : taskcluster/actions/util.py => taskcluster/taskgraph/actions/util.py
2017-07-28 17:54:59 -07:00
Dylan Roeh 7405f88773 Bug 1381536 - Replace GeckoBundle passed to ProgressListener.onSecurityChanged with a class. r=jchen
This adds a new class, GeckoView.ProgressListener.SecurityInformation, which provides an API for accessing the information passed to GeckoView in GeckoView:SecurityChange messages. GeckoView then passes this object to ProgressListener in onSecurityChanged() calls. Also updates CustomTabsActivity and GeckoViewActivity to reflect the new API and removes the old integer security status param from onSecurityChanged.
2017-07-28 17:14:01 -05:00
John Lin b5035acbc8 Bug 1383479 - allow null output buffers when codec is configured with output surface. r=esawin
It appears that on some devices (e.g., Huawei P10) the video decoder returns null output buffers rather than the common 8 bytes graphic buffer handles.

MozReview-Commit-ID: 2Wp7gDuN2pV

--HG--
extra : rebase_source : ceed957e5db98c13400a6195ad937f74e0b7d7a9
2017-07-27 14:37:29 +08:00
Jim Chen af6781b3fc Bug 1382724 - Capture select and input click events; r=me
Capture click events for select and input elements to restore previous
behavior. This will always invoke helper prompts for those elements,
even if scripts stop the click event propagation. r=me for trivial
patch.

MozReview-Commit-ID: KOfjc58Zb0Y
2017-07-31 17:54:06 -04:00
James Willcox 25dad4abf2 Bug 1381916 - Remove frontend support for plugins in Fennec r=nechen
MozReview-Commit-ID: Gkqe8Y5AMPV
2017-07-31 12:25:16 -05:00
Michael Comella 54ee831945 Bug 1369604: Add additional comments to Highlights performance changes. r=mcomella
MozReview-Commit-ID: A5uzxbKisWF

--HG--
extra : rebase_source : 1f3b1d52c1a9b2f1c0fdd7c85ae3615720622e49
2017-07-28 18:06:48 -07:00
Michael Comella f4944b7a6e Bug 1369604 - review: rm comment from WONTFIX'd bug. r=mcomella
MozReview-Commit-ID: 5zgonuODZHQ

--HG--
extra : rebase_source : 4170e830ba1074532f9e97f05dbf66bc1c4e8d09
2017-07-28 17:58:05 -07:00
Michael Comella 3f38bf8c55 Bug 1369604: Force lazily-loaded metadata to load on background thread. r=liuche
This undoes a caveat created from the last changeset; I did not profile this
change.

MozReview-Commit-ID: 6jpXyt0GRUj

--HG--
extra : rebase_source : 33d8a0d1e20bf927ac8a09dc34b8acf1684ea416
2017-07-28 15:02:57 -07:00
Michael Comella 8bd45aaf55 Bug 1369604: Replace Metadata JSON parsing with faster regex matching. r=liuche
I replaced JSON parsing for all highlight candidates (at most, 500) with a
faster estimation using regex: we only use the full JSON parsing to get the
perfect values for the items to be shown (~5).

One caveat of this change: JSON parsing will be moved to the main thread when
the getMetadataSlow is lazily-loaded.

Disclaimer: my device seems to be running faster than yesterday so profiling
may not be consistent but here are the profiling results:
- HighlightsRanking.extractFeatures: 78.1% -> 54.5%
- Highlight.<init>: 26.5% -> 14.5%
- JSONObject.<init>: 11.4% -> rm'd
- initFast*: (replaced JSONObject.<init> & friends) -> 4.2%

With ^ the disclaimer in mind, runtime decreased from 12.6s to 5.3s (this is
slower due to profiling).

MozReview-Commit-ID: CTqAyDDmaJQ

--HG--
extra : rebase_source : 326b04e32eae97adfd5d48d9a53fae507bf0e40a
2017-07-28 13:45:41 -07:00
Michael Comella b6c9a1f711 Bug 1369604: Replace features HashMap with indexing into an array. r=liuche
After the previous changeset, some numbers stood out:
- HighlightsRanking.extractFeatures: 44.9%
- HighlightCandidate.getFeatureValue: 19.4%
- Collections.secondaryHash: 17.3%
- HashMap.get: 11.7%

My hypothesis was that our HighlightCandidate.features implementation was slow:
it was mapping FeatureNames -> values in a HashMap but HashMap look-ups are
slower than a direct memory access.

I replaced the implementation with a direct access from an array - about as
fast as we can get. This encouraged me to make some changes with the following
benefits:
- Rewrote HighlightsRanking.normalize to save iterations and allocations.
- Rm code from HighlightsRanking.scoreEntries: we no longer need to iterate to
construct the filtered items, we just index directly into the list
- Rewrote HighlightsRanking.decay(), which I think is a little clearer now.
- Saved a few iterator/object allocations inside inner loops in places.

The tests pass and we have coverage for the normalize changes but not for
scoreEntries.

---

For perf, my changes affected multiple methods so the percentages are no longer
reliable but I can verify absolute runtime changes. I ran three tests, the best
of which showed an overall 33% runtime compared to the previous changeset and
the other two profiles showed a 66% overall runtime. In particular, for the
middle run, the changes for affected methods go from X microseconds to Y
microseconds:
- Features.get: 3,554,796 -> 322,145
- secondaryHash: 3,165,785 -> 35,253
- HighlightsRanking.normalize: 6,578,481 -> 1,734,078
- HighlightsRanking.scoreEntries: 3,017,272 -> 448,300

As far as I know, my changes should not have introduced any new inefficiencies
to the code.

MozReview-Commit-ID: 9THXe8KqBbB

--HG--
extra : rebase_source : 2358fe83acebaf04a61d912e88f8cf420b7df3d7
2017-07-26 17:16:14 -07:00
Michael Comella 0d088f904d Bug 1369604: Use HighlightCandidateCursorIndices to cache. r=liuche
This reduces the calls to `getColumnIndexOrThrow` to 9 (from 1.6k) and
HighlightsRanking.extractFeatures goes from 77.1% inclusive CPU time -> 40.8%,
14.6k ms -> 7.1k ms.

MozReview-Commit-ID: L6HqvBK5I4i

--HG--
extra : rebase_source : e3f3997abb8c625bf121927be3140e43378f644e
2017-07-24 18:12:05 -07:00
Nick Alexander 1d27f5cfe8 Bug 1376306 - Use new Android SDK and Java 1.8 tooltool toolchains. r=sebastian
MozReview-Commit-ID: 8xwg3bgkBqD

--HG--
extra : rebase_source : 1d6629c6efa85737d155853568d755670f3ea6e0
2017-07-27 11:23:30 -07:00
Nick Alexander 6e4a13fad8 Bug 1376306 - Bootstrap and upload java_home.tar.xz; bump Java to 1.8. r=dustin,sebastian
MozReview-Commit-ID: 3EOsrOp924f

--HG--
rename : taskcluster/scripts/misc/repackage-jdk-centos.sh => taskcluster/docker/android-gradle-build/bin/repackage-jdk-centos.sh
extra : rebase_source : 308d03828a78036076f6cdb68587be6694ac49ae
2017-07-25 20:43:14 -07:00
Nick Alexander fcb4a0775e Bug 1255227 - Part 2: Bootstrap and upload android-sdk-linux.tar.xz. r=dustin,sebastian
Before this patch, we used the Gradle sdk-manager-plugin to download
and install Android SDKs and other dependencies.  This plugin is now
deprecated; the main dependency downloading functionality has been
incorporated into the Android-Gradle build plugin.  Unfortunately,
it's been incorporated into newer versions that in turn require newer
toolchains than we currently support, so we can't use the new
functionality immediately.

Rather than replace sdk-manager-plugin with equivalent Gradle-based
functionality, this ticket uses recently added bootstrap functionality
to bootstrap the Android SDK during the dependencies task.  It then
_uses_ that SDK to run the dependency fetching task, _produces_ an
android-sdk-linux.tar.xz, and then _uploads_ the new artifact as a
private artifact, ready to be pushed into tooltool.  This avoids
engineers building this critical part of the toolchain locally
themselves, and will also feed into ongoing work to push toolchain
artifacts into build jobs in Task Cluster.


MozReview-Commit-ID: B6FC0ugaCef

--HG--
extra : rebase_source : 782719438a464b8021db58be398be9d5afb3b543
2017-07-19 15:45:31 -07:00
Nick Alexander 7c0822f53f Bug 1255227 - Part 1: Stop using deprecated android-sdk-manager Gradle plugin. r=sebastian
This was only ever used to automatically fetch Android SDK
dependencies in the android-gradle-dependencies job in Task Cluster.
That function is now provided by newer Android-Gradle build plugins.

MozReview-Commit-ID: Adrxm2rAPlZ

--HG--
extra : rebase_source : 6cccb53e2ebc2642ee6c61ef13fcb6d8321b67cf
2017-07-18 09:46:09 -07:00
Nick Alexander 4bbca312cf Bug 1384680 - Generalize GRADLE_MAVEN_REPOSITORY to GRADLE_MAVEN_REPOSITORIES. r=gps,sebastian
I'm confident nobody is configuring this locally, so there's no reason
to keep the existing name (and grow the new semantics) nor to
deprecate the existing name explicitly.

MozReview-Commit-ID: HW3epgwZFpO

--HG--
extra : rebase_source : d328f9ce9299dcd80e508925314236747aee1ea3
2017-07-26 11:28:07 -07: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
Luca Greco dd6ab49bcd Bug 1380575 - Fix aListItem is undefined when uninstalling from Androud about:addons page. r=mixedpuppy
MozReview-Commit-ID: HrJ17Tu81Hm

--HG--
extra : rebase_source : 537f3280c55b10597a88087ee70b98fccfedc0a2
2017-07-28 14:56:18 +02:00
Luca Greco e3c2b4089a Bug 1380575 - Fix Android WebExtension options page rendered on other extension details. r=mixedpuppy
MozReview-Commit-ID: LXRhx1DKTek

--HG--
extra : rebase_source : c4511d9b962a297178ba32168ad707f24a92b1a9
2017-07-28 12:17:07 +02:00
Luca Greco c61ea69d57 Bug 1380575 - Fix EventEmitter lazy import for browserAction on Android. r=mixedpuppy
MozReview-Commit-ID: DvcRCQKHxI

--HG--
extra : rebase_source : c5b7346354fdd98914eface13e0b1eb0eb00b622
2017-07-28 12:15:24 +02:00
Thomas Nguyen 0750620b3e Bug 1366384 - Add Google attribution on Safe Browsing warning pages r=francois,johannh,maliu
MozReview-Commit-ID: AetAscS1Bkw

--HG--
extra : rebase_source : 692c2730e62a5cf4580b19aa8f4e472f75fc97b2
2017-06-14 17:36:02 +08:00
Wes Kocher 7149e44594 Merge autoland to m-c a=merge
MozReview-Commit-ID: 4MCb0ASsMxe
2017-07-27 16:09:49 -07:00
Wes Kocher f261d30656 Merge inbound to central, a=merge
MozReview-Commit-ID: LIvzHYZ1ar8
2017-07-27 15:44:09 -07:00
Mike Hommey 752fca1923 No bug - Use l10n tooltool manifest for osx repacks and disable compile environment for android l10n. r=Callek,a=bustage
This should fix the repacks bustage from bugs 1384418, 1384419 and 1384420.
2017-07-28 06:59:30 +09:00
Carsten "Tomcat" Book d360d49d2a merge mozilla-inbound to mozilla-central a=merge 2017-07-27 10:57:25 +02:00
Carsten "Tomcat" Book c4e7d0a39e merge mozilla-central to autoland
--HG--
extra : rebase_source : 0f0f666839de9bee40c2d469fd8dd7e63b266f69
2017-07-27 11:38:15 +02:00
John Lin 94ddd6bc3b Bug 1384495 - p1: remove end of input flag. r=esawin
The flag is needed only for the old onInputExhausted() callback and should not be used for onInputStatus(). (It prevents native implementation from receiving notification required for resolving promise.)

MozReview-Commit-ID: 9NKmY38zHGI

--HG--
extra : rebase_source : ee4b7a2edd82a13f63063ecd5a2b1387485a3aa2
2017-07-26 15:07:23 +08:00
Michael Comella b5558f142f Bug 1377287 - review: Only update views if they're the same as when asyncTask began. r=mcomella
MozReview-Commit-ID: 8XA32VFNSH7

--HG--
extra : rebase_source : fc0bc57794c54b7fce325437a7b080b7147d04db
2017-07-26 15:32:14 -07:00
Michael Comella 5690789c4b Bug 1377287 - review: getHostSLD returns empty str on error. r=mcomella
In response to https://bugzilla.mozilla.org/show_bug.cgi?id=1377287#c26:
getHostSLD should only return hosts.

MozReview-Commit-ID: IFN5FWjFLx4

--HG--
extra : rebase_source : c077833c1fb71be64a0283646d62aa77e9edc4d6
2017-07-26 15:08:40 -07:00
Michael Comella 7d1b6c6793 Bug 1377287: Rm now unused ActivityStream.extractLabel. r=sebastian
MozReview-Commit-ID: KP2AxzVA3CL

--HG--
extra : rebase_source : 4bb1cad81b141e226bca0f65baa7d715e5f44fe3
2017-07-19 14:38:18 -07:00
Michael Comella 93ece99715 Bug 1377287: Use FFiOS label algorithm for BottomSheetContextMenu. r=sebastian
MozReview-Commit-ID: LWan7wVNASb

--HG--
extra : rebase_source : 4b6ad85b682b6cf8999be89b481ebe55b50f8f8b
2017-07-19 14:36:14 -07:00
Michael Comella 787d50fb2d Bug 1377287: Update TopSitesCard label to iOS algorithm. r=sebastian
MozReview-Commit-ID: CIfFqABGmq7

--HG--
extra : rebase_source : d5d18f5bf2824c6b86488aaa2ebd58f080176830
2017-07-19 14:08:32 -07:00
Michael Comella d310bde422 Bug 1377287: Update highlights label algorithm to match FFiOS. r=sebastian
MozReview-Commit-ID: KLRdP9wXh1N

--HG--
extra : rebase_source : 44502956ea75ac1ae32620c24ceea654e90c0d43
2017-07-18 15:03:39 -07:00
Michael Comella d9e21fa263 Bug 1377287: Add URIUtils.getHostSecondLevelDomain and friends. r=liuche
This is used by the iOS implementation of AS to get the highlight titles.

MozReview-Commit-ID: 1p5Lf9OBcfD

--HG--
extra : rebase_source : f2a71e2a27c56fadff6710d3e321678a71994c8a
2017-07-17 18:10:16 -07:00
Michael Comella d15ed3c1fa Bug 1377287: Add PublicSuffix.getPublicSuffix. r=liuche
This should not be run in AS yet because each time it's called, it reads from
the disk and even the tests on desktop take 3s+ to run.

MozReview-Commit-ID: 5h4BcH3myCn

--HG--
extra : rebase_source : cf4c9465a211f369d0ceb6b0e56a22c5f0ad6c1c
2017-07-17 16:37:02 -07:00
Michael Comella 32b87e00b5 Bug 1377287: Rename HighlightItem internal views to something easier. r=sebastian
I could not make sense of the existing names at all.

Bug 1379021 is going to:
- Remove the vTimeSince view, so I didn't change the name
- Create a new layout file, so I didn't change the resource IDs accordingly

MozReview-Commit-ID: 1WUzyhrzQYZ

--HG--
extra : rebase_source : fdf218b3e965a28f5a519c32fa7a745257885e2a
extra : source : 4b47118ce5bbb26c5c0b999790730d41c27e77e6
2017-07-17 13:20:29 -07:00
Mike Hommey 0f1ddd55b2 Bug 1384418 - Remove gcc entries from tooltool manifests. r=gps
--HG--
extra : rebase_source : 815c57f65ee9a9954d11ac890fb6e0ba56f1842c
2017-07-26 15:28:29 +09:00
Mike Hommey ba682f0aa4 Bug 1384417 - Remove sccache entries from tooltool manifests. r=gps
--HG--
extra : rebase_source : 11719df12969beea3f717dad9dc596e4d842bf69
2017-07-26 15:05:13 +09: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
maliu f4647149e4 Bug 1316462 - Increase minsdk to 16 and remove EOL notification. r=sebastian, r=snorp, r=rnewman
MozReview-Commit-ID: 7o1xqIqVWC6

--HG--
extra : amend_source : acfca8a9899399772a0387f2a3cbba27969d367a
2017-07-27 08:27:08 -04:00
Edouard Oger 03513f17af Bug 1351104 part 4 - Sync the clients collection after an update. r=Grisha
MozReview-Commit-ID: 2NvrYEVL7ZZ

--HG--
extra : rebase_source : 2f104517f5dfd83f0f8530ff2ea4e3adb0ecd386
2017-06-13 16:01:33 -04:00
Edouard Oger 4d981374e4 Bug 1351104 part 3 - Refresh the FxA device list on client disconnected push notification. r=Grisha
MozReview-Commit-ID: IxpBxaBROGv

--HG--
extra : rebase_source : b7f25868991827eca2fb7d5dc3a713a63fda910d
2017-06-07 16:31:13 -04:00
Edouard Oger 5fccf18ee5 Bug 1351104 part 2 - Filter the clients list in Send Tab with the FxA device list. r=Grisha
MozReview-Commit-ID: KqSyWVfwva3

--HG--
extra : rebase_source : 49b3eadec9527bc51f99747bc9f5a2bc9f24822a
2017-06-07 16:24:30 -04:00
Edouard Oger 322ba44ea6 Bug 1351104 part 1 - Store the fxaDeviceId in the Clients database. r=Grisha
MozReview-Commit-ID: Hs25rAX6dIB

--HG--
extra : rebase_source : 15eb9bf8c3f088e9bdc454b625620b69effce591
2017-06-07 14:41:38 -04:00
Mehdi Soleimannejad 8e628aaad9 Bug 1349797 - Make domain autocompletion case-insensitive. r=JanH
MozReview-Commit-ID: EQy9qbTnBFQ

--HG--
extra : rebase_source : fe774230b1614992c2eca271dafcdaad149e39d9
2017-07-26 18:41:36 +04:30
Luca Greco 2c4bd16f6a Bug 1375857 - Fix browserAction Android menu items corrupting addon menu items cache. r=sebastian
MozReview-Commit-ID: C3uVEY6mnJM

--HG--
extra : rebase_source : 78890411060372323f4d624740677c4197052a43
2017-07-27 20:27:36 +02:00
Sebastian Kaspari 08f1331fa8 Bug 1379021 - Update top sites layout to match updated UI mocks. r=mcomella
MozReview-Commit-ID: JA2xMC2IONJ

--HG--
extra : rebase_source : d66a0b310437e2b332fa9ac1ab587ce0cfc68d60
2017-07-19 14:27:38 +02:00
Sebastian Kaspari 133fa4e3e3 Bug 1379021 - Remove pager indicator from top sites. r=mcomella
MozReview-Commit-ID: 1mOmVwgplGF

--HG--
extra : rebase_source : b4ab9e5481ce252342af3d9f88ec5a468b142d1d
2017-07-13 16:23:54 +02:00
Sebastian Kaspari 143416a484 Bug 1379021 - Draw a horizontal divider between highlight items. r=mcomella
MozReview-Commit-ID: Er7TPfw6Xb3

--HG--
extra : rebase_source : 0047613ee7cebae5802b914b60436f168141f0d9
2017-07-13 14:00:28 +02:00
Sebastian Kaspari 3f0db7151c Bug 1379021 - Remove divider from highlights title layout. r=mcomella
MozReview-Commit-ID: Kvp4SqpGtMj

--HG--
extra : rebase_source : 4fcb7c07d7a805a30eb12892c4d9360466b8f723
2017-07-13 13:27:32 +02:00
Sebastian Kaspari 29b5a06b69 Bug 1379021 - Remove card wrapper from highlight items. r=mcomella
MozReview-Commit-ID: 3CYSz6aTxqm

--HG--
extra : rebase_source : 3fb8d58489f3206082f5562738e4d70a77537283
2017-07-13 13:23:49 +02:00
Carsten "Tomcat" Book 198430bca2 merge mozilla-inbound to mozilla-central a=merge 2017-07-26 11:11:40 +02:00
Wes Kocher f19f28adfd Merge m-c to autoland, a=merge
MozReview-Commit-ID: F1X8wKqbkg
2017-07-25 19:16:09 -07:00
Wes Kocher 65bbd0525a Merge inbound to central, a=merge
MozReview-Commit-ID: E4oXfAM1mtd
2017-07-25 19:04:37 -07:00
cnevinc 7c4d1b0d64 Bug 1383762 - Change the event timing for adding a new normal tab. r=maliu
MozReview-Commit-ID: Lyf7yeTFpzq

--HG--
extra : rebase_source : 112d0a71be5b46b1238bb2849e96ba1ba36053b4
2017-07-26 00:30:22 +08:00
Carsten "Tomcat" Book bdf7db3d13 Merge mozilla-central to mozilla-inbound
--HG--
rename : dom/tests/mochitest/chrome/test_window_getAppLocales.html => dom/tests/mochitest/chrome/test_window_getRegionalPrefsLocales.html
rename : mobile/android/app/src/main/res/drawable/as_contextmenu_divider.xml => mobile/android/app/src/main/res/drawable/as_contextmenu_divider_helper.xml
rename : testing/tools/autotry/autotry.py => tools/tryselect/selectors/syntax.py
extra : rebase_source : d74c74a654cd977d35e35de2768ada4ebe659ae4
2017-07-25 14:38:43 +02:00
Eugen Sawin f97860703b Bug 1381983 - [3.0] Add context menu support for media elements. r=snorp 2017-07-25 14:41:49 +02:00
Eugen Sawin 401b7f23bc Bug 1381983 - [2.1] Add default/stub implementations of the context menu handlers. r=snorp 2017-07-25 14:41:49 +02:00
Eugen Sawin 70800ca13d Bug 1381983 - [1.1] Add context menu event handler to the content delegate. r=snorp 2017-07-25 14:41:49 +02:00
Sebastian Kaspari 7048132c89 Bug 1383081 - (DLC) DownloadAction: Flush stream before verifying checksum. r=mcomella
MozReview-Commit-ID: 9hrUM9Jv6dA

--HG--
extra : rebase_source : 204921b654f02e29c8716e3c9d1af5a939f7b3d8
2017-07-21 17:45:22 +02:00
Kaku Kuo 93e37baf6b Bug 1383610 - turn off preference on desktop version release channel but keep the Fennec on; r=bwu
MozReview-Commit-ID: 38RLaR3Vxeh

--HG--
extra : rebase_source : 293084229ec1546222dadf6737b67330075c369b
2017-07-24 13:29:04 +08:00
James Cheng 4843d195fb Bug 1382151 - Pause Exoplayer when mediaelement is paused. r=kikuo
MozReview-Commit-ID: 5MDBBP5vfpa

--HG--
extra : rebase_source : 9981585791cd359296ac7fef0fe0d7e900af6c61
2017-07-20 17:47:54 +08:00
Nevin Chen b3d37628ea Bug 1380698 - Use SVG for splash screen logo for all channels. r=maliu
MozReview-Commit-ID: 8e7LPmaEaP5

--HG--
extra : rebase_source : a754d1fb7fec39f545b0e86d651dd277f4ad2c87
2017-07-19 19:12:50 +08:00
Nevin Chen d31a86af83 Bug 1383765 - Add Leanplum event for new tab for Tablet. r=maliu
MozReview-Commit-ID: ILTA0x6pDCx

--HG--
extra : rebase_source : 14a32a13710965cc8a18eaca3008cdf468ab6065
2017-07-25 11:34:22 +08:00
Michael Comella 40e8440da2 Bug 1367024: Fix array index out of bounds in StreamRecyclerAdapter. r=liuche
I'm a little concerned that this will hide other bugs but it's pretty
complicated to track down without an STR (e.g. what are all the possible ways
we load the HomePager with TopSites as the default and swap in new highlights?
How about unloading? When is onSizeChanged called?) so I don't think it's worth
investigating further.

MozReview-Commit-ID: 6OuFJ2iQsdL

--HG--
extra : rebase_source : 576e29298f131870fed987793663de499285ab1d
2017-07-19 16:35:44 -07:00
maliu 307560d975 Bug 1382081 - Notify ICS user EOL, r=sebastian
MozReview-Commit-ID: 36clTSg6qKY
2017-07-18 19:00:00 +02:00
Wes Kocher 1c6b33b69a Merge m-c to inbound, a=merge
MozReview-Commit-ID: AwACQvl2e5g

--HG--
extra : rebase_source : e70812f9a96acf1d0747cb7ea57afa1e2152283b
2017-07-25 19:09:39 -07:00
Chenxia Liu e044c4fc6f Bug 1382489 - decode urls before opening them. r=mcomella
MozReview-Commit-ID: 9R6ytSgajEE

--HG--
extra : rebase_source : 1c7f08f28eb2c9f6d468ab4b9de3c2cd9fefd7dd
2017-07-20 17:17:42 -07:00
Chenxia Liu 0f77ff8ffd Bug 1337407 - Add rtl divider resource. r=mcomella
MozReview-Commit-ID: 8ALzaHfRX4h

--HG--
rename : mobile/android/app/src/main/res/drawable/as_contextmenu_divider.xml => mobile/android/app/src/main/res/drawable/as_contextmenu_divider_helper.xml
extra : rebase_source : 43d4e6b84cf432cff8a484fc18a0018c1980a814
2017-07-20 19:51:18 -07:00
Mike Hommey f751ce9e63 Bug 1382502 - Include mozconfig.cache in most cases. r=ted
We want most builds to be actually using sccache, so we include
mozconfig.cache from mozconfig.common. However, since the --with-ccache
configure option doesn't exist on non-compile jobs (e.g. artifact
builds), we move to using the CCACHE environment variable instead, which
allows us to unset it in mozconfig.no-compile.

And since mozconfig.no-compile is always included where no_sccache is
set, we can remove that variable.

--HG--
extra : rebase_source : a8c743de1fd7a3c0fbc53f7c233df36585897767
2017-07-20 11:07:53 +09:00
Jim Chen d7051087d1 Bug 1382862 - Remove GeckoViewFragment; r=droeh
GeckoViewFragment was more of a hack for GeckoApp-based custom tabs, and
if we want to provide a fragment implementation for GeckoView, I think
it'll look a lot different than today's GeckoViewFragment. So for now, I
think it's best to revert the changes that added GeckoViewFragment, and
that also simplifies GeckoView lifecycle management.

MozReview-Commit-ID: 5WzIZ8TyBDV
2017-07-25 17:27:03 -04:00
Tushar Saini (:shatur) f3ac359f5b Bug 1362998 - Implement browsingData.removeCookies WebExtension API method on android. r=bsilverberg
MozReview-Commit-ID: 9h5YegFelhe

--HG--
extra : rebase_source : 07285600a45ca5784998fb3b1f25a17f70832497
2017-07-23 17:14:03 +05:30
Carsten "Tomcat" Book b3e81e29a0 Merge mozilla-central to autoland 2017-07-24 15:00:31 +02:00
Carsten "Tomcat" Book 025e8b8084 merge autoland to mozilla-central a=merge 2017-07-24 12:58:19 +02:00
L10n Bumper Bot 39972af5ba no bug - Bumping Fennec l10n changesets r=release a=l10n-bump
be -> ['android', 'android-api-15', 'android-multilocale']
zam -> ['android', 'android-api-15', 'android-multilocale']
2017-07-23 03:00:39 -07:00
Sebastian Hengst cbee9f9b51 merge mozilla-central to autoland. r=merge a=merge 2017-07-22 13:13:31 +02:00
Sebastian Hengst c5d5d2452d Backed out changeset 55070d5d1a59 (bug 1362617) for breaking OS X L10n nightlies. r=backout a=backout
MozReview-Commit-ID: 3rwifpDf2aK
2017-07-22 13:12:06 +02:00
Delphine Lebédel cac312c658 Bug 1383345 - Add zam and be in Fennec maemo-locale for multi-locale builds, r=flod
MozReview-Commit-ID: BOKQEXODxmF

--HG--
extra : rebase_source : 41007e0d618391a1f407b57a0a6f85aae36ff12d
2017-07-21 18:00:04 -07:00
jwu 7ba089a64e Bug 1380983 - Show title as "Edit Folder" when editing a bookmark folder. r=Grisha
MozReview-Commit-ID: 7l20XXj2jHP

--HG--
extra : rebase_source : 3092fdf757067f7e4aea9ec8a66e3c2fbfc049de
extra : source : e158cde0743caf406f631aaf2219f9915b075f7c
2017-07-24 09:06:51 +08:00
Johann Hofmann 3eac596d72 Bug 1371219 - Add an inputSource attribute to XULCommandEvent. r=smaug
In the frontend we need to know if XUL buttons in the toolbar were
triggered by a touch event, so we're passing on the inputSource
in the command event.

MozReview-Commit-ID: DMvgZULk9hT

--HG--
extra : rebase_source : c455c8ec77e439bf02c1e3e8d34a36e1fb5e3bd0
2017-07-20 17:45:56 +02:00
Ryan VanderMeulen d229288071 Merge m-c to autoland. a=merge
CLOSED TREE

--HG--
extra : amend_source : 2ab51304cc7df444f22c3aac001a1aba61faee3a
2017-07-21 09:42:41 -04:00
Sebastian Hengst cc77ff3d3e Backed out changeset 5350f45b9724 (bug 1366671) on request from flod. r=backout a=backout
MozReview-Commit-ID: 7PXCgF8Vcer

--HG--
rename : mobile/android/app/src/australis/res/drawable-hdpi/tip_addsearch.png => mobile/android/app/src/main/res/drawable-hdpi/tip_addsearch.png
rename : mobile/android/app/src/australis/res/drawable-xhdpi/tip_addsearch.png => mobile/android/app/src/main/res/drawable-xhdpi/tip_addsearch.png
rename : mobile/android/app/src/australis/res/layout/preference_search_tip.xml => mobile/android/app/src/main/res/layout/preference_search_tip.xml
rename : mobile/android/app/src/australis/res/layout/private_tabs_panel.xml => mobile/android/app/src/main/res/layout/private_tabs_panel.xml
2017-07-21 12:58:05 +02:00
Sebastian Hengst 4e2a73faa5 Backed out changeset 2edde0aaa0f6 (bug 1366671)
MozReview-Commit-ID: 4KukvTjyPya
2017-07-21 12:57:37 +02:00
Sebastian Hengst 367f0ac5a2 merge mozilla-inbound to mozilla-central. r=merge a=merge
MozReview-Commit-ID: IWRTFZdtzaE
2017-07-21 12:56:44 +02:00
Nick Alexander e3e9c413f0 Bug 1382774 - Configure android-gradle-dependencies to use jcenter instead of central. r=sebastian
The nexus.xml included in this patch is the result of starting Nexus
and manually adding the jcenter proxy repository using the Nexus web
administration interface (all in a Docker container).  I know of no
way to do this configuration incrementally without the web interface.
The diff between new and the default generated configuration is a
single new <repository>..</repository> element.

MozReview-Commit-ID: 2Bg5qX41pHB

--HG--
extra : rebase_source : c945acabcedd98439a0ca0e26251bab1a41de197
extra : source : 9b794a7fc266da1ae81afd795f91e72d04bbc992
2017-07-18 17:59:57 -07:00
Nick Alexander c3b258c6db Bug 1382774 - Pre: Don't fail |mach android gradle-dependencies|. r=sebastian
MozReview-Commit-ID: CI2Kqb1kceP

--HG--
extra : rebase_source : a6e1f2e957ea56f7dde754f9eaa102d4a8edbbfc
extra : source : 9c1dc421214744d219ab18173086a02ed9bbdb50
2017-07-19 12:54:10 -07:00
Michael Kaply 9c3a2bab1d Bug 1373818 - Don't hardcode our tracker per Adjust. r=rnewman
MozReview-Commit-ID: 5O04Qp2IP9U

--HG--
extra : rebase_source : bfb174c8b73a4d37105b8068bcbde2e01d03c55b
2017-07-07 14:27:58 -05:00
Sebastian Hengst 303141cf04 merge mozilla-central to mozilla-inbound. r=merge a=merge 2017-07-20 11:02:11 +02:00
Sebastian Hengst 68c1933983 merge mozilla-inbound to mozilla-central. r=merge a=merge
MozReview-Commit-ID: 2kKTSo87OJy
2017-07-20 10:56:34 +02:00
Chenxia Liu b743cc4898 Bug 1377295 - Use old Top Sites pinned sites in AS panel. r=mcomella
MozReview-Commit-ID: 6i3Cam8un45

--HG--
extra : rebase_source : 12dcbc18f7d41110b54cc79e2e1357fa906e0309
2017-07-18 18:43:35 -07:00
jwu bd2aad8d07 Bug 1366671 - Part 2: Support empty screen in private tabs panel. r=walkingice
MozReview-Commit-ID: 6I7y68DO9g2

--HG--
extra : rebase_source : 1589ee946186da1383f7621a3930bdc1d0b24982
extra : source : 2f97e0c082939dcf3b9128a418e8fa4c83dbd40f
2017-07-19 18:25:00 +08:00
jwu 2ee7d7fee6 Bug 1366671 - Part 1: Duplicate empty screen resoueces for Photon. r=walkingice
MozReview-Commit-ID: DB4zjDLyXBX

--HG--
rename : mobile/android/app/src/main/res/drawable-hdpi/tip_addsearch.png => mobile/android/app/src/australis/res/drawable-hdpi/tip_addsearch.png
rename : mobile/android/app/src/main/res/drawable-xhdpi/tip_addsearch.png => mobile/android/app/src/australis/res/drawable-xhdpi/tip_addsearch.png
rename : mobile/android/app/src/main/res/layout/preference_search_tip.xml => mobile/android/app/src/australis/res/layout/preference_search_tip.xml
rename : mobile/android/app/src/main/res/layout/private_tabs_panel.xml => mobile/android/app/src/australis/res/layout/private_tabs_panel.xml
extra : rebase_source : 5bf062f0ae01691f60257c9dc40ba9f2cc5d3c1a
extra : source : b46039adc5d181fd8f388aa2b895a4bfac082f6b
2017-07-18 18:22:05 +08:00
Isaac Schemm 94d1d5b78a Bug 1377765 - Apply calendar height workaround from bug 1245692 to Android 5.0.x. r=maliu
--HG--
extra : rebase_source : ecce67f881aa1c97fbe96025bb0a40c735c74581
2017-07-08 08:54:00 -04:00
Jim Chen 041a5b0a65 Bug 1351170 - 3. Do more to synchronize spans to shadow text; r=esawin
There are some situations where spans are not properly synced from
current text to shadow text. This patch takes more steps to make sure
spans are synchronized.

MozReview-Commit-ID: 1xhsJllE7Ro

--HG--
extra : rebase_source : 743828adfe9dfda93480a5372697989a77492d52
2017-07-19 14:30:00 -04:00
Ryan VanderMeulen 6b2894b72c Backed out changeset d38c3ad6fe5b (bug 1381984) for Android checkstyle bustage on a CLOSED TREE. 2017-07-19 21:40:06 -04:00
Michael Comella bb8ce21cdd Bug 1381984: Replace StringUtils.join with TextUtils.join. r=liuche
I verified the behavior is the same by replacing StringUtils.join with
TextUtils.join in the StringUtils.join test (which passed) before deleting it
all.

MozReview-Commit-ID: 1pmSdTuG0LU

--HG--
extra : rebase_source : 5d596b28f27f540a6ac57217b9e134e267e823e7
extra : source : 9cdc0fcca44abc8f2ec1ea8f853ca31f8d59ce10
2017-07-18 13:56:21 -07:00
jwu c5a5528ad8 Bug 1379503 - Configure magnifying glass(ImageButton) with transparent background. r=walkingice
The implementation of magnifying glass is changed from ImageView to ImageButton which causes to this gray background.
To keep it have same visual, we have to configure it with transparent background.

MozReview-Commit-ID: 33zYpylOzsC

--HG--
extra : rebase_source : a3d8ff4d00243e1c12465b8f67ccba337d62f34c
2017-07-19 17:59:26 +08:00
jwu 8f9f353935 Bug 1366678 - Highlight substrings in search suggestion/history if they match search term. r=walkingice
MozReview-Commit-ID: KwpgBaaSYn1

--HG--
extra : rebase_source : ea2b7d8fdee03d55e0c9227195eca593646ad263
extra : source : b58519fe1aed283dc44812a8c1568af062808f95
2017-07-19 15:08:48 +08:00
John Lin 8919c69749 Bug 1365205 - part 2: execute callback directly when already on the right looper/thread. r=esawin
MozReview-Commit-ID: 4rceodXTV3a

--HG--
extra : rebase_source : e776b405fc06d88ff097a98915a6c5cbe9042bb9
2017-07-17 11:40:17 +08:00
John Lin 6c297ac852 Bug 1365205 - part 1: check for buffer validness before processing it. r=esawin
flush() invalidates all buffers so buffer callbacks emitted earlier than that should not proceed when they're executed after.

MozReview-Commit-ID: 3KjCmW2VwTy

--HG--
extra : rebase_source : 11ea4f017e3add355f70762f8f43f82829f9ccd2
2017-07-17 11:36:49 +08:00
jwu 4269d242d1 Bug 1381501 - Remove redundant logo icons in australis resource folders. r=nechen,walkingice
We already have logo icons in different branding folders, the following 4 icons are redundant and
should be removed to prevent increasing APK size.

  - australis/res/drawable-hdpi/firefox_logo.png
  - australis/res/drawable-xhdpi/firefox_logo.png
  - australis/res/drawable-xxhdpi/firefox_logo.png
  - australis/res/drawable-xxxhdpi/firefox_logo.png

MozReview-Commit-ID: COWXJsYrAVE

--HG--
extra : rebase_source : 792c3406a906985fca142674a63498b8a5ea44fd
2017-07-19 09:29:52 +08:00
James Cheng d39db2d007 Bug 1381717 - [Fennec][HLS] Fix code defects found by Coverity in GeckoHlsPlayer.java. krr. r=kikuo
MozReview-Commit-ID: 8bFav7kqUbQ

--HG--
extra : rebase_source : aefc69dba285ca7a104b9f262a85da5b21f3c896
2017-07-18 10:55:35 +08:00
Nevin Chen da190dd88d Bug 1378445 - Add sound for notifications. r=snorp
MozReview-Commit-ID: EVLEfTeZOPg

--HG--
extra : rebase_source : 8da939ddb4ae64a22d4f4c8a09104bcde8831c69
2017-07-19 01:02:23 +08:00
Tushar Saini (:shatur) c7c7a878ef Bug 1362994 - Implement browsingData.settings WebExtension API method on android. r=bsilverberg,mattw,sebastian
MozReview-Commit-ID: G9frPBFPHCT

--HG--
rename : browser/components/extensions/schemas/browsing_data.json => mobile/android/components/extensions/schemas/browsing_data.json
extra : rebase_source : d6024c5e508a968ee9a22a991ef670afe4bc8d5a
2017-06-02 23:11:49 +05:30
Tushar Saini (:shatur) c5d48d3522 Bug 1362994 - Add support for HashMap prefs in SharedPreferences r=sebastian
MozReview-Commit-ID: Dv2lHdZj5Zn

--HG--
extra : rebase_source : 084b97899472d88d7aafed04131c4306f82f8829
2017-05-29 16:28:48 +05:30
Jim Chen 37e37382dc Bug 1322586 - 5. Implement PermissionDelegate for geckoview_example; r=droeh
Add a sample implementation of PermissionDelegate for geckoview_example;
Because the prompt code has some existing boilerplate, the actual
prompts are implemented in BasicGeckoViewPrompt.

MozReview-Commit-ID: EDfmRPn4cjR

--HG--
extra : rebase_source : 3b4b770c606a9be3326bca3acd87770c5f8bb4fa
2017-07-20 17:52:14 -04:00
Jim Chen 44c21b3e03 Bug 1322586 - 4. Add and implement PermissionDelegate support; r=esawin
Add PermissionDelegate interface and implement support for Android and
content permissions (WebRTC permissions will be implemented later).

MozReview-Commit-ID: 1B2DUjh8Ajw

--HG--
extra : rebase_source : 7c0a4489b136100ca57740512436bb8cccc62f3a
2017-07-20 17:52:14 -04:00
Jim Chen 931069320f Bug 1322586 - 3. Add GeckoViewPermission.js for handling permissions; r=esawin
Add GeckoViewPermission.js, which is responsible for handling requests
from Gecko for permissions, and passing those requests to GeckoView.

MozReview-Commit-ID: C0g24hKEYbf

--HG--
extra : rebase_source : fe949fde01ddba207b12f2bd49e52ea2bc8b8c5e
2017-07-20 17:52:14 -04:00
Jim Chen 808114784e Bug 1322586 - 2. Support content event forwarding in Messaging.jsm; r=esawin
For a lot of GeckoView content process code, we send a message from
content to chrome, using a message manager, only to forward the message
to Java as an event, using an event dispatcher. This patch gives
Messaging.jsm the ability to be used in content process directly, and
lets events transparently pass through to Java.

MozReview-Commit-ID: 15dKKpQCXqJ

--HG--
extra : rebase_source : 3ab93052de3676244843c55c50ae5ade63ab8f11
2017-07-20 17:52:13 -04:00
Jim Chen ec84922bdd Bug 1322586 - 1. Add "always listen" option for GeckoViewHandler; r=esawin
It would be nice to reuse GeckoViewHandler for delegates too (e.g. for
the new PermissionDelegate), but delegates need to always listen to
their events. This patch adds an "always listen" option for
GeckoViewHandler that still keeps track of the current listener/delegate
instance, but registers for all events at initialization rather than
only when there is a listener.

MozReview-Commit-ID: JtskpZMy9T4

--HG--
extra : rebase_source : 99170bc0b19d605dde4dbf08690bb31d310ed113
2017-07-20 17:52:13 -04:00
Jim Chen 963412d5e3 Bug 1381924 - Include WebRTC bits for GeckoView; r=nalexander
Include necessary WebRTC files and permissions for GeckoView. For
permissions, we need to add the RECORD_AUDIO permission to GeckoView's
AndroidManifest.xml, but since the file is not preprocessed, we can't
use an `#ifdef MOZ_WEBRTC` block, so I think we'll just have to
unconditionally include the permission.

MozReview-Commit-ID: IUd8FFMsW99

--HG--
extra : rebase_source : b75462d53e6bd05b324e8551c888853c8678ec6b
2017-07-20 18:24:12 -04:00
Michael Comella 8b22bb293b Bug 1381984: Replace StringUtils.join with TextUtils.join. r=liuche
I verified the behavior is the same by replacing StringUtils.join with
TextUtils.join in the StringUtils.join test (which passed) before deleting it
all.

MozReview-Commit-ID: 1pmSdTuG0LU

--HG--
extra : rebase_source : 3c20a5ceccaebd3d30a935b3ea20c87ace7d628f
extra : source : 9cdc0fcca44abc8f2ec1ea8f853ca31f8d59ce10
2017-07-18 13:56:21 -07:00
Zibi Braniecki 1e19736e16 Bug 1362617 - Generalize MOZ_CHROME_MULTILOCALE to work for browser as well. r=gps,ted
In order to get Firefox to work with multiple built-in languages, we want
to bundle the same file in desktop as we do in fennec - res/multilocale.json

MozReview-Commit-ID: BY1cMYd0q8Q

--HG--
extra : rebase_source : 4bc95d0055a98869481324654d9e91bdf0734894
2017-05-30 10:30:26 +02:00
Bob Clary cbac5391f2 Bug 1382004 - Autophone - disable rca flash test, r=jmaher. 2017-07-19 22:03:49 -07:00
Tomislav Jovanovic 6c93e76d0c Bug 1363886 - Part 2: Fix a number of async callback parameters schemas r=kmag
MozReview-Commit-ID: JY8r8IePEcw

--HG--
extra : rebase_source : e5a031affda3f28fb9eb3ebd0723e64648f20848
2017-07-25 20:57:45 +02:00
Jan Henning 9960024671 Bug 1278704 - Hide Fennec's floating reader view button when scrolling down. r=Gijs
MozReview-Commit-ID: 48wHUpet8ES

--HG--
extra : rebase_source : 3507290d9c8c7502bb2eae7f292c4472c18ec04e
2017-07-22 18:55:38 +02:00
Ralph Giles 9cc4f48d33 Bug 1382743 - Update builders to rust 1.19.0. r=mshal
New upstream stable release.

Unions (untagged enums) for (unsafe) interoperability with C.
The `break` keyword can yield an expression value from a `loop`.
Non-capturing closures coerce to function pointers.
Numeric initializers for tuple structs.

MozReview-Commit-ID: 6TMjzXZuBKg

--HG--
extra : rebase_source : 3596ad4a1a1e299a4520fe064389912aeb986968
2017-07-20 11:38:13 -07:00
Michael Comella 72d1bb18df Bug 1386052: Join PageMetadata table with Top Sites query. r=Grisha
This bug does not request that this join is used so I tested this by adding a
breakpoint in StreamRecyclerAdapter.swapTopSites cursor and querying the cursor
for the desired fields directly. I also verified this does not crash when
accessing the old top sites and AS top sites.

Since I now SELECT a subset of columns (rather than *), I verified I've
SELECTed all the used columns:

- For AS, we bind in TopSite.fromCursor:
https://dxr.mozilla.org/mozilla-central/source/mobile/android/base/java/org/mozilla/gecko/activitystream/homepanel/model/TopSite.java#21

- For old top sites, we bind in TopSitesPanel.CursorLoaderCallbacks.onLoadFinished.
This fans out to three methods: mListAdapter.swapCursor, mGridAdapter.swapCursor,
and updateUiFromCursor, the latter which only gets the count.
https://dxr.mozilla.org/mozilla-central/rev/52285ea5e54c73d3ed824544cef2ee3f195f05e6/mobile/android/base/java/org/mozilla/gecko/home/TopSitesPanel.java#692

- mListAdapter = VisitedAdapter, mGridAdapter = TopSitesGridAdapter, via
TopSitesPanel.onActivityCreated:
https://dxr.mozilla.org/mozilla-central/rev/52285ea5e54c73d3ed824544cef2ee3f195f05e6/mobile/android/base/java/org/mozilla/gecko/home/TopSitesPanel.java#292

- VisitedAdapter.bindView:
https://dxr.mozilla.org/mozilla-central/rev/52285ea5e54c73d3ed824544cef2ee3f195f05e6/mobile/android/base/java/org/mozilla/gecko/home/TopSitesPanel.java#549

- TopSitesGridAdapter.bindView:
https://dxr.mozilla.org/mozilla-central/rev/52285ea5e54c73d3ed824544cef2ee3f195f05e6/mobile/android/base/java/org/mozilla/gecko/home/TopSitesPanel.java#620

- Both adapters don't use any columns I haven't specified. They also call out
to TwoLinePageRow.updateFromCursor:
https://dxr.mozilla.org/mozilla-central/rev/52285ea5e54c73d3ed824544cef2ee3f195f05e6/mobile/android/base/java/org/mozilla/gecko/home/TwoLinePageRow.java#318

Which also doesn't use new columns.

MozReview-Commit-ID: 9bdeHWLWQbh

--HG--
extra : rebase_source : 5910e4fe10838c74f4662140131b050632c639f9
2017-08-01 16:02:50 -07:00
Michael Comella f8b2275050 Bug 1386052: Update testBrowserDatabaseHelperUpgrades from new info. r=Grisha
Grisha showed me the link from Android API level to SQLite version and
presumably all 3.7.* releases are forwards compatible so we can relax the
requirement of which version of Android the test DBs need to be created on: I
updated the comment accordingly.

MozReview-Commit-ID: Fhu95671kSK

--HG--
extra : rebase_source : 65bb4f565c1e5c64d91292077084324ba6f40dd6
2017-08-02 13:47:57 -07:00
Michael Comella 08bf284cf4 Bug 1386052: add Combined.HISTORY_GUID; upgrade db to 38. r=Grisha
This will be used to join with the PageMetadata table so we can extract
PageMetadata values in our top sites queries.

MozReview-Commit-ID: EmwjyFM1qUf

--HG--
extra : rebase_source : 54888226238ad4d25bbe6e8c1c34bcaef2522288
2017-08-01 14:21:54 -07:00
Michael Comella c57c0a107e Bug 1386052: Correct PageMetadata.HISTORY_GUID foreign key. r=Grisha
This change is fixing an issue unrelated to this bug.

It was using Visits.HISTORY_GUID, which is not in the table and thus doesn't
make sense for the first clause of the foreign key constraint. Visits & its
replacement have the same value so the behavior should not change.

MozReview-Commit-ID: 8EbJh586DN3

--HG--
extra : rebase_source : 91c54707cb021528144df81a369ae813ace9e975
2017-08-01 14:02:32 -07:00
Sebastian Hengst 4b1e562ea7 merge mozilla-central to autoland. r=merge a=merge 2017-07-20 10:57:40 +02:00
John Lin c016f71d92 Bug 1374572 - don't access disconnected remote binder. r=esawin
MozReview-Commit-ID: 6eYIbKgwRPd

--HG--
extra : rebase_source : 863a2e107c6a47ce5d428b4697d0a6190fae4aae
2017-07-19 12:53:04 +08:00
friedger 886d48d230 Bug 1366993 - With "Don't keep activities" on, search activity's 'New tab' doesn't work r=maliu
add handling of about:home in intent.data  explicitly.

MozReview-Commit-ID: D46VVQaR0Z1

--HG--
extra : rebase_source : 37db2673e52f28ac6db216417ac88337dafdfb6d
2017-06-08 15:12:10 +02:00
Munro Mengjue Chiang 43d2ca9d5b Bug 1379926 - Support request key frame for Lollipop. r=jolin
MozReview-Commit-ID: H2XBFsrFJA2

--HG--
extra : rebase_source : 856ad0ee3e4d77fe6f388c4eca736d97d622043b
2017-07-17 23:44:53 +08:00
Nevin Chen fffc9ee2bf Bug 1381149 - Link Leanplum Messages to wiki. r=liuche
MozReview-Commit-ID: 7DY9PL2YqPf

--HG--
extra : rebase_source : 369bf6300087948b89cdf00cd86d1d89596519dc
2017-07-17 11:44:54 +08:00
Nevin Chen 7502835042 Bug 1378175 - Remove non-sacled logo. r=maliu
MozReview-Commit-ID: 98h8T3xY72A

--HG--
extra : rebase_source : 9aa702879007287f61e0ff554275cac120918c2b
2017-07-17 18:04:17 +08:00
Michael Comella e7b68fd40e Bug 1341275 - review: Add comment explaining FaviconView.getWidth non-zero values. r=mcomella
MozReview-Commit-ID: 33RXaB4gCkK

--HG--
extra : rebase_source : 1605ce1c07f195fdd66eade01e57b184dac66e81
2017-07-17 11:37:45 -07:00
Michael Comella 84ee70b0dd Bug 1341275: Add mShouldShowImage flag to FaviconView. r=sebastian
I verified this fixed the issue by:
- Attaching a debugger and checking against the STR call order (comment 3).
- Ensuring the favicons in the SearchEngineRow looked correct

MozReview-Commit-ID: GJeh3FLim36

--HG--
extra : rebase_source : 2511fde68599e5a1ae2096ee186704e064426754
2017-07-14 15:44:21 -07:00
Michael Comella 4f4158878c Bug 1341275: Replace color 0 with Color.TRANSPARENT. r=sebastian
MozReview-Commit-ID: 2sekMgnU7mD

--HG--
extra : rebase_source : 7a6f5bee52c39d72410ab7976ddcc53c96b17179
2017-07-14 15:11:55 -07:00
Michael Comella b3d8860452 Bug 1341275: Rm redundant check for size change in onSizeChanged. r=sebastian
onSizeChanged should only be called when the size actually changes. However,
I did notice weird behavior in the debugger where `formatImage` appeared to be
called twice from onSizeChanged, however, I was unable to reproduce this
behavior with log statements.

MozReview-Commit-ID: A5amGqTxv55

--HG--
extra : rebase_source : 1a53346d35102f1925941d3723c369f6b276ec5a
2017-07-14 14:52:34 -07:00