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

30972 Коммитов

Автор SHA1 Сообщение Дата
Michael Comella 94cf414dcd Bug 1734935 - add marker for GeckoSession.onLoadRequest. r=agi
Here is a profile demonstrating the change (debug build) when the request is
resolved UI thread -> Gecko thread -> UI thread:
https://share.firefox.dev/3Aru9NW

Here is a profile when the request is resolved synchronously on the UI thread:
https://share.firefox.dev/3BzGTDs

Differential Revision: https://phabricator.services.mozilla.com/D127989
2021-10-12 21:21:42 +00:00
Agi Sferro e8e0f7e153 Bug 1571899 - Format Java codebase with google-java-formatter. r=owlish
This commit was generated by running |./mach lint -l android-formatter --fix|.

Differential Revision: https://phabricator.services.mozilla.com/D127733
2021-10-11 18:11:56 +00:00
Agi Sferro 2bd64785fc Bug 1571899 - Use google-java-format via spotless to enforce Java formatting. r=ahal,owlish
This change adds a new lint `android-format` which enforces formatting of Java
code using google-java-format.

To run the lint simply run:

./mach lint -l android-format

This command also support automatically fixing all errors running by adding
--fix:

./mach lint -l android-format --fix

This change also removes all the formatting-related checkstyle checks which are
now implicitly enforced by the formatter.

Differential Revision: https://phabricator.services.mozilla.com/D127734
2021-10-11 18:11:55 +00:00
Jamie Nicol 54efd0cd5a Bug 1733732 - Disable display port multiplier on Android. r=tnikkel
On Android we currently apply a 4x multiplier to the size of the
display port. When using the old Layers rendering backend, we would
render the non-multiplied "critical display port" at normal
resolution, and if required we would render the inflated display port
in low resolution. This helped avoid checkerboarding.

With webrender we only render what is currently visible on the
screen, so having an inflated display port is probably less
useful. There are still circumstances when it could help avoid
checkerboarding, for example when the main thread is busy it allows
for more scrolling without a new scene being built. But this benefit
is likely outweighed by the increased display list and scene building
time caused by the larger display port.

As a first step this patch simply sets the layers.low-precision-buffer
pref to false, which will prevent us from increasing the display port
size. This will make the change easy to revert in case it does cause
any issues. If this has the desired effect then we can remove the
relevant code in a follow up patch.

Differential Revision: https://phabricator.services.mozilla.com/D128062
2021-10-11 17:52:14 +00:00
Makoto Kato 9408d87ba5 Bug 1734552 - Don't walk though the accessibility nodes on autofill. r=geckoview-reviewers,agi
When Autofill service runs with compatibility mode [*1] (such as Bitwarden),
`View.onProvideAutofillStructure` walks through the accessibility nodes.
Walking through it spends a lot of times.

When checking Android's source code, the following walks through it.

- `onProvideAutofillVirtualStructure`
- `autofill`
- `isVisibleToUserForAutofill`

Actually, since we already add autofill's virtual nodes, it is unnecessary to
walk through it.

*1 https://developer.android.com/reference/android/service/autofill/AutofillService#compatibility-mode

Differential Revision: https://phabricator.services.mozilla.com/D127952
2021-10-11 13:16:45 +00:00
Tomislav Jovanovic 1b801a123d Bug 1708243 - Part 4: Remove tab-content.js and onExtensionBrowser.js, stop touching .content eagerly r=robwu
Differential Revision: https://phabricator.services.mozilla.com/D127750
2021-10-09 22:45:28 +00:00
Michael Comella 97fefdd3af Bug 1734941 - add marker for EventDispatcher handleMessage. r=agi
Here's a sample profile when loading a page while using this marker (debug
build): https://share.firefox.dev/3Fni5kq

