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

1663 Коммитов

Автор SHA1 Сообщение Дата
Petru Lingurar 7f35fc24a2 Bug 1486200 - Apply Photon theme for Date/Time pickers only on API >=23; r=jchen
Fix Lollipop crashes because of android.content.res.ColorStateList.addFirstIfMissing()
The default app theme will be applied for the material Date/Time pickers on
API 21 and API 22. After this, on API >=23 they will be Photon themed.

Differential Revision: https://phabricator.services.mozilla.com/D4464

--HG--
extra : moz-landing-system : lando
2018-08-29 20:00:53 +00:00
Petru Lingurar f90d90e3b2 Bug 1477059 - Remove terraclicks.com from topdomains; r=sdaswani
Differential Revision: https://phabricator.services.mozilla.com/D4523

--HG--
extra : moz-landing-system : lando
2018-08-29 16:29:50 +00:00
Andrei Lazar a8f24789f7 Bug 1430122 Custom tab close button is too large compared to the other buttons. r=VladBaicu
Resized the close button manually.

Differential Revision: https://phabricator.services.mozilla.com/D4342

--HG--
extra : moz-landing-system : lando
2018-08-27 15:24:57 +00:00
alwu b07c177c38 Bug 1479270 - part2 : remove HLS video player. r=snorp
Since we have native HLS support in 59 [1], we can remove those codes which is used to play HLS.

[1] https://bugzilla.mozilla.org/show_bug.cgi?id=1345752

Differential Revision: https://phabricator.services.mozilla.com/D4166

--HG--
extra : moz-landing-system : lando
2018-08-24 22:36:18 +00:00
Andreea Pavel e7678f51b5 Backed out 2 changesets (bug 1479270) for android lint on a CLOSED TREE
Backed out changeset 1676f895a710 (bug 1479270)
Backed out changeset 643ef11ea720 (bug 1479270)
2018-08-24 20:16:14 +03:00
alwu a9a7cfd9fa Bug 1479270 - part2 : remove HLS video player. r=snorp
Since we have native HLS support in 59 [1], we can remove those codes which is used to play HLS.

[1] https://bugzilla.mozilla.org/show_bug.cgi?id=1345752

Differential Revision: https://phabricator.services.mozilla.com/D4166

--HG--
extra : moz-landing-system : lando
2018-08-24 14:52:00 +00:00
Tudor-Gabriel Vîjială 7dcb482bb3 Bug 1481834 - Fix running robocop tests on debug builds. r=gbrown
Fix running robocop tests on debug builds.

This patch fixes multidex issues when running robocop on debug builds.

Differential Revision: https://phabricator.services.mozilla.com/D3422

--HG--
extra : moz-landing-system : lando
2018-08-21 20:02:13 +00:00
Andrew Swan a96d0d6331 Bug 1429610 Add internal api to look up available language packs r=gandalf,rpl
MozReview-Commit-ID: ISIu9mDIvbP

--HG--
extra : rebase_source : 800cbd7ddf943f7740d37f47fe6154240da3b831
extra : source : ca539f07691c6e243bcb0f4a3137d0e0940ab2a0
2018-05-14 10:18:32 -07:00
Jan Henning 2894a34f2b Bug 1414084 - Part 16 - Add some tests for the handling of PageActions. r=Grisha
MozReview-Commit-ID: EUl19vyK3Ra

--HG--
extra : rebase_source : d1fb530dc5e895173eb0a6f5c5aaad7a26ca7cf9
2018-03-19 20:27:01 +01:00
Jan Henning a6932b97b2 Bug 1414084 - Part 12 - Add some tests for the processing of Menu messages. r=Grisha
MozReview-Commit-ID: D8Aujo1PgIk

--HG--
extra : rebase_source : 1dd4fa0909e7b1a036a739a886043fe627740c56
2018-03-19 20:06:32 +01:00
Dennis Schubert c4663c5965 Bug 1483233 - Add mobile User Agent overrides for eBay domains. r=miketaylr
Differential Revision: https://phabricator.services.mozilla.com/D3343

--HG--
extra : moz-landing-system : lando
2018-08-14 15:53:36 +00:00
Jan Henning 7b902db1b5 Bug 1479311 - Don't attempt finding and highlighting a tab's base domain within a javascript: URL. r=snorp
MozReview-Commit-ID: DzE0UJfMcCI

--HG--
extra : rebase_source : 2a9bcc74447a8a2862aa3c753f7bd30e1d0361dc
2018-08-03 20:58:46 +02:00
Matt Brubeck 7b8f8f1076 Bug 1458662 - Re-enable regex JIT on aarch64. r=jchen
MozReview-Commit-ID: 8d2pO69R2OD

Differential Revision: https://phabricator.services.mozilla.com/D2796

--HG--
extra : moz-landing-system : lando
2018-08-06 22:11:11 +00:00
Petru Lingurar 8dbf61da1e Bug 1474859 - Enable Multidex for all builds; r=nalexander
Multidex will now be enabled for all builds, not just for the _local_ ones.
Also added the 'ads-identifier' library needed for the builds with the
MOZ_INSTALL_TRACKING flag case in which the dex limit would be reached.

MozReview-Commit-ID: FRTXBD9Kc6T

--HG--
extra : rebase_source : c73a0a48d355edbe2080b14ceeb2f99609a45d7c
2018-08-06 18:38:48 +03:00
Andreea Pavel 796058f4eb Merge mozilla-inbound to mozilla-central. a=merge 2018-07-30 12:52:00 +03:00
Makoto Kato aa6e598c39 Bug 1462019 - Part 2. Use abstract socket address for USB remote debugging. r=jryans 2018-07-25 14:47:49 +09:00
Dale Harvey d63acd1060 Bug 1478549 - Allow user to configure android media autoplay pref. r=JanH
MozReview-Commit-ID: EPKzLrIc3lg

--HG--
extra : rebase_source : 631c403eaa6807ee863756d0d79d81b7207999ac
2018-07-27 16:37:11 +01:00
Gurzau Raul 53b701b3b5 Backed out changeset 6c537d2395f5 (bug 1478549) for failing at builds/worker/workspace/build/src/mach on a CLOSED TREE 2018-07-28 14:12:21 +03:00
Dale Harvey 318fb222af Bug 1478549 - Allow user to configure android media autoplay pref. r=JanH
MozReview-Commit-ID: EPKzLrIc3lg

--HG--
extra : rebase_source : ad8e0409947e61003d373f870f2d0cdf57afc34d
2018-07-27 16:37:11 +01:00
Petru Lingurar 4cebd537d7 Bug 1412518 - Photon themed DatePicker; r=jchen
On Api >=21 the Material DatePicker will have applied a Photon style.
Below Api 21 DatePicker will still be using spinners.

MozReview-Commit-ID: LuWP6C1o4Ej

--HG--
extra : rebase_source : 91eccfdeb0c4f17e9f0616fa25463d1b5558009a
2018-07-25 17:17:28 +03:00
Petru Lingurar 9e97ceaf6b Bug 1412518 - Photon themed TimePicker; r=jchen
On Api >=21 the Material TimePicker will have applied a Photon style.
Below Api 21 TimePicker will still be using spinners.

MozReview-Commit-ID: 2jZLPGCx4rI

--HG--
extra : rebase_source : a57376bf59077b6d64bcca8ba704ca1b6324383e
2018-07-25 17:03:15 +03:00
Tudor-Gabriel Vîjială 343add8e2b Bug 1476165 - Part 1d: Ignore ProtectedPermissions in Android Lint. r=nalexander
MozReview-Commit-ID: KVb54Fu27Qb

--HG--
extra : rebase_source : efc01cb3647bf480f624e5aa50cc098f11d4561f
2018-07-22 16:22:49 +01:00
Tudor-Gabriel Vîjială eceb662bc2 Bug 1476165 - Part 1c: Fix Android Lint - TextFields: Missing inputType. r=nalexander
MozReview-Commit-ID: DTTWNNeg4Uv

--HG--
extra : rebase_source : c504c04c84254d2e1f16fc653ab2136bb07fc44d
2018-07-23 11:40:16 +01:00
Tudor-Gabriel Vîjială ac1bd3ac73 Bug 1476165 - Part 1a: Fix Android Lint - ResourceCycle: Cycle in resource definitions. r=nalexander
MozReview-Commit-ID: FZBJe7nUdwq

--HG--
extra : rebase_source : 742bb6ef56d224b9a3dd6252740a4b0444611945
2018-07-21 21:29:01 +01:00
Chris Pearce c45c8746d8 Bug 1476853 - Enable block autoplay v2 on Nightly only on Fennec by default. r=jchen
We're planning on enabling block autoplay on desktop by default, so in order to
be consistent across platforms, we think we should also enable it on mobile by
default.

The change here makes us allow autoplay in tabs which have had user
interaction, rather than the legacy block autoplay implementation which
"blessed" media elements which had certain functions called in a user generated
event handler.

Current plan is to enable this on Nightly only (desktop & mobile) and solicit
feedback and then decide on whether to let it ride the trains.

MozReview-Commit-ID: IkusfUOrcgO

--HG--
extra : rebase_source : 0c0a8f80d3670fffe66540f66954eaa980a42e74
2018-07-19 15:43:18 +12:00
Petru Lingurar 8e537fb53f Bug 1476237 - Fix TestTelemetryUploadAllPingsImmediatelyScheduler the after Oreo migration; r=jchen
Refactored the previous test which verified if a Service was started with the
right Intent to now check if JobScheduler has the right Job enqueued with the
right work Intent.


MozReview-Commit-ID: G46GbjVVkqR

--HG--
extra : rebase_source : 4d9f030ed37767c02a27aa291f2c0338afd0619a
2018-07-18 15:21:03 +03:00
Petru Lingurar a66ba67aae Bug 1476237 - Fix TestFileCleanupController after the Oreo migration; r=jchen
This tests verified if a Service was started or not. After the IntentServices
migration to JobIntentService this checks would not work anymore.

To keep the same test logic they will now check if JobScheduler has any
scheduled jobs.

Removed testStartIfReadyDoesNotRunTwiceInSuccession() because JobScheduler
already guarantees no two identical jobs can be scheduled in parallel.

MozReview-Commit-ID: JZ2XMecjsXq

--HG--
extra : rebase_source : 9d90e226adc15763c6e85842d5f896e671433e3a
2018-07-18 12:14:13 +03:00
Dale Harvey c9e5e7c554 Bug 1470082 - Change autoplay checkbox to combobox. r=cpearce,flod,johannh
MozReview-Commit-ID: E71TxvgfJlJ

--HG--
extra : rebase_source : 30ca63df77e48a44de4d3e90182440c3937ed32f
2018-06-29 14:14:33 +01:00
Jonathan Kingston b0b06c6efe Bug 1472957 - Disable auto reader mode for mobile as device light doens't work. r=florian
MozReview-Commit-ID: 9qNRD3FhAlC

--HG--
extra : rebase_source : ca535cc96cc1cbe01b66151dcd39a3e40796fee9
2018-07-07 13:28:50 +01:00
Bogdan Tara 1a6ffb9e1e Merge mozilla-central to autoland. a=merge CLOSED TREE 2018-07-17 01:02:10 +03:00
Vlad Baicu 17a2dd33c2 Bug 1474961 - Change StumblerService to a foreground service when targeting Android Oreo. r=jchen
Also made broadcasts involving Stumbler explicit.

MozReview-Commit-ID: 7CK2Cr2JqX0

--HG--
extra : amend_source : 4a7de557ad76f6cb2a0dcad5419ec2b37ca89e05
2018-07-11 20:02:24 +03:00
Vlad Baicu f434b908e1 Bug 1384866 - Refactored MediaControlService logic to GeckoMediaControlAgent. r=jchen
Moved the logic ouf of MediaControlService to a new singleton GeckoMediaControlAgent,
which delegates all media-related actions.Currently, MediaControlService is used
for the foreground notification and to retrieve actions from the notification
pending intents. Removed redundant test cases.

MozReview-Commit-ID: KukAmpnn33S

