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

30387 Коммитов

Автор SHA1 Сообщение Дата
Aaron Klotz b55bf5ac03 Bug 1611554: Part 3 - Use jinja templates to generate GeckoChildProcessServices.java and AndroidManifest_overlay.xml; r=geckoview-reviewers,agi
This patch converts `GeckoChildProcessServices.java` into a jinja template.
We also add an overlay generated from a jinja template for `AndroidManifest.xml`
that provides the definitions for content process services.

Note that even though Gradle supports simple substitution of variables in
manifests, I opted not to use that functionality. Since we need the more
powerful template functionality that jinja provides, I felt that having multiple
ways to substitute information into the manifest would be confusing, so we're
using jinja exclusively.

Differential Revision: https://phabricator.services.mozilla.com/D82578
2021-01-13 01:19:15 +00:00
Aaron Klotz ae684a1dee Bug 1611554: Part 2 - Modify GeckoView build to generate manifest and service definitions from jinja files; r=nalexander,geckoview-reviewers,snorp
* We add a config option for setting the number of content services;
* We add a config option to indicate whether content services should be isolated.
  This one is just a `project_flag` since it doesn't really need the ability to
  be overridden; it's something whose default we would want to flip when the
  time comes;
* We set a dependency so that mobile/android/base/pre-export is executed;
* We add the `gen_from_jinja.py` script which is mostly just a dumb shim that
  takes the input template and the config arguments, instantiates jinja,
  generates the final output, and dumps it to the output fd;
* We add the requisite `moz.build` statements to generate the manifest overlay
  and the service definitions;
* We update `build.gradle` so that Gradle knows to look for the generated files
  when building the apk.

Differential Revision: https://phabricator.services.mozilla.com/D82577
2021-01-13 17:32:54 +00:00
Butkovits Atila bcdf48f6d6 Backed out 3 changesets (bug 1611554) for causing bustage on recurse.mk. CLOSED TREE
Backed out changeset bb1ce63d73ec (bug 1611554)
Backed out changeset 0d4317da1006 (bug 1611554)
Backed out changeset dc905e5db0cc (bug 1611554)
2021-01-13 03:16:17 +02:00
Aaron Klotz 898fb17519 Bug 1611554: Part 3 - Use jinja templates to generate GeckoChildProcessServices.java and AndroidManifest_overlay.xml; r=geckoview-reviewers,agi
This patch converts `GeckoChildProcessServices.java` into a jinja template.
We also add an overlay generated from a jinja template for `AndroidManifest.xml`
that provides the definitions for content process services.

Note that even though Gradle supports simple substitution of variables in
manifests, I opted not to use that functionality. Since we need the more
powerful template functionality that jinja provides, I felt that having multiple
ways to substitute information into the manifest would be confusing, so we're
using jinja exclusively.

Differential Revision: https://phabricator.services.mozilla.com/D82578
2021-01-13 00:38:25 +00:00
Aaron Klotz 669a8ecdcc Bug 1611554: Part 2 - Modify GeckoView build to generate manifest and service definitions from jinja files; r=nalexander,geckoview-reviewers,snorp
* We add a config option for setting the number of content services;
* We add a config option to indicate whether content services should be isolated.
  This one is just a `project_flag` since it doesn't really need the ability to
  be overridden; it's something whose default we would want to flip when the
  time comes;
* We set a dependency so that mobile/android/base/pre-export is executed;
* We add the `gen_from_jinja.py` script which is mostly just a dumb shim that
  takes the input template and the config arguments, instantiates jinja,
  generates the final output, and dumps it to the output fd;
* We add the requisite `moz.build` statements to generate the manifest overlay
  and the service definitions;
* We update `build.gradle` so that Gradle knows to look for the generated files
  when building the apk.

Differential Revision: https://phabricator.services.mozilla.com/D82577
2021-01-13 00:24:06 +00:00
Aaron Klotz affae3f451 Bug 1686100: Follow-up to fix lint failure; r=bustage
CLOSED TREE
Differential Revision: https://phabricator.services.mozilla.com/D101417
2021-01-11 23:53:07 +00:00
Aaron Klotz a30b099b2e Bug 1686100: Route Service.onTrimMemory notifications through to Gecko's memory-pressure observer; r=geckoview-reviewers,agi
Gecko already broadcasts `memory-pressure` events from the parent process down
to its content processes, but that excludes any case where Android is calling
`Service.onTrimMemory` directly on the content processes.

This patch handles `onTrimMemory` and translates its requests into
`memory-pressure` events that various Gecko components (including the GC)
listen for. We only handle the severity levels for background processes for now,
as memory cleanup for background processes is currently the most pressing issue
(and I'm not even sure what we could do for foreground memory cleanup without
janking anything).