Differential Revision: https://phabricator.services.mozilla.com/D127990
2021-10-08 21:39:36 +00:00
Cathy Lu dcdbccb976 Bug 1708815 - Rename enterpiseRootsEnabled r=geckoview-reviewers,agi,owlish
Differential Revision: https://phabricator.services.mozilla.com/D127729
2021-10-07 19:16:41 +00:00
owlishDeveloper 7a6decb12a Bug 1734028 - Update GeckoView Contributor Guide r=geckoview-reviewers,agi,calu
Differential Revision: https://phabricator.services.mozilla.com/D127493
2021-10-06 16:12:02 +00:00
Agi Sferro 4fa08131c7 Bug 1714945 - Add StorageController::setPrivateBrowsingPermanentPermission. r=owlish
Normally, a private browsing session doesn't store any data permamently. This
extends to permissions, which are cleared at the end of the browsing session
(i.e. when the GeckoRuntime is closed or killed).

There are cases, however, where we want to keep the data around. For example
Focus needs to store tracking protection permissions permanently.

For this reason, this patch introduces a new API that allows embedders to set
permanent permissions for private browsing GeckoSession.

This patch also always sends a tracking protection permission for every page
load, this allows embedders to set the tracking protection permission without
using the deprecated API `setPermission`, this was an oversight during the
implementation of the new StorageController API.

Differential Revision: https://phabricator.services.mozilla.com/D126546
2021-10-05 22:09:59 +00:00
Agi Sferro 486cf25495 Bug 1714945 - Clean up PermissionDelegateTest. r=owlish
Removes redundant namespaces, adds some static imports, cleans up some java-ism
(like .equals and semicolons).

Differential Revision: https://phabricator.services.mozilla.com/D126545
2021-10-05 22:09:59 +00:00
Agi Sferro 165f96a8a2 Bug 1714945 - Actually deprecate ContentBlockingController. r=owlish
Differential Revision: https://phabricator.services.mozilla.com/D126543
2021-10-05 22:09:58 +00:00
Agi Sferro 36efcb63bd Bug 1572245 - Add TestRuntimeService to restart runtime in tests. r=owlish
This patch adds a new test service class that can be used to more easily write
a test that needs to run multiple runtimes or needs to reset the runtime.

The service also includes an optional Instance class that can be used to
control the service and send and receive messages from the remote runtime.

Differential Revision: https://phabricator.services.mozilla.com/D126542
2021-10-05 22:09:58 +00:00
Andrew Halberstadt 95449daa6d Bug 1732723 - Rename "taskgraph" Python module to "gecko_taskgraph". r=jmaher
For a long time two copies of the 'taskgraph' module have existed in parallel.
We've attempted to keep them in sync, but over time they have diverged and the
maintenance burden has increased.

In order to reduce this burden, we'd like to re-join the two code bases. The
canonical repo will be the one that lives outside of mozilla-central, and this
module will depend on it. Since they both have the same module name (taskgraph)
we need to rename the version in mozilla-central to avoid collisions.

Other consumers of 'taskgraph' (like mobile repos) have standardized on
'<project>_taskgraph' as their module names. So replicating that here as well.

Differential Revision: https://phabricator.services.mozilla.com/D127118
2021-09-30 09:50:08 -04:00
Makoto Kato c4cc01692d Bug 1672609 - Implement nsWindow::SetCursor to support cursor property on GeckoView. r=geckoview-reviewers,emilio,owlish
This change also supports pointer icon change such as I-beam etc when pointer
is on text box etc.

Differential Revision: https://phabricator.services.mozilla.com/D126062
2021-10-05 11:42:00 +00:00
Makoto Kato ac58befba4 Bug 1672609 - Add GeckoSessionTestRule.synthesizeMouseMove. r=geckoview-reviewers,agi
Differential Revision: https://phabricator.services.mozilla.com/D127019
2021-10-05 11:41:59 +00:00
Mirko Brodesser c61c10a2ce Bug 1731994: part 8) Rename `nsIContentPermissionRequest`'s `isHandlingUserInput` to `hasValidTransientUserGestureActivation`. r=edgar
It's more accurate.