--HG--
rename : mobile/android/app/src/test/java/org/mozilla/gecko/media/TestMediaControlService.java => mobile/android/app/src/test/java/org/mozilla/gecko/media/TestGeckoMediaControlAgent.java
extra : amend_source : 251b7821f4ddefcf852480de72ca1004cbd261bf
2018-06-22 19:02:54 +03:00
petru 86aa31b5f4 Bug 1407046 - Migrate FileCleanupService to JobIntentService: Follow-up to for android-test. r=test-fix 2018-07-16 21:46:15 +03:00
Petru Lingurar 0ce784d030 Bug 1407046 - Migrate FileCleanupService to JobIntentService. r=JanH
Also cleaned the code a little.

MozReview-Commit-ID: Bs3bUdxxz8k

--HG--
extra : rebase_source : bf564b683e786010d8f4836a1ee75aefa0514fa8
2018-06-26 17:42:28 +03:00
Andrei Lazar 5101981098 Bug 1463376 - Update to latest Google Play Services version. r=nalexander
Updated google play services version as part of work of the Oreo migration and removed unused libraries from gradle.

MozReview-Commit-ID: BKCWs938k3q

--HG--
extra : rebase_source : 2e9ad83904276607f27974206bd3ad0ba2879279
2018-07-13 15:40:03 +03:00
Petru Lingurar 71b46df0d4 Bug 1385464 - Start using support library v. 26; r=nalexander
This patch also:
Resolves missing resources and api changes
- LeanplumActionBarActivity was removed because Support Library 26 deprecated
ActionBarActivity. Class was already not in use.
- CustomTabsService added two new methods which we need to override.
Tested to make sure that previous functionality was maintained but with the
addition of the two new methods maybe that feature could be improved.
- For checking layout direction we'll use our own new method from ViewUtil
which mimics what the now restricted method from the support library would do.
- Upgraded to use AppCompatResources#getDrawable(..) in place
of the now restricted AppCompatDrawableManager.get().getDrawable(..).

Resolves obscure leaks and crashes after the upgrade
- LoaderManager.destroyLoader(..) was added before the existing call to
LoaderManager.restartLoader(..) to prevent potential Cursor leaks
- Disable website suggestions depending on the address bar inputs when running
in automation to avoid Robocop tests failing (they were entering serially maybe
100 characters in <5 ms which created around that many new Threads,
operation that could cause the Executor to throw a RejectedExecutionException)
At the moment this functionality is not covered by tests anyway and it was the
only fix I could find that would not involve changing the whole implemenation
for address bar suggestions, implementation which in the real world works ok.

MozReview-Commit-ID: 2fX1SBHiSh0

--HG--
extra : amend_source : edb6c5853cdcea5ad50a7cf680f2214fdc176cb2
2018-07-13 17:16:37 +03:00
Kirk Steuber ac7e7375e6 Bug 1420514 - Remove app.update.enabled from prefs files r=rstrong
MozReview-Commit-ID: 5pv8VFNYqKu

--HG--
extra : rebase_source : 34376077c8cd4d2836fc8e2f79ff32ea6d6e0e73
extra : intermediate-source : 760d7a2ecbd59396f94bdfd34a3a8db45b76d763
extra : source : e868b975027062043e1d94ad47b2ce63f4ecd793
2018-05-21 14:48:47 -07:00
Marco Bonardo a543f35d4b Bug 1472722 - Use the unix-excl Sqlite VFS by default. r=nalexander,asuth
Use the exclusive VFS on unix systems, so that:
1. we can avoid the memory mapped -shm files in wal mode
2. we gain more compatibility with nfs shares
3. we gain some protection from third parties touching open dbs

On the other side it won't be possible anymore to use an open database from a
different process (like the Sqlite command line), for which we provide an hidden
pref: storage.multiProcessAccess.enabled

Differential Revision: https://phabricator.services.mozilla.com/D1964

--HG--
extra : moz-landing-system : lando
2018-07-13 16:54:57 +00:00
Andreea Pavel 1e8d2e6f7d Backed out 7 changesets (bug 1420514) for breaking bc on different files on a CLOSED TREE
Backed out changeset 5a46a221b6e8 (bug 1420514)
Backed out changeset 48ed6dfe8772 (bug 1420514)
Backed out changeset 01bf643c77e5 (bug 1420514)
Backed out changeset 5791b17ccb82 (bug 1420514)
Backed out changeset 416e398d942f (bug 1420514)
Backed out changeset de4a4592dbd9 (bug 1420514)
Backed out changeset d3399edf0197 (bug 1420514)
2018-07-12 21:22:32 +03:00
Kirk Steuber e75835a2a5 Bug 1420514 - Remove app.update.enabled from prefs files r=rstrong
MozReview-Commit-ID: 5pv8VFNYqKu

--HG--
extra : rebase_source : 32dc323ce01c7d5a0a275d4e1a640a6fe495a1fa
extra : source : e868b975027062043e1d94ad47b2ce63f4ecd793
2018-05-21 14:48:47 -07:00
Petru Lingurar edc9580e01 Bug 1468487 - Enable multidex for local builds; r=nalexander
MozReview-Commit-ID: BEQmkKajTxF

--HG--
extra : rebase_source : 294aa4baaa6234517bfa8cdb6e5fdf9414e504f3
2018-06-15 13:25:00 +03:00
Petru Lingurar b9eed730ee Bug 1386192 - Test Leanplum Custom Message for Onboarding; r=cnevinchen+582291
Created LeanPlumVariables to allow LeanPlum overwriting the values used for
populating the OnBoarding screens. By simply adding the @Variable annotation
to it's fields, on the first run of the app, they will appear in "LeanPlum
dashboard - Variables" and will allow overwriting for future runs.

The OnBoarding process will now try to use LeanPlum values if possible.
Because connecting to LeanPlum and downloading the Variables might take
a few seconds we use a delay of up to 3 seconds until starting to show
the Onboarding screens.
The default values will still be used if:
- if the LP experiment is not available
- if no internet connection
- if more than 3 seconds have passed and LP didn't finish it's download

Added two new events that could be tracked to Leanplum
MmaDelegate.ONBOARDING_DEFAULT_VALUES and MmaDelegate.ONBOARDING_REMOTE_VALUES
to inform if showing the Onboarding with server values was possible or not.

Because of the 3 seconds delay until showing the Onboarding panels leaking the
could be possible. Used WeakReferences for both the Activity in
OnboardingHelper and the OnboardingHelper in MmaLeanplumImp to avoid it.

MozReview-Commit-ID: H30e9Ng7jrM

--HG--
extra : rebase_source : e403b8010005aa82f8b6440586c533ce99952f9f
2018-07-04 12:56:20 +03:00
Tudor-Gabriel Vîjială 1c4dd4a36e Bug 1471660 - Integrate code coverage for A(test) junit test suite via JaCoCo plugin. r=marco,nalexander
MozReview-Commit-ID: ElYGmF6zoYg

--HG--
extra : rebase_source : 4e8dfe3c2ee65c3b451caae4e5debde85632ffa4
2018-07-02 11:32:35 +01:00
Karl Dubost 530491bdbd Bug 1457514 - Removes UA override for m.canadiantire.ca; r=miketaylr
MozReview-Commit-ID: LKQjVKf9k99

--HG--
extra : rebase_source : 7a9f7578123870440f9a2f418153a5af025c3eed
2018-06-13 14:54:01 -07:00
Tiberius Oros 93bed26733 Merge mozilla-central to inbound. a=merge CLOSED TREE 2018-07-03 00:59:47 +03:00
James Willcox e639e656a8 Bug 1467921 - Disable Web Push in GeckoView r=jchen
MozReview-Commit-ID: 77tCU6T94LG
2018-07-02 11:47:24 -05:00
Luca Greco 5cddac7a22 Bug 1405528 - Sideloaded XPIs should be disabled by default on Fennec as they are on Firefox Desktop. r=aswan
MozReview-Commit-ID: AtEJxWj211N

--HG--
extra : rebase_source : d2a2ac934725216ba272220b7f2689d98a3dc491
2018-06-07 03:07:55 +02:00
Tudor-Gabriel Vîjială dedd2ba467 Bug 1471646 - Add OneTopLevelClass to android checkstyle. r=nalexander
MozReview-Commit-ID: 1NCxpqi5nHZ

--HG--
extra : rebase_source : 8b44fbe866ae5fac7547e9d1ece3a03a84718e79
2018-06-28 13:24:31 +01:00
Tudor-Gabriel Vîjială fba24e38aa Bug 1471408 - Move all top level Java classes into their own file. r=snorp
MozReview-Commit-ID: 716FWeZ0q3B

--HG--
extra : rebase_source : ba2f66b19a717eebc098d3a2afeb4afc36718440
2018-06-27 00:02:01 +01:00
Cosmin Sabou f4b3baf021 Merge mozilla-inbound to mozilla-central. a=merge 2018-06-28 13:04:23 +03:00
James Willcox 59e96d25e3 Bug 1415318 - Optionally send web console output to logcat in GeckoView r=jchen,rbarker
This adds a GeckoRuntimeSetting that allows apps to direct the web
console to logcat.

MozReview-Commit-ID: 7KgX5Ol6D3E
2018-06-27 12:47:17 -05:00
Chris H-C 5e61eced35 bug 1463439 - Add a pref to enable 'event' ping. Defaults to true, except for GV. r=Dexter
When it's false we also disable collecting events completely, in case the
reason we're disabling it is due to storage issues.

GeckoView doesn't presently support Events, so the 'event' ping is disabled by
default for that platform.

MozReview-Commit-ID: 9eKAtRiuER0

--HG--
extra : rebase_source : 71b3c9ff802420ff21941656c3d848c6d320578d
2018-05-29 12:24:02 -04:00
Lee Salzman df04ecc567 Bug 1468801 - deprecate SkiaGL for Canvas2D. r=snorp 2018-06-14 11:08:14 -07:00
Jan Henning 4a47c55e8f Bug 1450449 - Part 1: Add FileProvider. r=jchen
In case we change our thinking on launching of downloaded files and start using
content:// URIs for that case as well, we already allow our FileProvider to
generate URIs for the whole file system using <root-path>. This is because users
can in principle move our download directory to an arbitrary location on the
file system as long as it is accessible to Firefox. However not all of these
locations (e.g. on a removable SD card) can be specified through the other
methods of specifying available files for a FileProvider, so only the <root-
path> option remains.

MozReview-Commit-ID: 2UStBlU4JsG

--HG--
extra : rebase_source : 2c1828e063c1b3e772ac20c415fd34d0da1c24a6
2018-05-12 22:19:08 +02:00
Rob Wu 73fe9f0dac Bug 1448305 - Fall back to the memory cache when a shortcut is created. r=JanH 2018-07-16 12:19:18 +02:00
Rob Wu 82f197ff52 Bug 1448305 - Avoid disk cache for icons of private tabs. r=JanH 2018-07-16 12:19:18 +02:00
Andrei Lazar 08ea855901 Bug 1444776 - Tab Queue prompt needs to use APPLICATION_OVERLAY window type when targeting (and running on) Android O. r=JanH
Now using the the TYPE_APPLICATION_OVERLAY window type to display alert windows for devices running on Android O.

MozReview-Commit-ID: 7pdquyowbsB
***
***

--HG--
extra : rebase_source : fc07c2c2a34fe53583ba59fc27a7a6f75f4a812b
2018-06-05 19:52:43 +03:00
Andreea Pavel 4ced6e8b2d Merge mozilla-central to autoland. a=merge 2018-06-03 07:27:01 +03:00
Eitan Isaacson 348f30caa7 Bug 1463496 - Enable WebSpeech synthesis in Android. r=smaug 2018-05-31 10:34:00 -04:00
Michal Novotny 63375bc80b Bug 1377570 - Enable RCWN on mobile. r=valentin
This patch enables racing cache with network on mobile when cellular data isn't used.
2018-05-27 03:59:00 +03:00
Petru Lingurar 393c825916 Bug 1462594 - Allow accessing all Settings menus on tablets; r=mcomella
Bug details:
The problem stemmed from the now called GeckoPreferences.trySwitchToHeader(int id) which could be called with an invalid id, constant with the same value as the id of the last available setting.
(GeckoPreferenceFragment().getHeader() would return valid ids only for preference screens that are launched directly. Otherwise it would return: -1)
By chance the id for the last available setting - vendor was not set and so Android saw it with an invalid header id: -1.
GeckoPreferences.trySwitchToHeader(int id) would just switch to showing the vendor setting because that is what he has been instructed to whenever the user tried to access other settings than the ones which can be launched directly.