The argument to `memory-pressure` should depend on the severity of the request
as well as the frequency of pressure events. In particular:

* The most severe request, `TRIM_MEMORY_COMPLETE`, is a last-ditch effort to
  reduce memory. This should trigger a full GC, so we use `low-memory` here.
* "New" requests, where "new" is defined as an event that was triggered in
  excess of 10 seconds since the previous "new" event, also gets a full GC, so we
  use `low-memory` here as well.
* Additional requests that do not fall under either of the above criteria
  receive the `low-memory-ongoing` event, which omits a full GC. The idea here
  is that, when low memory notifications occur in rapid succession, repeatedly
  doing full GCs over and over is just going to hang the Gecko thread and not
  result in any notable improvement.

Differential Revision: https://phabricator.services.mozilla.com/D101406
2021-01-11 22:08:00 +00:00
Agi Sferro ea5931e9fd Bug 1685614 - Use GeckoResult in EventDispatcher. r=owlish,snorp
This patch adds `queryString`, `queryBoolean`, `queryVoid` and `queryBundle` to
`EventDispatcher` in place of `dispatch(type, message, callback)`.

These `query*` methods returns a `GeckoResult` which can be manipulated using
`GeckoResult.map`.

Differential Revision: https://phabricator.services.mozilla.com/D96951
2021-01-07 22:24:46 +00:00
Agi Sferro 9eb3454733 Bug 1684761 - Pass null principal for external loads. r=aklotz,ckerschb
Differential Revision: https://phabricator.services.mozilla.com/D100837
2021-01-07 21:36:33 +00:00
Kartik Gautam 7ae6aea145 Bug 1684173 - Add newline character at end of files when missing r=sylvestre,geckoview-reviewers,agi
Differential Revision: https://phabricator.services.mozilla.com/D100484
2021-01-07 08:53:08 +00:00
Hiroyuki Ikezoe 510659d878 Bug 1674104 - Reset the vertical clipping value to zero whenever we change the dynamic toolbar max height. r=botond
So that we will not mis-align position:fixed elements with the old stale
clipping value.

Differential Revision: https://phabricator.services.mozilla.com/D100862
2021-01-06 18:05:52 +00:00
Agi Sferro 83036590b9 Bug 1682668 - Improve error messages when TabDelegate is not present. r=owlish
Differential Revision: https://phabricator.services.mozilla.com/D99851
2021-01-06 20:17:51 +00:00
Agi Sferro d07e5d1640 Bug 1682668 - Add GeckoResult.map. r=owlish,aklotz
This method allows callers to synchronously map a GeckoResult value to another
value.

Differential Revision: https://phabricator.services.mozilla.com/D96950
2021-01-06 20:18:54 +00:00
Makoto Kato c20f1137cb Bug 1624562 - Remove Fennec theme files. r=geckoview-reviewers,agi
Now, Fennec theme files (mobile/android/themes/core) are unused and
GV's files are in mobile/android/themes/geckoview.

So we can remove Fennec theme files.

Differential Revision: https://phabricator.services.mozilla.com/D100755
2021-01-05 20:14:15 +00:00
Agi Sferro 4de0910c2e Bug 1671497 - Remove deprecated loadUri methods. r=aklotz
Differential Revision: https://phabricator.services.mozilla.com/D99836
2021-01-05 22:33:09 +00:00
Agi Sferro 8238f1d6fa Bug 1671497 - Removed deprecated REPLACED_UNSAFE_CONTENT r=aklotz
Differential Revision: https://phabricator.services.mozilla.com/D99835
2021-01-05 22:33:17 +00:00
Geoff Brown 13ad2a5fbe Bug 1643448 - Update test handling of ACCESS_WIFI_STATE; r=geckoview-reviewers,bc,agi
Add ACCESS_WIFI_STATE to the gve manifest, same as androidTest.
Remove ACCESS_WIFI_STATE from the list of pm grants, since it is not of
type dangerous.

Differential Revision: https://phabricator.services.mozilla.com/D100727
2021-01-05 20:14:23 +00:00
owlishDeveloper 1e40c5074f Bug 1683160 - Add a note on WebResponse.body to documentation r=geckoview-reviewers,agi
Differential Revision: https://phabricator.services.mozilla.com/D100704
2021-01-04 19:28:36 +00:00
Cosmin Sabou 2978aa00a3 Backed out changeset dbed1cdf588f (bug 1684173) for mochitest plain and devtools failures. a=backout DONTBUILD 2020-12-28 00:43:51 +02:00
Kartik Gautam 775cdec032 Bug 1684173 - Add newline character at end of files when missing r=sylvestre
Depends on D100443