Differential Revision: https://phabricator.services.mozilla.com/D126916
2021-10-04 12:16:00 +00:00
owlishDeveloper 82a30bcd6d Bug 1703976 - [1.0] Extend Autocomplete API to support credit card saving r=geckoview-reviewers,agi
Differential Revision: https://phabricator.services.mozilla.com/D111341
2021-10-02 00:28:05 +00:00
Makoto Kato c3d7964c59 Bug 1582606 - Allow data: url on GVE. r=geckoview-reviewers,agi
If data: url has space, it doesn't be recognized as data: url on GVE.

Differential Revision: https://phabricator.services.mozilla.com/D127124
2021-10-01 04:34:10 +00:00
Agi Sferro 1f930e4253 Bug 1557796 - Custom mozconfig for gradle build. r=nalexander,owlish
This patch introduces a new local.settings field: mozilla-central.mozconfig.

This field can be used to set a custom mozconfig file for the gradle build (and
for Android Studio).

The environment variable MOZCONFIG will take precedence over what is defined in
local.settings to allow Gecko engineers to use multiple mozconfig files.

Co-Authored-By: Nick Alexander <nalexander@mozilla.com>

Differential Revision: https://phabricator.services.mozilla.com/D124830
2021-09-29 17:54:57 +00:00
Noemi Erli 5ae6eff43a Backed out changeset 3339b501299a (bug 1703976) for causing geckoview failures CLOSED TREE 2021-09-28 02:38:01 +03:00
owlishDeveloper 20ea47506e Bug 1703976 - [1.0] Extend Autocomplete API to support credit card saving r=geckoview-reviewers,agi
Differential Revision: https://phabricator.services.mozilla.com/D111341
2021-09-27 21:41:13 +00:00
criss f968bf6006 Backed out changeset cd12974c5646 (bug 1703976) for causing lint failures in api.txt. CLOSED TREE 2021-09-28 00:03:31 +03:00
criss 1dc219c943 Backed out changeset ba8b96449fbd (bug 1703976) for causing Lint failures on Autocomplete.java. CLOSED TREE 2021-09-27 23:48:19 +03:00
owlishDeveloper e6812a3528 Bug 1703976 - [2.0] Update API changelog r=geckoview-reviewers,agi
Differential Revision: https://phabricator.services.mozilla.com/D111343
2021-09-27 20:37:06 +00:00
owlishDeveloper de738da4c8 Bug 1703976 - [1.0] Extend Autocomplete API to support credit card saving r=geckoview-reviewers,agi
Differential Revision: https://phabricator.services.mozilla.com/D111341
2021-09-27 20:16:25 +00:00
Alex Lopez 63022efc7a Bug 1696251: Allow mach commands as stand-alone functions and adapt existing commands. r=mhentges,webdriver-reviewers,perftest-reviewers,sparky,whimboo
This removes the `@CommandProvider` decorator and the need to implement
mach commands inside subclasses of `MachCommandBase`, and moves all
existing commands out from classes to module level functions.

Differential Revision: https://phabricator.services.mozilla.com/D121512
2021-09-27 18:12:51 +00:00
Cristian Tuns e3e80a22dc Bug 1717506 Disabled AutofillDelegate on debug build r=intermittent-reviewers,jmaher DONTBUILD
Differential Revision: https://phabricator.services.mozilla.com/D126613
2021-09-27 15:32:57 +00:00
Rob Wu 32398ebd89 Bug 1641735 - Re-enable some tabs tests on Android r=agi,extension-reviewers,zombie
test_ext_tab_runtimeConnect.html can be re-enabled since bug 1534640 got fixed.
test_ext_tabs_reload.html had a race condition.
test_ext_tabs_reload_bypass_cache.html fix similar to bug 1335180.

Differential Revision: https://phabricator.services.mozilla.com/D124090
2021-09-27 13:34:55 +00:00
Rob Wu f3cf76cb48 Bug 1641735 - Code cleanup of some extension tests r=geckoview-reviewers,agi,mixedpuppy
In the past, add_task was generator-based, and tests were automatically
rewritten to use Promises. Some tests have weird constructs such as the
use of Promise.all+await or still using generators. These have been
fixed.

