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

29773 Коммитов

Автор SHA1 Сообщение Дата
Brendan Dahl 1f6bb7fb21 Bug 1620083 - Make web extensions re-bundle when dependent files change. r=glandium
Differential Revision: https://phabricator.services.mozilla.com/D65416

--HG--
extra : moz-landing-system : lando
2020-03-13 22:22:15 +00:00
Brendan Dahl bca21e5970 Bug 1620083 - Remove unneeded test icon files. r=geckoview-reviewers,agi
Differential Revision: https://phabricator.services.mozilla.com/D65415

--HG--
extra : moz-landing-system : lando
2020-03-13 22:22:13 +00:00
Thomas Wisniewski 7c32d9c818 Bug 1622076 - fix a race with WebExtensionControll.install.cancel; r=agi
Differential Revision: https://phabricator.services.mozilla.com/D66824

--HG--
extra : moz-landing-system : lando
2020-03-13 21:32:42 +00:00
James Willcox fdb196df32 Bug 1619778 - Wait for Gecko to be ready when delivering Web Push events r=geckoview-reviewers,aklotz
Differential Revision: https://phabricator.services.mozilla.com/D66586

--HG--
extra : moz-landing-system : lando
2020-03-13 20:08:26 +00:00
James Willcox 3c21ccc32c Bug 1619778 - Add `GeckoThread#waitForState()`. r=geckoview-reviewers,aklotz
This allows us to asynchronously wait for a given `GeckoThread` state
to be reached.

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

--HG--
extra : moz-landing-system : lando
2020-03-13 19:49:48 +00:00
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
Alastor Wu 62a36c3771 Bug 1577890 - part4 : remove media control Android chrome test. r=snorp
This test is used to test media control feature and audio focus feature, but on Fenix we are no longer use these method to implement those features, we use other android component instead [1]. Therefore, we can remove this test because the thing it tests is actually not being used anymore.

[1] 1795ba8345/components/feature/media/src/main/java/mozilla/components/feature/media

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

--HG--
extra : moz-landing-system : lando
2020-03-05 22:40:48 +00:00
Daniel Varga 59edf1bb10 Backed out changeset a99c866595f4 (bug 1620364) for causing gecko view failures
CLOSED TREE
2020-03-05 23:06:27 +02:00
Agi Sferro dca4a3c098 Bug 1620364 - Always register for :CloseTab. r=droeh
Mistakenly removed these lines which are still needed until we remove the
deprecated API.

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

--HG--
extra : moz-landing-system : lando
2020-03-05 20:04:43 +00:00
Brendan Dahl d63da75d6c Bug 1619710 - Handle postponed web extension updates in GeckoView. r=geckoview-reviewers,agi
An extension with an onUpdateAvailable listener should delay automatic
updating of the extension until the app is restarted. Add support for this
state and reject the update result with a new install error code.

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

--HG--
extra : moz-landing-system : lando
2020-03-04 21:23:52 +00:00
Makoto Kato 59f36f1385 Bug 1503656 - Part 9. Update API changes. r=geckoview-reviewers,agi
Differential Revision: https://phabricator.services.mozilla.com/D64916

--HG--
extra : moz-landing-system : lando
2020-03-04 08:17:42 +00:00
Makoto Kato fbd37dbe41 Bug 1503656 - Part 8. Android implementation of safe area insets support r=snorp
Differential Revision: https://phabricator.services.mozilla.com/D52513

--HG--
extra : moz-landing-system : lando
2020-03-04 08:17:09 +00:00
Csoregi Natalia aa5b814fee Backed out 6 changesets (bug 1503656) as per request. CLOSED TREE
Backed out changeset 27faa3b167a9 (bug 1503656)
Backed out changeset 7111f9b5ad06 (bug 1503656)
Backed out changeset 43fdc889beac (bug 1503656)
Backed out changeset 332ceea26151 (bug 1503656)
Backed out changeset f31efa4ea2ec (bug 1503656)
Backed out changeset 91b847efe591 (bug 1503656)
2020-03-04 10:07:42 +02:00
Makoto Kato 671f934313 Bug 1503656 - Part 9. Update API changes. r=geckoview-reviewers,agi
Differential Revision: https://phabricator.services.mozilla.com/D64916

--HG--
extra : moz-landing-system : lando
2020-03-04 07:29:15 +00:00
Makoto Kato e0f9d3ce27 Bug 1503656 - Part 8. Android implementation of safe area insets support r=snorp
Differential Revision: https://phabricator.services.mozilla.com/D52513

--HG--
extra : moz-landing-system : lando
2020-03-04 07:28:42 +00:00
Marcos Cáceres 65ea85a94c Bug 1603673 - Signal that we support web manifest processing in Fenix r=snorp,agi,ladybenko
When enabled, `link.relList.supports("manifest")` will return `true`.

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

--HG--
extra : moz-landing-system : lando
2020-03-04 05:02:27 +00:00
Razvan Maries e5f96b8645 Backed out changeset 27b9929438f8 (bug 1603673) for perma failures on browser_ssb_manifest_scope.js. CLOSED TREE 2020-03-04 06:34:48 +02:00
Marcos Cáceres 635fd4573d Bug 1603673 - Signal that we support web manifest processing in Fenix r=snorp,agi,ladybenko
When enabled, `link.relList.supports("manifest")` will return `true`.

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

--HG--
extra : moz-landing-system : lando
2020-03-04 03:10:06 +00:00
Agi Sferro f72cba85fa Bug 1616625 - Implement active parameter for tabs.create and update. r=mixedpuppy,snorp,esawin
Differential Revision: https://phabricator.services.mozilla.com/D64800

--HG--
extra : moz-landing-system : lando
2020-03-04 02:13:23 +00:00
Agi Sferro ae0d2a326d Bug 1616625 - Move TabDelegate to be per-WebExtension and per-GeckoSession. r=mixedpuppy,snorp,esawin
Before this patch, the TabDelegate was "special" as in it had just one global
delegate that receives events for all extensions and sessions. This was done to
allow mochitests to call tabs.create and tabs.remove.

This hack is no longer needed as now we can notify the embedding layer that a
new extension has been installed and we have a way to list currently installed
extensions.

This patch makes TabDelegate behave the same as the other delegates
(ActionDelegate and MessageDelegate) and will allow further simplications of
the WebExtension Delegate code.

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

--HG--
extra : moz-landing-system : lando
2020-03-04 02:13:36 +00:00
Agi Sferro 0995221f6f Bug 1616625 - Move Extension session delegates to SessionController. r=snorp,esawin
Differential Revision: https://phabricator.services.mozilla.com/D64798

--HG--
extra : moz-landing-system : lando
2020-03-04 00:30:14 +00:00
shindli e06f2a369b Backed out 3 changesets (bug 1616625) for causing xpcshell failures in xpcshell.ini:toolkit/components/extensions/test/xpcshell/test_csp_custom_policies.js CLOSED TREE
Backed out changeset b43ca6507c9a (bug 1616625)
Backed out changeset c0e05f4f2db2 (bug 1616625)
Backed out changeset a1eb1e65a239 (bug 1616625)
2020-03-04 02:26:51 +02:00
Eitan Isaacson bc77e9f52d Bug 1616468 - Indicate required field in hint string. r=Jamie
Android does not currently have anything similar to a 'required' state
to indicate that a field or input is required before submission. In this
patch we append a localized "required" string onto the node's hint.