Cleaned the code a bit:
- renamed GeckoPreferences.switchToHeader(..) to trySwitchToHeader(..) as it won't always perform that action
- removed the call to activity.showBreadCrumbs(..) as in my tests it didn't have any effect and the documentation says "This will normally be called for you".

Tested on An Android 8 tablet, on an Android 8 phone, on an Android 5.0.1 phone and all works ok.

MozReview-Commit-ID: 2sbfcuRHgZd

--HG--
extra : rebase_source : 51f4629e89846d01224a0cd7dd8b3fba93657f40
2018-05-24 14:09:22 +03:00
Jim Chen 81118778f8 Bug 1463576 - 1. Add layout.accessiblecaret.script_change_update_mode pref; r=bz
Currently, if the "layout.accessiblecaret.allow_script_change_updates"
pref is false, we always hide accessible carets when the selection
changes due to JS calls (e.g. setSelectionRange(0, 1)). If the pref is
true, instead, we update the accessible carets if they are already
visible. In either case, we never show the carets if they're invisible.

However for testing purposes, it's useful to make it so we do try to
show the carets if they're invisible. This patch replaces that pref with
the new integer pref "layout.accessiblecaret.script_change_update_mode",
which can be 0 or 1, which correspond to the old pref, or the value 2,
which introduces this new behavior of always showing the carets.

MozReview-Commit-ID: Bf1gPpIzcyb

--HG--
extra : rebase_source : 5eaba6c18d800da425d5e21f61af880678d7fe3c
2018-06-01 13:39:20 -04:00
s37syed 374a1d8e61 Bug 1411198 - Unlabeled voice input button. r=mcomella
Added contentDescription strings for QR Code and Voice Input

MozReview-Commit-ID: 6tpoewhPxev

--HG--
extra : rebase_source : 3ed1f0263f108ad63131f99168ee9879f83fbdb2
2018-05-14 21:35:34 -04:00
Petru Lingurar 1259f8acb6 Bug 1454686 - Remove Lint error suppression for unused strings; r=mcomella
Strings needed for this feature were added in a separate bug - 1445798 which were causing Lint errors.
When this feature will land there will be no need for the suppression.

MozReview-Commit-ID: IhtTS8rHLwz

--HG--
extra : rebase_source : 6c09445f7f8c6f6fb565f41e57f666e9cfc26627
2018-05-16 15:59:56 +03:00
Petru Lingurar 753b481522 Bug 1454686 - Add a new preference under Settings - Notifications; r=mcomella
The behavior of this new preference is dynamic in that:
- it will be hidden if LeanPlum is not available for the device
- it will be toggled off and disabled if Health Report is disabled by the user

MozReview-Commit-ID: 1x9zZukyygr
***

--HG--
extra : rebase_source : c31ad02cbbb106613914634b5192f856aad185b7
2018-05-16 11:49:35 +03:00
Michael Kaply a97758663a Bug 1461345 - Move browser.search.order to list.json. r=adw
MozReview-Commit-ID: 1ulgkNgkAP9

--HG--
extra : rebase_source : 16c469f449a4684c6f43dd2cc82d2288b9fd2a34
2018-05-21 14:27:06 -05:00
Noemi Erli cf07f127bc Backed out changeset 80cc5997d8cc (bug 1461345) for xpcshall failures on test_TelemetryEnvironment.js on a CLOSED TREE 2018-05-21 20:16:47 +03:00
Michael Kaply 574e1467e0 Bug 1461345 - Move browser.search.order to list.json. r=adw
MozReview-Commit-ID: 4eaWb8mzIm6

--HG--
extra : rebase_source : 83f01cadfca9ec44d52ba7f737ab9d23f004f044
2018-05-18 16:12:32 -05:00
Michael Kaply 5ed851623e Bug 1461347 - Remove unused enginename from JS, but add to properties. r=nalexander
MozReview-Commit-ID: 4KRsXg68mw5

--HG--
extra : rebase_source : 66f30fe798bb589de1f458062447819642586344
2018-05-14 10:38:20 -05:00
James Willcox bc73d8b2e0 Bug 1433968 - Add CrashReporterService for GeckView r=jchen
The Fennec CrashReporter class is also renamed to
CrashReporterActivity. When running in Fennec, the Activity will be used
which retains what we do today, prompting for comments, email, etc. When
used in standalone GeckoView, we report the crash without user
interaction if the appropriate GeckoRuntimeSetting was set. The app will
want to ask for user permission at least once in order to set this.

We do not collect the URL, email, or logcat with GeckoView crashes.
Logcat and URL would be nice to have, but it's not clear what the API
for those would look like, and they can be addressed in followup
patches.

MozReview-Commit-ID: C5ROsUKreRe
2018-05-10 16:42:20 -05:00
Tiberius Oros 5245fb43e0 Backed out 6 changesets (bug 1433968) for Android failures on GeckoRuntimeSettings on a CLOSED TREE
Backed out changeset bba1deb626b5 (bug 1433968)
Backed out changeset 7a8616427aea (bug 1433968)
Backed out changeset c94c48d76350 (bug 1433968)
Backed out changeset 64cccb490a2a (bug 1433968)
Backed out changeset 62f865eed952 (bug 1433968)
Backed out changeset 5ed1e3af37ba (bug 1433968)
2018-05-10 18:11:55 +03:00
James Willcox 05a3f8ac8e Bug 1433968 - Add CrashReporterService for GeckView r=jchen
The Fennec CrashReporter class is also renamed to
CrashReporterActivity. When running in Fennec, the Activity will be used
which retains what we do today, prompting for comments, email, etc. When
used in standalone GeckoView, we report the crash without user
interaction if the appropriate GeckoRuntimeSetting was set. The app will
want to ask for user permission at least once in order to set this.

We do not collect the URL, email, or logcat with GeckoView crashes.
Logcat and URL would be nice to have, but it's not clear what the API
for those would look like, and they can be addressed in followup
patches.

MozReview-Commit-ID: C5ROsUKreRe
2018-05-10 08:34:06 -05:00
Jan Henning 29713de206 Bug 1335148 - Part 1: Dynamically determine content viewer count on Android, too. r=bz,snorp
The current limit of at most one bfcache entry on Android dates back to when
Fennec was built for the Nokia N810, which had a whopping 128 MB of memory.
Since a few years have passed since then and mobile device technology has
evolved considerably, it should be safe now to allow a little more than that.

Since web sites sizes might have grown somewhat as well compared to the figure
of 4MB mentioned in CalcMaxTotalViweres(), though and to be absolutely on the
safe side, we still tweak the formula when building for Android, though.

If in the worst case even those assumptions turn out too generous, we will still
be protected by the fact that
- we temporarily disable the bfcache when the OS signals memory pressure, and
- our contentViewerTimeout is set to a lower value than on Desktop, so bfcache
  entries will expire sooner

MozReview-Commit-ID: 1A6d0Q6Mdx0

--HG--
extra : rebase_source : 9cc1f7abb1aef82ffc4d7987773ae7cf35440884
2018-03-29 21:51:13 +02:00
Andrew Gaul 80f292e771 Bug 1436271 - Replace calls to String.getBytes(String) with String.getBytes(Charset). r=nalexander
Also replace calls to String(byte[], String) with String(byte[], Charset).  This
removes some cannot-happen exception handling.
2018-02-06 22:12:33 -08:00
Narcis Beleuzu 323d4a4185 Backed out 3 changesets (Bug 1433968) for causing Bug 1459349. a=backout
Backed out changeset 82b765c5a02f (bug 1433968)
Backed out changeset 73ec9bb3e17e (bug 1433968)
Backed out changeset 0812ac0376da (bug 1433968)

--HG--
extra : amend_source : 2748b297418eea9b7d3c2be11a8e7e300f8d709c
extra : histedit_source : 6428453bbe80ad044661d01e5127d924fffed1a3%2Cd2e712ac6c597784343ff08f75199851c07be4e7
2018-05-07 17:06:30 +03:00
Jim Chen cdd3e5ab7e Bug 1457255 - 2. Fix Java warnings; r=me
Fix all Java warnings in the Android codebase except deprecation and
serial warnings, and warnings in third-party code.

There is one required change to exoplayer2 code under thirdparty,
because that code is included directly in the geckoview project, instead
of the thirdparty project. I think I'll just make a pull-request to
upstream the change, instead of separating exoplayer2 into a
gv-thirdparty project.

--HG--
extra : amend_source : 29419a24db9b956a7f3ee573a63f7a055ed90636
2018-05-01 00:22:54 -04:00
shindli 0ceedb430c Merge mozilla-central to inbound. a=merge CLOSED TREE 2018-05-02 01:58:30 +03:00
Noemi Erli 5b7edf8bba Backed out 4 changesets (bug 1457255) for kotlin warnings/errors are not being parsed by Treeherder a=backout
Backed out changeset 9c42ce50a911 (bug 1457255)
Backed out changeset 524a0f9fb978 (bug 1457255)
Backed out changeset a49833bfd519 (bug 1457255)
Backed out changeset 4eccde5dfbef (bug 1457255)
2018-05-02 01:16:57 +03:00
Jim Chen 225b0afd64 Bug 1457255 - 4. Fix remaining Java warnings; r=me on CLOSED TREE 2018-05-01 01:01:00 -04:00
James Willcox bae31b8761 Bug 1433968 - Add CrashReporterService for GeckView r=jchen
The Fennec CrashReporter class is also renamed to
CrashReporterActivity. When running in Fennec, the Activity will be used
which retains what we do today, prompting for comments, email, etc. When
used in standalone GeckoView, we report the crash without user
interaction if the appropriate GeckoRuntimeSetting was set. The app will
want to ask for user permission at least once in order to set this.

We do not collect the URL, email, or logcat with GeckoView crashes.
Logcat and URL would be nice to have, but it's not clear what the API
for those would look like, and they can be addressed in followup
patches.

MozReview-Commit-ID: C5ROsUKreRe
2018-05-01 10:43:22 -05:00
Petru Lingurar 7932a610e4 Bug 1445798 - Add Leanplum settings opt-out strings needed for bug #1454686; r=mcomella
To allow users to opt-out from receiving LeanPlum messages we need a new setting added.
This are the Strings for the title and summary of that setting.

Localization notes also added as this Strings will ship before the feature.

Decided to suppress all UnusedResources Lint errors for android strings until the patch for #1454686 lands as using in-line suppression caused other errors.
Ran Lint locally, the build passed.

MozReview-Commit-ID: 9Kx567ruY3n
***

--HG--
extra : rebase_source : acb555719b4da9199364ca737ff140012dacb47c
2018-04-23 19:09:13 +03:00
Andrew Swan 7b20ac46dc Bug 1433574 Remove startup addon update check r=kmag
MozReview-Commit-ID: AjcRaDqjDNy

--HG--
extra : rebase_source : 6c70243496248b617d3bf5d7244388d0c30004f8
2018-04-23 14:59:11 -07:00
Andrew Swan 5936ccc549 Bug 1454141 Require language packs to be signed
MozReview-Commit-ID: 5yDmkb6GJht

--HG--
extra : rebase_source : 9220d629ecabf9ae8f58845f242f5a8a3cecfecb
2018-04-20 13:01:51 -07:00
Alessio Placitelli 4121e64310 Bug 1452551 - Initialize the Telemetry core in GeckoView. r=esawin,gfritzsche,jchen
This additionally introduces a new pref (toolkit.telemetry.isGeckoViewMode)
to discriminate, at runtime, between Fennec and GV in JavaScript code.
Moreover, this disables TelemetryController initialization from content
processes, which was left enabled.

MozReview-Commit-ID: 7VoDorxAhvD

--HG--
extra : rebase_source : b16a5c870c073f62175a5f9c2bf8db30032c55bd
2018-04-11 13:11:27 +02:00
Brindusan Cristian 667fae7dc8 Merge inbound to mozilla-central. a=merge 2018-04-17 12:53:33 +03:00
Vlad Baicu f1ae5290e4 Bug 1442054 Replaced deprecated singleLine attribute with maxLines=1 r=mcomella
MozReview-Commit-ID: BKJhIRG0d1v

