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

23798 Коммитов

Автор SHA1 Сообщение Дата
Edouard Oger 5f64094bc9 Bug 1387053 - Make sure we don't do DB migration multiple times. r=rnewman
MozReview-Commit-ID: I799FUjIG4M

--HG--
extra : rebase_source : cf6b8591121cace64353f3bdfdca9de193e74e6f
2017-08-03 11:04:44 -04:00
Nevin Chen e25c370e79 Bug 1384480 - Move MMA event to UI code. r=sebastian
MozReview-Commit-ID: FzrLqWVFWO0

--HG--
extra : rebase_source : 94ef3ff6836169b055fcfca30af6f05da5a217f1
2017-07-26 17:49:58 +08:00
Nevin Chen c5e4d5f3c3 Bug 1366680 - Refresh Tab Tray UI. r=jwu,walkingice
For photon we need to add some colors.
I don't want change current color and dimen too much. I want to add new resources if possible to avoid confliction.
For Tab Items, there are three layout
1. AutoFitTabsGridLayout. Used in tablet-land/port  and phone-land
2. CompactTabsGridLayout. Used in phone-port(with pref on)
3. TabsListLayout. Used in phone-port(default)

In 1.2, we only constrain the gap of the Tab item padding and the layout padding.
In 3, we restrain the thumbnail width to 137dp .

I also make the tab strip longer for tablet. And I change the color of tab item border and set the thumbnail ratio to 4:3.

We might need to remove unused resources and test different density(2.6 and 3 are all xxhdpi!) and sw240,sw360,sw400 combination.

MozReview-Commit-ID: Gp25nG8NkR5

--HG--
extra : rebase_source : d33751ed37f5bc3aae46bcbc95f4906fcbb833f8
2017-07-13 18:02:54 +08:00
Sebastian Kaspari f7a8ca8f9b Bug 1386305 - (DLC) Remove outdated bootstrap catalog. r=mcomella
The bootstrap catalog is outdated and downloading files from it returns in 404 errors from the CDN.
It's impossible to keep the bootstrap catalog updated. Instead let's start with an empty catalog
and rely on the latest catalog that we synchronize from Kinto.

MozReview-Commit-ID: FduZWJBvj16

--HG--
extra : rebase_source : 46f6d1492d6c291254261dc04a0fb75f78ca1cdf
2017-08-02 18:10:13 +02:00
Axel Hecht 3df95ba269 bug 1370506, add l10n-related targets to top-level build.mk, r=glandium
These rules are just convenience, both for developers and automation.
Instead of having to hard-code to run make in a particular directory to
do l10n-repacks, you can now just do

./mach build installers-de

and that's that.

MozReview-Commit-ID: C4WKXljjN7n

--HG--
extra : rebase_source : f305bb2bc0ddb4712c8b28f5225fd8ad22a16055
2017-06-16 12:13:55 +02:00
Axel Hecht aebc0e7f7e bug 1370506, always merge for l10n repacks, with internally set merge dir, r=glandium
To not merge the en-US language pack, the merge-% steps are in
a conditional function that disables that for en-US. Using a function
here as that's easier than a shell if in the merge rule, and
Makefile conditionals don't get evaluated late enough.

To liberate the l10n builds from settings in the automation,
we move the patch logic from LOCALE_MERGEDIR to REAL_LOCALE_MERGEDIR.

To determine strongly when we're in a repack or building a langpack,
the trick here is to

  export IS_LANGUAGE_REPACK

in l10n.mk, and only set that to true in the entry-point rules.

Now, we can use that value in config.mk to define the l10n-specific
rules.

I did the same thing for langpack-%, which allows us to disable
the crashreporter files for language packs, for example.

With that,

  make installers-de

just works, if you have localizations checked out.

For a while, we might run l10n-merge twice in automation, but it's really not
optional, so let's just make sure we run it.


MozReview-Commit-ID: 3nr33CKxkBQ

--HG--
extra : rebase_source : 0605a4adba018fa4b85d563cdafba80b0533bc91
2017-06-16 15:21:16 +02:00
Axel Hecht 427b551906 bug 1370506, removed un-used use of VPATH, bookmarks.inc doesn't exist anymore, r=glandium
This is a left-over from bug 1197054

MozReview-Commit-ID: D8xj76mv98a

--HG--
extra : rebase_source : 9edbc84869f0cf12e86eb2bbd0a6ce369bc68ba9
2017-07-24 11:03:29 +02:00
Axel Hecht 2f6175c28a bug 1370506, libs-% and chrome-% targets should set AB_CD, r=glandium
Set AB_CD on per-locale entry point pattern rules.

Not setting this on the repackaging top-level pattern rules, as they
need AB_CD to be en-US to find the original package to unpack.
MozReview-Commit-ID: JqrLYyEyvvb

--HG--
extra : rebase_source : 82c840f16e131fe8f340e21ff86a34c70e3f7f97
2017-06-19 16:51:05 +02:00
Karl Dubost f4c3d12128 Bug 1385206 - Documents the syntax for this file; r=miketaylr
MozReview-Commit-ID: Kbr3BNIx9Ky

--HG--
extra : rebase_source : 7bc6c5ac9043d7db00cdbf528d8faa8885ee0da1
2017-07-31 06:53:39 +09:00
Karl Dubost 448de9990a Bug 1385206 - Adds rakuten.co.jp UA override; r=miketaylr
MozReview-Commit-ID: PAQEBrERrY