The hint typically has the description of the node. If the node is an
entry the hint will have its label followed by the description.

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

--HG--
extra : moz-landing-system : lando
2020-03-04 00:00:44 +00:00
Agi Sferro 45283ccbf3 Bug 1616625 - Implement active parameter for tabs.create and update. r=mixedpuppy,snorp,esawin
Differential Revision: https://phabricator.services.mozilla.com/D64800

--HG--
extra : moz-landing-system : lando
2020-03-03 23:19:03 +00:00
Agi Sferro d0840b96b4 Bug 1616625 - Move TabDelegate to be per-WebExtension and per-GeckoSession. r=mixedpuppy,snorp,esawin
Before this patch, the TabDelegate was "special" as in it had just one global
delegate that receives events for all extensions and sessions. This was done to
allow mochitests to call tabs.create and tabs.remove.

This hack is no longer needed as now we can notify the embedding layer that a
new extension has been installed and we have a way to list currently installed
extensions.

This patch makes TabDelegate behave the same as the other delegates
(ActionDelegate and MessageDelegate) and will allow further simplications of
the WebExtension Delegate code.

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

--HG--
extra : moz-landing-system : lando
2020-03-03 23:19:03 +00:00
Agi Sferro 3e32832970 Bug 1616625 - Move Extension session delegates to SessionController. r=snorp,esawin
Differential Revision: https://phabricator.services.mozilla.com/D64798

--HG--
extra : moz-landing-system : lando
2020-03-03 23:19:02 +00:00
Agi Sferro 5061b2e4f5 Bug 1618349 - Resolve domFile async before returning the file picker callback. r=esawin
|get domFileOrDirectory| is sync so we cannot return a promise from there. We
instead resolve the DOMFile before returning from the file picker callback
which is async already.

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

--HG--
extra : moz-landing-system : lando
2020-03-03 23:08:12 +00:00
Randall E. Barker 6746c46e53 Bug 1618958 - Add GeckoSession.reload(int flags) r=geckoview-reviewers,agi,esawin
Add a version of GeckoSession.reload that takes LOAD_FLAGS_* so
that it is possible to bypass caches and proxies on reload.

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

--HG--
extra : moz-landing-system : lando
2020-03-03 21:47:30 +00:00
Nazım Can Altınova eb62d34bc6 Bug 1616622 - Increase the buffer limit and refactor the java code r=gerald,julienw
Differential Revision: https://phabricator.services.mozilla.com/D64754

--HG--
extra : moz-landing-system : lando
2020-03-03 17:14:19 +00:00
Nazım Can Altınova 1533571e92 Bug 1616622 - Rename SamplingThread class to SamplingRunnable instead. r=julienw
This class is not technically the thread itself, it's the runnable that the
sampling thread uses. This name is more accurate and clear for it.

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

--HG--
extra : moz-landing-system : lando
2020-03-03 17:10:42 +00:00
Nazım Can Altınova d0a7abbc3d Bug 1616622 - Remove the SparseArray from the samples array since we only profile the main thread. r=julienw
Currently we only profile the Java Main Thread, and don't profile anything
else. This is not ideal, but this is how it works right now. And inside the
code index `0` was hardcoded on the most parts of the code. We can rollback
this patch once we want to implement profiling more than one thread, or we can
think about something more clever.

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

--HG--
extra : moz-landing-system : lando
2020-03-03 17:10:19 +00:00
James Willcox ccdbf46ac1 Bug 1618368 - Test Web Notifications with Service Workers in GV r=geckoview-reviewers,droeh
Differential Revision: https://phabricator.services.mozilla.com/D64475

--HG--
extra : moz-landing-system : lando
2020-03-02 21:50:07 +00:00
Makoto Kato 7e58331f01 Bug 1499076 - Add SendIMEDummyKeyEvent test. r=geckoview-reviewers,snorp
Design mode is different for event target, so I turn off it now. But this is enough for input and contenteditable.

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

--HG--
extra : moz-landing-system : lando
2020-03-02 22:26:46 +00:00
Dylan Roeh 0eb51027c5 Bug 1619344 - Open the floodgates and let the GV app handle all schemes in redirects in onLoadRequest. r=snorp
Differential Revision: https://phabricator.services.mozilla.com/D64983

--HG--
extra : moz-landing-system : lando
2020-03-02 20:32:19 +00:00
Paul Bone cf2ab31e61 Bug 1617802 - Remove browser.sessionstore.debug_logging r=snorp
Differential Revision: https://phabricator.services.mozilla.com/D64003

--HG--
extra : moz-landing-system : lando
2020-02-27 18:46:05 +00:00
James Willcox 7769e2195b Bug 1618582 - Make `GeckoView#onTouchEventForResult()` return correct values r=kats
This also makes `GeckoView#onTouchEvent()` always return `true`, because
returning `false` will cause us to not receive any more events for that
touch. We always want to receive events.

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

--HG--
extra : moz-landing-system : lando
2020-02-28 17:44:33 +00:00
Nick Alexander 3c29ab9b09 Bug 1616704 - Make `./mach build binaries && ./mach run` pick up binary changes to `libxul.so`. r=geckoview-reviewers,agi
The Android-Gradle build plugin has evolved, as has GeckoView (it now
expects libraries in `libs/` instead of `assets/`), so we need to
ensure the libraries are copied into place at the right time.

To test this, you can use an artifact build.  Run `./mach build`, and
then binary edit a string in `$TOPOBJDIR/dist/bin/libxul.so` (I used
Emacs and `bbe` to do that).  Run `./mach android
build-geckoview_example`, and then verify the updated string has been
packaged, for example with something like:
```
unzip -c $TOPOBJDIR/gradle/build/mobile/android/geckoview_example/outputs/apk/withGeckoBinaries/debug/geckoview_example-withGeckoBinaries-debug.apk lib/x86_64/libxul.so | strings | grep NEW 'STRING'
```

Coincidentally, this is essentially the same issue as
https://github.com/mozilla/application-services/issues/2659.

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

--HG--
extra : moz-landing-system : lando
2020-02-26 18:43:09 +00:00
Jonathan Watt 02e5b8af3d Bug 1509527 - Update the values supported by our 'inputmode' implementation. r=m_kato
Updated version of https://phabricator.services.mozilla.com/D12774, because jwatt seems to be busy.

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

--HG--
extra : moz-landing-system : lando
2020-02-28 12:21:13 +00:00
Aaron Klotz cad95f20f4 Bug 1618625: When resolving a XPCOMEventTarget, set its Java thread name; r=geckoview-reviewers,snorp
Differential Revision: https://phabricator.services.mozilla.com/D64632

--HG--
extra : moz-landing-system : lando
2020-02-27 21:49:54 +00:00
James Willcox 58e61e1089 Bug 1611451 - Add some missing javadoc to `WebNotification` r=geckoview-reviewers,agi
Differential Revision: https://phabricator.services.mozilla.com/D64473

--HG--
extra : moz-landing-system : lando
2020-02-27 00:28:30 +00:00
James Willcox 24ee45a807 Bug 1479728 - Fix loading with `GeckoSession.LOAD_FLAGS_EXTERNAL` r=geckoview-reviewers,agi
Differential Revision: https://phabricator.services.mozilla.com/D64472

