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

31367 Коммитов

Автор SHA1 Сообщение Дата
Molnar Sandor 8fc1808762 Bug 1773287 - Fix mozlint failure in mobile/android/docs/geckoview/contributor/geckoview-architecture.rst. CLOSED TREE 2022-06-08 17:12:01 +03:00
Agi Sferro e4872bd92e Bug 1773287 - Add Permission and Autofill GeckoView docs. DONTBUILD
Differential Revision: https://phabricator.services.mozilla.com/D148653
2022-06-08 13:31:00 +00:00
Eitan Isaacson 657feb8e6d Bug 1772577 - Disable fission tests when cache is disabled. r=geckoview-reviewers,agi
Differential Revision: https://phabricator.services.mozilla.com/D148291
2022-06-07 22:10:22 +00:00
Tooru Fujisawa 204beb8ef5 Bug 1772351 - Part 4: Stop calling XPCOMUtils.defineLazyModuleGetters for AppConstants for already converted cases. r=florian
Differential Revision: https://phabricator.services.mozilla.com/D148167
2022-06-06 04:42:09 +00:00
Tooru Fujisawa 912b8d4e35 Bug 1772313 - Part 8: Stop calling XPCOMUtils.defineLazyModuleGetters for Services in mobile/. r=geckoview-reviewers,agi
Differential Revision: https://phabricator.services.mozilla.com/D148161
2022-06-06 04:42:07 +00:00
Molnar Sandor 77402a5caa Backed out 15 changesets (bug 1772313, bug 1772351, bug 1772360) for causing xpc failures in telemetry/tests/unit/test_SocketScalars.js CLOSED TREE
Backed out changeset c8b0a2ed239e (bug 1772360)
Backed out changeset 1922adad6abe (bug 1772351)
Backed out changeset 6d3634cce489 (bug 1772351)
Backed out changeset f03968a9d053 (bug 1772351)
Backed out changeset e7a38ef90fe4 (bug 1772351)
Backed out changeset b389e7654771 (bug 1772313)
Backed out changeset 59a33598ff51 (bug 1772313)
Backed out changeset ab60885a8a93 (bug 1772313)
Backed out changeset aad8efac9d05 (bug 1772313)
Backed out changeset 4378e519a8e7 (bug 1772313)
Backed out changeset 302ac54741f8 (bug 1772313)
Backed out changeset 74c59f9fd51c (bug 1772313)
Backed out changeset 575fb877c56c (bug 1772313)
Backed out changeset 2eaa68f10b19 (bug 1772313)
Backed out changeset 4a8b3ba193dc (bug 1772313)
2022-06-06 07:04:25 +03:00
Tooru Fujisawa 4dc660a4b7 Bug 1772351 - Part 4: Stop calling XPCOMUtils.defineLazyModuleGetters for AppConstants for already converted cases. r=florian
Differential Revision: https://phabricator.services.mozilla.com/D148167
2022-06-06 02:49:13 +00:00
Tooru Fujisawa eaf1dda701 Bug 1772313 - Part 8: Stop calling XPCOMUtils.defineLazyModuleGetters for Services in mobile/. r=geckoview-reviewers,agi
Differential Revision: https://phabricator.services.mozilla.com/D148161
2022-06-06 02:49:11 +00:00
Agi Sferro 6b7bbabc69 Bug 1772602 - Add missing @Deprecated tag in StorageController. r=calu
Differential Revision: https://phabricator.services.mozilla.com/D148309
2022-06-04 22:12:54 +00:00
Andreea Pavel 88f88876d9 Bug 1662035 - disable ProgressDelegateTest#saveAndRestoreState on debug r=calu DONTBUILD
Differential Revision: https://phabricator.services.mozilla.com/D147679
2022-06-04 10:19:49 +00:00
Andreea Pavel d21d2bedc1 Bug 1764219 - disable noGapAppearsBetweenBodyAndElementFullyCoveringBody on debug r=hiro
Differential Revision: https://phabricator.services.mozilla.com/D148091
2022-06-04 10:16:57 +00:00
Agi Sferro 53dcdf0fe7 Bug 1772427 - Remove unneded sub-heading. r=calu
I think this sub-heading is a weird artifact of the migration from md to rst.
It creates a double menu that is not needed.