--HG--
extra : rebase_source : 6ca4c5626794131625b6d9eae0f84b7170e60dc7
2017-07-31 06:47:19 +09:00
Tushar Saini (:shatur) 16b4e01236 Bug 1362996 - Implement browsingData.removeCache WebExtension API method on android. r=bsilverberg,mixedpuppy
MozReview-Commit-ID: ECRCqbdiGd0

--HG--
rename : mobile/android/components/extensions/test/mochitest/test_ext_browsingData_cookies.html => mobile/android/components/extensions/test/mochitest/test_ext_browsingData_cookies_cache.html
extra : rebase_source : 8a19654cba70b233fed370b83ac44178ccb55e55
2017-07-25 15:05:59 +05:30
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
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
James Cheng 146ec6923b Bug 1365505 - Part2-Turn on the pref for hls not only on nightly. r=bwu
MozReview-Commit-ID: 1rdoVMJtw7l

--HG--
extra : rebase_source : 80b80d0451a7fd204acf7ebab084f9c709762f4c
2017-08-01 17:45:37 +08:00
James Cheng b1e12e61d3 Bug 1365505 - Part1-Make the feature flag be exposed not only on nightly. r=kikuo
MozReview-Commit-ID: Hqu24jvYGSo

--HG--
extra : rebase_source : ab12a1bd1db8513a2ea1bf530808ded20692ccdc
2017-08-01 17:44:58 +08:00
Grigory Kruglov 878e26a28c Bug 1275423 - Update failing DSA signature tests r=nalexander
- use EOJ's handy .equals() to compare JSON structures
- generated DSA signature prefix seem to have changed post Java 1.8 update

MozReview-Commit-ID: JwQLb998Kro

--HG--
extra : rebase_source : 802045c6ad6f2c46e34c9765022c5707c65ee3e6
2017-08-01 21:53:47 -04:00
Wes Kocher 5699744165 Merge m-c to autoland, a=merge
MozReview-Commit-ID: F1FR0irfoJU
2017-08-01 13:18:18 -07:00
Wes Kocher 0688b1b95d Merge inbound to central, a=merge
MozReview-Commit-ID: 6SriUFkS6u7
2017-08-01 13:17:21 -07:00
Gian-Carlo Pascutto c2aae39fd6 Bug 1370753 - Add Google API key to Android builds. r=glandium
MozReview-Commit-ID: KDgbZr7ygpk

--HG--
extra : rebase_source : e7d36890caaf843746b7ec78a8daf697221e7c53
extra : histedit_source : 4a48d1ad38cfd99797524a2cad09cc7acdba102f
2017-07-26 12:46:02 +02:00
Wes Kocher 3c2dc39278 Merge m-c to inbound, a=merge
MozReview-Commit-ID: BgPWEtPV0sy
2017-07-31 17:49:47 -07:00
Wes Kocher 179a07b6ba Merge inbound to central, a=merge
MozReview-Commit-ID: Dg4fbH8wbXt
2017-07-31 17:43:38 -07:00
Jim Chen 97a5cae544 Bug 1382335 - 3. Use XPCOM queue for disposing compositor native objects; r=esawin
There's some racing going on between compositor methods that use the
XPCOM queue and the disposeNative method that uses the priority queue.
Move everything to the XPCOM queue to fix this condition.

MozReview-Commit-ID: BUxotrpBVsW
2017-07-31 12:30:32 -04:00
Luca Greco e5f4b87998 Bug 1384964 - Fix browserAction.setTitle/getTitle on Android for tabId 0. r=mixedpuppy
MozReview-Commit-ID: AOdxP0btwYT

--HG--
extra : rebase_source : 39244fcbf50b0f61851e73f638c65b45cb26618d
2017-07-27 20:59:38 +02:00
Luca Greco ad73983a4a Bug 1384964 - Fix pageAction.show/hide/getPopup/setPopup on Android for tabId 0. r=mixedpuppy
MozReview-Commit-ID: FVcbQkiTGqe

--HG--
extra : rebase_source : 125a6ca942cb30af9331c4ec0f271f9d64b37a1e
2017-07-27 18:23:16 +02:00
Sebastian Hengst bbe32b6bed merge mozilla-inbound to mozilla-central. r=merge a=merge
MozReview-Commit-ID: 44WBcWjnVo
2017-07-30 11:19:17 +02:00
Luciano Italiani dd592719c1 Bug 1374671 - Enable the ESLint no-whitespace-before-property rule across mozilla-central. r=standard8
MozReview-Commit-ID: 4WkNg0YrgHx

--HG--
extra : rebase_source : 2c32028e81c388406455004c2adcdb4a01942b95
2017-07-27 23:01:13 -03:00
Sebastian Hengst 3a2a624c1a Backed out changeset 371d34adf87a (bug 1369604) for Android bustage at testActivityStreamContextMenu.java:297: method fromCursor in class Highlight cannot be applied to given types. r=backout 2017-07-29 18:36:57 +02:00
Sebastian Hengst a2a74139c2 Backed out changeset f23174dcc5e6 (bug 1369604) 2017-07-29 18:35:36 +02:00
Sebastian Hengst 3f83028c87 Backed out changeset 7cd7e31b61ec (bug 1369604) 2017-07-29 18:35:30 +02:00
Sebastian Hengst 04b3289ec3 Backed out changeset 7232652c0304 (bug 1369604) 2017-07-29 18:35:25 +02:00
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