--HG--
extra : moz-landing-system : lando
2020-02-27 00:28:28 +00:00
Kartikaya Gupta ab875ae101 Bug 1618532 - Re-enable mouse event retargeting on Android. r=snorp
Differential Revision: https://phabricator.services.mozilla.com/D64601

--HG--
extra : moz-landing-system : lando
2020-02-27 18:46:12 +00:00
Agi Sferro d2778c62c6 Bug 1617675 - Don't use Fennec BrowserApp in dbg-browser-actors. r=ochameau,snorp
In GeckoView every window has always exactly only one browser. Also selectedTab
is not defined.

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

--HG--
extra : moz-landing-system : lando
2020-02-27 15:20:48 +00:00
Narcis Beleuzu b2ccce862e Backed out changeset 2c1dd534e937 (bug 1603673) for geckoview failures on webAppManifestPref. CLOSED TREE 2020-02-27 08:50:39 +02:00
Marcos Cáceres 2cc840acbb Bug 1603673 - Signal that we support web manifest processing in Fenix r=snorp,agi,ladybenko
When enabled, `link.relList.supports("manifest")` will return `true`.

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

--HG--
extra : moz-landing-system : lando
2020-02-26 18:41:59 +00:00
Emilio Cobos Álvarez 1a7371fd97 Bug 1346893 - Move the Geckoview UA sheet to layout/style. r=snorp
Make it a regular stylesheet.

This allows it to be cached in shared memory if possible, and will allow me to
stop adding the stylesheet based on a pref for bug 1618202.

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

--HG--
rename : mobile/android/themes/geckoview/content.css => layout/style/res/geckoview.css
extra : moz-landing-system : lando
2020-02-26 22:03:08 +00:00
Cosmin Sabou c7fa09335c Bug 1618265 - Fix prettier eslint failure on GeckoViewContentChild.js. r=eslint-fix 2020-02-27 01:04:25 +02:00
James Willcox c2d1b32c65 Bug 1618265 - Correctly disconnect from 'pageshow' event r=droeh
Differential Revision: https://phabricator.services.mozilla.com/D64467

--HG--
extra : moz-landing-system : lando
2020-02-26 22:12:48 +00:00
Cosmin Sabou e1ae464b64 Backed out changeset 8c1c55d16e1a (bug 1346893) for bc failures on browser_all_files_referenced.js.
--HG--
rename : layout/style/res/geckoview.css => mobile/android/themes/geckoview/content.css
extra : histedit_source : e5159e67631172a933b02ac22c838991da589170
2020-02-26 21:25:09 +02:00
Dylan Roeh 20feb8ff78 Bug 1600704 - Hardcode support for intent URIs so that they always get passed to onLoadRequest. r=snorp
Differential Revision: https://phabricator.services.mozilla.com/D64395

--HG--
extra : moz-landing-system : lando
2020-02-26 16:36:43 +00:00
Emilio Cobos Álvarez 42b235642d Bug 1346893 - Move the Geckoview UA sheet to layout/style. r=snorp
Make it a regular stylesheet.

This allows it to be cached in shared memory if possible, and will allow me to
stop adding the stylesheet based on a pref for bug 1618202.

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

--HG--
rename : mobile/android/themes/geckoview/content.css => layout/style/res/geckoview.css
extra : moz-landing-system : lando
2020-02-26 15:46:58 +00:00
Emilio Cobos Álvarez 9f4ca6a71f Bug 1470709 - Stop using CSS variables from android UA stylesheets. r=snorp
Just inline them, they're not that many.

Using CSS variables is observable from content, which is not good. It also means
that we need an @import.

For bug 1618202, I plan to move this stylesheet to the global stylesheet cache.

This is so that I can add them based on prefs, but should also have memory
improvements (the stylesheet would be shared in memory across processes, see bug
1474793).

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

--HG--
extra : moz-landing-system : lando
2020-02-26 15:22:34 +00:00
Eitan Isaacson 65134687e8 Bug 1616337 - Move a11y focus to root when navigating prev from first web node. r=Jamie,geckoview-reviewers,snorp
Differential Revision: https://phabricator.services.mozilla.com/D63223

--HG--
extra : moz-landing-system : lando
2020-02-25 22:48:26 +00:00
Eitan Isaacson 8e38a4587c Bug 1616466 - Support expand/collapse android accessibility actions. r=Jamie,geckoview-reviewers,snorp
Differential Revision: https://phabricator.services.mozilla.com/D63290

--HG--
extra : moz-landing-system : lando
2020-02-25 22:37:00 +00:00
Mike Shal b1dbf109ed Bug 1606922 - Move MOZ_AUTOMATION_PACKAGE_TESTS from mozconfigs to taskcluster; r=tomprince,chmanchester
We don't need to package tests for builds that we don't actually run
tests from, but it is tricky to align this correctly by setting
MOZ_AUTOMATION_PACKAGE_TESTS=0 in relevant mozconfigs. Instead we can
set the environment variable in the task definition, and use a full
taskgraph verification check to ensure that the flag is only set on
builds that have tests.

The one tricky area is the win64-aarch64 builds, which have a workaround
by specifying the new skip-verify-test-packaging attribute.

In one case, win64-aarch64-shippable has tests that run against it, but
it copies those tests from a win64-aarch64-shippable-no-eme task, which
itself has no tests. Both of those tasks need to skip the verify check
as a result.

In another case, the win64-aarch64-eme task is an artifact build that
grabs test packages from the win64-aarch64 build. Since the win64-aarch64
build doesn't have tests, it needs to skip the verify check.

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

--HG--
extra : moz-landing-system : lando
2020-02-25 20:13:12 +00:00
Noemi Erli bc6b9e410b Backed out changeset d76f4c4a4fb6 (bug 1604212) for causing lint failure and bustages in WebExecutorTest.kt CLOSED TREE 2020-02-25 20:12:07 +02:00
Andreea Pavel ed684420f3 Backed out changeset bc9bf388d476 (bug 1606922) for failing gecko decision task on a CLOSED TREE 2020-02-25 19:54:53 +02:00
Mike Shal 0bff663e83 Bug 1606922 - Move MOZ_AUTOMATION_PACKAGE_TESTS from mozconfigs to taskcluster; r=tomprince,chmanchester
We don't need to package tests for builds that we don't actually run
tests from, but it is tricky to align this correctly by setting
MOZ_AUTOMATION_PACKAGE_TESTS=0 in relevant mozconfigs. Instead we can
set the environment variable in the task definition, and use a full
taskgraph verification check to ensure that the flag is only set on
builds that have tests.

The one tricky area is the win64-aarch64 builds, which have a workaround
by specifying the new skip-verify-test-packaging attribute.

In one case, win64-aarch64-shippable has tests that run against it, but
it copies those tests from a win64-aarch64-shippable-no-eme task, which
itself has no tests. Both of those tasks need to skip the verify check
as a result.

In another case, the win64-aarch64-eme task is an artifact build that
grabs test packages from the win64-aarch64 build. Since the win64-aarch64
build doesn't have tests, it needs to skip the verify check.

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

--HG--
extra : moz-landing-system : lando
2020-02-24 19:08:23 +00:00
Andrea Marchesini 782454dd06 Bug 1604212 - Enable sameSite=lax by default, r=Ehsan,ahal
Differential Revision: https://phabricator.services.mozilla.com/D63081