Before:

```
- Contributing to GeckoView
  - Contributor Site
    - GeckoView Contributor guide
    - GeckoView for Gecko engineers
    - ...
- Using GeckoView
  - Usage Documentation
    - Getting Started with GeckoView
    - Interacting with Web Content
    - ...

```

After

```
- Contributing to GeckoView
  - GeckoView Contributor guide
  - GeckoView for Gecko engineers
  - ...
- Using GeckoView
  - Getting Started with GeckoView
  - Interacting with Web Content
  - ...
```

Differential Revision: https://phabricator.services.mozilla.com/D148214
2022-06-03 16:25:02 +00:00
Agi Sferro cdfd02d7b2 Bug 1772427 - Add doc about Android Junit framework. r=calu
Differential Revision: https://phabricator.services.mozilla.com/D148210
2022-06-03 16:25:02 +00:00
Botond Ballo 18351c43de Bug 1771822 - Remove the browser.chrome.dynamictoolbar pref. r=tnikkel,perftest-reviewers,AlexandruIonescu
This pref is left over from a previous dynamic toolbar implementation,
and no one was reading its value.

Differential Revision: https://phabricator.services.mozilla.com/D147810
2022-06-02 22:57:56 +00:00
Tooru Fujisawa 8488417717 Bug 1772095 - Part 5: Use plain object for lazy getter in mobile/android/modules/test/. r=geckoview-reviewers,agi
Differential Revision: https://phabricator.services.mozilla.com/D147997
2022-06-02 10:43:44 +00:00
Tooru Fujisawa 50161bda46 Bug 1772095 - Part 4: Use plain object for lazy getter in mobile/android/modules/geckoview/. r=geckoview-reviewers,agi
Differential Revision: https://phabricator.services.mozilla.com/D147996
2022-06-02 10:43:44 +00:00
Tooru Fujisawa d37d7fac1b Bug 1772095 - Part 3: Use plain object for lazy getter in mobile/android/components/geckoview/. r=geckoview-reviewers,agi
Differential Revision: https://phabricator.services.mozilla.com/D147995
2022-06-02 10:43:43 +00:00
Tooru Fujisawa 3ffef0fc5d Bug 1772095 - Part 2: Use plain object for lazy getter in mobile/android/components/extensions/. r=geckoview-reviewers,agi
Differential Revision: https://phabricator.services.mozilla.com/D147994
2022-06-02 10:43:43 +00:00
Tooru Fujisawa 827ee22a88 Bug 1772095 - Part 1: Use plain object for lazy getter in mobile/android/actors/. r=geckoview-reviewers,agi
Differential Revision: https://phabricator.services.mozilla.com/D147993
2022-06-02 10:43:42 +00:00
Makoto Kato 72b27d450d Bug 1715572 - DateTime prompt should be dismissed when focus is lost by content script. r=geckoview-reviewers,agi
Differential Revision: https://phabricator.services.mozilla.com/D147054
2022-06-02 01:45:00 +00:00
owlishDeveloper 316e89b03f Bug 1759560 - Use BuildConfig.DEBUG_BUILD instead of BuildConfig.DEBUG due to an Android bug which causes BuildConfig.DEBUG to be true in release builds r=geckoview-reviewers,agi
This is part 1 of the bug, it addresses the crush itself, and the weird case of BuildConfig.DEBUG being true in release builds (due to an external to gv bug). There will be a follow up, in a separate bug, to address the actual flow (Web Extensions opening web pages in popups and how we want to handle that).

Differential Revision: https://phabricator.services.mozilla.com/D147456
2022-05-31 23:26:19 +00:00
Jamie Nicol 2cf59fe695 Bug 1767128 - Rework and re-enable SurfaceControl rendering path on Android. r=agi,gfx-reviewers,aosmond
In bug 1762424 we introduced a rendering path on Android using the
SurfaceControl API, in order to work around a bug preventing recovery
from a GPU process crash. However, the initial implementation caused
this bug: repeatedly sending the same SurfaceControl objects over AIDL
to the GPU process resulted in them being leaked, eventually causing
severe display issues. Not only were we duplicating the SurfaceControl
for each widget, but each time a widget was resized too.