Some tests request the tabs permission without actually needing it.

This patch does not affect the behavior of the tests.

Differential Revision: https://phabricator.services.mozilla.com/D124089
2021-09-27 13:34:55 +00:00
Rob Wu 8c0d686282 Bug 1641735 - Replace unnecessary uses of useAddonManager of ExtensionTestUtils.loadExtension r=zombie,agi,extension-reviewers
In mochitests on Android, ExtensionTestUtils.loadExtension defaults to
`useAddonManager: "android-only"` to allow Android tests to correctly
register with the AddonManager without unnecessarily forcing this
registration on desktop.

This patch removes all unnecessary uses of useAddonManager, to make it
obvious when a test really depends on the AddonManager (on desktop),
opposed to only depending on it indirectly as part of the GeckoView
implementation.

Differential Revision: https://phabricator.services.mozilla.com/D124088
2021-09-27 13:34:54 +00:00
Butkovits Atila eb735ac57e Backed out changeset 53b1fa0faa6d (bug 1696251) for breaking the static-analysis integration. a=backout 2021-09-23 13:06:40 +03:00
owlishDeveloper 800e6ffa5d Bug 1697866 - Add HTTPS-only specific error code and pass it to GeckoView, to handle HTTPS-only specific errors correctly r=agi,JulianWels,nika,ckerschb
Differential Revision: https://phabricator.services.mozilla.com/D120914
2021-09-23 01:41:47 +00:00
Noemi Erli 50d4e6c878 Backed out changeset 890d147bad1d (bug 1697866) for causing bustages in WindowGlobalParent.cpp CLOSED TREE 2021-09-23 01:20:43 +03:00
Katherine Patenio d2129b2d30 Bug 1731381 - remove brandProductName properties for Fluent migration r=fluent-reviewers,flod,mtigley
Differential Revision: https://phabricator.services.mozilla.com/D126027
2021-09-22 19:55:57 +00:00
owlishDeveloper 7acebc65af Bug 1697866 - Add HTTPS-only specific error code and pass it to GeckoView, to handle HTTPS-only specific errors correctly r=agi,JulianWels,nika,ckerschb
Differential Revision: https://phabricator.services.mozilla.com/D120914
2021-09-22 18:30:39 +00:00
Makoto Kato ac34e350cd Bug 1731517 - GeckoViewStreamListener::WriteSegment returns error instead of crash by java.lang.OutOfMemoryError. r=geckoview-reviewers,agi
It is better to return error instead of crash since
`nsIInputStream::ReadSegment` can handle error.

Differential Revision: https://phabricator.services.mozilla.com/D126060
2021-09-22 09:47:58 +00:00
Christoph Kerschbaumer 62ef76f6fa Bug 1731750: Adjust test loadWithHTTPSOnlyMode to work with https-first-mode enabled r=geckoview-reviewers,agi
Differential Revision: https://phabricator.services.mozilla.com/D126239
2021-09-22 09:45:40 +00:00
Alex Lopez a8e7083c84 Bug 1696251: Allow mach commands as stand-alone functions and adapt existing commands. r=mhentges,webdriver-reviewers,perftest-reviewers,sparky,whimboo
This removes the `@CommandProvider` decorator and the need to implement
mach commands inside subclasses of `MachCommandBase`, and moves all
existing commands out from classes to module level functions.

Differential Revision: https://phabricator.services.mozilla.com/D121512
2021-09-21 20:38:16 +00:00
Butkovits Atila c06a3dd9fa Backed out changeset 510dd46a9de7 (bug 1696251) for causing Android build bustages. 2021-09-21 05:16:50 +03:00
Alex Lopez fe61e94ec8 Bug 1696251: Allow mach commands as stand-alone functions and adapt existing commands. r=mhentges,webdriver-reviewers,perftest-reviewers,sparky,whimboo
This removes the `@CommandProvider` decorator and the need to implement
mach commands inside subclasses of `MachCommandBase`, and moves all
existing commands out from classes to module level functions.

