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

26879 Коммитов

Автор SHA1 Сообщение Дата
Jean-Yves Avenard 24b6f53940 Bug 1489102 - P3. Allow flac and opus in mp4 for EME. r=bryce
Depends on D5205

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

--HG--
extra : moz-landing-system : lando
2018-09-07 14:18:12 +00:00
Jan Henning 4aa6f02e79 Bug 1488174 - Use UpdateServiceHelper to decide on whether to add Updater notification channel. r=jchen
That way, we only add that notification channel if the updater really is active,
i.e. not if we've been installed from the Play Store.
Unfortunately, using the UpdateServiceHelper requires a Context, so adding/re-
moving the UPDATER_CHANNEL_TAG cannot be done during variable initialisation.

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

--HG--
extra : moz-landing-system : lando
2018-09-07 07:12:50 +00:00
Petru Lingurar 12af489b2e Bug 1488691 - Prevent registering listeners if PIP failed; r=jchen
Also, if entering PIP fails will make sure that upon restarting the activity
it's orientation will match device's.

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

--HG--
extra : moz-landing-system : lando
2018-09-06 18:41:09 +00:00
Petru Lingurar ed0be33ea1 Bug 1488720 - [Android M+] improve themes.xml; r=jchen
The issue in this ticket was because of missing menuItemSecondaryActionBarStyle,
property of the menu items shown in the SecondaryActionBar.

The GeckoAppBase style from values-v23/themes.xml contained the properties
initially defined in the general values/themes.xml.
Now changed to contain the properties from the closest values-v21/themes.xml.

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

--HG--
extra : moz-landing-system : lando
2018-09-06 18:40:53 +00:00
Bogdan Tara 2cab48f64d Merge inbound to mozilla-central. a=merge 2018-09-07 06:36:44 +03:00
Tudor-Gabriel Vîjială 723d009804 Bug 1475256 - Add documentation for robocop code coverage. r=nalexander,gbrown
Depends on D4145

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

--HG--
extra : moz-landing-system : lando
2018-09-06 17:02:25 +00:00
Tudor-Gabriel Vîjială 8f3ee235de Bug 1475256 - Remove top-level 'apply plugin: jacoco' from android configurations. r=nalexander
It appears that we don't actually need to load this plugin, since we're not
doing any JaCoCo-related operations on the build machine (like generating
reports). This has been left over since I integrated code coverage to gv-junit.

Depends on D4144

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

--HG--
extra : moz-landing-system : lando
2018-09-06 17:01:47 +00:00
Tudor-Gabriel Vîjială 844b806b0a Bug 1475256 - Add code coverage for android robocop UI tests. r=gbrown
Depends on D4219

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

--HG--
extra : moz-landing-system : lando
2018-09-06 17:51:08 +00:00
Tudor-Gabriel Vîjială 83b8e860af Bug 1475256 - Skip robocop tests that fail on debug and ccov builds. r=gbrown
Skip tests that fail on debug and code coverage builds, either intermittently
or permanently. See bug 1481834 for details about why these tests are skipped.

Depends on D4218

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

--HG--
extra : moz-landing-system : lando
2018-09-06 17:01:01 +00:00
Tudor-Gabriel Vîjială da0a2c6375 Bug 1475256 - Dump code coverage report file before quitting Fennec. r=gbrown
The Android InstrumentationTestRunner calls its private 'generateCoverageReport()' method
after the test runner has finished running, in its 'onStart()' method. That method does not
get called because we never finish the test; instead we trigger a 'Robocop:Quit' event and
wait to be killed. This patch reimplements that method and calls it before triggering a quit.

See InstrumentationTestRunner implementation: https://android.googlesource.com/platform/frameworks/base/+/android-8.1.0_r43/test-runner/src/android/test/InstrumentationTestRunner.java#580

Depends on D4143

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

--HG--
extra : moz-landing-system : lando
2018-09-06 17:00:40 +00:00
Tudor-Gabriel Vîjială 0f2ee78ad6 Bug 1475256 - Turn archive-geckoview-coverage-artifacts into archive-coverage-artifacts. r=nalexander
Rename the command and extend it to also archive Fennec class files into
another artifact, target.app_classfiles.zip.

Depends on D4142

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

--HG--
extra : moz-landing-system : lando
2018-09-06 17:00:17 +00:00
Jim Chen 0f87b879ff Bug 1489250 - Don't send window changed event if a11y is off; r=eeejay
Don't send window changed event if a11y has been turned off in the mean
time.

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