--HG--
extra : moz-landing-system : lando
2020-02-25 17:46:19 +00:00
Brendan Dahl 8fee24d297 Bug 1617750 - Lazy load hidden window for GeckoView. r=geckoview-reviewers,snorp
GeckoView doesn't need the hidden window loaded eagerly on startup. This
shaves off around ~100ms timing from XRE_main to DOMContentLoaded of
geckoview.xhtml.

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

--HG--
extra : moz-landing-system : lando
2020-02-25 14:34:54 +00:00
Jan-Ivar Bruaroey 19d42636a8 Bug 1616661 - Show raw device name to users in the gum prompt. r=achronop,snorp,johannh
Differential Revision: https://phabricator.services.mozilla.com/D63552

--HG--
extra : moz-landing-system : lando
2020-02-24 17:09:13 +00:00
Matt Woodrow f5dd8136c6 Bug 1615967 - Move customUserAgent to BrowsingContext. r=nika,remote-protocol-reviewers
Differential Revision: https://phabricator.services.mozilla.com/D63040

--HG--
extra : moz-landing-system : lando
2020-02-24 02:15:03 +00:00
Agi Sferro b5b0ad2465 Bug 1617324 - Always return true in non-e10s mode for shoudlLoadURI. r=aklotz
In Bug 1617324 we started receiving calls for in-process windows for
WebBrowserChrome, which means we now have to handle the non-e10s case too. In
non-e10s there's only one process, so shouldLoadURI should always return true.

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

--HG--
extra : moz-landing-system : lando
2020-02-23 19:06:36 +00:00
Agi Sferro 809eeb54a4 Bug 1617279 - Read list of extensions at startup in GVE. r=snorp
Differential Revision: https://phabricator.services.mozilla.com/D63720

--HG--
extra : moz-landing-system : lando
2020-02-21 23:55:50 +00:00
Aaron Klotz 31b1a910ac Bug 1616563: Split ChildConnection.getPid() into fallible and invallible variants; r=geckoview-reviewers,snorp
Based on crash report data, somehow we are reaching a state where we complete
a `GeckoResult` with a pid of 0.

This patch makes `ChildConnection.getPid()` infallible; it either returns a
valid pid or it throws an exception.

The fallible variant, `ChildConnection.getPidFallible()`, is useful for logging
or other scenarios where an invalid pid is okay.

Note that this patch likely does not conclusively eliminiate all crashes
surrounding invalid pids during child process creation; I have reason to believe
that once this patch lands we will likely see some crashes due to `getPid()`
exceptions out in the wild, but at least this patch will make those crash dumps
more actionable.

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

--HG--
extra : moz-landing-system : lando
2020-02-21 23:04:00 +00:00
Mike Hommey 18a46ac5bf Bug 1617207 - Enable LTO on Android PGO builds. r=chmanchester
Turns out we have one more copy of the PGO-initializing mozconfig code for
Android, and that one was not enabling LTO.

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

--HG--
extra : moz-landing-system : lando
2020-02-21 22:22:28 +00:00
Aaron Klotz 4301e2d177 Bug 1617245: Move Service definitions to GeckoChildProcessServices class; r=geckoview-reviewers,agi
Differential Revision: https://phabricator.services.mozilla.com/D63698

--HG--
extra : moz-landing-system : lando
2020-02-21 21:37:24 +00:00
Aaron Klotz 7c29f2f386 Bug 1617244: Make IXPCOMEventTarget and XPCOMEventTarget implement Executor; r=geckoview-reviewers,agi
Differential Revision: https://phabricator.services.mozilla.com/D63696

--HG--
extra : moz-landing-system : lando
2020-02-21 21:39:08 +00:00
Mike Shal c8abdd68c2 Bug 1616630 - Use py3_action for GENERATED_FILES that already support it; r=firefox-build-system-reviewers,kvark,rstewart
Differential Revision: https://phabricator.services.mozilla.com/D63438

--HG--
extra : moz-landing-system : lando
2020-02-21 00:05:17 +00:00
Eitan Isaacson 1e2369f4ca Bug 1615562 - Don't move accessible focus if caret is collapsed or not on focusable. r=Jamie
If a keyboard-focused accessible is removed, the caret jumps to its
nearest ancestor. To avoid arbitrary accessibility focus moves, ignore
caret events that have no selection and are not focusable items.

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

--HG--
extra : moz-landing-system : lando
2020-02-20 21:49:20 +00:00
John Lin 827ee06469 Bug 1613871 - cancel background task when releasing DRM object. r=snorp
The provision request is executed in background through AsyncTask and will
post the result once finished. However, when the DRM object is released
before onPostExecute() is called, there will be NPE. Use AsyncTask.cancel()
to avoid that.

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

--HG--
extra : moz-landing-system : lando
2020-02-20 19:30:15 +00:00
Agi Sferro 45e67578d0 Bug 1614894 - Remove autoplayDefault. r=snorp,esawin,droeh
The pref does not make a lot more sense now that we check autoplay on every
session.

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

--HG--
extra : moz-landing-system : lando
2020-02-20 19:07:58 +00:00
Agi Sferro f8c4745805 Bug 1616339 - Improve window.open support in GVE. r=snorp
This patch: makes the URL bar consistent with the location displayed and
actually switches to a the new tab when content code calls window.open or
tabs.create.

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

--HG--
extra : moz-landing-system : lando
2020-02-20 19:33:17 +00:00
Agi Sferro 64dab61eb5 Bug 1554302 - Restore history when switching process during navigation. r=snorp
History is kept locally on the content process (or main process for main
process pages), so when going from one process to the other we need to restore
history. This will eventually be superseded by moving all history to the main
process, but we don't know when that's going to happen so we need to add this
workaround here. Desktop has the same workaround in place and this patch is
based on that code.

There are two places where we need to restore history:

- App navigates to page directly using `loadURI` or similar: in this case we
  need to pass down the load details to the content process alongside the
  history information so that we can restore and immediatelly navigate to the
  new page. This also avoids an extra history reloading that ordinarely happens
  when restoring history.

- App calls `goBack`, `goForward`, etc: in this case we don't need to reload a
  page but just restore the history and adjust the `historyIndex`. I'm not
  entirely sure why we need to add `1` to the `historyIndex` but that's what
  Desktop does and it seems to work correctly so I just did it.

This patch changes `updateRemoteTypeForURI` to `updateRemoteAndNavigate` which
more closely matches what that method is doing now, this is similar to what
happens on desktop.

This patch also adds a `window.moduleManager` that can be used in Actors to
access the current `moduleManager`. I expect this to go away when we fully
migrate all modules to actors.

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

--HG--
extra : moz-landing-system : lando
2020-02-20 19:07:46 +00:00
Agi Sferro 519b20f8e1 Bug 1613237 - Open window in main process when opener is present. r=droeh
Differential Revision: https://phabricator.services.mozilla.com/D62818

--HG--
extra : moz-landing-system : lando
2020-02-20 19:07:39 +00:00
Agi Sferro 907a5549e7 Bug 1613237 - Call nsIWebBrowserChrome3 for main process pages. r=kmag,esawin
nsContentTreeOwner uses XULBrowserWindow (which is Desktop-only) to get the
current WebBrowserChrome instance.