--HG--
extra : rebase_source : e44a2ce0ed4d02c449664d9b390bb2350fc461ad
2018-04-16 15:52:08 +03:00
Nicholas Nethercote 51f2b494ea Bug 1448222 - Remove MediaPrefs. r=jya
This patch converts all the prefs in MediaPrefs to the new StaticPrefs system.

Note that the "media.wmf.skip-blacklist" pref was present in both MediaPrefs
and gfxPrefs. The copy in MediaPrefs was never used; this explains why this
patch does not add an entry for it to StaticPrefList.h.

Note also that the patch removes themedia.rust.mp4parser pref, because it's
unused.

MozReview-Commit-ID: IfHP37NbIjY

--HG--
extra : rebase_source : df84ea813b7c366d7be663c696891325610149c8
2018-03-20 09:48:56 +11:00
Margareta Eliza Balazs 1dff32311e Merge mozilla-central to inbound. a=merge CLOSED TREE 2018-04-12 12:46:52 +03:00
Nicholas Nethercote 1fd166defd Bug 1449833 - Use StaticPrefs in nsJSEnvironment.cpp. r=sfink
MozReview-Commit-ID: GELa2l1ZonV

--HG--
extra : rebase_source : 31e07f31909a45e35b8572fe00189d6556b1612b
2018-03-27 13:26:38 +11:00
Nick Alexander f6f7d62d44 Bug 1451565 - Update Robolectric to 3.8. r=mcomella
MozReview-Commit-ID: 9lQ7De6cifZ

--HG--
extra : rebase_source : ec85d254c26555837d32cc769e954fb9614e837b
2018-04-04 16:48:03 -07:00
Cameron McCormack 9dfabd795c Bug 1317539 - Remove dom.forms.number pref. r=bz
MozReview-Commit-ID: EgeUfWMcE8D

--HG--
extra : rebase_source : 74cb7f69e21fd1a773259a53919fb04a82af2f5d
2018-04-10 11:02:28 +10:00
Kris Maglione 99ebf2e65e Bug 1448221: Part 2 - Remove support for non-default legacy themes. r=aswan
MozReview-Commit-ID: 1v0aGG3mv3U

--HG--
extra : rebase_source : 59deb737dbb812037f4a015404bec0af6a19f9c9
2018-03-26 16:19:04 -07:00
James Willcox 3d1f24abf4 Bug 1447393 - Keep empty content process alive on Android r=jimm,mrbkap
MozReview-Commit-ID: 2mZwbcjngnE
2018-03-23 15:32:30 -05:00
Ryan VanderMeulen d6fd81de00 Merge m-c to inbound. a=merge 2018-03-22 19:44:23 -04:00
Vlad Baicu 6e1d2c4d18 Bug 1444549: Remove unused IconTabWidget XML attr. r=mcomella
This code was crashing in the framework; removing it should hopefully fix the
crash.

MozReview-Commit-ID: 2G3q4JrJ9tP

--HG--
extra : rebase_source : e9c1379b9dd3ebcb8ec2169165c629727344179d
2018-03-22 13:46:41 -07:00
James Willcox 6e2788b633 Bug 1447734 - Specify Google Play Services library version in Gradle r=nalexander
MozReview-Commit-ID: KXcYJTlG2UC
2018-03-22 14:35:38 -05:00
James Willcox dd28aadd33 Bug 1447729 - Specify Android Support library version in Gradle r=nalexander
MozReview-Commit-ID: 6r8tI1v2SeC
2018-03-22 14:35:37 -05:00
Jan Henning 7d66dc5b22 Bug 1416169 - Part 2 - Move monitoring of Tab media events out of the MediaControlService. r=snorp
At the moment the MediaControlService is structured such that it is started
shortly after Firefox has launched. Then, it registers a Tab event listener and
starts listening for various, mainly media-related tab events, in response to
which the playback notification is then shown or hidden as appropriate.
This setup has the drawback that the service itself has to remain running all
the time, even when we're not actually showing the notification, so Firefox now
keeps showing up as a "Running service" even when in background and not doing
anything interesting.

It is however relatively easily possible to move the tab event tracking into a
different class that won't require a service to stay alive, and set the Media-
ControlService's state (and at the same time start it if necessary) through a
set of special intent actions.

As the AudioFocusAgent is
a) alive for the whole lifetime of the application and
b) already interacting with the MediaControlService,
we designate it as the class responsible for this.

MozReview-Commit-ID: 1CzBpC1LTuZ

--HG--
extra : rebase_source : ef846bc1c52cb55fb1dfcdf05f2705f92358244e
2018-03-10 18:38:32 +01:00
Michael Kaply 27dd77631b Bug 1342288 - Remove PresentationMediaPlayerManager. r=snorp
MozReview-Commit-ID: 4H46ahWTntR

--HG--
extra : rebase_source : 647b6f702b14bbb13bc44812870069164ccbddfd
2018-03-06 16:33:42 -06:00
Jim Chen 8865f7185a Bug 1442255 - 6. Adjust process count for GeckoView; r=jchen
Set process count to 1 because we only support one child process right
now.

MozReview-Commit-ID: HJAWvN4aqSX

--HG--
extra : rebase_source : 53e997b69b4b11fc3673a546ba0ad276e772d570
2018-03-06 13:52:50 -05:00
Gurzau Raul 185d1fcf42 Backed out 7 changesets (bug 1442255) for failing c1 tests on mochitest/test_browserElement_inproc_PurgeHistory.html
Backed out changeset 208c4c42f641 (bug 1442255)
Backed out changeset 6a794e14fceb (bug 1442255)
Backed out changeset 62d1c57c37b4 (bug 1442255)
Backed out changeset 5d0f72867f53 (bug 1442255)
Backed out changeset c3305648ad30 (bug 1442255)
Backed out changeset 08f906f3a0c8 (bug 1442255)
Backed out changeset d7a43e59a1b4 (bug 1442255)
2018-03-06 17:08:57 +02:00
Jim Chen 6fa8cbb06e Bug 1442255 - 6. Adjust process count for GeckoView; r=jchen
Set process count to 1 because we only support one child process right
now.

MozReview-Commit-ID: HJAWvN4aqSX

--HG--
extra : rebase_source : 8ade58427e8555f70a9349e6228b8aa7d1079781
2018-03-06 00:04:56 -05:00
Andrew Swan aeee120808 Bug 1402064 Switch to modern AMO metadata API r=kmag
Switch from the old XML-based AMO metadata API to the modern JSON based
API.  This turned into something between a modest update and complete
rewrite.  Most notably, external APIs became (mostly) promise-based.  The
exception is getCachedAddonById() which XPIInstall.jsm requires a
synchronous callback from.

Also, hopefully we will be able to get rid of a bunch of this metadata
handling soon.  If this code had a long life ahead of it, the unit tests
could use some more attention, but I mostly did the minimum here just to
keep them running for now with the expectation that we'll be able to get
rid of them within some small number of months.

MozReview-Commit-ID: 3DRaBdWGaiJ

--HG--
rename : services/sync/tests/unit/addon1-search.xml => services/sync/tests/unit/addon1-search.json
rename : services/sync/tests/unit/bootstrap1-search.xml => services/sync/tests/unit/bootstrap1-search.json
rename : services/sync/tests/unit/missing-sourceuri.xml => services/sync/tests/unit/missing-sourceuri.json
rename : services/sync/tests/unit/missing-xpi-search.xml => services/sync/tests/unit/missing-xpi-search.json
rename : services/sync/tests/unit/rewrite-search.xml => services/sync/tests/unit/rewrite-search.json
rename : services/sync/tests/unit/systemaddon-search.xml => services/sync/tests/unit/systemaddon-search.json
extra : rebase_source : f25d78b938768041c5c05b72a1f7ff3a7dee8275
2018-01-10 14:18:20 -08:00
Edouard Oger 36e928e2e9 Bug 1363924 p3 - Record commands telemetry events. r=Grisha,tcsc
MozReview-Commit-ID: 2IRAYdN7BI4

--HG--
extra : rebase_source : b12e371ef493b7b03bfcf9ef2f71c06bd1665e91
2018-02-02 13:58:43 -05:00
Edouard Oger b8c9f187a4 Bug 1363924 p2 - Move deviceID and uid to payload level in sync ping. r=Grisha
In the next commit, we will send telemetry events in the sync ping.
The "event" JSON object doesn't have "uid"/"deviceID" fields (actually,
the "sync" objects shouldn't have them either!).
Let's do the right thing and send deviceID and UID as part of the top-level
"payload" object.

MozReview-Commit-ID: 3D3X3PcJAsW

--HG--
extra : rebase_source : 2ed71c7e6ce269cc43878f0e166dd9b149f3ccbc
2018-02-20 15:01:24 +08:00
Csoregi Natalia 8b633f366a Backed out 3 changesets (bug 1363924) for android-test failures. CLOSED TREE
Backed out changeset 08747734c0fd (bug 1363924)
Backed out changeset fbba0f584237 (bug 1363924)
Backed out changeset d30f27293117 (bug 1363924)
2018-02-26 20:46:49 +02:00
Edouard Oger 2a38b77eff Bug 1363924 p3 - Record commands telemetry events. r=Grisha,tcsc
MozReview-Commit-ID: 2IRAYdN7BI4

--HG--
extra : rebase_source : f9e5155e45966536ef424b05936f52094d24e393
2018-02-02 13:58:43 -05:00
Edouard Oger 970b1787a0 Bug 1363924 p2 - Move deviceID and uid to payload level in sync ping. r=Grisha
In the next commit, we will send telemetry events in the sync ping.
The "event" JSON object doesn't have "uid"/"deviceID" fields (actually,
the "sync" objects shouldn't have them either!).
Let's do the right thing and send deviceID and UID as part of the top-level
"payload" object.

MozReview-Commit-ID: 3D3X3PcJAsW

--HG--
extra : rebase_source : 2ed71c7e6ce269cc43878f0e166dd9b149f3ccbc
2018-02-20 15:01:24 +08:00
Eugen Sawin 05eba99d35 Bug 1432235 - [1.2] Move GeckoView API classes to org.mozilla.geckoview. r=snorp,jchen 2018-02-22 00:46:26 +01:00
Timothy Guan-tin Chien a2a559db3e Bug 1234008 - Recompress some png images with zopflipng r=Dolske,Grisha,jryans
MozReview-Commit-ID: Cr2iMSB04uu

--HG--
extra : rebase_source : 49f69cca3a4f27af1060ed82283b5cc96f717229
2018-01-27 15:57:42 +08:00
Eugen Sawin 0d21e3454c Bug 1436887 - [1.1] Add GeckoView prefs file. r=snorp,jchen 2018-02-14 19:52:20 +01:00
Suhail Alkowaileet b2174ae597 Bug 1432854 - Fix Tab counter doesn't show native numbers for non-arabic numeral languages r=JanH
MozReview-Commit-ID: 3STmgEGAbJG

--HG--
extra : rebase_source : be198c358e765471c95a7ec678848b04f768111f
2018-02-08 18:26:00 +03:00
Cosmin Sabou 2400be0754 Merge inbound to mozilla-central. a=merge 2018-02-09 02:29:56 +02:00
Jim Chen 338a932c87 Bug 1433322 - 2. Mass move GeckoView unit tests to under geckoview/; r=nalexander
These tests involve GeckoView classes, so move them to under geckoview/.
We use a custom test runner for Fennec unit tests, but I didn't notice
any problems when using standard test runners (e.g. MockitoJUnitRunner),
so I changed these tests to use standard runners.

MozReview-Commit-ID: 7JMhqJqahTC

