Commit Graph

23329 Commits

Author SHA1 Message Date
John Lin
9ae8026add Bug 1486659 - p3: copy texture contents for remote allocated Surface. r=snorp
Child processes cannot access textures allocated in the parent process,
which is needed by the compositor to render video elements efficiently.
Unfortunately, Android doesn't expose Sufrace buffers (sharable across
processes) in the SDK/NDK as other platforms, so we need to generate
extra texture/surface in the child process and update texture images
through the surface, which is passed to the parent process for the remote
texture to copy its contents into.

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

--HG--
rename : mobile/android/geckoview/src/main/aidl/org/mozilla/gecko/gfx/ISurfaceAllocator.aidl => mobile/android/geckoview/src/main/aidl/org/mozilla/gecko/gfx/SyncConfig.aidl
extra : moz-landing-system : lando
2018-12-14 21:34:55 +00:00
John Lin
82531b5e45 Bug 1486659 - p2: expose native GL blitter to Java. r=snorp
Differential Revision: https://phabricator.services.mozilla.com/D11938

--HG--
extra : moz-landing-system : lando
2018-12-14 21:34:11 +00:00
John Lin
a1926ace73 Bug 1486659 - p1: conform SharedMemory.describeContents() to Android API spec. r=snorp
Differential Revision: https://phabricator.services.mozilla.com/D11936

--HG--
extra : moz-landing-system : lando
2018-12-14 21:34:09 +00:00
Petru Lingurar
cd5624af54 Bug 1509434 - Part 2 - Wait for AudioFocusAgent to be initialized before starting testMediaControl;r=JanH
Inside the tests from testMediaControl audio focus is not immediately checked
as for the tests from testAudioFocus but nonetheless we should make sure
AudioFocusAgent is initialized before proceeding with the media tests.

Depends on D14417

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

--HG--
extra : moz-landing-system : lando
2018-12-16 19:48:16 +00:00
Petru Lingurar
7ad49069ce Bug 1509434 - Part 1 - Wait for AudioFocusAgent to be initialized before starting testAudioFocus;r=JanH
There is a small race between actually starting the test after Gecko:Ready and
having the AudioFocusAgent that the tests depend on initialized, which is also
done after Gecko:Ready.

To avoid this situation we will wait for Gecko:Ready and then for
AudioFocusAgent to complete it's initialization.

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

--HG--
extra : moz-landing-system : lando
2018-12-17 07:59:44 +00:00
Jan Henning
7e0f4b06eb Bug 1492706 - Part 2: Cover common OOM causes in the Recent tabs panel. r=nalexander
Looking at Crash Stats, the most common causes of OOMs involving the RecentTabs-
Adapter happen while reading the previous session store file into memory for
parsing, respectively while stringifying the parsed data back into a flat String
for further storage.

In the former case, we give up completely, because there's nothing we can do
short of switching to a streaming JSON parser (which is out of scope for this
bug), while in the latter case, we only skip the affected tab in the hope that
at least some tabs might be small enough to not cause an OOM.

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

--HG--
extra : moz-landing-system : lando
2018-12-14 21:08:32 +00:00
Jan Henning
f085c2f73f Bug 1492706 - Part 1: Catch OOM during startup session restore. r=nalexander
We just treat this like a defective session store file and first fall back to
the backup (although if the OOM is caused by a too-large file, it is likely that
the backup will be too large as well) and then turn off session restoring
completely.

We don't plug those failures into the session restore telemetry, though, because
that is supposed to only cover truly defective files.

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

--HG--
extra : moz-landing-system : lando
2018-12-14 21:07:39 +00:00
Timothy Guan-tin Chien
3913ded230 Bug 1510848 - Do not unattach UA Widget Shadow Root if the element is already re-attached to the tree r=emilio,smaug
This patch moves all UA Widget calls to helper functions in Element.cpp. The helper function AttachAndSetUAShadowRoot sets the shadow root in a runnable, so that it is in the same order of NotifyUAWidget* runnables.

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

--HG--
extra : moz-landing-system : lando
2018-12-15 02:48:46 +00:00
Cosmin Sabou
1186b6f937 Backed out changeset 9bfabcea5227 (bug 1514253) for geckoview crashes on geckoview.test.SessionLifecycleTest.readFromParcel_closeOpenAndLoad. CLOSED TREE 2018-12-15 01:11:34 +02:00
Agi Sferro
a7360dc455 Bug 1513395 - Ask gradle to download all dependencies. r=nalexander
This adds a task to each project called `downloadDependencies`. This task will
go through each configuration and resolve every dependency so that the gradle
cache contains a copy of every file needed for building and running tests. This
is intended to be used together with our nexus oss database but it can be used
locally too.

