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

23812 Коммитов

Автор SHA1 Сообщение Дата
Chenxia Liu a869597b17 Bug 1380804: Access Pocket API through loader. r=mcomella
MozReview-Commit-ID: AzYi5oEJ1p

--HG--
extra : rebase_source : e0cc79685b64f4dd87dcc4d0f2bb800b8f121051
2017-08-02 16:40:41 -07:00
Wes Kocher db7d003ae0 Merge m-c to autoland a=merge CLOSED TREE
MozReview-Commit-ID: Ko3lhAvzMJN
2017-08-03 18:22:09 -07:00
Wes Kocher 2196b718d3 Merge inbound to central, a=merge
MozReview-Commit-ID: DlSLhaepjeU
2017-08-03 18:06:53 -07:00
Jim Chen e16afc583e Bug 1384828 - Use tid for UI thread detection; r=esawin
Use the UI thread's tid for checking if we're on the UI thread in Gecko.
This lets us get rid of `GeckoThread.registerUiThread`, in order to
avoid a race where we check for UI thread before `registerUiThread` is
called.

MozReview-Commit-ID: 11gAWgx4UZo
2017-08-03 13:06:16 -04:00
Sebastian Kaspari c098f9df88 Bug 1386755 - Enable compact tabs by default. r=mcomella
MozReview-Commit-ID: Eeue25LE8eJ

--HG--
extra : histedit_source : 823bd2de8307a3b33f59ce69bfb6f33a16220dd1
2017-08-02 20:21:03 +02:00
Eugen Sawin 88efc0911a Bug 1386697 - [2.0] Use content event forwarding for GeckoViewContent events. r=jchen 2017-08-03 13:47:37 +02:00
Eugen Sawin 1af1dfd5c3 Bug 1386697 - [1.0] Use content event forwarding for scroll events. r=jchen 2017-08-03 13:47:29 +02:00
Eugen Sawin 93cd7c6e41 Bug 1386696 - [3.0] Add explicit way to construct an event dispatcher based on a message manager. r=jchen 2017-08-03 13:40:13 +02:00
Eugen Sawin c996169f23 Bug 1386696 - [2.1] Ensure content event forwarding is handling e10s and non-e10s cases correctly. r=jchen 2017-08-03 13:40:13 +02:00
Eugen Sawin a4fa3382d8 Bug 1386696 - [1.0] Provide event dispatcher to GeckoView content modules to allow for event forwarding. r=jchen 2017-08-03 13:40:13 +02:00
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
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