Commit Graph

1784 Commits

Author SHA1 Message Date
Alvina Waseem
e40d11acc6 Bug 1533575 - Simplified GeckoSession.MediaSource.Source constants. r=droeh,geckoview-reviewers,snorp
Differential Revision: https://phabricator.services.mozilla.com/D34010

--HG--
extra : moz-landing-system : lando
2019-06-07 18:33:34 +00:00
Csoregi Natalia
f54d8331b9 Merge autoland to mozilla-central. a=merge 2019-06-07 00:51:26 +03:00
Csoregi Natalia
db63d343f2 Backed out changeset d637ee5ceb51 (bug 1552145) as per request. a=backout 2019-06-07 00:45:43 +03:00
Geoff Brown
ba8887f2da Bug 1538430 - Skip junit test automaticFontSize more forcefully; r=aryx
In this case @Ignore works where assumeThat did not.

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

--HG--
extra : moz-landing-system : lando
2019-06-05 19:14:37 +00:00
Dylan Roeh
720c714821 Bug 1555447 - Throw exceptions rather than returning 0 from GeckoProcessManager.java r=rbarker
Differential Revision: https://phabricator.services.mozilla.com/D33705

--HG--
extra : moz-landing-system : lando
2019-06-05 16:43:03 +00:00
Chris Pearce
0ebe8e14ac Bug 1552145 - Change HLS seek to seek before seek target and drop frames until next keyframe. r=jya
The Java ExoPlayer that we use for HLS support on Android does an accurate
seek, that is, it seeks to the frame at the seek target. This may not be a
keyframe, which we can start decoding at. So change the HLS seek to seek 2
seconds behind the seek target, and drop all frames up to the next keyframe.
This means that after a seek the HLSDemuxer will output a keyframe, and
hopefully (but we can't guarantee of course) it will lie behind the actual seek
target.

We also need to purge the GeckoHlsVideoRenderer's queue of frames which it
is holding onto in order to determine their durations, otherwise after a seek,
we'll get output from this queue of frames. That is, after a seek we would still
get a few frames from the old playback position.

This seek case is particularly problematic as we aggressively shutdown decoders
when the media is paused, including right after the load reaches
loadedmetadata, and we need to seek in order to recover from going dormant.

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

--HG--
extra : moz-landing-system : lando
2019-06-04 22:20:49 +00:00
Will Hawkins
c5c101d201 Bug 894567: Use MemoryInfo.totalMem to get the device's total memory rather than parse /proc/meminfo. r=nalexander
Differential Revision: https://phabricator.services.mozilla.com/D33549

--HG--
extra : moz-landing-system : lando
2019-06-04 19:41:06 +00:00
Daniel Varga
501dbfaa80 Bug 1532404 - Disable org.mozilla.geckoview.test.MediaElementTest.webmPlayMediaFromScript on pgo and debug for frequent failures. r=jmaher
Differential Revision: https://phabricator.services.mozilla.com/D33128

--HG--
extra : moz-landing-system : lando
2019-06-04 13:24:33 +00:00
Cosmin Sabou
6f5f3a3079 Bug 1538430 - Disable org.mozilla.geckoview.test.RuntimeSettingsTest.automaticFontSize on Android pgo for frequent failures. r=jmaher
Differential Revision: https://phabricator.services.mozilla.com/D33398

--HG--
extra : moz-landing-system : lando
2019-06-04 12:50:10 +00:00
John Lin
ea470ed33a Bug 1555691 - handle NPE during remote codec shutdown. r=esawin
Differential Revision: https://phabricator.services.mozilla.com/D33539

--HG--
extra : moz-landing-system : lando
2019-06-03 21:16:56 +00:00
Emilio Cobos Álvarez
b6728cedb7 Bug 1553769 - Have a single way of requesting window focus and switching to a tab. r=NeilDeakin,snorp
Right now there's some duplicated code with the focus manager and the
DOMWindowFocus event.

Android didn't handle the new framefocusrequested event, so the test-cases in
bug 416771 still didn't work there.

I think using the focus manager codepath everywhere is preferable. I confirmed
manually that the stuff that sent DOMWindowFocus events still works as expected
with this patch (i.e., switching to the right tab when you click on a
notification, etc.).

This fixes it so that it works in Fennec, and it sends the focus events right in
GeckoView Example (i.e., we get here[1] properly).

The snippet that Snorp provided on IRC to implement the "bring activity to
front" stuff (`startActivity(getIntent())`) didn't actually work for me, but I
confirmed that the right message is sent when the focus is requested, and that
we get there.

[1]: https://searchfox.org/mozilla-central/rev/952521e6164ddffa3f34bc8cfa5a81afc5b859c4/mobile/android/geckoview_example/src/main/java/org/mozilla/geckoview_example/GeckoViewActivity.java#503

Depends on D32353

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

--HG--
extra : moz-landing-system : lando
2019-06-03 19:42:28 +00:00
Csoregi Natalia
dd2213799a Bug 1554117 - Disabled org.mozilla.geckoview.test.MediaElementTest.oggPlayMediaFromScript for frequent failures. r=gbrown
Differential Revision: https://phabricator.services.mozilla.com/D33414

--HG--
extra : moz-landing-system : lando
2019-06-02 01:26:28 +00:00
Bogdan Tara
df8e17d093 Backed out changeset f34d86c242ae (bug 1554117) for MediaElementTest.kt related bustages CLOSED TREE 2019-06-01 20:13:51 +03:00
Cosmin Sabou
5c96fae7db Bug 1554117 - Disable org.mozilla.geckoview.test.MediaElementTest.oggPlayMediaFromScript on Android debug && pgo for frequent failures. r=aryx
Differential Revision: https://phabricator.services.mozilla.com/D33397

--HG--
extra : moz-landing-system : lando
2019-06-01 09:03:38 +00:00
Nazım Can Altınova
91197b28a2 Bug 1552286 - Move back GeckoJavaSampler to GeckoView and enable for it and fennec r=nalexander,gerald
Bug 1303806 moved `GeckoJavaSampler` to be Fennec-only as part of a general push
to slim GeckoView down.  But there is no reason to restrict to Fennec and it is useful
for other non-Fennec GeckoView vehicles.

This patch moves the `GeckoJavaSampler` inside `geckoview` and changes profiler
code to make Java sampling work in both GeckoView and Fennec.

Depends on D33522

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

--HG--
rename : mobile/android/base/java/org/mozilla/gecko/GeckoJavaSampler.java => mobile/android/geckoview/src/main/java/org/mozilla/gecko/GeckoJavaSampler.java
extra : moz-landing-system : lando
2019-06-05 10:58:47 +00:00
Nick Alexander
0886f39ee6 Bug 1508976 - Post: Don't include architecture in multi-architecture GeckoView artifactId. r=snorp
Differential Revision: https://phabricator.services.mozilla.com/D15772

--HG--
extra : moz-landing-system : lando
2019-05-30 15:22:19 +00:00
Emily Toop
ea055cda5b Bug 1554693 - Remove unused constants. r=geckoview-reviewers,snorp
This was caused by a rebasing error that was missed.

Depends on D32830

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

--HG--
extra : moz-landing-system : lando
2019-05-29 14:57:15 +00:00
Ehsan Akhgari
4cb428d268 Bug 1555205 - Move db/sqlite3 to third_party/; r=mak
Differential Revision: https://phabricator.services.mozilla.com/D32939

--HG--
rename : db/sqlite3/README => third_party/sqlite3/README
rename : db/sqlite3/README.MOZILLA => third_party/sqlite3/README.MOZILLA
rename : db/sqlite3/src/moz.build => third_party/sqlite3/src/moz.build
rename : db/sqlite3/src/sqlite.symbols => third_party/sqlite3/src/sqlite.symbols
rename : db/sqlite3/src/sqlite3.c => third_party/sqlite3/src/sqlite3.c
rename : db/sqlite3/src/sqlite3.h => third_party/sqlite3/src/sqlite3.h
extra : moz-landing-system : lando
2019-05-29 10:16:29 +00:00
Nick Alexander
f0748df614 Bug 1554256 - Read GeckoView configuration file in release builds when package is the current Android "debug-app". r=geckoview-reviewers,snorp
Bug 1533385 taught GeckoView to read configuration from a file. But
right now, release APKs don't read that configuration: see the
documentation at See
https://mozilla.github.io/geckoview/tutorials/automation.html#enabling-reading-configuration-from-a-file-for-release-builds.
However, Android has a flag -- the "debug_app" flag -- that Chrome
uses to control this configuration file behaviour, and this commit
makes GeckoView uses that flag as well.

To use this, invoke `adb shell am set-debug-app --persistent PACKAGE`
(see https://developer.android.com/studio/command-line/adb).

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

--HG--
extra : moz-landing-system : lando
2019-05-28 22:08:41 +00:00
Sebastian Hengst
11a4dfbcd7 Bug 1543355 - Move early return in org.mozilla.geckoview.test.ContentDelegateTest.download on Android pgo to start of test to avoid timeouts. a=move-of-test-disabling 2019-05-27 14:31:04 +02:00
Emily Toop
f00e577132 Bug 1549633 - Enable listening for recording-device-events. r=esawin,geckoview-reviewers,snorp
This is to allow us to detect the enabling and disabling of recording so that we can notify the embedding application of the change in status.

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

--HG--
extra : moz-landing-system : lando
2019-05-24 07:45:41 +00:00
Eugen Sawin
c0069258a0 Bug 1489669 - [1.4] Add Storage Controller API. r=baku,snorp
Differential Revision: https://phabricator.services.mozilla.com/D32153

--HG--
extra : moz-landing-system : lando
2019-05-22 20:21:09 +00:00
Agi Sferro
6994cf11f2 Bug 1553371 - Load chrome frameScripts when switching processes. r=snorp
Whenever we switch processes in GeckoView we didn't inject frameScripts.

This change adds a new method `loadInitFrameScript` that is called whenever a
module's new browser is attached to a window so that the frame script is loaded
correctly into the new browser.

This fixes a bug in WebExtension pages where the WebExtension Process Script
would never be notified of a new WebExtension page window, breaking privileged
APIs.

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

--HG--
extra : moz-landing-system : lando
2019-05-22 19:20:54 +00:00
Agi Sferro
92c0a96191 Bug 1553371 - Load moz-extension pages in extension principal. r=snorp
WebExtension can always open their respective WebExtension pages even when the
WebExtension page is not content accessible.

However, this is not true for `tabs.update`, which couldn't link to
WebExtension pages at all.

Similarly, a user should be able to open a WebExtension page directly by typing
the URL.

To fix the above problems we pass the correct `triggeringPrincipal` when
loading such URIs. This change also makes URI typed by the user not use the
`systemPrincipal` anymore but a more restrictive codebase principal local to
the page that's being typed to avoid unintended side-effects. This also makes
the triggering URI always the page for these privileged pages, so we need to
adjust some tests to account for that by loading unprivileged `http` pages
instead.

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

--HG--
extra : moz-landing-system : lando
2019-05-22 19:20:54 +00:00
Eitan Isaacson
cb019e769a Bug 1553304 - Use APZC for accessibility scroll action on root node. r=geckoview-reviewers,snorp
Differential Revision: https://phabricator.services.mozilla.com/D32062

--HG--
extra : moz-landing-system : lando
2019-05-21 21:38:57 +00:00
J.C. Jones
8d663042b9 Bug 1552539 - Refactor Android WebAuthn methods to use more GeckoBundles r=keeler
Differential Revision: https://phabricator.services.mozilla.com/D31636

--HG--
extra : moz-landing-system : lando
2019-05-17 18:36:01 +00:00
Agi Sferro
1324e8b036 Bug 1550877 - Use correct E10SUtils in GeckoViewNavigation. r=snorp
This fixes a crash in `browser.tabs.update` when used with WebExtension pages.

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

--HG--
extra : moz-landing-system : lando
2019-05-17 13:43:44 +00:00
Narcis Beleuzu
ac51017892 Backed out 2 changesets (bug 1550877, bug 1552328) for causing perma geckoview-junit failures on contentPortDisconnectFromApp
Backed out changeset 877ae9359a27 (bug 1550877)
Backed out changeset aee7bbc03bff (bug 1552328)
2019-05-17 10:50:50 +03:00
Agi Sferro
bdf3d1a97c Bug 1550877 - Use correct E10SUtils in GeckoViewNavigation. r=snorp
This fixes a crash in `browser.tabs.update` when used with WebExtension pages.

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

--HG--
extra : moz-landing-system : lando
2019-05-17 04:10:53 +00:00
J.C. Jones
21b9fb5c7d Bug 1551342 - Don't assert the thread calling JNI WebAuthn functions r=snorp
The mozilla::java::WebAuthnTokenManager asserts its return-to-C++ callbacks as
being run on the main Android UI thread, but since these methods are called
directly from the Fido2PendingIntent listeners, there's no guarantee of that.
We don't actually care what thread was tasked with returning us data, just that
it gets done, so let's not assert the thread here.

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

--HG--
extra : moz-landing-system : lando
2019-05-16 19:08:15 +00:00
Matt Brubeck
246448a05a Bug 1543823 - Compute Accept-Language header based on app and OS prefs. r=snorp
Differential Revision: https://phabricator.services.mozilla.com/D30946

--HG--
extra : moz-landing-system : lando
2019-05-13 20:52:10 +00:00
Imanol Fernandez
2076c0d6d2 Bug 1544584 - Make it possible to remove android.speech dependencies using Proguard r=snorp,rbarker,eeejay
Some minor refactor to make it possible to remove android.speech dependencies using Proguard

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

--HG--
extra : moz-landing-system : lando
2019-05-16 01:05:01 +00:00
Dorel Luca
f8c68f3fd8 Backed out changeset b60e7b3407b3 (bug 1544584) for Android Checkstyle in /builds/worker/workspace/build/src/mobile/android/geckoview/src/main/java/org/mozilla/gecko/SpeechSynthesisService.java 2019-05-16 03:18:35 +03:00
Imanol Fernandez
d9bc4e00c7 Bug 1544584 - Make it possible to remove android.speech dependencies using Proguard r=snorp,rbarker,eeejay
Some minor refactor to make it possible to remove android.speech dependencies using Proguard

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

--HG--
extra : moz-landing-system : lando
2019-05-15 19:56:43 +00:00
Randall E. Barker
a9d1bb817c Bug 1551988 - Move util classes not used in GeckoView into Fennec r=geckoview-reviewers,agi
Differential Revision: https://phabricator.services.mozilla.com/D31324

--HG--
rename : mobile/android/geckoview/src/main/java/org/mozilla/gecko/util/ActivityResultHandler.java => mobile/android/base/java/org/mozilla/gecko/util/ActivityResultHandler.java
rename : mobile/android/geckoview/src/main/java/org/mozilla/gecko/util/ActivityResultHandlerMap.java => mobile/android/base/java/org/mozilla/gecko/util/ActivityResultHandlerMap.java
rename : mobile/android/geckoview/src/main/java/org/mozilla/gecko/util/InputOptionsUtils.java => mobile/android/base/java/org/mozilla/gecko/util/InputOptionsUtils.java
rename : mobile/android/geckoview/src/main/java/org/mozilla/gecko/util/JSONUtils.java => mobile/android/base/java/org/mozilla/gecko/util/JSONUtils.java
rename : mobile/android/geckoview/src/main/java/org/mozilla/gecko/util/MapUtils.java => mobile/android/base/java/org/mozilla/gecko/util/MapUtils.java
rename : mobile/android/geckoview/src/main/java/org/mozilla/gecko/util/MenuUtils.java => mobile/android/base/java/org/mozilla/gecko/util/MenuUtils.java
rename : mobile/android/geckoview/src/main/java/org/mozilla/gecko/util/PrefUtils.java => mobile/android/base/java/org/mozilla/gecko/util/PrefUtils.java
rename : mobile/android/geckoview/src/main/java/org/mozilla/gecko/util/WindowUtils.java => mobile/android/base/java/org/mozilla/gecko/util/WindowUtils.java
extra : moz-landing-system : lando
2019-05-15 19:12:53 +00:00
Cosmin Sabou
c3b851df0d Bug 1543355 - Disable org.mozilla.geckoview.test.ContentDelegateTest.download for frequent failures. r=gbrown 2019-05-14 09:13:26 +03:00
Will Hawkins
f40ac82e3f Bug 1550596: Remove overly broad keep rule from GV proguard rules. r=snorp,agi
Requesting reviewers based on `hg blame` output and general knowledge of who is working on the project. I hope that's okay.

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

--HG--
extra : moz-landing-system : lando
2019-05-13 21:35:09 +00:00
Randall E. Barker
0e8f14f767 Bug 1550901 - Prevent GeckoView PanZoomController crash when InputDevice.getDevice(event.getDeviceId()) returns null r=geckoview-reviewers,esawin
Differential Revision: https://phabricator.services.mozilla.com/D30739

--HG--
extra : moz-landing-system : lando
2019-05-13 17:15:54 +00:00
Gurzau Raul
695892607b Bug 1544169 - Disabled onHistoryStateChange on debug build. r=gbrown
Differential Revision: https://phabricator.services.mozilla.com/D30645

--HG--
extra : moz-landing-system : lando
2019-05-10 17:03:22 +00:00
J.C. Jones
9b769ac3e9 Bug 1391438 - Support FIDO2 for WebAuthn on Android r=snorp,keeler
Support using the Google Play-provided FIDO2 API for Web Authentication.

FIDO U2F API support  is being handled subsequently in Bug 1550625.

This patch uses the privileged APIs and thus will only work on Fennec Nightly, Beta, and Release builds.

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

--HG--
extra : moz-landing-system : lando
2019-05-10 16:40:17 +00:00
Gurzau Raul
e9eb26a49e Bug 1532186 - Disable readFromParcel_throwOnAlreadyOpen for frequent failures on pgo build. r=gbrown
Differential Revision: https://phabricator.services.mozilla.com/D30656

--HG--
extra : moz-landing-system : lando
2019-05-10 16:00:06 +00:00
Gurzau Raul
98d08862ca Bug 1543355 - Disable org.mozilla.geckoview.test.ContentDelegateTest.download for frequent failures. r=gbrown
Differential Revision: https://phabricator.services.mozilla.com/D30648

--HG--
extra : moz-landing-system : lando
2019-05-10 15:08:12 +00:00
Makoto Kato
53c91b6d96 Bug 1538458 - Part 2. Update tests that includes fieldset r=geckoview-reviewers,snorp
Update this junit test with this bug's test case. Actually, autofill_userpass
doesn't work with the latest GV, so I should like to update this to fix focus
timing.

Also, this does't run on our test infra because this requires API 26.

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

--HG--
extra : moz-landing-system : lando
2019-05-07 20:17:28 +00:00
Randall E. Barker
df77b15b03 Bug 1550185 - Ensure GeckoView CrashHandler.getRootException() does not return null r=snorp
Differential Revision: https://phabricator.services.mozilla.com/D30422

--HG--
extra : moz-landing-system : lando
2019-05-08 23:49:04 +00:00
Andreea Pavel
dedf374ae8 Backed out changeset f883d868ce31 (bug 1550185) for failing android checkstyle on a CLOSED TREE 2019-05-09 00:45:47 +03:00
Randall E. Barker
c5622ff657 Bug 1550185 - Ensure GeckoView CrashHandler.getRootException() does not return null r=snorp
Differential Revision: https://phabricator.services.mozilla.com/D30422

--HG--
extra : moz-landing-system : lando
2019-05-08 21:23:13 +00:00
Eitan Isaacson
d0fdaea75f Bug 1549576 - Store fixed layer margin in session and send to compositor when ready. r=geckoview-reviewers,snorp
Differential Revision: https://phabricator.services.mozilla.com/D30132

--HG--
extra : moz-landing-system : lando
2019-05-07 21:13:29 +00:00
Bogdan Tara
0545979dfd Backed out changeset 45f82a11656c (bug 1549576) for GeckoSession.java related checkstyle failures CLOSED TREE 2019-05-07 23:20:55 +03:00
Eitan Isaacson
374fe174e9 Bug 1549576 - Store fixed layer margin in session and send to compositor when ready. r=geckoview-reviewers,snorp
Differential Revision: https://phabricator.services.mozilla.com/D30132

--HG--
extra : moz-landing-system : lando
2019-05-07 17:54:22 +00:00
Paul Adenot
d9dfc81a00 Bug 1549699 - Don't use communication mode and speakerphone mode methods of AudioManager. r=snorp
This is more related to telephony than anything else, and are more suited to
real telephony app.

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

--HG--
extra : moz-landing-system : lando
2019-05-07 15:20:02 +00:00