Note: `downloadDependencies` does not download dependencies added a runtime,
e.g. by plugins like apilint, checkstyle, findbugs... so we still need to run
those tasks to collect their dependencies.

Depends on D14516

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

--HG--
extra : moz-landing-system : lando
2018-12-14 21:37:37 +00:00
Agi Sferro
46d5e9f8a4 Bug 1513395 - Vendor accessibility-test-framework in m-c. r=nalexander,geckoview-reviewers,snorp
This vendors accessibility-test-framework which has recently been remove by
accident from the Google maven repository, this library can be removed once
https://issuetracker.google.com/issues/120951637 is resolved.

Depends on D14514

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

--HG--
extra : moz-landing-system : lando
2018-12-14 21:34:06 +00:00
Agi Sferro
95c7276481 Bug 1513395 - Upgrade com.android.tools to 26.2.1. r=snorp,geckoview-reviewers
Differential Revision: https://phabricator.services.mozilla.com/D14514

--HG--
extra : moz-landing-system : lando
2018-12-14 21:33:05 +00:00
Gijs Kruitbosch
2ece1af1ce Bug 1503214 - remove toolkit feed processor code, r=kmag
Differential Revision: https://phabricator.services.mozilla.com/D14603

--HG--
extra : moz-landing-system : lando
2018-12-14 19:57:40 +00:00
James Willcox
0e165f3de9 Bug 1514253 - Create PanZoomController immediately in GeckoSession r=geckoview-reviewers,droeh#geckoview-reviewers
Differential Revision: https://phabricator.services.mozilla.com/D14562

--HG--
extra : moz-landing-system : lando
2018-12-14 18:42:52 +00:00
James Willcox
844bf4eca2 Bug 1511134 - Skip web extension tests on GeckoView r=kmag
Differential Revision: https://phabricator.services.mozilla.com/D14559

--HG--
extra : moz-landing-system : lando
2018-12-14 19:35:05 +00:00
Randall Barker
5d8ff39a09 Bug 1511281 - Update GeckoView user agent override to use docShell.customUserAgent r=snorp
Differential Revision: https://phabricator.services.mozilla.com/D13593

--HG--
extra : moz-landing-system : lando
2018-12-14 14:40:06 +00:00
Gabriele Svelto
8195e39010 Bug 618185 - Switch the default URL for sending crash reports to the *.mozilla.org domain r=ted
Differential Revision: https://phabricator.services.mozilla.com/D14003

--HG--
extra : moz-landing-system : lando
2018-12-13 19:17:54 +00:00
Dennis Schubert
49e78df13e Bug 1512907 - Import GoFaster v3.0.0 sources to Desktop and Fennec. r=kmag,rhelmer
Differential Revision: https://phabricator.services.mozilla.com/D14047

--HG--
extra : moz-landing-system : lando
2018-12-14 00:52:32 +00:00
Dylan Roeh
be95b41f77 Bug 1494748 - Stop stumbler service when Fennec is killed. r=snorp 2018-12-12 11:53:49 -06:00
James Willcox
e636547e69 Bug 1507947 - Be more careful when unbinding child process services r=geckoview-reviewers,esawin
Differential Revision: https://phabricator.services.mozilla.com/D14065

--HG--
extra : moz-landing-system : lando
2018-12-12 14:54:03 +00:00
Shane Caraveo
712e57664e Bug 1345474 - protect access to base window and tab classes r=rpl
Depends on D4109

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

--HG--
extra : moz-landing-system : lando
2018-12-10 21:28:33 +00:00
Ciure Andrei
71bf47500f Backed out 7 changesets (bug 1500155) for multiple Android fails CLOSED TREE
Backed out changeset 0f66513c5f23 (bug 1500155)
Backed out changeset 85900c298b05 (bug 1500155)
Backed out changeset c4bc2e839a9e (bug 1500155)
Backed out changeset 4dd0b1c3524c (bug 1500155)
Backed out changeset 0d03623732b6 (bug 1500155)
Backed out changeset fcfa609101f8 (bug 1500155)
Backed out changeset a9410d9b3f16 (bug 1500155)
2018-12-12 16:24:36 +02:00
Emily Toop
0fd2d6b7ad Bug 1500155 - Part 8 - Update geckoview_example to use new methods. r=snorp
Differential Revision: https://phabricator.services.mozilla.com/D13423

--HG--
extra : moz-landing-system : lando
2018-12-12 13:19:16 +00:00
Emily Toop
569752adf0 Bug 1500155 - Part 7 - Update CHANGELOG.md. r=snorp
Differential Revision: https://phabricator.services.mozilla.com/D13422