--HG--
rename : mobile/android/app/src/test/java/org/mozilla/gecko/permissions/TestPermissions.java => mobile/android/geckoview/src/test/java/org/mozilla/gecko/permissions/TestPermissions.java
rename : mobile/android/app/src/test/java/org/mozilla/gecko/util/NetworkUtilsTest.java => mobile/android/geckoview/src/test/java/org/mozilla/gecko/util/NetworkUtilsTest.java
rename : mobile/android/app/src/test/java/org/mozilla/gecko/util/TestContextUtils.java => mobile/android/geckoview/src/test/java/org/mozilla/gecko/util/TestContextUtils.java
rename : mobile/android/app/src/test/java/org/mozilla/gecko/util/TestDateUtil.java => mobile/android/geckoview/src/test/java/org/mozilla/gecko/util/TestDateUtil.java
rename : mobile/android/app/src/test/java/org/mozilla/gecko/util/TestFileUtils.java => mobile/android/geckoview/src/test/java/org/mozilla/gecko/util/TestFileUtils.java
rename : mobile/android/app/src/test/java/org/mozilla/gecko/util/TestFloatUtils.java => mobile/android/geckoview/src/test/java/org/mozilla/gecko/util/TestFloatUtils.java
rename : mobile/android/app/src/test/java/org/mozilla/gecko/util/TestIntentUtils.java => mobile/android/geckoview/src/test/java/org/mozilla/gecko/util/TestIntentUtils.java
rename : mobile/android/app/src/test/java/org/mozilla/gecko/util/TestStringUtils.java => mobile/android/geckoview/src/test/java/org/mozilla/gecko/util/TestStringUtils.java
rename : mobile/android/app/src/test/java/org/mozilla/gecko/util/TestUUIDUtil.java => mobile/android/geckoview/src/test/java/org/mozilla/gecko/util/TestUUIDUtil.java
2018-02-08 13:36:22 -05:00
Thom Chiovoloni b43432e557 Bug 1389233 - Record outgoing batches in the android sync ping r=Grisha
MozReview-Commit-ID: JUHSMluUE8q

--HG--
extra : rebase_source : 70616ba96961c53ccbd0cf27830ebb3ad061dd52
2018-01-31 16:13:19 -05:00
Andreea Pavel 7c97cadaf2 Backed out changeset 1889332abc68 (bug 1436271) for android test failure on a CLOSED TREE 2018-02-07 21:09:19 +02:00
Andrew Gaul 7ae797fc80 Bug 1436271: Replace calls to String.getBytes(String) with String.getBytes(Charset) r=nalexander
Also replace calls to String(byte[], String) with String(byte[], Charset).  This
removes some cannot-happen exception handling.
2018-02-06 22:12:33 -08:00
Dylan Roeh 1c29a391df Bug 1432624 - Left-truncate and ellipsize domain in custom tabs to reduce phishing risk. r=snorp 2018-02-07 09:23:47 -06:00
Jeremy Lempereur 9e6a7ee1f9 Bug 1249596 - Part 1: Remove FHR client id migration code on Android. r=nalexander
Removed FHR client id migration code on the Android side.

MozReview-Commit-ID: X9QKtbh6r3

--HG--
extra : rebase_source : f5587789f6980aecc4309dc329eb051650ad4c6f
2018-01-31 23:50:53 +01:00
Jan Henning ea811fe9a1 Bug 1392996 - Part 2 - Enable view-source word-wrapping by default in Fennec. r=snorp
MozReview-Commit-ID: FpQNzbS9ixY

--HG--
extra : rebase_source : 8a79f883fec07635810ac7fd94aa1bfe157c1c28
2018-01-27 22:58:33 +01:00
Eugen Sawin 86a254d584 Bug 1435290 - [1.0] Enable automatic image resizing for Fennec and custom tabs. r=kats 2018-02-02 19:16:51 +01:00
Nick Alexander f452e71db0 Bug 1411654 - Part 5c: Work through ResourceUnused lint issues. r=mcomella
MozReview-Commit-ID: 82rgLEEMQzG

--HG--
extra : rebase_source : 233c8360a8d719f568b31fb60b5f39eded67475d
extra : source : 55776829a744ec20be08d29083c4b39b9519b9b4
2017-11-14 19:20:16 -08:00
Nick Alexander c4499269d8 Bug 1411654 - Part 5b: Work through WrongConstant lint issues. r=mcomella
MozReview-Commit-ID: 6zJ7EMu9rgO

--HG--
extra : rebase_source : d3a228caa4c21ce17184302559f3a8e233fb00b7
extra : source : c5bf85d56fedf600363dda3b077fdf950ba60688
2017-11-14 15:36:49 -08:00
Nick Alexander 5493c31710 Bug 1411654 - Part 5: Work through various new lint issues. r=mcomella
MozReview-Commit-ID: AhrT7jbztE3

--HG--
extra : rebase_source : 452574bdf2271f1faa6484b462a6febcf8cef714
extra : source : fde9bf9c14c31c11b4e9279ae7b56b94b5a02d53
2017-11-08 10:11:25 -08:00
Nick Alexander 42f84f5c5d Bug 1411654 - Part 4: Use flavorDimensions to simplify {with,without}GeckoBinaries logic. r=maliu
MozReview-Commit-ID: 2rbsP6A0BY0

--HG--
extra : rebase_source : 7ef95b9c3b7e2aef0c71e7c421acfd9b35e61bb2
extra : source : 01836fd98c6351667c70cfd187cf1e3c437e1f94
2017-11-09 16:47:05 -08:00
Nick Alexander 0a04218739 Bug 1411654 - Part 3: Make each variant handle source from moz.build. r=maliu
The advantage of doing this per-variant is that we can really separate
the 'local' behaviour (re-generate via re-entrant |mach build|
invocations) from the 'official' behaviour (never re-generate via
re-entrance).

This also uses new Android-Gradle plugin 3.0+ APIs to integrate the
generated resources and Java code.

MozReview-Commit-ID: 4pd2iw1nJSb

--HG--
extra : rebase_source : 205080d3822f59bcdd5d3b44de2898ff775f5746
extra : source : 730a70767743b74a7e3a1fcf4018540edfdf30a3
2017-11-09 13:47:46 -08:00
Nick Alexander ea45b76573 Bug 1411654 - Part 2: Update Robolectric to 3.5.1. r=mcomella
There were a few API changes, mostly around explicitly creating
Services/Activities/ContentProvider instances, but they were pretty
easy to address.

Sadly, Robolectric doesn't really work with the new aapt2 processing
in Android-Gradle plugin 3.0+ -- see in particular
https://github.com/robolectric/robolectric/issues/3333#issuecomment-324300418
-- so we have to opt-out of the new implementation for now.  Hopefully
plugin 3.1+ will address these issues, which are widespread.

MozReview-Commit-ID: dlbd32kMs6

--HG--
extra : rebase_source : fe30729161e5dc91ea9173f9b7aaa9135d096791
extra : source : 690e265c684ce70ecb89355314fd1574bb421f0b
2017-11-07 20:26:43 -08:00
Nick Alexander edf219ba3b Bug 1411654 - Part 1: Upgrade to Android-Gradle 3.0+ and build-tools;26.0.2. r=maliu
New Android-Gradle plugins pin the build-tools version, and we want to
be consistent between Gradle and moz.build.

MozReview-Commit-ID: ApWS4rHzPuH

--HG--
extra : rebase_source : 22008e9333b15c594ce26c2a52f67396d6e3ab84
extra : source : f918500d9cf5112b70bc8e0a120df435b02252b7
2017-10-26 11:00:36 -07:00
Nick Alexander 6f1f726e36 Bug 1411654 - Pre: Clear icon disk storage in test. r=mcomella
Newer versions of Robolectric seem to have different semantics about
clearing disk caches, so this is necessary.  But for older versions,
it shouldn't hurt, and is slightly more clear than relying on an
implicit clear.

MozReview-Commit-ID: LRcaEPasXj8

--HG--
extra : rebase_source : 4d6bb4916cde61f198004661bed58025e91ffa9c
extra : source : 373c9a71d9451498462594b302b4fe2648431fef
2017-11-07 20:24:04 -08:00
Nick Alexander 34d3e93f29 Bug 1411654 - Pre: Remove unused PerProfileDatabaseProvider. r=mcomella
No idea what is going on with this hierarchy, but this isn't used and
isn't helping anything.

MozReview-Commit-ID: Ir3LxLYHR6M

--HG--
extra : rebase_source : f1726d37fa285de1042fed76a722f941380cbf63
extra : source : 3dc3beab95f83b2f08ff9ff305fdd4b85cc05d9d
2017-11-07 20:18:56 -08:00
Nick Alexander 830afb59cc Bug 1411654 - Pre: Fix dangling resource. r=mcomella
This is just wrong.

MozReview-Commit-ID: EBtKTD07aNu

--HG--
rename : mobile/android/base/resources/values-v17/themes.xml => mobile/android/app/src/main/res/values-v17/themes.xml
extra : rebase_source : c6e58c6be966dd8ace6aa796b5a5e6000ee9c65e
extra : source : 22a861db1573364916ab2c5b6d0c6321ba08ff55
2017-11-08 09:47:48 -08:00
Andrew Swan 1acce175af Bug 1356331 Remove hotfix code from addons manager and related tests r=rhelmer
MozReview-Commit-ID: EjCOOgmXvVH

--HG--
extra : rebase_source : 051c618bd73e7bac41d5dc9339972742b029a879
extra : source : 9af7407fa9309e1fa2dc590309ed2329f02dc61e
2017-12-13 12:33:52 -08:00
Tad 5545cfcfe1 Bug 1419581 - Part 1: Simplify MMA GCM sender IDs logic. r=nechen
Right now, the MMA glue is built into constants.jar.  constants.jar is
the home of preprocessed Java code; it's built very early in the build
process and intended to be a tiny kernel of shared definitions.  The
fact that the MMA glue has to live there is just a sad consequence of
the non-Gradle build system, which makes dependency injection
difficult.  Unfortunately, another consequence is that it's not
possible to move reference org.mozilla.gecko.{gcm,push} in the MMA
glue, because those packages are built after constants.jar.

Instead, this patch lifts some of the logic into AppConstants, which
is part of constants.jar.  We had grown a twisty maze of indirection
around the GCM sender IDs and it just wasn't necessary; this just
lifts the static pieces up a level and removes a bunch of interface
indirection.

What surprises me is that asking Google's InstanceId.getToken for a
GCM token with a "comma,separated,list" of GCM sender IDs works -- and
indeed, has worked since we added the second MMA sender ID.  I didn't
expect that and can't explain it, but this doesn't change that logic
and local testing (both of the existing APKs, and APKs with this
modification) looks good.


MozReview-Commit-ID: 3hObfAwNlPH
***
a0c07e53 o draft Bug 1419581 - Part 1: Move MMA setGcmSenderID from MmaDelegate to MmaLeanplumImp. r=nechen

MozReview-Commit-ID: A4hrk6pVqGW

--HG--
extra : rebase_source : ce7c1585529e61491a0133633b976b27083c2372
extra : intermediate-source : f8b3e95f18e4082ab8404187508d09eadba8612e
extra : source : 8f1655752d43af33356d497d559888a967bbf6a0
2018-01-12 15:03:37 -08:00
Nick Alexander 3ce208316e Bug 1419581 - Pre: Add missing excludes when building without MOZ_NATIVE_DEVICES. r=nalexander
MozReview-Commit-ID: BXNFBEs2017

--HG--
extra : rebase_source : 0ab618268eb680ca7dc0eb9911dc05e7e9b1ac77
extra : intermediate-source : 5f7645a19bf1ff9aa822314135f8e702f57b3771
extra : source : 65195aae48d88edc3c23f88083cf77251d9556fe
2018-01-04 14:49:58 -08:00
Robert Helmer 77d3af2651 Bug 1260213 - enable system add-on updates for Fennec r=snorp
MozReview-Commit-ID: LH4oPseLBpp

--HG--
extra : rebase_source : 7dc5867e15b128c5cf631c597deb8e15935bddaa
2018-01-24 11:11:10 -08:00
Brindusan Cristian 9e0ffdd8cb Backed out 7 changesets (bug 1419581) as requested by nalexander a=backout
Backed out changeset 7f41dd3bbc2d (bug 1419581)
Backed out changeset d4d42899e5cd (bug 1419581)
Backed out changeset 78828bf781d7 (bug 1419581)
Backed out changeset 5224db0c36aa (bug 1419581)
Backed out changeset 072108d16590 (bug 1419581)
Backed out changeset f8b3e95f18e4 (bug 1419581)
Backed out changeset 5f7645a19bf1 (bug 1419581)
2018-01-24 22:28:19 +02:00
Tad ac439ae1ba Bug 1419581 - Part 1: Simplify MMA GCM sender IDs logic. r=nechen
Right now, the MMA glue is built into constants.jar.  constants.jar is
the home of preprocessed Java code; it's built very early in the build
process and intended to be a tiny kernel of shared definitions.  The
fact that the MMA glue has to live there is just a sad consequence of
the non-Gradle build system, which makes dependency injection
difficult.  Unfortunately, another consequence is that it's not
possible to move reference org.mozilla.gecko.{gcm,push} in the MMA
glue, because those packages are built after constants.jar.

