Commit Graph

1445 Commits

Author SHA1 Message Date
Michael Kaply
165c97e26c Bug 1461347 - Remove unused enginename from JS, but add to properties. r=nalexander
MozReview-Commit-ID: 4KRsXg68mw5

--HG--
extra : rebase_source : d797ab8b1fd98cb317ca592ab776fa84402c2b44
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