--HG--
extra : moz-landing-system : lando
2018-09-06 19:05:13 +00:00
arthur.iakab c66e0f9611 Merge mozilla-central to autoland 2018-09-06 19:50:32 +03:00
Coroiu Cristina 4391e69fb4 Backed out changeset b9e56df24edc (bug 1488174) for fennec crashing at startup a=backout 2018-09-06 18:16:18 +03:00
Imanol Fernandez 046418d262 Bug 1474847 - Fix GeckoSurfaceTexture not correctly removed from container when released: r=snorp,rbarker
When entering and exiting immersive mode multiple time (~30) the WebGL context can be lost. This is caused because GeckoSurfaceTexture things there are more than 200 textures created.

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

--HG--
extra : moz-landing-system : lando
2018-09-06 15:35:31 +00:00
Andreea Pavel 746993f3e1 Merge mozilla-inbound to mozilla-central. a=merge 2018-09-06 07:37:40 +03:00
Jan Henning b61527c675 Bug 1485151 - Part 2 - Switch our whitelisting of StrictMode violations to try-with-resources. r=jchen
In my opinion this is an altogether nicer way of setting and resetting temporary
StrictMode exceptions. The only fly in the ointment is that this causes a
warning about a technically unused variable that subsequently needs suppressing.

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

--HG--
extra : rebase_source : 706af6665b709c2ed29730cf266c3267417e4a52
extra : source : 54a3c14eff313baade8bc40523f69fa9c7aaba75
2018-09-04 22:28:22 +02:00
Jan Henning d56c15bf20 Bug 1485151 - Part 1 - Import StrictModeContext from Chromium. r=jchen,mhoye
Differential Revision: https://phabricator.services.mozilla.com/D4888

--HG--
extra : rebase_source : ddef96908ba44f5360efd5eb7b58a6396a2c0a2e
extra : source : f65da9b6f22e2d4f1cf59c39c590f726637a5764
2018-09-04 22:28:19 +02:00
Jan Henning 4377355106 Bug 1488174 - Use UpdateServiceHelper to decide on whether to add Updater notification channel. r=jchen
That way, we only add that notification channel if the updater really is active,
i.e. not if we've been installed from the Play Store.
Unfortunately, using the UpdateServiceHelper requires a Context, so adding/re-
moving the UPDATER_CHANNEL_TAG cannot be done during variable initialisation.

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

--HG--
extra : moz-landing-system : lando
2018-09-05 19:07:50 +00:00
Jan Henning aae0fb6c01 Bug 1479532 - Part 2 - Use more sensible importance level for default notification channel. r=jchen
Previously, most of our notifications were silent, so we adopt a default
priority of IMPORTANCE_LOW instead of IMPORTANCE_DEFAULT.

Since we cannot change the priority setting for existing users on Nightly any
more, we technically have to retire the old default channel and replace it by
a new channel with a different ID. While in a way this is circumventing Google's
API design and destroys any existing customisation users have set for that
channel, we are only using this exceptionally to *lower* the initial priority of
our default notification channel, which we accidentally set too high. Besides,
it is unlikely that there are many users who really want to receive all kinds of
random Firefox notifications with a high priority.

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

--HG--
extra : moz-landing-system : lando
2018-09-05 18:47:04 +00:00
Margareta Eliza Balazs b5430ee4da Merge mozilla-central to autoland. a=merge CLOSED TREE 2018-09-05 15:42:52 +03:00
Nicholas Nethercote 13643f64e8 Bug 1488321 - Fix up nsISHEntry.{index,getEntryAtIndex()}. r=nika
nsISHEntry.index is readonly, but if you pass `true` as getEntryAtIndex()'s
second argument, nsISHEntry.index will be modified. This is pretty gross.

This patch changes `index` so it's not readonly (because it's not!) and removes
getEntryAtIndex()'s second argument.

--HG--
extra : rebase_source : c519d77fcc1c3bda2f260b5888ce9cd0f6cfdab5
2018-09-05 09:02:37 +10:00
Petru Lingurar 817c2cd883 Bug 1480083 - After exiting PIP the restarted activity should have device's orientation; r=sdaswani
Differential Revision: https://phabricator.services.mozilla.com/D4939