Instead, this patch lifts some of the logic into AppConstants, which
is part of constants.jar.  We had grown a twisty maze of indirection
around the GCM sender IDs and it just wasn't necessary; this just
lifts the static pieces up a level and removes a bunch of interface
indirection.

What surprises me is that asking Google's InstanceId.getToken for a
GCM token with a "comma,separated,list" of GCM sender IDs works -- and
indeed, has worked since we added the second MMA sender ID.  I didn't
expect that and can't explain it, but this doesn't change that logic
and local testing (both of the existing APKs, and APKs with this
modification) looks good.


MozReview-Commit-ID: 3hObfAwNlPH
***
a0c07e53 o draft Bug 1419581 - Part 1: Move MMA setGcmSenderID from MmaDelegate to MmaLeanplumImp. r=nechen

MozReview-Commit-ID: A4hrk6pVqGW

--HG--
extra : rebase_source : 9de77b6278bae76df3597bc2580bcedbf6d33075
extra : intermediate-source : c6e6fe49ecd2dd422878d80f57f1c89bf69eebff
extra : source : 8f1655752d43af33356d497d559888a967bbf6a0
2018-01-12 15:03:37 -08:00
Nick Alexander 712d05c0af Bug 1419581 - Pre: Add missing excludes when building without MOZ_NATIVE_DEVICES. r=nalexander
MozReview-Commit-ID: BXNFBEs2017

--HG--
extra : rebase_source : b1b5a191f6022f817ffefe4111041a9460841060
extra : intermediate-source : ef692850802df9bf97bf82bfa3faadb7ff018130
extra : source : 65195aae48d88edc3c23f88083cf77251d9556fe
2018-01-04 14:49:58 -08:00
Jan Henning 1f2597dca1 Bug 1389829 - Part 1 - Add "View Page Source" to the Page menu in the UI. r=nechen
The Page menu is disabled when no tab is open, so not doing a null-check on the
currently selected tab in the menu click handler is safe.

MozReview-Commit-ID: CYKHJ5N1q8I

--HG--
extra : rebase_source : 3ec7b1a9708a905785850feb44b48723c24f1363
2017-08-13 16:15:26 +02:00
Ryan VanderMeulen ac18fd5152 Backed out 20 changesets (bug 1411654) for incorrect android:debuggable. r=nalexander, a=RyanVM
Backed out changeset cfad693be918 (bug 1411654)
Backed out changeset 55776829a744 (bug 1411654)
Backed out changeset c5bf85d56fed (bug 1411654)
Backed out changeset c270f97bb0da (bug 1411654)
Backed out changeset fde9bf9c14c3 (bug 1411654)
Backed out changeset 01836fd98c63 (bug 1411654)
Backed out changeset 730a70767743 (bug 1411654)
Backed out changeset 690e265c684c (bug 1411654)
Backed out changeset f918500d9cf5 (bug 1411654)
Backed out changeset cec2b8828cc8 (bug 1411654)
Backed out changeset 76085ddd5ac7 (bug 1411654)
Backed out changeset 2b37201606f5 (bug 1411654)
Backed out changeset d0d513d1c379 (bug 1411654)
Backed out changeset e7b0cc801cf1 (bug 1411654)
Backed out changeset 901b304603d9 (bug 1411654)
Backed out changeset 373c9a71d945 (bug 1411654)
Backed out changeset 3dc3beab95f8 (bug 1411654)
Backed out changeset 22a861db1573 (bug 1411654)
Backed out changeset 0850b319efd4 (bug 1411654)
Backed out changeset d276d3deba05 (bug 1411654)

--HG--
rename : mobile/android/app/src/main/res/values-v17/themes.xml => mobile/android/base/resources/values-v17/themes.xml
2018-01-17 15:55:38 -05:00
Ryan VanderMeulen f40d9dac13 Backed out changeset f5c4825b6ae8 (bug 1430417) for incorrect android:debuggable. r=nalexander 2018-01-17 15:54:42 -05:00
Ryan VanderMeulen 8ac2db0699 Backed out 7 changesets (bug 1419581) for incorrect android:debuggable. r=nalexander
Backed out changeset bd1e3857b5ba (bug 1419581)
Backed out changeset be888fa125dc (bug 1419581)
Backed out changeset 44bcb609e721 (bug 1419581)
Backed out changeset a7d75667c58b (bug 1419581)
Backed out changeset 2ea82ff4a757 (bug 1419581)
Backed out changeset 8f1655752d43 (bug 1419581)
Backed out changeset 65195aae48d8 (bug 1419581)
2018-01-17 15:54:22 -05:00
Tad 99aa60a088 Bug 1419581 - Part 1: Simplify MMA GCM sender IDs logic. r=nechen
Right now, the MMA glue is built into constants.jar.  constants.jar is
the home of preprocessed Java code; it's built very early in the build
process and intended to be a tiny kernel of shared definitions.  The
fact that the MMA glue has to live there is just a sad consequence of
the non-Gradle build system, which makes dependency injection
difficult.  Unfortunately, another consequence is that it's not
possible to move reference org.mozilla.gecko.{gcm,push} in the MMA
glue, because those packages are built after constants.jar.

Instead, this patch lifts some of the logic into AppConstants, which
is part of constants.jar.  We had grown a twisty maze of indirection
around the GCM sender IDs and it just wasn't necessary; this just
lifts the static pieces up a level and removes a bunch of interface
indirection.

What surprises me is that asking Google's InstanceId.getToken for a
GCM token with a "comma,separated,list" of GCM sender IDs works -- and
indeed, has worked since we added the second MMA sender ID.  I didn't
expect that and can't explain it, but this doesn't change that logic
and local testing (both of the existing APKs, and APKs with this
modification) looks good.


MozReview-Commit-ID: 3hObfAwNlPH
***
a0c07e53 o draft Bug 1419581 - Part 1: Move MMA setGcmSenderID from MmaDelegate to MmaLeanplumImp. r=nechen

MozReview-Commit-ID: A4hrk6pVqGW

--HG--
extra : rebase_source : 4184f40d82bcd44c2bb380d1a8ab534967818af5
2018-01-12 15:03:37 -08:00
Nick Alexander d5f1dc0020 Bug 1419581 - Pre: Add missing excludes when building without MOZ_NATIVE_DEVICES. r=nalexander
MozReview-Commit-ID: BXNFBEs2017

--HG--
extra : rebase_source : be0d0eb238151ad589529a2e5e088d275c2b2895
2018-01-04 14:49:58 -08:00
Margareta Eliza Balazs b61bd7a503 Backed out 7 changesets (bug 1419581) for B bustage on /builds/worker/workspace/build/src/widget/android/nsWindow.h:0 on a CLOSED TREE
Backed out changeset 1af5a54e829d (bug 1419581)
Backed out changeset c9aef37de282 (bug 1419581)
Backed out changeset 8d0855cb17b7 (bug 1419581)
Backed out changeset d0eba5853ab6 (bug 1419581)
Backed out changeset bc4cda1cc57c (bug 1419581)
Backed out changeset 93547276fba8 (bug 1419581)
Backed out changeset 45b5309a73cb (bug 1419581)
2018-01-17 00:03:19 +02:00
Tad a056b461cc Bug 1419581 - Part 1: Simplify MMA GCM sender IDs logic. r=nechen
Right now, the MMA glue is built into constants.jar.  constants.jar is
the home of preprocessed Java code; it's built very early in the build
process and intended to be a tiny kernel of shared definitions.  The
fact that the MMA glue has to live there is just a sad consequence of
the non-Gradle build system, which makes dependency injection
difficult.  Unfortunately, another consequence is that it's not
possible to move reference org.mozilla.gecko.{gcm,push} in the MMA
glue, because those packages are built after constants.jar.

Instead, this patch lifts some of the logic into AppConstants, which
is part of constants.jar.  We had grown a twisty maze of indirection
around the GCM sender IDs and it just wasn't necessary; this just
lifts the static pieces up a level and removes a bunch of interface
indirection.

What surprises me is that asking Google's InstanceId.getToken for a
GCM token with a "comma,separated,list" of GCM sender IDs works -- and
indeed, has worked since we added the second MMA sender ID.  I didn't
expect that and can't explain it, but this doesn't change that logic
and local testing (both of the existing APKs, and APKs with this
modification) looks good.


MozReview-Commit-ID: 3hObfAwNlPH
***
a0c07e53 o draft Bug 1419581 - Part 1: Move MMA setGcmSenderID from MmaDelegate to MmaLeanplumImp. r=nechen

MozReview-Commit-ID: A4hrk6pVqGW

--HG--
extra : rebase_source : 0547c79ecf404688972fc55658f09bdfce07b613
2018-01-12 15:03:37 -08:00
Nick Alexander 4d89e3b968 Bug 1419581 - Pre: Add missing excludes when building without MOZ_NATIVE_DEVICES. r=nalexander
MozReview-Commit-ID: BXNFBEs2017

--HG--
extra : rebase_source : 46977618d002691b1f0add847faaec47d1b15404
2018-01-04 14:49:58 -08:00
Nick Alexander 9932883508 Bug 1430417 - Do not include LeakCanary in automation builds. r=jchen
This got mixed up by Bug 1411654, which migrated to Android-Gradle
3.0+.  However, it's also much easier to fix due to the changes in the
new version!  This patch uses the new audience flavor dimension to
control the version of LeakCanary included.

Note that this turns off LeakCanary for builds produced by |mach
build|, because |mach build| always builds the official audience
flavor dimension.  We could use MOZILLA_OFFICIAL to differentiate, but
it's not worth it: local developers who care about LeakCanary
will/should be running a local audience flavor dimension from Android
Studio.

MozReview-Commit-ID: ASgxhNOMsWc

--HG--
extra : rebase_source : a5de2b6fdaf92a1d91739ca0b480a9d04d434b8c
2018-01-16 10:50:23 -08:00
Nick Alexander 8b73eafa94 Bug 1411654 - Part 5c: Work through ResourceUnused lint issues. r=mcomella
MozReview-Commit-ID: 82rgLEEMQzG

--HG--
extra : rebase_source : ecb798ff7cd6c9da1e55bfd21f223099141250d8
2017-11-14 19:20:16 -08:00
Nick Alexander 9925256f15 Bug 1411654 - Part 5b: Work through WrongConstant lint issues. r=mcomella
MozReview-Commit-ID: 6zJ7EMu9rgO

--HG--
extra : rebase_source : 120657218f085fad178abcc7e7864c7db24c6692
2017-11-14 15:36:49 -08:00
Nick Alexander 1ae5087753 Bug 1411654 - Part 5: Work through various new lint issues. r=mcomella
MozReview-Commit-ID: AhrT7jbztE3

--HG--
extra : rebase_source : b6d33e402a16b82c181408e3abdcb3d7726de85e
2017-11-08 10:11:25 -08:00
Nick Alexander a31ac9c2b7 Bug 1411654 - Part 4: Use flavorDimensions to simplify {with,without}GeckoBinaries logic. r=maliu
MozReview-Commit-ID: 2rbsP6A0BY0

--HG--
extra : rebase_source : cbb33702f841134d58b1e49678bd2a402885bcb7
2017-11-09 16:47:05 -08:00
Nick Alexander 701f1ee2f2 Bug 1411654 - Part 3: Make each variant handle source from moz.build. r=maliu
The advantage of doing this per-variant is that we can really separate
the 'local' behaviour (re-generate via re-entrant |mach build|
invocations) from the 'official' behaviour (never re-generate via
re-entrance).

This also uses new Android-Gradle plugin 3.0+ APIs to integrate the
generated resources and Java code.

MozReview-Commit-ID: 4pd2iw1nJSb