Differential Revision: https://phabricator.services.mozilla.com/D121512
2021-09-20 20:21:07 +00:00
Katherine Patenio 4b0addaf02 Bug 1730972 - remove brandProductName from DTD. r=mtigley
Differential Revision: https://phabricator.services.mozilla.com/D125750
2021-09-20 14:39:05 +00:00
Noemi Erli 91aa2e2b9c Backed out changeset 5f5b612878f3 (bug 1696251) for causing multiple bustages 2021-09-18 02:22:39 +03:00
John Lin bae830176f Bug 1665776 - p5: add VPx support to AndroidEncoderModule. r=alwu
Differential Revision: https://phabricator.services.mozilla.com/D121022
2021-09-17 19:10:59 +00:00
Alex Lopez bf860fe7dc Bug 1696251: Allow mach commands as stand-alone functions and adapt existing commands. r=mhentges,webdriver-reviewers,perftest-reviewers,sparky,whimboo
This removes the `@CommandProvider` decorator and the need to implement
mach commands inside subclasses of `MachCommandBase`, and moves all
existing commands out from classes to module level functions.

Differential Revision: https://phabricator.services.mozilla.com/D121512
2021-09-17 19:00:39 +00:00
Rob Wu b92b9a1695 Bug 1728461 - Properly remove startup canary on Android to avoid purged caches r=agi,rpl,mossop
See https://bugzilla.mozilla.org/show_bug.cgi?id=1728461#c12 for
the analysis of the problem.

Differential Revision: https://phabricator.services.mozilla.com/D125131
2021-09-16 14:25:45 +00:00
Makoto Kato 00b8414f9b Bug 1717464 - Handle ACTION_CANCEL for TrackPad scroll. r=geckoview-reviewers,agi
This will be a bug of Android VM on Chrome OS.

When touching trackpad, Android VM on Chrome OS might fire scroll event for
trackpad, then, it fires cancel event immediately.

Actually, since we don't consider this situation, APZ detects that this is
log tap unfortunately.

So we should dispatch ACTION_CANCEL as scroll event.

Differential Revision: https://phabricator.services.mozilla.com/D125643
2021-09-16 00:57:18 +00:00
Csoregi Natalia 450bb4a4ae Backed out 13 changesets (bug 1665776) for causing failures on test_peerConnection_stats.html. CLOSED TREE
Backed out changeset 4b0d4001f1f1 (bug 1665776)
Backed out changeset 73ed5fe5e08f (bug 1665776)
Backed out changeset d1f7b6269840 (bug 1665776)
Backed out changeset 1611a0c8732c (bug 1665776)
Backed out changeset 15600cb52973 (bug 1665776)
Backed out changeset 5c0df59f6d97 (bug 1665776)
Backed out changeset 7cb0765f266c (bug 1665776)
Backed out changeset 07a4e96d4f2d (bug 1665776)
Backed out changeset 4e9613c3f492 (bug 1665776)
Backed out changeset c42a861fa5aa (bug 1665776)
Backed out changeset c1747633cf3a (bug 1665776)
Backed out changeset aeacd2804c75 (bug 1665776)
Backed out changeset 1e367c8a87bb (bug 1665776)
2021-09-15 23:12:53 +03:00
John Lin cf5c1036de Bug 1665776 - p5: add VPx support to AndroidEncoderModule. r=alwu
Differential Revision: https://phabricator.services.mozilla.com/D121022
2021-09-15 15:59:43 +00:00
Mark Banner 14aedbb785 Bug 1729460 - Change users of defineLazyServiceGetter(s) to use Services.* where appropriate. r=mossop,webdriver-reviewers,extension-reviewers,whimboo,robwu
Differential Revision: https://phabricator.services.mozilla.com/D124838
2021-09-10 12:09:49 +00:00