This patch adds a lookup for the WebBrowserChrome actor to make sure that the
correct instance is queried on all platforms.

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

--HG--
extra : moz-landing-system : lando
2020-02-20 19:29:08 +00:00
Agi Sferro b1c5704faa Bug 1614295 - Provide a way for apps to know when an extension is installed. r=snorp,ochameau,esawin
This patch adds a `onExtensionListUpdated` method to `DebuggerDelegate` which
is called whenever devtools install a new extension.

This method provides an opportunity for apps to refresh the list of installed
extensions and sets appropriate delegates so that the new extension is
correctly recognized.

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

--HG--
extra : moz-landing-system : lando
2020-02-20 19:25:31 +00:00
Csoregi Natalia 6360b24e80 Backed out 2 changesets (bug 1616630) for Android bustage. CLOSED TREE
Backed out changeset 15016546c954 (bug 1616630)
Backed out changeset dcb7dc51633b (bug 1616630)
2020-02-20 21:24:11 +02:00
Mike Shal 39492660f4 Bug 1616630 - Use py3_action for GENERATED_FILES that already support it; r=firefox-build-system-reviewers,kvark,rstewart
Depends on D63437

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

--HG--
extra : moz-landing-system : lando
2020-02-20 16:21:55 +00:00
John Elliot V d062cab989 Bug 1610402 - static prefs for view_source.{wrap_long_lines,syntax_highlight,tab_size} r=emilio
***
Bug 1610402 - Use static prefs for view_source.{wrap_long_lines,syntax_highlight,tab_size} r=emilio

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

--HG--
extra : moz-landing-system : lando
2020-02-20 15:31:37 +00:00
Tom Prince 4396de38b8 Bug 1527313: [mozharness] Checkout l10n-central next to mozilla-central; r=firefox-build-system-reviewers,mshal
Differential Revision: https://phabricator.services.mozilla.com/D62410

--HG--
extra : moz-landing-system : lando
2020-02-19 22:20:11 +00:00
John Lin d618ed7700 Bug 1304268 - permanently record MEDIA_DECODING_PROCESS_CRASH telemetry data. r=bryce
This data was recorded for releases 52-57 when the remote decoding process
mechanism was developed. Enable it again to monitor the data and see if
stagefright still crashes in recent Android versions. If it's no longer the
case, we might deprecate out-of-process decoder and save some IPC overhead.

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

--HG--
extra : moz-landing-system : lando
2020-02-18 22:13:10 +00:00
Mike Hommey f69ac41eca Bug 1530057 - Disable LTO for non-PGO Android builds. r=froydnj
LTO was enabled on Android back when the normal Android builds were the
ones we shipped. But now we have separate builds for what is shipped,
*and* they do PGO+LTO.

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

--HG--
extra : moz-landing-system : lando
2020-02-18 22:03:18 +00:00
Eitan Isaacson 5f6ff669bf Bug 1616146 - Cache accessibility focus boundaries in java. r=Jamie
This allows `performAction` to immediately return false if a boundary is
reached and allow TalkBack to navigate past the web view.

Change viewport cache listener to reorder since it should catch all tree
mutations in the document.

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

--HG--
extra : moz-landing-system : lando
2020-02-18 21:09:06 +00:00
Mike Shal d8e4653d19 Bug 1611326 - Default to py3_action, and add a py2 attribute to GENERATED_FILES; r=firefox-build-system-reviewers,rstewart
GENERATED_FILES now defaults to python3 unless py2=True is specified as
an argument. All existing GENERATED_FILES scripts and GeneratedFile
templates have the py2=True attribute added, so this patch should
effectively be a no-op.

Going forward, individual scripts can be converted to python3 and their
corresponding py2=True attribute can be deleted. In effect, this patch
will be backed out in pieces until all scripts run in python3, at which
point the py2 attribute itself can be removed.

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

--HG--
extra : moz-landing-system : lando
2020-02-14 13:22:46 +00:00
Noemi Erli c534f17571 Backed out changeset fa5ee85e20a5 (bug 1603673) for causing lint failure in GeckoRuntimeSettings.java CLOSED TREE 2020-02-18 08:39:30 +02:00
Marcos Cáceres ccfa51c524 Bug 1603673 - Signal that we support web manifest processing in Fenix r=snorp
When enabled, `link.relList.supports("manifest")` will return `true`.

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

--HG--
extra : moz-landing-system : lando
2020-02-18 03:43:48 +00:00
shindli ba0dcaf78d Backed out changeset 061d47c2c5c7 (bug 1603673) for mozlint failure in /builds/worker/checkouts/gecko/mobile/android/geckoview/src/main/java/org/mozilla/geckoview/GeckoRuntimeSettings.java CLOSED TREE 2020-02-18 05:39:05 +02:00
Marcos Cáceres b5521fbef4 Bug 1603673 - Signal that we support web manifest processing in Fenix r=snorp
When enabled, `link.relList.supports("manifest")` will return `true`.

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

--HG--
extra : moz-landing-system : lando
2020-02-18 03:11:12 +00:00
Alexandre Poirot 9073e966ec Bug 1614791 - Rename DebuggerServer to DevToolsServer. r=jdescottes
Differential Revision: https://phabricator.services.mozilla.com/D61363

--HG--
rename : devtools/server/debugger-server.js => devtools/server/devtools-server.js
extra : moz-landing-system : lando
2020-02-17 10:28:24 +00:00
Masayuki Nakano 351bd16f96 Bug 1615532 - Make line style in TextRangeStyle an enum class and sync it with GeckoEditable.IME_RANGE_LINE_* r=m_kato
At bug 1614208, the line style value mapping was changed, but
`GeckoEditable.IME_RANGE_LINE_*` are not updated.

This patch makes the style in `TextRangeStyle` an enum class for making it
type safer, and updates `GeckoEditable.IME_RANGE_LINE_*`, and finally, adds
`FYI` comments in `TextRangeStyle` to make developers realize it requires
manual update.

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

--HG--
extra : moz-landing-system : lando
2020-02-17 07:53:46 +00:00
Bogdan Tara 171ffe820f Backed out changeset 5f9d18ac0296 (bug 1612278) for TextInputDelegateTest related failures CLOSED TREE 2020-02-17 05:37:24 +02:00
Makoto Kato 221b84b167 Bug 1612278 - Re-enable TextInputDelegateTest#inputConnection. r=geckoview-reviewers,snorp
`inputConnection` works again even if x86_64 emulator with e10s.

But the following tests still have timing issue and are sometimes failure.
So this is still turned off.

- `inputConnection_bug1133802`
- `inputConnection_setSelection`

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

--HG--
extra : moz-landing-system : lando
2020-02-06 16:46:42 +00:00
Hiroyuki Ikezoe 6504d023af Bug 1611579 - Create a Promise to get a window.resize event before calling setVerticalClipping. r=geckoview-reviewers,snorp
So that the test can receive the expected event triggered by the
setVerticalClipping.

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

--HG--
extra : moz-landing-system : lando
2020-02-14 22:44:18 +00:00
Eugen Sawin 2e3cc0765a Bug 1615372 - [1.0] Remove the useContentProcessHint runtime setting. r=geckoview-reviewers,snorp,agi
Differential Revision: https://phabricator.services.mozilla.com/D62785

