Commit Graph

29618 Commits

Author SHA1 Message Date
James Willcox
97a1646a17 Bug 1619778 - Remove unused GeckoThread#waitOnGecko methods. r=geckoview-reviewers,aklotz
Differential Revision: https://phabricator.services.mozilla.com/D66584

--HG--
extra : moz-landing-system : lando
2020-03-12 15:33:57 +00:00
Mike Shal
4fabfd049b Bug 1607193 - Remove MOZ_AUTOMATION_L10N_CHECK; r=firefox-build-system-reviewers,rstewart
Differential Revision: https://phabricator.services.mozilla.com/D66715

--HG--
extra : moz-landing-system : lando
2020-03-13 18:34:05 +00:00
Agi Sferro
e4e57c8343 Bug 1619796 - Don't fire onLoadRequest for embedder-initiated loads. r=smaug,droeh
Differential Revision: https://phabricator.services.mozilla.com/D66695

--HG--
extra : moz-landing-system : lando
2020-03-13 18:22:16 +00:00
Agi Sferro
5f34e8ebcf Bug 1621848 - Build examples during |mach build|. r=aklotz
Differential Revision: https://phabricator.services.mozilla.com/D66666

--HG--
extra : moz-landing-system : lando
2020-03-13 18:11:45 +00:00
Agi Sferro
cca54c6e55 Bug 1621848 - Fix setMessageDelegate API change in example. r=aklotz
Differential Revision: https://phabricator.services.mozilla.com/D66665

--HG--
extra : moz-landing-system : lando
2020-03-13 18:11:43 +00:00
Agi Sferro
4047079124 Bug 1621385 - Track the top non-private browsing tab in mobileWindowTracker. r=mixedpuppy,snorp
Differential Revision: https://phabricator.services.mozilla.com/D66311

--HG--
rename : mobile/android/geckoview/src/androidTest/assets/web_extensions/tabs-activate-remove/manifest.json => mobile/android/geckoview/src/androidTest/assets/web_extensions/tabs-activate-remove-2/manifest.json
extra : moz-landing-system : lando
2020-03-13 18:11:58 +00:00
Agi Sferro
bf7b46f3d1 Bug 1621385 - Account for unaccesible tabs in mobile's WindowTracker.getAll. r=mixedpuppy
Differential Revision: https://phabricator.services.mozilla.com/D66310

--HG--
extra : moz-landing-system : lando
2020-03-13 18:12:08 +00:00
Brendan Dahl
d36ef4c58b Bug 1621503 - Add update add-on menu item for GeckoView example. r=geckoview-reviewers,agi
Differential Revision: https://phabricator.services.mozilla.com/D66718

--HG--
extra : moz-landing-system : lando
2020-03-13 17:35:04 +00:00
Brendan Dahl
a32e64c031 Bug 1621503 - Notify the extension system when GeckoView has started. r=geckoview-reviewers,agi
The extension background page should be loaded when either an event needs
to be sent to it or after the browser has started up. When an extension
is updated the special startup event listeners do not appear to be built
yet and GeckoView was not sending browser started notification, which meant the
background page never being loaded.

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

--HG--
extra : moz-landing-system : lando
2020-03-13 17:34:35 +00:00
Eugen Sawin
1fc127bf7a Bug 1620395 - [1.0] Deprecate GeckoView Snapshot Telemetry API. r=geckoview-reviewers,snorp,agi
Differential Revision: https://phabricator.services.mozilla.com/D66077

--HG--
extra : moz-landing-system : lando
2020-03-12 20:42:27 +00:00
Thomas Wisniewski
c5824ee72d Bug 1612097 - Add ability to cancel the GeckoResult returned by WebExtensionControll.install(BuiltIn); r=snorp,agi
Make the GeckoResult<WebExtension> returned by WebExtensionControll.install(BuiltIn) cancellable

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