This patch reworks our usage of the SurfaceControl API to avoid ever
having to send them cross-process. Instead, we create a single child
SurfaceControl object for each SurfaceControl that is attached to a
widget. (Typically there will be a single one shared between all
widgets, changing only when the app is paused and resumed, which is
much fewer than one per widget per resize.)

In the parent process we obtain the Surfaces that will be rendered in
to from the child SurfaceControls, and only send those Surfaces to the
GPU process. Thankfully unlike SurfaceControls, sending Surfaces
cross-process does not cause leaks. When the GPU process dies we
simply destroy all of the child SurfaceControls, and recreate them
again on-demand.

Differential Revision: https://phabricator.services.mozilla.com/D147437
2022-05-31 18:41:07 +00:00
Olivia Hall f950793fec Bug 1659819 - GeckoView Save to PDF API r=nika,agi,geckoview-reviewers,jonalmeida,emilio
Adds a GeckoView save to PDF API that can be used to save the current session’s page content to a PDF. The API returns a Java InputStream that can be used by the consumer to process the PDF.

Differential Revision: https://phabricator.services.mozilla.com/D146245
2022-05-31 17:34:56 +00:00
Jonathan Almeida 5f5204b519 Bug 1771793 - Add imageUrl tests to WebNotificationTest r=geckoview-reviewers,calu
Follow-up unit tests for bug 1768574.