--HG--
extra : moz-landing-system : lando
2018-12-12 13:19:04 +00:00
Emily Toop
ff213e4b62 Bug 1500155 - Part 6 - address review comments r=esawin,snorp. Update changelog.
Differential Revision: https://phabricator.services.mozilla.com/D13421

--HG--
extra : moz-landing-system : lando
2018-12-12 13:18:52 +00:00
Emily Toop
9eec7f0443 Bug 1500155 - Part 4 - Add Builder to GeckoSessionSettings to handle setting of init only fields. r=snorp
* Make setters for init only fields protected.
* Remove tests that ensure that init only fields throw an error when set on the fly as this is no longer possible.
* Update tests to use builder when init-ing settings.
* Update API doc to reflect new public API.

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

--HG--
extra : moz-landing-system : lando
2018-12-12 13:18:39 +00:00
Emily Toop
7074d987b3 Bug 1500155 - Part 3 - Migrate existing code to use these new methods instead of the exisiting get/set<DataType>(Key, Value) methods. r=snorp
Differential Revision: https://phabricator.services.mozilla.com/D13419

--HG--
extra : moz-landing-system : lando
2018-12-12 13:18:25 +00:00
Emily Toop
4994f964c7 Bug 1500155 - Part 2 - Make old methods and fields for get/set<DataType> in GeckoSessionSettings private. r=snorp
Differential Revision: https://phabricator.services.mozilla.com/D13418

--HG--
extra : moz-landing-system : lando
2018-12-12 13:18:13 +00:00
Emily Toop
8daa68665d Bug 1500155 - Part 1 - Add methods for each setting in GeckoSessionSettings. r=snorp
Migrate existing code to use these new methods instead of the exisiting get/set<DataType>(Key, Value) methods.

This commit does not tackle making the old functions inaccessible publicly as this requires a complete refactoring of the Setting @interface in `GeckoSessionTestRule.java`. There may be a follow up commit if this is something we want to do.

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

--HG--
extra : moz-landing-system : lando
2018-12-12 13:18:01 +00:00
Emily Toop
0dea83755d Bug 1513245 - Add RetentionPolicy.SOURCE to type def annotations r=geckoview-reviewers,agi,esawin
These annotations do no need to be kept by the compiler and can be discarded.

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

--HG--
extra : moz-landing-system : lando
2018-12-11 16:45:57 +00:00
Joel Maher
ce5a6bc787 Bug 1508794 - skip on debug org.mozilla.geckoview.test.GeckoSessionTestRuleTest.waitForChromeJS. r=gbrown
skip on debug org.mozilla.geckoview.test.GeckoSessionTestRuleTest.waitForChromeJS

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

--HG--
extra : moz-landing-system : lando
2018-12-11 20:47:40 +00:00
Hiroyuki Ikezoe
6bebce8600 Bug 1512037 - Bail out from prefersReducedMotion() if the target device is Android 4.1 or older. r=snorp
Settings.Global can't be used on such devices.

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

--HG--
extra : moz-landing-system : lando
2018-12-11 23:38:26 +00:00
Mark Banner
0304564ac7 Bug 1415483 - Apply the new options to reject-importGlobalProperties across the codebase, remove unnecessary importGlobalProperties. r=nika
Differential Revision: https://phabricator.services.mozilla.com/D13754

--HG--
extra : moz-landing-system : lando
2018-12-11 21:39:40 +00:00
James Willcox
d3663591d0 Bug 1513242 - Queue native calls in GeckoSystemStateListener r=geckoview-reviewers,esawin
Sometimes Gecko isn't running yet when we get our first notifications.

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

--HG--
extra : moz-landing-system : lando
2018-12-11 20:33:52 +00:00
James Willcox
ef1ac803d8 Bug 1507159 - Import NotificationDB.jsm in GeckoView r=geckoview-reviewers,mbrubeck
Differential Revision: https://phabricator.services.mozilla.com/D13301

--HG--
extra : moz-landing-system : lando
2018-11-29 22:26:51 +00:00
James Willcox
a3138042ef Bug 1511063 - Only send GeckoView history messages when there are listeners r=lina,geckoview-reviewers
Differential Revision: https://phabricator.services.mozilla.com/D13432

--HG--
extra : moz-landing-system : lando
2018-12-10 22:58:31 +00:00
Mike Hommey
ab48d17e1a Bug 1513134 - Detect unnecessary --help dependencies. r=firefox-build-system-reviewers,gps
Depends on D14125

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

--HG--
extra : moz-landing-system : lando
2018-12-11 19:34:28 +00:00
Petru Lingurar
3813e1403f Bug 1497148 - Log warning for custom profile with null dir and avoid throwing exception. r=geckoview-reviewers,snorp
Differential Revision: https://phabricator.services.mozilla.com/D13969