--HG--
extra : moz-landing-system : lando
2018-09-04 16:14:30 +00:00
Bogdan Tara f302cbb0b3 Merge inbound to mozilla-central. a=merge 2018-09-05 02:24:27 +03:00
Gurzau Raul 9e0f009576 Backed out 2 changesets (bug 1485151) on developer's request
Backed out changeset 2e667a7854b6 (bug 1485151)
Backed out changeset bae80c903001 (bug 1485151)
2018-09-04 23:38:35 +03:00
Mark Banner c6885f5391 Bug 1488445 - Remove and replace obsolete ESLint rules. r=mossop
This removes a number of references to rules that are now deprecated or removed from ESLint.

- no-native-reassign is replaced with no-global-assign
- no-spaced-func is replaced with func-call-spacing (where enabled)

Depends on D4944

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

--HG--
extra : moz-landing-system : lando
2018-09-04 18:08:43 +00:00
Kris Maglione 8aa378b328 Bug 1486249: Part 2 - Convert JS nsISimpleEnumerator implements to JS enumerators. r=mccr8
Differential Revision: https://phabricator.services.mozilla.com/D4291

--HG--
extra : rebase_source : be92be2a429c3ccd85898eb7f76404154eaf1287
2018-08-25 18:31:44 -07:00
Jan Henning aa90eb25e9 Bug 1487834 - Test fallback URL support for Intent URIs. r=esawin
Differential Revision: https://phabricator.services.mozilla.com/D4781

--HG--
extra : moz-landing-system : lando
2018-09-03 23:10:47 +00:00
Andrei Lazar e67236138a Bug 1486432 Leanplum push notifications are not received on devices with Android O or above r=JanH,flod
Added a default channel for Leanplum push notifications as fallback to cover the cases where we receive
push notifications from server with an invalid channel and the case where there are no channels configured
on server.

Provided a valid default icon for push notifications in Leanplum required for fallback strategy.

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

--HG--
extra : moz-landing-system : lando
2018-09-03 10:21:51 +00:00
Ciure Andrei e136281b52 Merge inbound to mozilla-central. a=merge 2018-09-03 12:35:26 +03:00
Nicholas Nethercote 70d22aa86a Bug 1487328 - Remove nsISHistoryListener.OnHistoryGo{Back,Forward}. r=nika
As per the previous commit, they are now subsumed by OnHistoryGotoIndex.

--HG--
extra : rebase_source : 627a32ed9378c7dd5364323183297933f90f9d72
2018-09-03 09:27:37 +10:00
Jan Henning 75f22f0fe1 Bug 1479532 - Part 1 - Create notification channel for receiving synced tabs. r=jchen
Differential Revision: https://phabricator.services.mozilla.com/D4366

--HG--
extra : moz-landing-system : lando
2018-09-02 20:09:09 +00:00
Jan Henning 238c91a232 Bug 1484001 - Avoid ending up with a null mRuntime after restoring state in GeckoView. r=snorp
If we don't have a saved session, we do nothing. If somebody called setSession
beforehand, we continue using that session, otherwise we create a fallback
session in onAttachedToWindow().

If we have a saved session and nobody called setSession, we use the saved
session. If the saved session was closed and doesn't have a runtime, we use the
default runtime as a fallback.

If we have both a saved session and somebody already called setSession, we
transfer what can be transferred from the saved session, unless the saved
session is closed and the session from setSession is open.
If the saved session was open, we use its runtime as well going forward (since
transferring the state from an open session transfers the window and the runtime
as well), otherwise we keep the old mRuntime.

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

--HG--
extra : moz-landing-system : lando
2018-08-30 20:09:02 +00:00
Andrei Lazar 217881e6c8 Bug 1485719 (New_Tab_Deeplink) Deeplink to open new tab experience in app r=jchen
Added an extra check for package name for a better user experience, because the push notifications with "about" protocol
in the URL message were still firing the chooser dialog.

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

--HG--
extra : moz-landing-system : lando
2018-08-30 18:15:15 +00:00
Vlad Baicu 3eda54b1e1 Bug 1479314 - Prevent media control notification flashing. r=jchen
Instead of stopping the foreground service whenever ACTION_PAUSE was triggered,
I created a new event where we notify the service to clear its foreground state.
Cleared usages of the NotificationManager and the onGoing attribute of the
MediaNotification because they are redundant. As of Android 4.3 a service in the
foreground state will always force the notification to be persistent and callling
stopForeground(false) will clear the onGoing flag while maintaining the notification.

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