--HG--
extra : moz-landing-system : lando
2020-02-14 16:54:18 +00:00
Cosmin Sabou ff39f9206d Backed out 2 changesets (bug 1613263, bug 1611326) for presummably causing l10n langpack bustages. a=backout
Backed out changeset 77e54e76848a (bug 1611326)
Backed out changeset 36ba18ac3a68 (bug 1613263)
2020-02-14 15:02:21 +02:00
Mike Shal ad0c283ab2 Bug 1611326 - Default to py3_action, and add a py2 attribute to GENERATED_FILES; r=firefox-build-system-reviewers,rstewart
GENERATED_FILES now defaults to python3 unless py2=True is specified as
an argument. All existing GENERATED_FILES scripts and GeneratedFile
templates have the py2=True attribute added, so this patch should
effectively be a no-op.

Going forward, individual scripts can be converted to python3 and their
corresponding py2=True attribute can be deleted. In effect, this patch
will be backed out in pieces until all scripts run in python3, at which
point the py2 attribute itself can be removed.

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

--HG--
extra : moz-landing-system : lando
2020-02-13 23:07:04 +00:00
Brindusan Cristian e2fb6b8344 Backed out changeset 7fefed11f117 (bug 1611326) for build bustages at update-1.xpi.stub. CLOSED TREE 2020-02-13 23:33:34 +02:00
Mike Shal e6464dd404 Bug 1611326 - Default to py3_action, and add a py2 attribute to GENERATED_FILES; r=firefox-build-system-reviewers,rstewart
GENERATED_FILES now defaults to python3 unless py2=True is specified as
an argument. All existing GENERATED_FILES scripts and GeneratedFile
templates have the py2=True attribute added, so this patch should
effectively be a no-op.

Going forward, individual scripts can be converted to python3 and their
corresponding py2=True attribute can be deleted. In effect, this patch
will be backed out in pieces until all scripts run in python3, at which
point the py2 attribute itself can be removed.

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

--HG--
extra : moz-landing-system : lando
2020-02-13 20:31:50 +00:00
Petru Lingurar a68651c6ab Bug 1611346 - Format mma.rst for a better html conversion; r=AndreiLazar
Currently the sections regarding mma events and deeplinks are not properly
formatted making the text hard to read, follow and understand.
Use the `.. code-block:: json` formatting for Events. Found this in the history
for the previous documentation from central
Add a newline before the deep links bullet list so that each element would be
properly formatted.
Before and after screenshots of the docs are posted in the ticket.

Depends on D62730

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

--HG--
extra : moz-landing-system : lando
2020-02-13 16:11:27 +00:00
Petru Lingurar 429714ebd9 Bug 1611346 - Replace "Fennec" with "Firefox for Android" in mma.rst; r=AndreiLazar
Differential Revision: https://phabricator.services.mozilla.com/D62730

--HG--
extra : moz-landing-system : lando
2020-02-13 16:11:25 +00:00
Dan Minor edf731c011 Bug 1578073 - Update build.gradle for new android camera code; r=snorp
Differential Revision: https://phabricator.services.mozilla.com/D61851

--HG--
extra : moz-landing-system : lando
2020-02-11 17:03:36 +00:00
Eitan Isaacson bd8bbc3f73 Bug 1564507 - Remove 'ZZ' from AccessibilityTest. r=agi
Now that we don't rely on XPCOM accessibility anymore we shouldn't see
intermittents with accessibility on.

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

--HG--
extra : moz-landing-system : lando
2020-02-10 14:00:16 +00:00
Jonathan Almeida [:jonalmeida] 9942b0ab5a Bug 1614990 - Update WebPushController.onSubscriptionChanged to take only the scope. r=snorp
Differential Revision: https://phabricator.services.mozilla.com/D62607

--HG--
extra : moz-landing-system : lando
2020-02-12 17:15:37 +00:00
Brendan Dahl 331db208d5 Bug 1612559 - Add test for rejected install extension for GeckoView. r=geckoview-reviewers,esawin
Differential Revision: https://phabricator.services.mozilla.com/D62074

--HG--
extra : moz-landing-system : lando
2020-02-07 20:58:18 +00:00
Eugen Sawin 08c14d911f Bug 1612608 - [3.0] Adjust GVE to account for missing multiprocess session setting. r=geckoview-reviewers,agi
Differential Revision: https://phabricator.services.mozilla.com/D62080

--HG--
extra : moz-landing-system : lando
2020-02-12 16:45:20 +00:00
Eugen Sawin 7f5b9596ac Bug 1612608 - [2.1] Adjust tests to account for missing multiprocess session setting. r=geckoview-reviewers,aklotz
Differential Revision: https://phabricator.services.mozilla.com/D62079

--HG--
extra : moz-landing-system : lando
2020-02-12 16:45:13 +00:00
Eugen Sawin 83e385a410 Bug 1612608 - [1.1] Move useMultiprocess from session to runtime settings. r=snorp,geckoview-reviewers,agi
Differential Revision: https://phabricator.services.mozilla.com/D62078

--HG--
extra : moz-landing-system : lando
2020-02-12 16:45:06 +00:00
Eugen Sawin 0e72779d84 Bug 1613041 - [2.0] Add missing import. a=bustage-fix
CLOSED TREE

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

--HG--
extra : amend_source : 2ffda3ba8af9cb5765a017e6815cbe82cff04dfa
2020-02-12 15:54:47 +02:00
Eugen Sawin 34c30bd216 Bug 1613041 - [1.0] Handle null return for getRunningAppProcesses. r=geckoview-reviewers,snorp
Differential Revision: https://phabricator.services.mozilla.com/D62207

--HG--
extra : moz-landing-system : lando
2020-02-11 14:45:26 +00:00
Brindusan Cristian 5d70119bb0 Backed out 12 changesets (bug 1578073) for linting failure on Camera2Session.java. CLOSED TREE
Backed out changeset 20e979be216b (bug 1578073)
Backed out changeset e361b04a8502 (bug 1578073)
Backed out changeset 8aae0721f09c (bug 1578073)
Backed out changeset 381836e3bad0 (bug 1578073)
Backed out changeset 0c214e8034bb (bug 1578073)
Backed out changeset b91603fdd9de (bug 1578073)
Backed out changeset 8533a03e36ca (bug 1578073)
Backed out changeset 2126f6d9bffc (bug 1578073)
Backed out changeset 39a853c82a71 (bug 1578073)
Backed out changeset 2a8e1c02cede (bug 1578073)
Backed out changeset 55e2a4c5cab9 (bug 1578073)
Backed out changeset 27b45ca46f24 (bug 1578073)