--HG--
extra : moz-landing-system : lando
2020-03-12 19:03:46 +00:00
Geoff Brown
9ff45f39cd Bug 1556051 - Remove 'mach android-emulator' support for 'x86-4.2' avd; r=aerickson
This is a really old avd, no longer used in automation; it is obsolete.

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

--HG--
extra : moz-landing-system : lando
2020-03-12 16:57:37 +00:00
John Lin
0cfcd57cbd Bug 1572541 - ensure buffer capacity. r=bryce
Differential Revision: https://phabricator.services.mozilla.com/D66475

--HG--
extra : moz-landing-system : lando
2020-03-11 19:43:58 +00:00
Mike Hommey
72fd664abd Bug 1621529 - Use MOZ_FETCHES_DIR for pgo file paths. r=froydnj
This is both for future proofing (fetches could move any time although
they likely won't), and to fix the path on the future Windows PGO
cross builds, where the fetches path is not under $WORKSPACE.

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

--HG--
extra : moz-landing-system : lando
2020-03-11 10:36:11 +00:00
Mihai Alexandru Michis
f025ef4cb5 Backed out changeset fac88f2cec9c (bug 1621476) for causing failures in test_interfaces_secureContext.html
CLOSED TREE
2020-03-11 23:51:44 +02:00
James Willcox
239787bc8d Bug 1621129 - Remove unused sync prefs from GeckoView r=rfkelly
Differential Revision: https://phabricator.services.mozilla.com/D66120

--HG--
extra : moz-landing-system : lando
2020-03-09 22:02:53 +00:00
James Willcox
c7fcd2dac7 Bug 1621476 - Disable WebAuthn on GeckoView r=jcj
We'll enable it once it's actually supported.

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

--HG--
extra : moz-landing-system : lando
2020-03-11 14:15:55 +00:00
Kashav Madan
2dbd4a809e Bug 1578070 - Rename ClientOpenWindowInCurrentProcess and unskip test_openWindow.html, r=nika
Differential Revision: https://phabricator.services.mozilla.com/D65232

--HG--
extra : moz-landing-system : lando
2020-03-10 20:27:49 +00:00
Mike Shal
4017368b2f Bug 1620744 - Use py3_action for cases that already support it; r=firefox-build-system-reviewers,rstewart
Differential Revision: https://phabricator.services.mozilla.com/D65846

--HG--
extra : moz-landing-system : lando
2020-03-10 20:19:13 +00:00
Daniel Varga
09acd57d19 Backed out 13 changesets (bug 1620744) for causing diffoscope failures firefox/browser/chrome/browser/content/browser/built_in_addons.json
CLOSED TREE

Backed out changeset 6beda54bcb9b (bug 1620744)
Backed out changeset a1e97f0b91ef (bug 1620744)
Backed out changeset b8faa0184d4f (bug 1620744)
Backed out changeset 3bc8fda68107 (bug 1620744)
Backed out changeset 8e95b21b2ae3 (bug 1620744)
Backed out changeset 1de09de1a802 (bug 1620744)
Backed out changeset 622a2f7414fa (bug 1620744)
Backed out changeset 3372c9ab721c (bug 1620744)
Backed out changeset 0997313a9f99 (bug 1620744)
Backed out changeset 2fa34749bbfa (bug 1620744)
Backed out changeset 6d597d2eb792 (bug 1620744)
Backed out changeset 78e78f7c7b26 (bug 1620744)
Backed out changeset 6e4d85b19f88 (bug 1620744)
2020-03-10 21:13:18 +02:00
Mike Shal
a1ea58eb94 Bug 1620744 - Use py3_action for cases that already support it; r=firefox-build-system-reviewers,rstewart
Differential Revision: https://phabricator.services.mozilla.com/D65846

--HG--
extra : moz-landing-system : lando
2020-03-09 22:02:22 +00:00
Aaron Klotz
5625e42498 Bug 1608302: Part 3 - Update the content process's service name in ContentDelgateTest; r=geckoview-reviewers,snorp
We'll want to make some changes to this test when we enable e10s-multi by
default, but for now we just need to update the name of the single content
process to reflect the naming changes that were done in part 1 of this
patch series.

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

--HG--
extra : moz-landing-system : lando
2020-03-10 16:31:47 +00:00
Aaron Klotz
55e1fadd51 Bug 1608302: Part 2 - Modify GeckoProcessManager to support multiple content processes; r=geckoview-reviewers,snorp
We change a lot of things in this patch:

* `ChildConnection` now inherits from `ServiceAllocator.InstanceInfo`, which
  imbues the former with service allocation superpowers.

* We remove the `IBinder.linkToDeath` call and the `IBinder.DeathRecipient`
  callback; a close review of the service binding APIs (and the actual
  Android source code) clearly shows that
  `ServiceConnection.onServiceDisconnected` already performs that role.

* We also greatly simplify unbinding, as a successful `Context.unbindService`
  call does not require a subsequent `onServiceDisconnected` notification;
  The `ServiceConnection` callbacks should be thought of as pertaining to
  the acquisition and loss of `Binder` connections. On that note, to improve
  the clarity of what those callbacks do, we now implement them as
  `onBinderConnected` and `onBinderConnectionLost` overrides originating from
  `ServiceAllocator.InstanceInfo`.

* We add the `ConnectionManager` class which handles the organization of
  tracking which processes exist with which pid. Its public methods are named
  such that it should be very clear what their purposes are.

* This patch adds a minimal amount of priority management code to
  `ConnectionManager`. Right now we assume that everything is running at
  `PriorityLevel.FOREGROUND` (i.e. `Context.BIND_IMPORTANT`). This will be
  further improved in bug 1620145.

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

--HG--
extra : moz-landing-system : lando
2020-03-10 16:35:13 +00:00
Aaron Klotz
26619139b9 Bug 1608302: Part 1 - Modify service definitions to support multiple content processes; r=geckoview-reviewers,snorp
For testing purposes, we'll only support 3 at the moment.

Note that this does not materially affect our test builds, as e10s-multi is
still govered by the `dom.ipc.processCount` Gecko pref.

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

--HG--
extra : moz-landing-system : lando
2020-03-10 16:31:51 +00:00
Aaron Klotz
ea7a8f8c69 Bug 1608301: Part 3 - Add an allocator for generating unique service names and instance IDs; r=geckoview-reviewers,snorp
`ServiceAllocator` wraps the various `Context.bindService` APIs and manages
the allocation of service names (in the case of non-isolated services) or
instance names (in the case of isolated services on Android 10+).

During the first allocation of a content process, we construct a policy that
is used for all content process allocations.

The `DefaultContentPolicy` computes the maximum number of content processes
and then allocates those names using a `BitSet`.

The `IsolatedContentPolicy` tracks the number of live content processes, but
simply uses a monotonically-increasing counter for generating instance IDs.

This patch also adds a `ServiceUtils` class that contains numerous functions
relating to generating service names and retrieving information about
service definitions in this package.

* Content processes are now named `tab0` through `tabN`. When a single content
  process name is used (either for single-e10s or for the process name
  used by isolated services), we always use `tab0`.

* I am not wedded to the names of the priorities used in the `PriorityLevel`
  enum -- suggestions welcome!

* Some of the `ServiceUtils` functions could arguably go into `ContextUtils`
  instead, but I thought that this was fine since they are fairly specific
  to this use case.

* Further modifications will need to be made to support multiple priorities.
  This patch is enough to get everything up and running for testing, with
  further prioritization work being done in bug 1620145.

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

--HG--
extra : moz-landing-system : lando
2020-03-10 16:31:54 +00:00
Aaron Klotz
8777b329c0 Bug 1608301: Part 2 - Add an additional assertion type to XPCOMEventTarget and change them to throw AssertionErrors; r=geckoview-reviewers,snorp
Differential Revision: https://phabricator.services.mozilla.com/D65635

--HG--
extra : moz-landing-system : lando
2020-03-10 16:31:42 +00:00
Aaron Klotz
aff6328266 Bug 1608301: Part 1 - Add an overload to ContextUtils.getCurrentPackageInfo that accepts flags; r=geckoview-reviewers,snorp
Differential Revision: https://phabricator.services.mozilla.com/D65634

--HG--
extra : moz-landing-system : lando
2020-03-10 16:31:45 +00:00
Cosmin Sabou
e283da9b59 Backed out 6 changesets (bug 1608302, bug 1608301) for linting failure on GeckoProcessManager.java.
CLOSED TREE

Backed out changeset 5a78c81ddaa7 (bug 1608302)
Backed out changeset 81b75065d43d (bug 1608302)
Backed out changeset e75565cd4103 (bug 1608302)
Backed out changeset dba5330a46dc (bug 1608301)
Backed out changeset 7b9e2ba30ff2 (bug 1608301)
Backed out changeset 3a2342e9440f (bug 1608301)
2020-03-10 18:24:56 +02:00
Agi Sferro
fe6beee13d Bug 1614760 - Add telemetryInfo to Addon Install object. r=rpl
Differential Revision: https://phabricator.services.mozilla.com/D66093

--HG--
extra : moz-landing-system : lando
2020-03-10 15:24:50 +00:00
Aaron Klotz
4102fab98c Bug 1608302: Part 3 - Update the content process's service name in ContentDelgateTest; r=geckoview-reviewers,snorp
We'll want to make some changes to this test when we enable e10s-multi by
default, but for now we just need to update the name of the single content
process to reflect the naming changes that were done in part 1 of this
patch series.

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

--HG--
extra : moz-landing-system : lando
2020-03-09 19:26:07 +00:00
Aaron Klotz
764af7e70d Bug 1608302: Part 2 - Modify GeckoProcessManager to support multiple content processes; r=geckoview-reviewers,snorp
We change a lot of things in this patch:

* `ChildConnection` now inherits from `ServiceAllocator.InstanceInfo`, which
  imbues the former with service allocation superpowers.

* We remove the `IBinder.linkToDeath` call and the `IBinder.DeathRecipient`
  callback; a close review of the service binding APIs (and the actual
  Android source code) clearly shows that
  `ServiceConnection.onServiceDisconnected` already performs that role.

* We also greatly simplify unbinding, as a successful `Context.unbindService`
  call does not require a subsequent `onServiceDisconnected` notification;
  The `ServiceConnection` callbacks should be thought of as pertaining to
  the acquisition and loss of `Binder` connections. On that note, to improve
  the clarity of what those callbacks do, we now implement them as
  `onBinderConnected` and `onBinderConnectionLost` overrides originating from
  `ServiceAllocator.InstanceInfo`.

* We add the `ConnectionManager` class which handles the organization of
  tracking which processes exist with which pid. Its public methods are named
  such that it should be very clear what their purposes are.

* This patch adds a minimal amount of priority management code to
  `ConnectionManager`. Right now we assume that everything is running at
  `PriorityLevel.FOREGROUND` (i.e. `Context.BIND_IMPORTANT`). This will be
  further improved in bug 1620145.

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

--HG--
extra : moz-landing-system : lando
2020-03-10 15:20:42 +00:00
Aaron Klotz
4f9749ade2 Bug 1608302: Part 1 - Modify service definitions to support multiple content processes; r=geckoview-reviewers,snorp
For testing purposes, we'll only support 3 at the moment.

Note that this does not materially affect our test builds, as e10s-multi is
still govered by the `dom.ipc.processCount` Gecko pref.

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

--HG--
extra : moz-landing-system : lando
2020-03-09 19:29:02 +00:00
Aaron Klotz
09593d71de Bug 1608301: Part 3 - Add an allocator for generating unique service names and instance IDs; r=geckoview-reviewers,snorp
`ServiceAllocator` wraps the various `Context.bindService` APIs and manages
the allocation of service names (in the case of non-isolated services) or
instance names (in the case of isolated services on Android 10+).

During the first allocation of a content process, we construct a policy that
is used for all content process allocations.

The `DefaultContentPolicy` computes the maximum number of content processes
and then allocates those names using a `BitSet`.

The `IsolatedContentPolicy` tracks the number of live content processes, but
simply uses a monotonically-increasing counter for generating instance IDs.

This patch also adds a `ServiceUtils` class that contains numerous functions
relating to generating service names and retrieving information about
service definitions in this package.

* Content processes are now named `tab0` through `tabN`. When a single content
  process name is used (either for single-e10s or for the process name
  used by isolated services), we always use `tab0`.

* I am not wedded to the names of the priorities used in the `PriorityLevel`
  enum -- suggestions welcome!

* Some of the `ServiceUtils` functions could arguably go into `ContextUtils`
  instead, but I thought that this was fine since they are fairly specific
  to this use case.

* Further modifications will need to be made to support multiple priorities.
  This patch is enough to get everything up and running for testing, with
  further prioritization work being done in bug 1620145.

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

--HG--
extra : moz-landing-system : lando
2020-03-10 15:25:03 +00:00
Aaron Klotz
991c2ccac2 Bug 1608301: Part 2 - Add an additional assertion type to XPCOMEventTarget and change them to throw AssertionErrors; r=geckoview-reviewers,snorp
Differential Revision: https://phabricator.services.mozilla.com/D65635

--HG--
extra : moz-landing-system : lando
2020-03-09 19:23:16 +00:00
Aaron Klotz
ef896c8896 Bug 1608301: Part 1 - Add an overload to ContextUtils.getCurrentPackageInfo that accepts flags; r=geckoview-reviewers,snorp
Differential Revision: https://phabricator.services.mozilla.com/D65634

--HG--
extra : moz-landing-system : lando
2020-03-09 19:22:40 +00:00
Randall E. Barker
aae3cb36a4 Bug 1620102 - Add GeckoView support for EME Media key permissions r=geckoview-reviewers,agi,snorp
Add GeckoSession.PermissionDelegate.PERMISSION_MEDIA_KEY_SYSTEM_ACCESS
for when  media.eme.require-app-approval=true

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

--HG--
extra : moz-landing-system : lando
2020-03-09 18:25:12 +00:00
Agi Sferro
f8fa17b754 Bug 1615495 - Don't set trackingProtection pref on session in GVE. r=snorp
Differential Revision: https://phabricator.services.mozilla.com/D65839

--HG--
extra : moz-landing-system : lando
2020-03-09 17:40:41 +00:00
Agi Sferro
a782354257 Bug 1615495 - Add persistent settings activity to GVE. r=esawin
Differential Revision: https://phabricator.services.mozilla.com/D65760

--HG--
extra : moz-landing-system : lando
2020-03-09 17:40:33 +00:00
Greg Tatum
78e4a1804f Bug 1594798 - Store remote prefs on the client under a separate pref branch; r=julienw
Currently the preferences for remote profiling are stored on the debuggee. This leads
to a negative user experience, as oftentimes phones do not persist the preferences.
This patch changes the strategy to store one set of preferences for local profiling,
and a second set of preferences for remote profiling.

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

--HG--
extra : moz-landing-system : lando
2020-03-09 14:55:16 +00:00
Gijs Kruitbosch
f1a04bd343 Bug 1618188 - remove XML backend for plugin and add-on blocklisting, r=mconley,perftest-reviewers,whimboo
This removes the obsolete backend. Notes on some of the less obvious changes
made as part of this patch:

- some of the gFoo style getters in Blocklist.jsm were only used by the XML
  version of the blocklist; I've removed them and tried to remove spurious
  settings of those properties in the remaining tests.
- some utility methods (e.g. distribution information getters) were also only
  used for the XML version (for the update URL).
- it's no longer necessary to test switching implementations.
- in browser/base/content/test/plugins/, we ran some tests from two manifests
  in order to run them with both blocklist backends. The simplest way of
  reducing this back down to one was to remove the remote-settings one. If I'd
  been more future-oriented when I created the duplication, perhaps I would
  have moved the XML version out into a different manifest instead, but I
  didn't, so now it looks like we're removing the modern one, whereas really
  we're going to be running the modern one as part of the "normal" tests and
  we're no longer running the "old" tests.
- removed all mentions I could see of extensions.blocklist.url which is no
  longer used for anything.
- per https://bugzilla.mozilla.org/show_bug.cgi?id=1016555#c23, updated
  references for the OneCRL timing and how it relates to blocklist updates.

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

--HG--
extra : moz-landing-system : lando
2020-03-09 12:02:17 +00:00
Mark Banner
2c4e35b0a6 Bug 1620218 - Automatic code fixes for Prettier 1.18.2 upgrade. r=mossop,webcompat-reviewers
Differential Revision: https://phabricator.services.mozilla.com/D65509

--HG--
extra : moz-landing-system : lando
2020-03-08 21:45:16 +00:00
championshuttler
38b5308165 Bug 1581814 - Re-enable mobile/android/components/extensions/test/mochitest/test_ext_tabs_executeScript_bad.html.r=robwu
Differential Revision: https://phabricator.services.mozilla.com/D65794

--HG--
extra : moz-landing-system : lando
2020-03-07 12:54:59 +00:00
Mark Banner
15cfe23b88 Bug 1620542 - Automatically fix ESLint errors in .eslintrc.js files. r=mossop
# ignore-this-changeset

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

--HG--
extra : moz-landing-system : lando
2020-03-07 10:09:44 +00:00
Agi Sferro
97c5dd8d40 Bug 1599139 - Add API to control whether extensions can run in private browsing. r=snorp,esawin
Differential Revision: https://phabricator.services.mozilla.com/D65551

--HG--
extra : moz-landing-system : lando
2020-03-07 00:59:46 +00:00
Agi Sferro
f6f2f88fa3 Bug 1560048 - Expose WebExtension baseURL to embedders. r=snorp,esawin
Differential Revision: https://phabricator.services.mozilla.com/D65399

--HG--
extra : moz-landing-system : lando
2020-03-07 00:59:46 +00:00
James Willcox
9b456755dd Bug 1620105 - Only set prefs for GeckoRuntimeSettings if there was a change r=geckoview-reviewers,agi
Differential Revision: https://phabricator.services.mozilla.com/D65756

--HG--
extra : moz-landing-system : lando
2020-03-06 18:19:29 +00:00
Agi Sferro
13dd5d388d Bug 1620364 - Always register for :CloseTab. r=droeh,snorp
Differential Revision: https://phabricator.services.mozilla.com/D65594

--HG--
extra : moz-landing-system : lando
2020-03-06 14:37:39 +00:00
Sebastian Hengst
5b855de25b Bug 1609278 - Replace bugzilla product and component assignment 'Firefox for Android :: General' with 'GeckoView :: General'. r=kbrosnan DONTBUILD
Differential Revision: https://phabricator.services.mozilla.com/D61512

--HG--
extra : moz-landing-system : lando
2020-03-06 17:54:58 +00:00
James Willcox
98aa9cef59 Bug 1612097 - Add GeckoResult.cancel() r=geckoview-reviewers,agi,esawin
Differential Revision: https://phabricator.services.mozilla.com/D65565

--HG--
extra : moz-landing-system : lando
2020-03-06 15:27:44 +00:00
Alastor Wu
1aded2bb3d Bug 1577890 - part9 : remove unused suspend types. r=baku
We won't need these suspend states anymore which were used for media control and audio focus on Fennec.

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

--HG--
extra : moz-landing-system : lando
2020-03-05 06:17:41 +00:00