--HG--
extra : rebase_source : 9e62ed6adf4b0fa01bcb9a927fa24626d3ce4d29
2017-11-09 13:47:46 -08:00
Nick Alexander d8db003c57 Bug 1411654 - Part 2: Update Robolectric to 3.5.1. r=mcomella
There were a few API changes, mostly around explicitly creating
Services/Activities/ContentProvider instances, but they were pretty
easy to address.

Sadly, Robolectric doesn't really work with the new aapt2 processing
in Android-Gradle plugin 3.0+ -- see in particular
https://github.com/robolectric/robolectric/issues/3333#issuecomment-324300418
-- so we have to opt-out of the new implementation for now.  Hopefully
plugin 3.1+ will address these issues, which are widespread.

MozReview-Commit-ID: dlbd32kMs6

--HG--
extra : rebase_source : 325bc8142ec9b8a9d5029e7820e8f990d7e1a5fd
2017-11-07 20:26:43 -08:00
Nick Alexander 47c107e74f Bug 1411654 - Part 1: Upgrade to Android-Gradle 3.0+ and build-tools;26.0.2. r=maliu
New Android-Gradle plugins pin the build-tools version, and we want to
be consistent between Gradle and moz.build.

MozReview-Commit-ID: ApWS4rHzPuH

--HG--
extra : rebase_source : 38a9781c472d858f3300cbbcbdc6d2311c465713
2017-10-26 11:00:36 -07:00
Nick Alexander 88e814095b Bug 1411654 - Pre: Clear icon disk storage in test. r=mcomella
Newer versions of Robolectric seem to have different semantics about
clearing disk caches, so this is necessary.  But for older versions,
it shouldn't hurt, and is slightly more clear than relying on an
implicit clear.

MozReview-Commit-ID: LRcaEPasXj8

--HG--
extra : rebase_source : 3b26f65d455c049b6190a9c481f8a4bec4e06dfd
2017-11-07 20:24:04 -08:00
Nick Alexander 95a99b4b2a Bug 1411654 - Pre: Remove unused PerProfileDatabaseProvider. r=mcomella
No idea what is going on with this hierarchy, but this isn't used and
isn't helping anything.

MozReview-Commit-ID: Ir3LxLYHR6M

--HG--
extra : rebase_source : c883a3fa60d1a47b19b53f2bbc7a9c2f0e2cf711
2017-11-07 20:18:56 -08:00
Nick Alexander 39c11c49d5 Bug 1411654 - Pre: Fix dangling resource. r=mcomella
This is just wrong.

MozReview-Commit-ID: EBtKTD07aNu

--HG--
rename : mobile/android/base/resources/values-v17/themes.xml => mobile/android/app/src/main/res/values-v17/themes.xml
extra : rebase_source : 01df9bd8ff4f2d700999ee5d2045890f8acb51ac
2017-11-08 09:47:48 -08:00
Dorel Luca ab63c465d9 Backed out 19 changesets (bug 1411654) for Android nightly bustages a=backout
Backed out changeset 649e7aa405ca (bug 1411654)
Backed out changeset c2e51b70519f (bug 1411654)
Backed out changeset a371f3ef4312 (bug 1411654)
Backed out changeset db978e230556 (bug 1411654)
Backed out changeset 56538ed998cf (bug 1411654)
Backed out changeset 6ff0cdf46a3d (bug 1411654)
Backed out changeset 0e493bacc5e3 (bug 1411654)
Backed out changeset 23cbcf427745 (bug 1411654)
Backed out changeset eda74143389f (bug 1411654)
Backed out changeset 359fadf9b3e9 (bug 1411654)
Backed out changeset 5c64eda20f1e (bug 1411654)
Backed out changeset bffb6a5b78d1 (bug 1411654)
Backed out changeset 43787f4089c3 (bug 1411654)
Backed out changeset 9141bbdfd13b (bug 1411654)
Backed out changeset 108674372ef7 (bug 1411654)
Backed out changeset fb15e1f54987 (bug 1411654)
Backed out changeset 264476c77210 (bug 1411654)
Backed out changeset d23f467218da (bug 1411654)
Backed out changeset 78576ff98660 (bug 1411654)

--HG--
rename : mobile/android/app/src/main/res/values-v17/themes.xml => mobile/android/base/resources/values-v17/themes.xml
2018-01-13 15:17:49 +02:00
Nick Alexander 85c743be7e Bug 1411654 - Part 5c: Work through ResourceUnused lint issues. r=mcomella
MozReview-Commit-ID: 82rgLEEMQzG

--HG--
extra : rebase_source : 48c033eec89fa2708a7c1bced5c1da3363bc9dd7
2017-11-14 19:20:16 -08:00
Nick Alexander 13f62b22ce Bug 1411654 - Part 5b: Work through WrongConstant lint issues. r=mcomella
MozReview-Commit-ID: 6zJ7EMu9rgO

--HG--
extra : rebase_source : c0727fa0b856e49a55694cd07efb049a413a80d5
2017-11-14 15:36:49 -08:00
Nick Alexander 2d91813ebe Bug 1411654 - Part 5: Work through various new lint issues. r=mcomella
MozReview-Commit-ID: AhrT7jbztE3

--HG--
extra : rebase_source : 1241d02bf70fe612be576fc51909be81fc5f3b5f
2017-11-08 10:11:25 -08:00
Nick Alexander 34208b22e7 Bug 1411654 - Part 4: Use flavorDimensions to simplify {with,without}GeckoBinaries logic. r=maliu
MozReview-Commit-ID: 2rbsP6A0BY0

--HG--
extra : rebase_source : d9df7bdb482b8605067303857ab6a3356fa87646
2017-11-09 16:47:05 -08:00
Nick Alexander c85490413c Bug 1411654 - Part 3: Make each variant handle source from moz.build. r=maliu
The advantage of doing this per-variant is that we can really separate
the 'local' behaviour (re-generate via re-entrant |mach build|
invocations) from the 'official' behaviour (never re-generate via
re-entrance).

This also uses new Android-Gradle plugin 3.0+ APIs to integrate the
generated resources and Java code.

MozReview-Commit-ID: 4pd2iw1nJSb

--HG--
extra : rebase_source : 7f8f8e7b2ec80de1104d51815ff2b66f389a33c3
2017-11-09 13:47:46 -08:00
Nick Alexander 4a8ac4504e Bug 1411654 - Part 2: Update Robolectric to 3.5.1. r=mcomella
There were a few API changes, mostly around explicitly creating
Services/Activities/ContentProvider instances, but they were pretty
easy to address.

Sadly, Robolectric doesn't really work with the new aapt2 processing
in Android-Gradle plugin 3.0+ -- see in particular
https://github.com/robolectric/robolectric/issues/3333#issuecomment-324300418
-- so we have to opt-out of the new implementation for now.  Hopefully
plugin 3.1+ will address these issues, which are widespread.

MozReview-Commit-ID: dlbd32kMs6

--HG--
extra : rebase_source : 1b4a681863e8917b473f4852c4b88fe1f95dc1fd
2017-11-07 20:26:43 -08:00
Nick Alexander e820c8ca18 Bug 1411654 - Part 1: Upgrade to Android-Gradle 3.0+ and build-tools;26.0.2. r=maliu
New Android-Gradle plugins pin the build-tools version, and we want to
be consistent between Gradle and moz.build.

MozReview-Commit-ID: ApWS4rHzPuH

--HG--
extra : rebase_source : 5a5730b4b9ce84af40a7c73c4f1abba017103f02
2017-10-26 11:00:36 -07:00
Nick Alexander 19e0281afe Bug 1411654 - Pre: Clear icon disk storage in test. r=mcomella
Newer versions of Robolectric seem to have different semantics about
clearing disk caches, so this is necessary.  But for older versions,
it shouldn't hurt, and is slightly more clear than relying on an
implicit clear.

MozReview-Commit-ID: LRcaEPasXj8

--HG--
extra : rebase_source : fee00a6a068d68e7f7978df56bcad94997d70afb
2017-11-07 20:24:04 -08:00
Nick Alexander edc447f108 Bug 1411654 - Pre: Remove unused PerProfileDatabaseProvider. r=mcomella
No idea what is going on with this hierarchy, but this isn't used and
isn't helping anything.

MozReview-Commit-ID: Ir3LxLYHR6M

--HG--
extra : rebase_source : d5efb14bff510e2a2982085237c53e27b4c7564d
2017-11-07 20:18:56 -08:00
Nick Alexander e4d79b18b4 Bug 1411654 - Pre: Fix dangling resource. r=mcomella
This is just wrong.

MozReview-Commit-ID: EBtKTD07aNu

--HG--
rename : mobile/android/base/resources/values-v17/themes.xml => mobile/android/app/src/main/res/values-v17/themes.xml
extra : rebase_source : 6390d41a43e2724e81f4c0ae6c3122f487b3f4a4
2017-11-08 09:47:48 -08:00
Jan Henning cfe25c27c6 Bug 1428128 - Store omni.ja uncompressed when packaging via Gradle. r=nalexander
- We already do this when packaging conventionally via ./mach package
- The omnijar is itself already a compressed archive, so no need to compress it
  again
- Gecko (especially the GeckoJarReader) expects the file to be STORED within the
  APK, doing otherwise may cause read access to the omnijar to fail

MozReview-Commit-ID: GcpeAehLe5h

--HG--
extra : rebase_source : b0c2562dc39f00541a9f3da308779c7ffe9fe584
2018-01-04 19:48:43 +01:00
John Lin 81b9b2832c Bug 1422263 - turn on fullscreen video orientation lock for all channels. r=jwwang
MozReview-Commit-ID: EGCx0AdH4Yy

--HG--
extra : rebase_source : 7019a1d697dc64663f76e0280e4b0f88f5b4a7f6
2017-12-13 09:07:28 -06:00
Ben Kelly 7fb7be80ac Bug 1293277 P3 Remove the dom.serviceWorkers.openWindow.enabled pref. r=baku 2017-12-12 15:44:47 -05:00
Andrew Swan 0a51e1ac64 Bug 1263313 Remove search pane from about:addons r=rhelmer
Also remove related code that was only used from here including
stuff related to marketplace purchases, etc.

MozReview-Commit-ID: ESX78tVQK7M

--HG--
extra : rebase_source : 56d956168f75cdc40fd3df057e41493f80733352
2017-12-05 21:17:13 -08:00
Nick Alexander e7f29934ad Bug 1417232 - Part 1: Move Treeherder report logging to mach command. r=ted.mielczarek
This was in Gradle due to history.  When this first landed, we invoked
Gradle directly from the mozharness, and the best way to print the
report URLs was from Gradle itself.  When the Android Gradle suites
were made tier 1, little harnesses (|mach android
{checkstyle,findbugs,lint,test}|) were written and invoked locally and
in automation.  This functionality should have migrated with them.

This removes the special Gradle target names from the Gradle
configuration, making it easier to change them in the future.

MozReview-Commit-ID: 1KPd3J5t82Q

--HG--
extra : rebase_source : 1da85e31c113bc9da138817bebf981af8b9b66dd
2017-12-07 10:14:57 -08:00
shindli 53c3b17b09 Backed out 6 changesets (bug 1417232) for failing in /python/mozbuild/mozbuild/test/configure/lint.py::Lint::test_mobile_android r=backout on a CLOSED TREE
Backed out changeset 06e72cdd94a5 (bug 1417232)
Backed out changeset 036308b8fe6b (bug 1417232)
Backed out changeset bb63e12fea6f (bug 1417232)
Backed out changeset d0a9d2d4c5b7 (bug 1417232)
Backed out changeset b613dde03d99 (bug 1417232)
Backed out changeset 8699e19b02e5 (bug 1417232)
2017-12-08 01:25:05 +02:00
Nick Alexander b76185017f Bug 1417232 - Part 1: Move Treeherder report logging to mach command. r=ted.mielczarek
This was in Gradle due to history.  When this first landed, we invoked
Gradle directly from the mozharness, and the best way to print the
report URLs was from Gradle itself.  When the Android Gradle suites
were made tier 1, little harnesses (|mach android
{checkstyle,findbugs,lint,test}|) were written and invoked locally and
in automation.  This functionality should have migrated with them.