--HG--
extra : moz-landing-system : lando
2018-12-11 17:56:11 +00:00
Csoregi Natalia
9e970681f2 Backed out 2 changesets (bug 1415483) for multiple failures e.g. on test_message_manager_ipc.html. CLOSED TREE
Backed out changeset d00748de66fc (bug 1415483)
Backed out changeset 8dea94258f54 (bug 1415483)
2018-12-11 19:30:57 +02:00
Emily Toop
2775037874 Bug 1510644 - Address Incorrect constant Android lint error. r=geckoview-reviewers,esawin
* Suppressed warnings for `GeckoMediaDrmBridgeV21` and `WebRequestError`
* `GeckoSession` was providing the arguments to `WebRequestError` in the incorrect order.
* Enforced `actions` array to be `SelectionActionDelegate.Action` types.

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

--HG--
extra : moz-landing-system : lando
2018-12-11 16:47:51 +00:00
Csoregi Natalia
354257650e Merge mozilla-central to autoland. CLOSED TREE 2018-12-11 18:29:02 +02:00
Emily Toop
bf58ba978d Bug 1510610 - Override performClick for onTouchEvents. r=geckoview-reviewers,snorp
This is to ensure that accessibility readers have touch events handled.

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

--HG--
extra : moz-landing-system : lando
2018-12-11 15:02:03 +00:00
Emily Toop
608eb2e2bf Bug 1510611 - Ensure that the correct API levels are being enforced andx handled. r=geckoview-reviewers,snorp
- `GeckoSurfaceTexture`: Added `@RequiresApi` annotation to contructor that uses `KITKAT` level superclass constructor it is not used incorrectly.
- `VsyncSource`: Added `@RequiresApi` annotation to `getRefreshRate` method, plus comment explaining that the `DisplayManager` class used by this method is API level 17+
- `GeckoMediaDRMBridgeV21`: Added `@TargetAPI` annotation to class definition as the entire class uses code API level 18 upwards.
- `JellyBeanAsyncCodec`: Removed brackets from around version check so the linter recognises it as a valid API check. Updated code to use `BUILD_VERSION` flag rather than hardcoded version number.
- `LollipopAsyncCodec`: Added `@TargetAPI` annotation to class definition as the entire class is API level 21 upwards.
- `MediaDrmProxy`: Suppress "NewAPI" lint warnings. Version is being done inside `isSystemSupported` method and therefore not picked up by linter. Updated `isSystemSupported` to use `VERSION_CODES` constant.
- `ContentUriUtils`: Suppress "NewAPI" lint warnings. Version is being checked from `isKitKat` variable and therefore not picked up by linter.
- `GeckoAppShell`: Update `getAudioOutputFramesPerBuffer` & `getAudioOutputSampleRate` methods to use `VERSION` and `VERSION_CODES` inside version check so it is picked up by linter.
- `GeckoSystemStateListener`: Added `@RequiresApi` annotation to `prefersReducedMotion` method, plus comment explaining that the `Settings.Global` class used by this method is API level 17+
- `SpeechSynthesisService`: Add version check to `run` to ensure that `TextToSpeech#getDefaultLanguage` is only called under the correct version.

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

--HG--
extra : moz-landing-system : lando
2018-12-11 14:43:44 +00:00
Emily Toop
5b120fc9e9 Bug 1482725 - Don't call onCreate when device orientation changes. r=geckoview-reviewers,snorp
To prevent the default URI reloading on app rotate, prevent `GeckoViewActivity` from restarting on orientation and screen size changes.

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

--HG--
extra : moz-landing-system : lando
2018-12-11 14:26:45 +00:00
Mark Banner
1abdc8687f Bug 1415483 - Apply the new options to reject-importGlobalProperties across the codebase, remove unnecessary importGlobalProperties. r=nika
Differential Revision: https://phabricator.services.mozilla.com/D13754

--HG--
extra : moz-landing-system : lando
2018-12-11 14:09:44 +00:00
Csoregi Natalia
ea7eda334f Merge mozilla-central to mozilla-inbound. CLOSED TREE 2018-12-11 11:40:09 +02:00
Narcis Beleuzu
208387527a Merge mozilla-central to inbound. a=merge 2018-12-11 07:26:37 +02:00
Brindusan Cristian
cab76a96b5 Merge mozilla-central to inbound. a=merge CLOSED TREE 2018-12-11 00:11:47 +02:00
Brindusan Cristian
c0be6a4290 Merge inbound to mozilla-central. a=merge 2018-12-11 00:05:18 +02:00
Geoff Brown
dc6d556802 Bug 1512408 - Build crash symbol artifacts for Android x86-64 debug artifact builds; r=nalexander 2018-12-10 13:37:26 -07:00