Differential Revision: https://phabricator.services.mozilla.com/D100484
2020-12-27 11:43:41 +00:00
owlishDeveloper df49be0905 Bug 1656336: Implement Web Extension downloads.download() - GV API r=geckoview-reviewers,robwu,agi
Differential Revision: https://phabricator.services.mozilla.com/D99573
2020-12-23 01:56:37 +00:00
owlishDeveloper a5467fbd19 Bug 1656336: Implement Web Extension downloads.download() - JS part r=geckoview-reviewers,robwu,agi
Differential Revision: https://phabricator.services.mozilla.com/D99572
2020-12-23 01:37:09 +00:00
Aaron Klotz a4f8c7ec04 Bug 1654817: Part 2 - Bump dom.ipc.processCount pref to 3 on Nightly; r=geckoview-reviewers,agi
I want to start with 3 so that we initially get a good look at how things run
with multiple processes, but when we easily hit the limit. We'll increase to
our final process count in a future bug.

Differential Revision: https://phabricator.services.mozilla.com/D94884
2020-11-23 17:16:05 +00:00
Makoto Kato 1ef677536a Bug 1682565 - Remove unused remained Fennec L10N resources. r=geckoview-reviewers,agi
`devicePrompt.properties` ... Presentation API UI frontend for Fennec.
`phishing.dtd` ... Safe browsing API UI on Fennec.
`pippki.properties` ... NSS Dialog UI such as importing certificate of Fennec.
`sync.properties` ... Firefox sync UI on Fennec.
`webcompatReporter.properties` - Web compat addon on Fennec

`passwordmgr.properties` still be referenced from `LoginManagerPrompter.jsm`.
So, I'm not sure we should keep this.

Differential Revision: https://phabricator.services.mozilla.com/D99798
2020-12-17 16:45:42 +00:00
Emilio Cobos Álvarez 9715d1f96c Bug 1475316 - Rename -moz-autofill to just autofill. r=geckoview-reviewers,esawin,boris
No compat impact, as this remains an internal pseudo-class for the time
being.

Differential Revision: https://phabricator.services.mozilla.com/D99295
2020-12-16 08:16:08 +00:00
Dorel Luca 67c6219a2e Backed out changeset a9b7489b5a3a (bug 1475316) for Browser-chrome failures in browser/base/content/test/static/browser_parsable_css.js. CLOSED TREE 2020-12-16 03:42:27 +02:00
owlishDeveloper bec56f900f Bug 1665157 - Remove deprecated onExternalResponse API r=geckoview-reviewers,agi
Differential Revision: https://phabricator.services.mozilla.com/D99829
2020-12-15 20:08:26 +00:00
Emilio Cobos Álvarez 92c6fb3495 Bug 1475316 - Rename -moz-autofill to just autofill. r=geckoview-reviewers,esawin,boris
No compat impact, as this remains an internal pseudo-class for the time
being.

Differential Revision: https://phabricator.services.mozilla.com/D99295
2020-12-15 19:39:59 +00:00
Emilio Cobos Álvarez f4c5f128e9 Bug 1635914 - Remove GeckoView workaround. r=agi
Differential Revision: https://phabricator.services.mozilla.com/D99581
2020-12-15 18:28:44 +00:00
Eugen Sawin 7c4abef929 Bug 1677838 - [1.1] Verify the image resource size string is valid before accepting it. r=geckoview-reviewers,agi
Differential Revision: https://phabricator.services.mozilla.com/D97801
2020-12-08 21:07:30 +00:00
Razvan Maries 305a4b2b0e Backed out changeset e764199bb911 (bug 1677838) for Lint failure on ImageResource.java. CLOSED TREE 2020-12-08 20:55:28 +02:00
Eugen Sawin e0d704418a Bug 1677838 - [1.0] Verify the image resource size string is valid before accepting it. r=geckoview-reviewers,agi
Differential Revision: https://phabricator.services.mozilla.com/D97801
2020-12-08 18:26:20 +00:00
Bogdan Tara ade4d82c59 Backed out changeset 98c3e6255c58 (bug 1597600) for browser_installssl.js failures CLOSED TREE 2020-12-07 21:01:50 +02:00
R. Martinho Fernandes c99fe51d2d Bug 1597600 - make certificate overrides depend on origin attributes r=keeler,geckoview-reviewers,smaug,agi
Differential Revision: https://phabricator.services.mozilla.com/D91962
2020-12-07 17:10:52 +00:00
Geoff Brown bebfc32efd Bug 1643448 - Add ACCESS_WIFI_STATE permission and disable failing tests in dom/presentation; r=geckoview-reviewers,bc,agi
Add the permission to the geckoview manifest, as previously attempted. Also disable failing tests
to enable a green test run. Add permission to adb.py grants list for good measure.