--HG--
rename : dom/media/systemservices/android_video_capture/device_info_android.cc => media/webrtc/trunk/webrtc/modules/video_capture/android/device_info_android.cc
rename : dom/media/systemservices/android_video_capture/device_info_android.h => media/webrtc/trunk/webrtc/modules/video_capture/android/device_info_android.h
rename : dom/media/systemservices/android_video_capture/java/src/org/webrtc/videoengine/CaptureCapabilityAndroid.java => media/webrtc/trunk/webrtc/modules/video_capture/android/java/src/org/webrtc/videoengine/CaptureCapabilityAndroid.java
rename : dom/media/systemservices/android_video_capture/java/src/org/webrtc/videoengine/VideoCaptureAndroid.java => media/webrtc/trunk/webrtc/modules/video_capture/android/java/src/org/webrtc/videoengine/VideoCaptureAndroid.java
rename : dom/media/systemservices/android_video_capture/java/src/org/webrtc/videoengine/VideoCaptureDeviceInfoAndroid.java => media/webrtc/trunk/webrtc/modules/video_capture/android/java/src/org/webrtc/videoengine/VideoCaptureDeviceInfoAndroid.java
rename : dom/media/systemservices/android_video_capture/video_capture_android.cc => media/webrtc/trunk/webrtc/modules/video_capture/android/video_capture_android.cc
rename : dom/media/systemservices/android_video_capture/video_capture_android.h => media/webrtc/trunk/webrtc/modules/video_capture/android/video_capture_android.h
2020-02-11 17:22:50 +02:00
Dan Minor e884920a81 Bug 1578073 - Update build.gradle for new android camera code; r=snorp
Differential Revision: https://phabricator.services.mozilla.com/D61851

--HG--
extra : moz-landing-system : lando
2020-02-10 17:08:38 +00:00
Markus Stange 89d18db033 Bug 1614514 - Insert new line in geckoview-quick-start.md after list in order to fix formatting.
Differential Revision: https://phabricator.services.mozilla.com/D62374

--HG--
extra : moz-landing-system : lando
2020-02-11 00:09:43 +00:00
Thomas Wisniewski 6f8de0038c Bug 1612363 - add ability to allow extensions to close their action popups in GV; r=esawin,agi
add ability to allow extensions to close their action popups in GV.

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

--HG--
extra : moz-landing-system : lando
2020-02-10 21:20:58 +00:00
Eugen Sawin 466209750f Bug 1608985 - [3.0] Add denied redirect test. r=geckoview-reviewers,snorp
Depends on D61704

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

--HG--
extra : moz-landing-system : lando
2020-02-10 17:05:06 +00:00
Eugen Sawin aaf4c9b0f8 Bug 1608985 - [2.0] Add LoadRequest debug string. r=geckoview-reviewers,snorp
Depends on D61703

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

--HG--
extra : moz-landing-system : lando
2020-02-06 17:07:54 +00:00
Makoto Kato 494b9d8d45 Bug 1612785 - GVE should set WindowManager.LayoutParams.LAYOUT_IN_DISPLAY_CUTOUT_* via onMetaViewportFitChange. r=geckoview-reviewers,snorp
This is follow up of bug 1574307 (and bug 1503656).

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

--HG--
extra : moz-landing-system : lando
2020-02-06 16:55:15 +00:00
Brendan Dahl fe7cce925e Bug 1599581 - Implement update extension for GeckoView. r=esawin
Wires up the addon manager update process to the GekcoView API. Adds
several basic tests for verifying the udpate steps. Adds a new way to
automatically bundle new test addons into xpi files and registers them
with the example.com server.

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

--HG--
extra : moz-landing-system : lando
2020-02-06 01:58:45 +00:00
Eitan Isaacson 697e001179 Bug 1604103 - Instead of pruning links and headings use contentDescription. r=Jamie
Chrome prunes the subtrees of links and headings (with single text leaf
children) and we mimic this in Gecko. The problem is that sometimes a
heading can be a child of a link, and it would be impossible to reach
when navigating by headings.

The main reason we mimiced chrome is because we would getthe name of the
node and its subtree uttered, so you would hear the name of the node
twice. By using contentDescription we can suppress the subtree from
TalkBack's utterance and preserve the node's children for heading
navigation.

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

--HG--
extra : moz-landing-system : lando
2020-02-06 04:11:47 +00:00
Aaron Klotz cf9539a846 Bug 1607537: Fix timeouts in ParentCrashTest.crashParent and re-enable the test; r=geckoview-reviewers,esawin
The fundamental issue here is that `ParentCrashTest` starts a second
`GeckoRuntime` via `RemoteGeckoService` within the same logical Android
Application.

This patch adds `RuntimeCreator.shutdownRuntime()` so that the test can
shut down the existing `GeckoRuntime` before starting up its own.

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

--HG--
extra : moz-landing-system : lando
2020-02-05 06:52:11 +00:00
Thomas Wisniewski d15482b6d9 Bug 1598792 - ensure that GeckoView WebExtension.metaData.optionsPageUrl and WebExtension.metaData.openOptionsPageInTab are available after the installExtension promise is resolved; r=robwu,agi
These values are not available right away after `onInstallEnded`, but are available after `Management.on("ready")` for the addon. We prefer not complicating the
situation for GV embedders, and instead only resolving the `installExtension` once the addon is ready.

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

--HG--
extra : moz-landing-system : lando
2020-01-30 16:28:17 +00:00
Agi Sferro d8a9316c60 Bug 1597793 - Use setTabActive in GVE. r=snorp
Differential Revision: https://phabricator.services.mozilla.com/D60943

--HG--
extra : moz-landing-system : lando
2020-01-25 07:27:19 +00:00
Agi Sferro c1ad4b4c0f Bug 1597793 - Don't return a tabId for non-tab windows. r=snorp
If the window is a popup there is no WebExtension tab object present.

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

--HG--
extra : moz-landing-system : lando
2020-01-25 07:27:17 +00:00
Agi Sferro c4f3912001 Bug 1597793 - Track tab activation in GeckoViewTab. r=snorp
This avoids initialization issues with the previous approach.

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

--HG--
extra : moz-landing-system : lando
2020-01-25 07:27:14 +00:00
Christoph Walcher baa36cbd6f Bug 1597793 - Support tabs.onActivated in GeckoView r=snorp,agi
Differential Revision: https://phabricator.services.mozilla.com/D60041

--HG--
extra : moz-landing-system : lando
2020-01-25 07:27:12 +00:00
Agi Sferro 16bd2d03b1 Bug 1597793 - Check if a window is not a popup in ext-utils's onLocationChange. r=snorp
Differential Revision: https://phabricator.services.mozilla.com/D60986

--HG--
extra : moz-landing-system : lando
2020-01-25 07:27:10 +00:00
Brindusan Cristian ab9177e525 Backed out 5 changesets (bug 1597793) for ESlint error at GeckoViewWebExtension.jsm.
Backed out changeset d8132aa16234 (bug 1597793)
Backed out changeset 79aaf28b5cea (bug 1597793)
Backed out changeset 4de3746c478e (bug 1597793)
Backed out changeset 0e9c04f18e3c (bug 1597793)
Backed out changeset b830ae752c93 (bug 1597793)
2020-01-25 06:40:09 +02:00
Agi Sferro 52b037e389 Bug 1597793 - Use setTabActive in GVE. r=snorp
Differential Revision: https://phabricator.services.mozilla.com/D60943

--HG--
extra : moz-landing-system : lando
2020-01-25 02:17:08 +00:00
Agi Sferro a1e95dff3d Bug 1597793 - Don't return a tabId for non-tab windows. r=snorp
If the window is a popup there is no WebExtension tab object present.

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

--HG--
extra : moz-landing-system : lando
2020-01-25 02:17:06 +00:00
Agi Sferro fca4ac4ef5 Bug 1597793 - Track tab activation in GeckoViewTab. r=snorp
This avoids initialization issues with the previous approach.

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