--HG--
extra : moz-landing-system : lando
2018-08-30 17:47:51 +00:00
Petru Lingurar c224a4cef6 Bug 1480091 - Don't hide the status bar when exiting PIP mode; r=jchen
From the PIP window the user can either return to the fullscreen app or exit
it entirely.
Fullscreen and subsequently hiding the status bar should only be done if the
user is returning to the app.

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

--HG--
extra : moz-landing-system : lando
2018-08-30 17:49:29 +00:00
Jan Henning a0441dcfc3 Bug 1485151 - Part 2 - Switch our whitelisting of StrictMode violations to try-with-resources. r=jchen
In my opinion this is an altogether nicer way of setting and resetting temporary
StrictMode exceptions. The only fly in the ointment is that this causes a
warning about a technically unused variable that subsequently needs suppressing.

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

--HG--
extra : source : ac7659d4135e270b6d787499680aefc39a01fb4f
extra : histedit_source : bdffd8eee3fcf1e705316de6e84da7c7aac9340a
2018-08-22 21:53:54 +02:00
Jan Henning 93115a878a Bug 1485439 - Upgrade to Java 8. r=nalexander,jchen
Doing so allow to use try-with-resources on all API levels supported by us, not
just starting from API19.

Unfortunately this step also introduces some additional ambiguities in overload
resolution, which means that one of GeckoResult's "then" overloads needs to be
renamed.

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

--HG--
extra : rebase_source : 7173395484a9616ce739e9d2ba3aa0b8410be386
extra : source : 66955d05bb86c25b1fcb81d60b38be95018d09ca
2018-08-22 21:15:42 +02:00
Jan Henning 3e5cdb5011 Bug 1485151 - Part 1 - Import StrictModeContext from Chromium. r=jchen,mhoye
Differential Revision: https://phabricator.services.mozilla.com/D4888

--HG--
extra : source : 424fcd7c1bef5f9591d749555c042c184cfbf313
extra : histedit_source : 614bd7bac33d7312079337aed2184b1e47d04418
2018-08-22 20:16:34 +02:00
Jim Chen 9ffc2ddc01 Bug 1485155 - 2. Treat javadoc warnings as errors; r=nalexander
Some common javadoc mistakes are logged as warnings and are being
overlooked. javadoc does not support warning-as-error natively, so this
patch scans the javadoc output in gradle and makes the task fail if any
warnings are detected.

Differential Revision: https://phabricator.services.mozilla.com/D3925
2018-09-04 13:58:27 -04:00
Jim Chen d50cb5e5d8 Bug 1485155 - 1. Fix javadoc warnings; r=jchen
Differential Revision: https://phabricator.services.mozilla.com/D3924
2018-09-04 13:58:27 -04:00
Bogdan Tara ba6cae21b7 Merge mozilla-central to inbound. a=merge CLOSED TREE 2018-09-05 02:45:18 +03:00
Mike Hommey 58cc756fed Bug 1480006 - Enable LTO on Android CI builds. r=froydnj 2018-09-05 07:21:25 +09:00
Gurzau Raul f9a81a3e5a Merge mozilla-central to autoland. a=merge CLOSED TREE 2018-08-31 00:51:52 +03:00
Gurzau Raul 09fe34b331 Merge inbound to mozilla-central. a=merge 2018-08-31 00:49:36 +03:00
Jan Henning 73670afee3 Bug 1482105 - Use dedicated notification channel for the built-in updater. r=jchen
To avoid cluttering our notification settings on builds not using the built-in
updater, we only add that channel when required.
Passing a null channelId to the system NotificationManager, which can then
happen if someone attempts to use the UPDATER channel anyway, even though
MOZ_UPDATER is false, is safe. It just means that the NotificationManager will
return the system's default channel, which will silently swallow any
notifications posted to it from apps targeting Android O or above.

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

--HG--
extra : moz-landing-system : lando
2018-08-30 18:59:52 +00:00
Dennis Schubert 65a27816a3 Bug 1486885 - Remove error logging inside getBaseDomainFromURI(). r=Gijs
Differential Revision: https://phabricator.services.mozilla.com/D4684

--HG--
extra : moz-landing-system : lando
2018-08-30 15:50:20 +00:00
arthur.iakab a82f668e23 Merge mozilla-central to autoland 2018-08-30 01:12:47 +03:00
arthur.iakab 32fbca3814 Merge inbound to mozilla-central a=merge 2018-08-30 00:56:06 +03:00
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