Differential Revision: https://phabricator.services.mozilla.com/D98809
2020-12-07 16:09:06 +00:00
owlishDeveloper f2128d3927 Bug 1680622 - Remove dead code r=geckoview-reviewers,agi
Differential Revision: https://phabricator.services.mozilla.com/D98833
2020-12-05 02:51:09 +00:00
Agi Sferro 7c25d2ff06 Bug 1625233 - Add smoke test for browsingData.settings. r=robwu,owlish
Depends on D96154

Differential Revision: https://phabricator.services.mozilla.com/D98368
2020-12-04 21:43:24 +00:00
Agi Sferro be73b6f3a4 Bug 1625233 - Implement ext-browsingData on Android. r=robwu,owlish,droeh
Depends on D96152

Differential Revision: https://phabricator.services.mozilla.com/D96153
2020-12-04 21:07:58 +00:00
Agi Sferro 7afeed9b20 Bug 1625233 - Add EventCallback.resolveTo. r=snorp
Differential Revision: https://phabricator.services.mozilla.com/D96150
2020-12-04 20:52:45 +00:00
Agi Sferro 167d5effe6 Bug 1672262 - Remove workaround for duplicated START events. r=aklotz
The underlying problem has been fixed in Bug 1661833.

Differential Revision: https://phabricator.services.mozilla.com/D98686
2020-12-04 20:11:13 +00:00
Agi Sferro 242368746a Bug 1644561 - Add stress test for capturePixels(). r=esawin
Differential Revision: https://phabricator.services.mozilla.com/D80759
2020-09-12 01:09:54 +00:00
Chris Martin 886c2c65a8 Bug 1657404 - Implement a strongly-typed, service-dependent gamepad handle r=handyman,aklotz
Currently, the gamepad code uses a uint32_t as a handle and does some trickery
with it by trying to create a unique ID and adding an offset to it for VR code.

This can (and has) led to errors where the developer forgets to perform the
arithmetic and sends the wrong number to the wrong manager.

This change created a strongly-typed handle that remembers which service it
belongs to. This should eliminate such accidents.

Differential Revision: https://phabricator.services.mozilla.com/D96273
2020-12-02 23:06:05 +00:00
Eugen Sawin 96296324c9 Bug 1679897 - [1.0] Remove GV onActivated order workaround. r=geckoview-reviewers,agi
Differential Revision: https://phabricator.services.mozilla.com/D98256
2020-12-01 02:53:51 +00:00
Eugen Sawin 48fe64d4de Bug 1674110 - [1.0] Avoid triggering default metadata events in tests. r=geckoview-reviewers,alwu,agi
Differential Revision: https://phabricator.services.mozilla.com/D98255
2020-12-01 02:52:38 +00:00
Cristina Coroiu f795b6e3c2 Backed out 2 changesets (bug 1654817) on request by aklotz
Backed out changeset bf721cd8ab14 (bug 1654817)
Backed out changeset fb1c314e6394 (bug 1654817)
2020-11-23 19:12:29 +02:00
Simon Giesecke 971b645fe3 Bug 1660470 - Add missing include directives/forward declarations. r=nika
Differential Revision: https://phabricator.services.mozilla.com/D87865
2020-11-23 16:21:38 +00:00
pbz 5d2e319a03 Bug 1338637 - Ask user for confirmation before folder upload. r=Gijs,geckoview-reviewers,baku
Differential Revision: https://phabricator.services.mozilla.com/D95324
2020-11-17 17:15:51 +00:00
Markus Stange 8b72e2eb8d Bug 1677868 - Rename "Java Main Thread" to "AndroidUI (Java)" in the profiler. r=canaltinova
Differential Revision: https://phabricator.services.mozilla.com/D97378
2020-11-18 23:15:27 +00:00
Razvan Maries efd002addd Backed out 2 changesets (bug 1677396, bug 1677868) for perma failures on browser_startup_syncIPC.js. CLOSED TREE
Backed out changeset e43e56bfbfc6 (bug 1677396)
Backed out changeset 0ecfa354c74c (bug 1677868)
2020-11-19 01:03:25 +02:00
Markus Stange a121e8f0c7 Bug 1677868 - Rename "Java Main Thread" to "AndroidUI (Java)" in the profiler. r=canaltinova
Differential Revision: https://phabricator.services.mozilla.com/D97378
2020-11-18 21:01:46 +00:00