--HG--
extra : moz-landing-system : lando
2020-01-25 02:17:04 +00:00
Christoph Walcher 72242d52b8 Bug 1597793 - Support tabs.onActivated in GeckoView r=snorp,agi
Differential Revision: https://phabricator.services.mozilla.com/D60041

--HG--
extra : moz-landing-system : lando
2020-01-25 04:13:30 +00:00
Agi Sferro ca4b3a7c8d Bug 1597793 - Check if a window is not a popup in ext-utils's onLocationChange. r=snorp
Differential Revision: https://phabricator.services.mozilla.com/D60986

--HG--
extra : moz-landing-system : lando
2020-01-25 02:16:56 +00:00
Hiroyuki Ikezoe 2dbfdd3a7a Bug 1611038 - Use PresShell::AddResizeEventFlushObserverIfNeeded in nsPresContext::UpdateDynamicToolbarOffset. r=botond
It's possible that UpdateDynamicTollbarOffset is called repeatedly before we
actually fire a window resize event.

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

--HG--
extra : moz-landing-system : lando
2020-01-24 19:32:27 +00:00
Agi Sferro 3248d990f5 Bug 1611474 - Fix Javadoc errors in LoginStorage.java. r=esawin
Differential Revision: https://phabricator.services.mozilla.com/D60989

--HG--
extra : moz-landing-system : lando
2020-01-24 18:03:00 +00:00
Mark Banner b6a7518552 Bug 1425047 - Enable rest of ESLint rules for mobile/android. r=esawin
This enables consistent-return, no-empty and no-redeclare.

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

--HG--
extra : moz-landing-system : lando
2020-01-24 17:32:38 +00:00
Mark Banner c7825a859e Bug 1425047 - Enable ESLint rule object-shorthand for mobile/android. r=esawin
Differential Revision: https://phabricator.services.mozilla.com/D60826

--HG--
extra : moz-landing-system : lando
2020-01-24 16:27:19 +00:00
Mark Banner ad20c596fe Bug 1425047 - Enable already passing rules for mobile/android. r=esawin
Differential Revision: https://phabricator.services.mozilla.com/D60825

--HG--
extra : moz-landing-system : lando
2020-01-24 16:27:12 +00:00
Mark Banner 7e33a4e3e5 Bug 1425047 - Enable ESLint rules no-undef and no-unused-vars for mobile/android/chrome/geckoview. r=esawin
Differential Revision: https://phabricator.services.mozilla.com/D60824

--HG--
extra : moz-landing-system : lando
2020-01-24 16:27:00 +00:00
James Willcox 12adca3745 Bug 1611441 - Don't wait on GeckoRuntime to start in unit tests r=agi
Blocking here causes a problem on startup with the socket server, and
apps don't do this anyway.

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

--HG--
extra : moz-landing-system : lando
2020-01-24 16:47:45 +00:00
James Willcox 888d9246e9 Bug 1609274 - Disallow media autoplay in GeckoView Example r=geckoview-reviewers,agi
The prompts are annoying and are also making it hard to use GVE
in performance tests.

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

--HG--
extra : moz-landing-system : lando
2020-01-24 03:03:42 +00:00
Noemi Erli 3480a92965 Bug 1601660 - Fix lint failure r=fix CLOSED TREE
--HG--
extra : amend_source : eacfc4fec85c51e042c38ea522d103ac1ca16a8d
2020-01-24 13:46:57 +02:00
Tim Huang 75a5e78b99 Bug 1601660 - Part 1: Make GeckoView to get the content blocking log in the parent process. r=geckoview-reviewers,Ehsan,snorp
This patch is doing two things.
1. Make GeckoView directly gets the ContentBlockingLog in the parent
process when it gets the bundle event 'ContentBlocking:RequestLog'. It
will get the top-level browsingContext and get the log from the
WindowGlobal of this browsingContext.
2. Remove the GeckoViewContentBlockingChild. The child module of
ContentBlocking is no longer needed since it serves nothing after we move
the functionality of getting log to the parent process.

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

--HG--
extra : moz-landing-system : lando
2020-01-24 11:06:39 +00:00
Eugen Sawin 791de0acc6 Bug 1610353 - [5.1] Update API changelog. r=geckoview-reviewers,agi
Differential Revision: https://phabricator.services.mozilla.com/D60666

--HG--
extra : moz-landing-system : lando
2020-01-23 20:04:10 +00:00
Eugen Sawin 7860cc1bbc Bug 1610353 - [4.0] Try to make top-level docs prettier. r=agi
Differential Revision: https://phabricator.services.mozilla.com/D60443

--HG--
extra : moz-landing-system : lando
2020-01-23 20:04:00 +00:00
Eugen Sawin 78b6ddecbf Bug 1610353 - [3.0] Add Login Storage onLoginUsed test. r=geckoview-reviewers,snorp
Differential Revision: https://phabricator.services.mozilla.com/D60442

--HG--
extra : moz-landing-system : lando
2020-01-23 20:03:57 +00:00
Eugen Sawin 7f3a6f5a5f Bug 1610353 - [2.0] Connect Gecko backend to GeckoView onLoginUsed API. r=MattN
Differential Revision: https://phabricator.services.mozilla.com/D60441

--HG--
extra : moz-landing-system : lando
2020-01-23 20:03:47 +00:00
Eugen Sawin a2a4ce5156 Bug 1610353 - [1.0] Add LoginStorage onLoginUsed API. r=snorp,geckoview-reviewers,MattN,agi
Differential Revision: https://phabricator.services.mozilla.com/D60440

--HG--
extra : moz-landing-system : lando
2020-01-23 20:03:40 +00:00
James Willcox 415b58b0a0 Bug 1608588 - Auto-deny `desktop-notification` permission appropriately r=geckoview-reviewers,esawin
This causes us to automatically deny the `desktop-notification`
permission if there is no user interaction, like desktop Firefox. This is
not enforced if the `dom.webnotifications.requireuserinteraction`
preference is set to `false`

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

--HG--
extra : moz-landing-system : lando
2020-01-23 18:02:49 +00:00
Aaron Klotz ce2204248f Bug 1595834: Make GeckoProcessManager interface e10s-multi aware; r=snorp
This patch does not change any of the *internals* of process management in
`GeckoProcessManager`, however it upgrades the interface in preparation for
such changes.

* We add a java equivalent to Gecko's `GeckoProcessType` enumeration;
* We add the `GeckoProcessType.Selector` class which will be used for
  identifying running content processes;
* We update `ContentParent::MarkAsDead` to use `GeckoProcessType.Selector` for
  indicating which process should be marked.

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

--HG--
extra : moz-landing-system : lando
2020-01-23 18:12:51 +00:00
Coroiu Cristina 30708cd54c Backed out changeset ef356b5b0879 (bug 1608588) for junit failures on a CLOSED TREE 2020-01-23 19:49:30 +02:00
James Willcox e2ee347144 Bug 1608588 - Auto-deny `desktop-notification` permission appropriately r=geckoview-reviewers,esawin
This causes us to automatically deny the `desktop-notification`
permission if there is no user interaction, like desktop Firefox. This is
not enforced if the `dom.webnotifications.requireuserinteraction`
preference is set to `false`

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

--HG--
extra : moz-landing-system : lando
2020-01-23 16:28:42 +00:00