This removes the special Gradle target names from the Gradle
configuration, making it easier to change them in the future.

MozReview-Commit-ID: 1KPd3J5t82Q

--HG--
extra : rebase_source : 1da85e31c113bc9da138817bebf981af8b9b66dd
2017-12-07 10:14:57 -08:00
Jan Henning d3f7376545 Bug 1413739 - Part 1 - Offer Firefox itself as an Assist App. r=nechen
The technique for setting our icon is just a straight reimplementation
of bug 1210242.

Because of the way the new tab might be opened from within a
processActionViewIntent Runnable, we can't enter editing mode by simply
listening for an ACTION_ASSIST intent from within BrowserApp, as we need to
enter editing mode *after* the correct tab has already been opened and selected
and BrowserApp doesn't get any hint on when that Runnable might have run.

Instead, we introduce a new tab event, so we can trigger editing mode at the
right time via the tab itself.

MozReview-Commit-ID: 8Bvv5TXyhhI

--HG--
extra : rebase_source : 92f6131098e1c2a8e810431aa82e68e7e422cfd1
2017-12-03 21:16:03 +01:00
Nevin Chen 9d786faef5 Bug 1421916 - Refine/update PWA action icon r=maliu
MozReview-Commit-ID: 7gndnFFHezm

--HG--
extra : rebase_source : eb804561083aaf2c210523fe346e80712666e5d1
2017-12-04 16:07:57 +08:00
Ian Moody 5231a620c1 Bug 1421859 - Remove flat_icon now that it is unused. r=nechen
MozReview-Commit-ID: 7wJ0JL2fBFC

--HG--
extra : rebase_source : 89e1a65309682398f4823c6835c19494d8743305
2017-12-03 18:44:53 +00:00
Nevin Chen 32c2be0d45 Bug 1420886 - Replace -ads with -analytics. r=maliu
Looking at latest Adjust SDK [1]
compile 'com.google.android.gms:play-services-analytics:10.2.1'
should be enough. And it doesn't have DoubleClick in it (testing with dexdump)	.
Even Adjust has change from -ads to -analytics [2]

I just build/test with below options.

export MOZ_INSTALL_TRACKING=1
ac_add_options --with-adjust-sdk-keyfile=.....

export MOZILLA_OFFICIAL=1
export MOZ_TELEMETRY_REPORTING=1

export MOZ_ANDROID_MMA=1
ac_add_options --with-leanplum-sdk-keyfile=.....

and it works for below places where we have have com.google.android.gms.ads.identifier.AdvertisingIdClient  : Leanplum[3] and Adjust[4]

[1] https://github.com/adjust/android_sdk

[2] https://github.com/adjust/android_sdk/issues/143

[3] https://searchfox.org/mozilla-central/rev/9f3bd430c2b132c86c46126a0548661de876799a/mobile/android/thirdparty/com/leanplum/internal/Util.java#204

[4] https://searchfox.org/mozilla-central/rev/9f3bd430c2b132c86c46126a0548661de876799a/mobile/android/thirdparty/com/adjust/sdk/Reflection.java#97

MozReview-Commit-ID: 6YdQ6NJm4hM

--HG--
extra : rebase_source : 6a26cfd135c72738f086f305c60905a920abace8
2017-11-29 15:53:01 +08:00
Nevin Chen f7b0829cce Bug 1421149 - [PWA] Icons in the "Add to Home screen" overlay should not have outline & dropshadow. r=maliu
MozReview-Commit-ID: LGq1h1sgWgt

--HG--
extra : rebase_source : e5e7b27640969dce95d5d0888d87f6bbedaff95b
2017-11-28 16:53:23 +08:00
Kilik Kuo f6da4e9275 Bug 1365505 - [P1][Fennec] Enable HLS support by default for all brandings. r=jolin
MozReview-Commit-ID: AVGfgKR0zRX

--HG--
extra : rebase_source : b1d54aea01ccdf5a4b58e98744efc1b36fb0e941
2017-11-30 17:46:06 +08:00
Dorel Luca be78e6ea9b Merge inbound to mozilla-central r=merge a=merge 2017-11-29 12:26:15 +02:00
Tiberius Oros 18ea9ecad9 Merge mozilla-central to mozilla-inbound. r=merge a=merge CLOSED TREE
--HG--
rename : devtools/client/webconsole/new-console-output/test/mochitest/test-bug-618078-network-exceptions.html => devtools/client/webconsole/new-console-output/test/mochitest/test-network-exceptions.html
rename : devtools/client/webconsole/new-console-output/test/mochitest/test_bug1092055_shouldwarn.html => devtools/client/webconsole/new-console-output/test/mochitest/test-subresource-security-error.html
rename : devtools/client/webconsole/new-console-output/test/mochitest/test_bug1092055_shouldwarn.js => devtools/client/webconsole/new-console-output/test/mochitest/test-subresource-security-error.js
rename : devtools/client/webconsole/new-console-output/test/mochitest/test_bug1092055_shouldwarn.js^headers^ => devtools/client/webconsole/new-console-output/test/mochitest/test-subresource-security-error.js^headers^
extra : rebase_source : e126b0ab427161de0acd67cdfb9a1434415412dc
2017-11-29 02:25:59 +02:00
Andrew Gaul 7fcb045971 Bug 1418734 - Remove HashMap from SecurityModeUtil r=nechen
Replace with enum field.  Also hoist getImageLevel into enum and change callers.
2017-11-18 21:41:20 -08:00
Cosmin Sabou 651cb90a8a Backed out changeset be86ccde4f4a (bug 1352497) for bc failures on Windows 7 debug with e10s at docshell/test/browser/browser_bug1309900_crossProcessHistoryNavigation.js r=backout a=backout 2017-11-26 01:36:44 +02:00
Dão Gottwald bfd060da04 Bug 1352497 - Remove about:healthreport. r=gfritzsche,nechen
MozReview-Commit-ID: 8aPg9oDFIlu

--HG--
extra : rebase_source : 6e9836a6d66b464df1228f7ed84e9b37bad8809c
2017-11-22 13:51:08 +01:00
Nevin Chen c489438563 Bug 1419320 - PWA icon and onboarding image update. r=maliu
MozReview-Commit-ID: FqHHWg5qsfg

--HG--
extra : rebase_source : c881da264a4c5d87c7aaaf07cfec057be021ef4c
2017-11-23 16:08:58 +08:00
Nevin Chen 1b0f55a9e8 Bug 1403566 - Support mutli login for PWA. r=jchen
MozReview-Commit-ID: LuQPnrtn1Wa

--HG--
extra : rebase_source : 00566bbd073fa6df0e274f609307f677ca890b22
2017-11-28 17:54:56 +08:00
Dão Gottwald aff5b2a7f6 Bug 1352497 - Remove about:healthreport. r=gfritzsche,nechen
MozReview-Commit-ID: 4FQ5aL2XrU5

--HG--
extra : rebase_source : a8863472a82697b3e7668866a35f14b6f01fafe7
2017-11-28 11:38:15 +01:00
Gijs Kruitbosch d15df6f6ff Bug 1408044 - stop using/overriding about: in Fennec and use about:fennec/firefox instead, r=nalexander
MozReview-Commit-ID: 3LQjMJZOuqc

--HG--
extra : rebase_source : a156925274ff4cf7582919f30669b7a0277c58d1
2017-11-14 23:41:37 +00:00
Ciure Andrei a8907fc95a Backed out 5 changesets (bug 1408044) for failing Android test: TestAboutPagesPreparer.java:24: cannot find symbol. r=backout on a CLOSED TREE
Backed out changeset 5c5152ad910d (bug 1408044)
Backed out changeset c9a062838c12 (bug 1408044)
Backed out changeset 9ceaa645f2a9 (bug 1408044)
Backed out changeset 10fc0a581606 (bug 1408044)
Backed out changeset 513140019014 (bug 1408044)
2017-11-17 12:19:30 +02:00
Gijs Kruitbosch 53472dcba0 Bug 1408044 - stop using/overriding about: in Fennec and use about:fennec/firefox instead, r=nalexander
MozReview-Commit-ID: 3LQjMJZOuqc

--HG--
extra : rebase_source : 099f1e68d77ba4c575861873a155f2511ac6183f
2017-11-14 23:41:37 +00:00
Jan Henning bbc847a79b Bug 1416261 - Use android:theme, as app:theme has been deprecated. r=jwu
MozReview-Commit-ID: Iuf4NfCWnyc

--HG--
extra : rebase_source : 384b48cbdaef0c6ac8eefb661f869a249b977f3d
2017-11-10 17:35:31 +01:00
Nick Alexander 0d056acc9a Bug 1415778 - Part 3: Fix up Gradle. r=jchen
This patch makes the :geckoview Gradle project only use
o.m.geckoview.BuildConfig, and makes the :app Gradle project use all
of the preprocessed code coming from the moz.build system.
Eventually, we'll reduce that set of preprocessed code to only
o.m.gecko.BuildConfig, which will then be produced by Gradle.

MozReview-Commit-ID: Dnkde7axyZL

--HG--
extra : rebase_source : dc0b7f9fa542cbfd9c665bfac761d45f5957f7b8
2017-11-09 09:44:40 -08:00
Nick Alexander 35681f5451 Bug 1415298 - Fix finding assets/ in |mach android test| locally. r=maliu
Upgrading to the Android-Gradle plugin 3.0+ broke |mach android test|
locally.  This addresses the issue.

MozReview-Commit-ID: 3vV47ET7d19

--HG--
extra : rebase_source : c31e876969b0aff6cf7711fcb2227f6ca0d4fe46
2017-11-07 12:43:40 -08:00
Nick Alexander b05cd8e8cd Bug 1415298 - Pre: Move assets/ into standard Gradle location. r=maliu
This is part of a larger project to standardize our source locations.

MozReview-Commit-ID: Gbh9qSW7RJY

--HG--
rename : mobile/android/app/assets/example_asset.txt => mobile/android/app/src/main/assets/example_asset.txt
rename : mobile/android/app/assets/parental_controls_theme.png => mobile/android/app/src/main/assets/parental_controls_theme.png
rename : mobile/android/app/assets/publicsuffixlist => mobile/android/app/src/main/assets/publicsuffixlist
extra : rebase_source : dad3ded6a41d60989921b437dcf91181854c7b5a
2017-11-07 12:41:21 -08:00
Sebastian Hengst 91932e97bd Backed out 2 changesets (bug 1415298) for orphaned pattern 'assets/**' in mobile/android/app/moz.build. r=backout on a CLOSED TREE
Backed out changeset e046373e0dca (bug 1415298)
Backed out changeset 160586d66bcb (bug 1415298)

--HG--
rename : mobile/android/app/src/main/assets/example_asset.txt => mobile/android/app/assets/example_asset.txt
rename : mobile/android/app/src/main/assets/parental_controls_theme.png => mobile/android/app/assets/parental_controls_theme.png
rename : mobile/android/app/src/main/assets/publicsuffixlist => mobile/android/app/assets/publicsuffixlist
2017-11-08 20:11:03 +02:00
Nick Alexander 7094a99a6c Bug 1415298 - Fix finding assets/ in |mach android test| locally. r=maliu
Upgrading to the Android-Gradle plugin 3.0+ broke |mach android test|
locally.  This addresses the issue.

MozReview-Commit-ID: 3vV47ET7d19

--HG--
extra : rebase_source : aaf7a550f8b2776a41d55fdce2c43c0c8c473331
2017-11-07 12:43:40 -08:00
Nick Alexander 0de3e321d4 Bug 1415298 - Pre: Move assets/ into standard Gradle location. r=maliu
This is part of a larger project to standardize our source locations.

MozReview-Commit-ID: Gbh9qSW7RJY

--HG--
rename : mobile/android/app/assets/example_asset.txt => mobile/android/app/src/main/assets/example_asset.txt
rename : mobile/android/app/assets/parental_controls_theme.png => mobile/android/app/src/main/assets/parental_controls_theme.png
rename : mobile/android/app/assets/publicsuffixlist => mobile/android/app/src/main/assets/publicsuffixlist
extra : rebase_source : e73b7d579e02984e6e2a4a3c746c515a69768568
2017-11-07 12:41:21 -08:00