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

30683 Коммитов

Автор SHA1 Сообщение Дата
Agi Sferro 3679063fc1 Bug 1705181 - Adjust rAF rate for asyncScriptsSuspendedWhileInactive. r=owlish
The 500ms value was completely arbitrary (we're trying to test that the rAF
rate is reduced, not that it's exactly 500ms), looks like in some cases we get
updates _just_ below the 500ms mark, so to avoid false failures we can reduce
the value to 450ms.

Differential Revision: https://phabricator.services.mozilla.com/D115744
2021-05-21 23:45:12 +00:00
Agi Sferro aac7c3df78 Bug 1706403 - Remove deprecated onTouchEventForResult. r=owlish
Differential Revision: https://phabricator.services.mozilla.com/D115660
2021-05-21 22:43:01 +00:00
Agi Sferro 24adaff7bc Bug 1712379 - Initialize sTreatMouseAsTouch lazily. r=owlish, a=RyanVM
We call initMouseAsTouch when creating GeckoSession, normally this happens
after a GeckoRuntime has been created, so GeckoAppShell.getApplicationContext()
will return a non-null value.

If the GeckoSession is created before then, however, that method will return
null causing a NullPointerException (a AC unit test does that).

We fix this problem by initializing sTreatMouseAsTouch lazily, and not assuming
that the Context is present.

Differential Revision: https://phabricator.services.mozilla.com/D115727
2021-05-21 19:33:36 +00:00
Agi Sferro b7be734589 Bug 1701269 - Remove PrefsHelper. r=owlish
Differential Revision: https://phabricator.services.mozilla.com/D109927
2021-05-20 22:03:07 +00:00
Agi Sferro f37fabfc65 Bug 1701269 - Don't call getProfile in GeckoSessionTestRule. r=owlish
Differential Revision: https://phabricator.services.mozilla.com/D109926
2021-05-20 22:03:06 +00:00
Agi Sferro 480e2d036a Bug 1701269 - Add forceEnableAccessibility to GeckoRuntimeSettings. r=eeejay,owlish,droeh
Differential Revision: https://phabricator.services.mozilla.com/D109925
2021-05-20 22:03:06 +00:00
Agi Sferro 8595d5de61 Bug 1701269 - Remove ui.android.mouse_as_touch. r=botond,owlish
Differential Revision: https://phabricator.services.mozilla.com/D109924
2021-05-20 22:03:05 +00:00
Agi Sferro a4f212aa12 Bug 1701269 - Remove unused Camera code in GeckoAppShell. r=owlish
Differential Revision: https://phabricator.services.mozilla.com/D109923
2021-05-20 22:03:05 +00:00
Agi Sferro ad41d2bdec Bug 1701269 - Remove unused code in org.mozilla.gecko. r=owlish
Differential Revision: https://phabricator.services.mozilla.com/D109922
2021-05-20 22:03:05 +00:00
Agi Sferro c6730b3c16 Bug 1701269 - Remove unused GeckoProfile. r=owlish
Differential Revision: https://phabricator.services.mozilla.com/D109921
2021-05-20 22:03:04 +00:00
Agi Sferro de4e13e402 Bug 1701269 - Remove GempadUtils. r=owlish
Differential Revision: https://phabricator.services.mozilla.com/D109920
2021-05-20 22:03:04 +00:00
Agi Sferro 5e28045dd6 Bug 1701269 - Remove unused MinidumpAnalyzer. r=owlish
Differential Revision: https://phabricator.services.mozilla.com/D109919
2021-05-20 22:03:03 +00:00
Agi Sferro 114966c6e0 Bug 1701269 - Remove mobile/android/base. r=nalexander,flod,owlish
Differential Revision: https://phabricator.services.mozilla.com/D109918
2021-05-20 22:03:03 +00:00
Agi Sferro 96274c4ba9 Bug 1707959 - Set TYPE_GLOW overscroll type on Android 12. r=droeh
Android 12 introduces a new type of overscroll effect named TYPE_STRETCH which
stretches the whole surface when overscrolling.

Unforunately, given how it's implemented, SurfaceView does not support this
type of effect, similarly to many other View effects.

The OverscrollEffect is currently crashing on Android 12 builds so we restore the
type to the previous (and only) default to fix the crash.

Note that Overscroll is still not displayed, I'll open a new bug to fix that
part.

This patch also avoids using reflection for setBlendMode on API 29 and later
where an API is actually available. Using reflection to access private APIs is
not available since Android 9 so this code was a no-op before this patch.

Differential Revision: https://phabricator.services.mozilla.com/D115031
2021-05-20 17:39:12 +00:00
Butkovits Atila 1e689de392 Backed out changeset a53711ef58c9 (bug 1707959) for linting failures. CLOSED TREE 2021-05-20 19:46:32 +03:00
Agi Sferro 3e525ec94e Bug 1707959 - Set TYPE_GLOW overscroll type on Android 12. r=droeh
Android 12 introduces a new type of overscroll effect named TYPE_STRETCH which
stretches the whole surface when overscrolling.

Unforunately, given how it's implemented, SurfaceView does not support this
type of effect, similarly to many other View effects.

The OverscrollEffect is currently crashing on Android 12 builds so we restore the
type to the previous (and only) default to fix the crash.

Note that Overscroll is still not displayed, I'll open a new bug to fix that
part.

This patch also avoids using reflection for setBlendMode on API 29 and later
where an API is actually available. Using reflection to access private APIs is
not available since Android 9 so this code was a no-op before this patch.

Differential Revision: https://phabricator.services.mozilla.com/D115031
2021-05-20 15:58:02 +00:00
Dylan Roeh d488467816 Bug 1699480 - Back out permissions changes at AC's request, r=geckoview-reviewers,agi
Differential Revision: https://phabricator.services.mozilla.com/D115515
2021-05-19 18:07:28 +00:00
Andrew Sutherland b856f8e987 Bug 1710101 - Enable LSNG for GeckoView across all channels. r=aklotz
Differential Revision: https://phabricator.services.mozilla.com/D115414
2021-05-19 00:38:57 +00:00
Dylan Roeh b7e8cb3274 Bug 1711765 - Update GV content permissions documentation to reflect API changes. r=geckoview-reviewers,owlish
Differential Revision: https://phabricator.services.mozilla.com/D115400
2021-05-18 20:37:37 +00:00
Alex Lopez 455d9a088b Bug 1696251 - Pass MachCommandBase object as first argument for Mach Commands. r=mhentges,remote-protocol-reviewers,marionette-reviewers,webdriver-reviewers,perftest-reviewers
As an intermediate step to allow mach commands as standalone functions, the MachCommandBase
subclass instance that currently corresponds to self has to be made available as a separate
argument (named command_context).

Differential Revision: https://phabricator.services.mozilla.com/D109650
2021-05-17 16:15:58 +00:00
Dylan Roeh 417ca0c967 Bug 1699480 - Update GV changelog for permissions API changes. r=geckoview-reviewers,agi
Differential Revision: https://phabricator.services.mozilla.com/D113422
2021-05-17 15:55:22 +00:00
Dylan Roeh 98866abf89 Bug 1699480 - Add tests for new GV permission functionality. r=geckoview-reviewers,agi
Differential Revision: https://phabricator.services.mozilla.com/D113421
2021-05-17 15:55:22 +00:00
Dylan Roeh 65c6963a0e Bug 1699480 - Deprecate most existing TP exception API in GV and migrate it to new permissions API; also allow for importing/exporting ContentPermissions as JSONObjects. r=agi,geckoview-reviewers,aklotz
Differential Revision: https://phabricator.services.mozilla.com/D113134
2021-05-17 15:55:21 +00:00
Dylan Roeh ff4369ad7c Bug 1699480 - Add setPermission, update onContentPermissionRequest to use ContentPermission, and let Gecko manage and persist permissions in GV. r=agi,geckoview-reviewers,owlish
Differential Revision: https://phabricator.services.mozilla.com/D112042
2021-05-17 15:55:21 +00:00
Agi Sferro 1c9fdbfa5c Bug 1701932 - Cleanup mobile.js r=aklotz
Differential Revision: https://phabricator.services.mozilla.com/D115080
2021-05-13 23:50:12 +00:00
Makoto Kato 7c255c77bf Bug 1709394 - Use split text data on binder call. r=geckoview-reviewers,agi
When taking focus on <input> element that has large text such as 1MB, we
cannot pass current text to InputConnection.

Since we use binder call to set initial text to InputConnection, large text
causes TransactionTooLargeException exception. So we use small chunked data
(64K length) instead.

Differential Revision: https://phabricator.services.mozilla.com/D114710
2021-05-12 12:45:49 +00:00
Tomislav Jovanovic c5fa3a1d8d Bug 1708238 - Stop relying on messagemanager in ExtensionPolicyService r=robwu,geckoview-reviewers,agi
Patch mostly by Nika Layzell; test, some tweaks (and all bugs) by me.

Differential Revision: https://phabricator.services.mozilla.com/D114060
2021-05-10 16:55:09 +00:00
Karl Tomlinson 9f60769705 Bug 1709474 move mozGetUserMediaDevices from Navigator to GetUserMediaRequest r=jib,webidl,geckoview-reviewers,smaug,agi
Differential Revision: https://phabricator.services.mozilla.com/D111565
2021-05-06 05:16:49 +00:00
Peter Van der Beken 2ec947a685 Bug 1708660 - Remove support for map/setLike in JS-implemented WebIDL. r=edgar
Differential Revision: https://phabricator.services.mozilla.com/D113949
2021-05-06 05:12:03 +00:00
Csoregi Natalia 8cad1a2512 Backed out 2 changesets (bug 1709484, bug 1709474) for geckoview fails on testDeviceRecordingEventAudioAndVideo. CLOSED TREE
Backed out changeset 069415280f6d (bug 1709474)
Backed out changeset 3853186911c9 (bug 1709484)
2021-05-06 03:38:52 +03:00
Karl Tomlinson 10fe97e403 Bug 1709474 move mozGetUserMediaDevices from Navigator to GetUserMediaRequest r=jib,webidl,geckoview-reviewers,smaug,agi
Differential Revision: https://phabricator.services.mozilla.com/D111565
2021-05-05 23:04:13 +00:00
Aaron Klotz d83342602d Bug 1699464: Set GV content process count to 2 across all release channels; r=geckoview-reviewers,agi
I'm changing this to be unconditional so that it may ride the trains.

If we later decide that we need to hold it back for another release, we can
revert this in Beta.

I'm talking to data people about analyzing Fenix's tab retention probes. I'll
obviously be keeping an eye on those numbers as this change propagates.

Differential Revision: https://phabricator.services.mozilla.com/D114404
2021-05-05 20:58:33 +00:00
David Parks e37ad4b27a Bug 1698959: Remove HangData union and SLOW_SCRIPT enum value r=dthayer,geckoview-reviewers,agi
HangData is the only member left in the union and SLOW_SCRIPT is the only member left in the enum.
This patch also migrates the one remaining (invalid) use of PLUGIN_HANG in testing to work as a SLOW_SCRIPT instead.

Differential Revision: https://phabricator.services.mozilla.com/D113885
2021-05-01 01:12:46 +00:00
David Parks 27e7bb9383 Bug 1698959: Clean up dead terminatePlugin references r=dthayer
PLUGIN_HANG events are no longer sent so terminatePlugin is unused.

Differential Revision: https://phabricator.services.mozilla.com/D113884
2021-05-01 01:12:45 +00:00
Agi Sferro fec841bfe8 Bug 1698968 - Always send marionette-startup-requested r=whimboo,aklotz,webdriver-reviewers
Marionette enables itself only when --marionette is passed in. Given that
command line arguments can only be passed in using the debug configuration, it
is safe to send this event all the time.

Differential Revision: https://phabricator.services.mozilla.com/D113829
2021-04-30 20:48:37 +00:00
Shane Caraveo 7d11b0aa66 Bug 1687762 fix deprecated extension api use r=robwu
Differential Revision: https://phabricator.services.mozilla.com/D111966
2021-04-30 20:31:40 +00:00
Makoto Kato 3f0a7708f7 Bug 1706499 - Reset batch edit count on InputConnection.closeConnection. r=geckoview-reviewers,agi
The latest version of GBoard seems to call `InputConnection.closeConnection`
without calling `InputConnection.endBatchEdit`. Since we recycle
`InputConnection` object, we have to reset batch edit count on
`closeConnection`.

Also there is no way to write GV-junit and mochitests because we cannot check
whether current text transaction is batch mode or not.

Differential Revision: https://phabricator.services.mozilla.com/D113297
2021-04-28 05:42:17 +00:00
Agi Sferro 0bacfb352b Bug 1699046 - Allow GVE to have zero tabs. r=droeh
Marionette uses GVE and sometimes closes the last tab and calls |Quit| at the
same time. When the last tab is closed, GVE will try to open a new tab with the
same content in it, to avoid leaving the browser in the "zero tabs" state. This
causes a race condition where the browser is shutting down and a new tab is
being created, which trips an assertion in our widget code.

During real life usage of the browser, calling Quit only happens during errors.
Because of that, and the fact that we're not seing this crash in the wild,
it should be safe to just fix the problem in GVE instead of supporting this
edge case in GeckoView.

To support the Marionette case, we allow GVE to stay at zero tabs. Some menu
elements need to be disabled (like reload tab and the url bar).

This has the added benefit of being able to test the "no windows" case in GVE
which wasn't possible until now.

Differential Revision: https://phabricator.services.mozilla.com/D113202
2021-04-26 20:49:00 +00:00
Henrik Skupin 59d0b4e978 Bug 1676803 - [remote] Enable Remote Agent on Android. r=firefox-build-system-reviewers,mhentges,glandium
Differential Revision: https://phabricator.services.mozilla.com/D112005
2021-04-26 19:46:09 +00:00
Henrik Skupin 8bcc373610 Bug 1676803 - Make the Remote Agent part of remote debugging within GeckoView. r=geckoview-reviewers,agi
Differential Revision: https://phabricator.services.mozilla.com/D112004
2021-04-26 19:46:08 +00:00
keiko 425815c622 Bug 1705675 -Deleted and modified the document links. r=ahal DONTBUILD
Differential Revision: https://phabricator.services.mozilla.com/D113260
2021-04-26 18:24:14 +00:00
Butkovits Atila 2e34e363b9 Backed out 2 changesets (bug 1696251) for causing js-bench-sm failures. CLOSED TREE
Backed out changeset 1c84c9a34575 (bug 1696251)
Backed out changeset e169193b7423 (bug 1696251)
2021-04-23 02:53:36 +03:00
Alex Lopez d1a82b8092 Bug 1696251 - Pass MachCommandBase object as first argument for Mach Commands. r=mhentges,remote-protocol-reviewers,marionette-reviewers,webdriver-reviewers,perftest-reviewers
As an intermediate step to allow mach commands as standalone functions, the MachCommandBase
subclass instance that currently corresponds to self has to be made available as a separate
argument (named command_context).

Differential Revision: https://phabricator.services.mozilla.com/D109650
2021-04-22 18:56:15 +00:00
Csoregi Natalia 0aefbf5f94 Backed out 2 changesets (bug 1676803) for xpcshell failures on test_StreamRegistry.js. CLOSED TREE
Backed out changeset 368bc78b72f1 (bug 1676803)
Backed out changeset 6c62669cb5f0 (bug 1676803)
2021-04-22 18:39:30 +03:00
Henrik Skupin 23de16f8bf Bug 1676803 - [remote] Enable Remote Agent on Android. r=firefox-build-system-reviewers,mhentges,glandium
Differential Revision: https://phabricator.services.mozilla.com/D112005
2021-04-22 12:38:06 +00:00
Henrik Skupin 58ee0c217e Bug 1676803 - Make the Remote Agent part of remote debugging within GeckoView. r=geckoview-reviewers,agi
Differential Revision: https://phabricator.services.mozilla.com/D112004
2021-04-22 12:38:05 +00:00
Agi Sferro f8a731e34e Bug 1696145 - Support Notification.silent and .vibrate on Android. r=smaug,droeh,aklotz
Differential Revision: https://phabricator.services.mozilla.com/D111924
2021-04-20 18:35:36 +00:00
Csoregi Natalia cd658de8c3 Backed out 2 changesets (bug 1696145) for causing build bustage on notifications. CLOSED TREE
Backed out changeset 2e18b65dd133 (bug 1696145)
Backed out changeset 6d302afe732f (bug 1696145)
2021-04-20 20:13:56 +03:00
Agi Sferro 97ede8ffca Bug 1696145 - Support Notification.silent and .vibrate on Android. r=smaug,droeh,aklotz
Differential Revision: https://phabricator.services.mozilla.com/D111924
2021-04-20 16:38:45 +00:00
Agi Sferro 15db873142 Bug 1704194 - Use appropriate principal when creating new tabs. r=aklotz,robwu,ckerschb
Differential Revision: https://phabricator.services.mozilla.com/D112101
2021-04-19 19:42:39 +00:00