Differential Revision: https://phabricator.services.mozilla.com/D147685
2022-05-31 15:14:27 +00:00
Cathy Lu b22258d4fa Bug 1771261 - Add test API to clear HSTS bug r=geckoview-reviewers,agi
Used the browser code as an example (https://searchfox.org/mozilla-central/rev/9902932742fcdce2c956eeb81fd38350f5394ab2/security/manager/ssl/tests/mochitest/browser/browser_HSTS.js#161-164). It gets the site security service and calls clearAll(). I followed this example (https://hg.mozilla.org/mozilla-central/rev/44b1a295c186d1dbba00c047cbd3c706eca559b2) to add a test API.

Differential Revision: https://phabricator.services.mozilla.com/D147424
2022-05-31 15:09:16 +00:00
Makoto Kato c3e60ccc42 Bug 1715572 - Choice prompt should be dismissed when focus is lost by content script. r=geckoview-reviewers,agi
Differential Revision: https://phabricator.services.mozilla.com/D146913
2022-05-31 13:45:55 +00:00
Cosmin Sabou 9c4151b966 Backed out changeset 2ef92e77b85b (bug 1759560) for causing Android xpcshell timeouts. 2022-05-28 01:17:28 +03:00
owlishDeveloper b613996db5 Bug 1759560 - Use BuildConfig.DEBUG_BUILD instead of BuildConfig.DEBUG due to an Android bug which causes BuildConfig.DEBUG to be true in release builds r=geckoview-reviewers,agi
This is part 1 of the bug, it addresses the crush itself, and the weird case of BuildConfig.DEBUG being `true` in release builds (due to an external to gv bug).

There will be a follow up, in a separate bug, to address the actual flow (Web Extensions opening web pages in popups and how we want to handle that).

Differential Revision: https://phabricator.services.mozilla.com/D147456
2022-05-27 16:14:49 +00:00
Andreea Pavel 65a2647e01 Bug 1605001 - disable evaluateJS_canTimeout on debug r?#intermittent-reviewers
Differential Revision: https://phabricator.services.mozilla.com/D147459
2022-05-27 04:32:40 +00:00
Bogdan Szekely a13336eaa5 Backed out changeset 5e2d37a71968 (bug 1605001) for causing build bustages on GeckoSessionTestRuleTest.kt CLOSED TREE 2022-05-27 09:37:32 +03:00
Andreea Pavel 4042f9a438 Bug 1605001 - disable evaluateJS_canTimeout on debug r=geckoview-reviewers,agi DONTBUILD
Differential Revision: https://phabricator.services.mozilla.com/D147459
2022-05-27 04:32:40 +00:00
Jonathan Almeida 60306b4693 Bug 1768574 - Ensure imageUrl is set as a non-null value when serializing WebNotification r=agi
This is a non-null field in the WebNotification standard as well as what we get from JS,
so we should be consistent with this behaviour in the Java land as well.

Differential Revision: https://phabricator.services.mozilla.com/D147238
2022-05-26 17:15:36 +00:00
Cathy Lu 803a4e8449 Bug 1721220 - Add BAD_STS_CERT error r=geckoview-reviewers,nika,agi,owlish
Differential Revision: https://phabricator.services.mozilla.com/D146234
2022-05-25 17:51:11 +00:00
Olivia Hall 75a3ab8d68 Bug 1770220 - Add tests for GeckoInputStream.java r=agi
Added thread safety tests for GeckoInputStream.java and removed Gecko
thread assertion on `appendBuffer` in GeckoInputStream.

Differential Revision: https://phabricator.services.mozilla.com/D147114
2022-05-24 18:09:34 +00:00
Eitan Isaacson 77e94a114a Bug 1758540 - Pref on accessibility cache in Android. r=morgan
Differential Revision: https://phabricator.services.mozilla.com/D141638
2022-05-23 15:51:09 +00:00
Eitan Isaacson 4cc4578c5b Bug 1769640 - P2: Translate parent bounds to sceen bounds. r=geckoview-reviewers,agi
We used to get screen bounds from the gecko layer and needed to strip
the screen offsets for parent-relative offsets. It is now the opposite,
the bounds we get from gecko do not have the screen offsets of the top
View.

Differential Revision: https://phabricator.services.mozilla.com/D146508
2022-05-20 16:39:50 +00:00
Emilio Cobos Álvarez b6782fe2d5 Bug 1767346 - Use browsing context activeness rather than renderLayers to determine process priority. r=mccr8,mconley,geckoview-reviewers,agi
For desktop this should basically have no impact (maybe impacts tab
warming, but if we wanted we could set the priority hint from the tab
switcher the same way we set renderLayers), but Fenix always has
renderLayers as true, effectively, so we were never de-prioritizing the
background tab processes.

Differential Revision: https://phabricator.services.mozilla.com/D145351
2022-05-20 09:14:42 +00:00
Luca Greco 61c161b441 Bug 1739114 - Moved privileged WebExtensions permissions in their own JSONSchema type and added a new custom privileged keyword on each privileged manifest fields. r=robwu,mixedpuppy
This patch includes only the subset of D145687 changes related to the reworked JSONSchema data, plus some minor changes to Schemas.jsm to take the new
JSONSchema type ("PrivilegedPermissions") and the new custom JSONSchema keyword (the boolean "privileged" property used to identify manifest fields
only allowed in privileged extensions).

Besides the changes to the schema data, this patch is not expected to introduce any difference in behavior and so it could also land on its own
if needed (and the rest of the changes landed separately).

Differential Revision: https://phabricator.services.mozilla.com/D146800
2022-05-20 08:55:03 +00:00
Mike Hommey b798bb1980 Bug 1770251 - Centralize PGO mozconfig bits. r=firefox-build-system-reviewers,andi
Differential Revision: https://phabricator.services.mozilla.com/D146852
2022-05-20 08:31:46 +00:00
Marian-Vasile Laza fadf2bc15a Backed out changeset 7b3a02a659ef (bug 1767346) for causing geckoview failures. CLOSED TREE 2022-05-20 05:23:28 +03:00
Emilio Cobos Álvarez d6edcc48bb Bug 1767346 - Use browsing context activeness rather than renderLayers to determine process priority. r=mccr8,mconley,geckoview-reviewers,agi
For desktop this should basically have no impact (maybe impacts tab
warming, but if we wanted we could set the priority hint from the tab
switcher the same way we set renderLayers), but Fenix always has
renderLayers as true, effectively, so we were never de-prioritizing the
background tab processes.

Differential Revision: https://phabricator.services.mozilla.com/D145351
2022-05-20 00:48:32 +00:00
Agi Sferro 31f8c98911 Bug 1770010 - Keep reference to autofill session instead of using mSession. r=jonalmeida,calu
The android autofill framework requests a virtual structure for the webpage in
onProvideAutofillVirtualStructure and then at a later time will call autofill
when the user selects a value in the autofill app.

These method calls happen on the GeckoView, but our data is stored in the
GeckoSession (or rather, in the window that the GeckoSession represents).

Because of the asynchronicity of this process, we're not guaranteed that the
app hasn't switched the sesssion behind us in between the
onProvideAutofillVirtualStructure and autofill call, so we need to keep a
reference to the current autofill session when onProvide is called so that
we're sure that we are autofilling the right session.

We use a WeakReference to avoid keeping a window alive more than necessary, as
if the window is unloaded, there is no point in autofilling anyway.

Differential Revision: https://phabricator.services.mozilla.com/D146724
2022-05-19 22:07:38 +00:00
Marian-Vasile Laza 6924977975 Backed out changeset d3577f741ef5 (bug 1739114) for causing xpcshell failures on test_ext_permissions.js. CLOSED TREE 2022-05-19 23:35:07 +03:00
Luca Greco b928b2d0a8 Bug 1739114 - Moved privileged WebExtensions permissions in their own JSONSchema type and added a new custom privileged keyword on each privileged manifest fields. r=robwu,mixedpuppy
This patch includes only the subset of D145687 changes related to the reworked JSONSchema data, plus some minor changes to Schemas.jsm to take the new
JSONSchema type ("PrivilegedPermissions") and the new custom JSONSchema keyword (the boolean "privileged" property used to identify manifest fields
only allowed in privileged extensions).

Besides the changes to the schema data, this patch is not expected to introduce any difference in behavior and so it could also land on its own
if needed (and the rest of the changes landed separately).

Differential Revision: https://phabricator.services.mozilla.com/D146800
2022-05-19 18:20:59 +00:00
Rob Wu 67f9acbe63 Bug 1766047 - Reject updates that have a mismatching version r=rpl,geckoview-reviewers,agi
Differential Revision: https://phabricator.services.mozilla.com/D144498
2022-05-18 15:13:48 +00:00
Butkovits Atila 1013e73681 Backed out changeset b831ee293939 (bug 1766047) for causing linting failures. CLOSED TREE 2022-05-18 02:04:13 +03:00
Mike Hommey efb6750853 Bug 1769666 - Re-enable PGO jarlog on Android. r=agi
It was disabled in bug 1539933 but since then, the signing scripts have
been fixed so the work around shouldn't be necessary anymore.

Differential Revision: https://phabricator.services.mozilla.com/D146518
2022-05-17 21:38:19 +00:00
Rob Wu 088fac1bec Bug 1766047 - Reject updates that have a mismatching version r=rpl,geckoview-reviewers,agi
Differential Revision: https://phabricator.services.mozilla.com/D144498
2022-05-17 21:08:21 +00:00
Sergio Villar Senin a253868f5e Bug 1769283 - Unable to set MSAA samples in GeckoView. r=agi
GeckoView is still using the deleted gl.msaa-level setting. As the rest of the engine does not use it,
modifying it basically became a noop. Replacing it by webgl.msaa-samples does the trick and allows
GeckoView clients to modify the antialiasing settings in WebGL.

Differential Revision: https://phabricator.services.mozilla.com/D146322
2022-05-17 14:24:39 +00:00
Makoto Kato cad300b928 Bug 1758800 - Watch the modification of child nodes in <select> element. r=agi,ohall
This is a kind of bug 1263887 for GeckoView.

We should update the prompt when child nodes in `<select>` element is modified.

I add `PromptInstanceDelegate.onPromptUpdate` to update the prompt's content.
Browser application should implement it if <select> element is updated during
showing the prompt.

Differential Revision: https://phabricator.services.mozilla.com/D144538
2022-05-17 10:55:45 +00:00