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

29773 Коммитов

Автор SHA1 Сообщение Дата
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
Coroiu Cristina 1110c2bfad Backed out changeset 8eb2b7857f62 (bug 1608588) for ESlint failure at mobile/android/components/geckoview/GeckoViewPermission.js on a CLOSED TREE 2020-01-23 18:17:48 +02:00
James Willcox f691a36dc0 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 12:48:55 +00:00
James Willcox dcf1f45bdd Bug 1610338 - Make popup blocking work in GeckoView r=geckoview-reviewers,agi
This also fixes the tests, and adds a utility method for waiting one
round trip between the UI and Gecko thread.

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

--HG--
extra : moz-landing-system : lando
2020-01-23 15:22:47 +00:00
Brendan Dahl f15a6c8a03 Bug 1533406 - Add tests for gecko view private mode. r=snorp
1) Adds a basic functionality test.
2) Adds a tests to ensure storage is shared across private mode sessions.

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

--HG--
extra : moz-landing-system : lando
2020-01-22 22:07:08 +00:00
Brendan Dahl d4e28b08cf Bug 1533406 - Extend private browsing lifetime for gecko view too. r=smaug
Private browsing data kept getting cleared each time a new tab was created
since gecko thought there were no more private windows. Also, fixes a typo
in the case of "windowtype".

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

--HG--
extra : moz-landing-system : lando
2020-01-22 22:06:58 +00:00
Bogdan Tara 3722dbcc14 Backed out 2 changesets (bug 1533406) for lints complaining about PrivateModeTest.kt CLOSED TREE
Backed out changeset 1b67df42fdf2 (bug 1533406)
Backed out changeset e60af0dab868 (bug 1533406)
2020-01-22 22:50:50 +02:00
Brendan Dahl fdde9c7d30 Bug 1533406 - Add tests for gecko view private mode. r=snorp
1) Adds a basic functionality test.
2) Adds a tests to ensure storage is shared across private mode sessions.

Depends on D60330

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

--HG--
extra : moz-landing-system : lando
2020-01-21 21:50:35 +00:00
Brendan Dahl 6bd04c1a5d Bug 1533406 - Extend private browsing lifetime for gecko view too. r=smaug
Private browsing data kept getting cleared each time a new tab was created
since gecko thought there were no more private windows. Also, fixes a typo
in the case of "windowtype".

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

--HG--
extra : moz-landing-system : lando
2020-01-21 18:28:37 +00:00
Agi Sferro c1c4d77618 Bug 1610914 - Handle theme_icons in Icon. r=snorp
Differential Revision: https://phabricator.services.mozilla.com/D60726

--HG--
extra : moz-landing-system : lando
2020-01-22 19:19:48 +00:00
Agi Sferro 45c0f04775 Bug 1610641 - Remove all remaining Fennec modules. r=esawin
Differential Revision: https://phabricator.services.mozilla.com/D60586

--HG--
extra : moz-landing-system : lando
2020-01-22 15:19:49 +00:00
Agi Sferro 576e9c816c Bug 1610641 - Remove unused SharedPreferences. r=esawin
Differential Revision: https://phabricator.services.mozilla.com/D60585

--HG--
extra : moz-landing-system : lando
2020-01-22 15:19:47 +00:00
Agi Sferro fd153c526e Bug 1610641 - Remove unused MediaPlayerApp, Notifications, RuntimePermissions. r=esawin
Differential Revision: https://phabricator.services.mozilla.com/D60584

--HG--
extra : moz-landing-system : lando
2020-01-22 15:19:40 +00:00
Agi Sferro 2813249bdd Bug 1610641 - Remove unused FormAssistant.jsm, DownloadNotifications.jsm r=esawin
Differential Revision: https://phabricator.services.mozilla.com/D60583

--HG--
extra : moz-landing-system : lando
2020-01-22 15:19:37 +00:00
Agi Sferro b02df59d02 Bug 1610641 - Remove unused ActionBarHandler.jsm. r=esawin
Differential Revision: https://phabricator.services.mozilla.com/D60582

--HG--
extra : moz-landing-system : lando
2020-01-22 15:19:35 +00:00
Agi Sferro 7610d7f3cb Bug 1610641 - Remove unused Accounts.jsm. r=esawin
Differential Revision: https://phabricator.services.mozilla.com/D60581

--HG--
extra : moz-landing-system : lando
2020-01-22 15:19:33 +00:00
Agi Sferro 9b30266671 Bug 1610641 - Remove Fennec's ext-browsingData. r=mixedpuppy
Differential Revision: https://phabricator.services.mozilla.com/D60580

--HG--
extra : moz-landing-system : lando
2020-01-22 15:19:31 +00:00
Agi Sferro a6d7032a66 Bug 1610608 - Remove unused ErrorPageEventHandler. r=esawin
Differential Revision: https://phabricator.services.mozilla.com/D60579

--HG--
extra : moz-landing-system : lando
2020-01-22 15:19:29 +00:00
Agi Sferro 3c673800f1 Bug 1610641 - Remove unused NetErrorHelper.jsm r=esawin
Differential Revision: https://phabricator.services.mozilla.com/D60578

--HG--
extra : moz-landing-system : lando
2020-01-22 15:19:27 +00:00
Agi Sferro 5397fdb093 Bug 1610641 - Remove unused Prompt.jsm r=esawin
Differential Revision: https://phabricator.services.mozilla.com/D60577

--HG--
extra : moz-landing-system : lando
2020-01-22 15:19:24 +00:00
Agi Sferro 5a1c71fcd7 Bug 1610641 - Remove unused HelperApps.jsm. r=esawin
Differential Revision: https://phabricator.services.mozilla.com/D60576

--HG--
extra : moz-landing-system : lando
2020-01-22 15:19:22 +00:00
Agi Sferro 151e1545d9 Bug 1593395 - Remove unused FxAccountsWebChannel.jsm. r=esawin
Differential Revision: https://phabricator.services.mozilla.com/D60575

--HG--
extra : moz-landing-system : lando
2020-01-22 15:19:18 +00:00
Agi Sferro 0969a490fb Bug 1610641 - Remove unused SelectHelper.jsm r=esawin
Differential Revision: https://phabricator.services.mozilla.com/D60574

--HG--
extra : moz-landing-system : lando
2020-01-22 15:19:16 +00:00
Agi Sferro fb8a612c6d Bug 1610641 - Remove unused InputWidgetHelper.jsm. r=esawin
Differential Revision: https://phabricator.services.mozilla.com/D60573

--HG--
extra : moz-landing-system : lando
2020-01-22 15:19:13 +00:00
Agi Sferro 305511975b Bug 1610641 - Remove unused WebrtcUI.jsm. r=esawin
Differential Revision: https://phabricator.services.mozilla.com/D60572

--HG--
extra : moz-landing-system : lando
2020-01-22 15:19:10 +00:00
Narcis Beleuzu df67c871b2 Backed out 15 changesets (bug 1593395, bug 1610641, bug 1610608) for build bustages on chrome.ini . CLOSED TREE
Backed out changeset 11f9ed281022 (bug 1610641)
Backed out changeset a3852d7add7c (bug 1610641)
Backed out changeset 03fd98c58009 (bug 1610641)
Backed out changeset df53aae9f611 (bug 1610641)
Backed out changeset 8dce2aa95db7 (bug 1610641)
Backed out changeset 4d78ecbd2217 (bug 1610641)
Backed out changeset 8e5484acd16c (bug 1610641)
Backed out changeset 45be5eda8a5e (bug 1610608)
Backed out changeset 040bdf225776 (bug 1610641)
Backed out changeset 4a84eddd9815 (bug 1610641)
Backed out changeset e469149d1828 (bug 1610641)
Backed out changeset f1f041f2c5c1 (bug 1593395)
Backed out changeset ae84f1c37adb (bug 1610641)
Backed out changeset 4cf939a54ca3 (bug 1610641)
Backed out changeset 22f33e33fb81 (bug 1610641)
2020-01-22 17:13:36 +02:00
Agi Sferro eed39517bf Bug 1610641 - Remove all remaining Fennec modules. r=esawin
Differential Revision: https://phabricator.services.mozilla.com/D60586

--HG--
extra : moz-landing-system : lando
2020-01-22 14:52:56 +00:00
Agi Sferro 5ee251c454 Bug 1610641 - Remove unused SharedPreferences. r=esawin
Differential Revision: https://phabricator.services.mozilla.com/D60585

--HG--
extra : moz-landing-system : lando
2020-01-22 14:52:53 +00:00
Agi Sferro d5c021dcff Bug 1610641 - Remove unused MediaPlayerApp, Notifications, RuntimePermissions. r=esawin
Differential Revision: https://phabricator.services.mozilla.com/D60584

--HG--
extra : moz-landing-system : lando
2020-01-22 14:52:51 +00:00
Agi Sferro 162b378a2a Bug 1610641 - Remove unused FormAssistant.jsm, DownloadNotifications.jsm r=esawin
Differential Revision: https://phabricator.services.mozilla.com/D60583

--HG--
extra : moz-landing-system : lando
2020-01-22 14:52:49 +00:00
Agi Sferro b86095690f Bug 1610641 - Remove unused ActionBarHandler.jsm. r=esawin
Differential Revision: https://phabricator.services.mozilla.com/D60582

--HG--
extra : moz-landing-system : lando
2020-01-22 14:52:47 +00:00
Agi Sferro 19eac071b5 Bug 1610641 - Remove unused Accounts.jsm. r=esawin
Differential Revision: https://phabricator.services.mozilla.com/D60581

--HG--
extra : moz-landing-system : lando
2020-01-22 14:52:44 +00:00
Agi Sferro 03744413b0 Bug 1610641 - Remove Fennec's ext-browsingData. r=mixedpuppy
Differential Revision: https://phabricator.services.mozilla.com/D60580

--HG--
extra : moz-landing-system : lando
2020-01-22 14:52:42 +00:00
Agi Sferro fa62d87def Bug 1610608 - Remove unused ErrorPageEventHandler. r=esawin
Differential Revision: https://phabricator.services.mozilla.com/D60579

--HG--
extra : moz-landing-system : lando
2020-01-22 14:52:40 +00:00
Agi Sferro 07f16c547d Bug 1610641 - Remove unused NetErrorHelper.jsm r=esawin
Differential Revision: https://phabricator.services.mozilla.com/D60578

--HG--
extra : moz-landing-system : lando
2020-01-22 14:52:38 +00:00
Agi Sferro de2ff3ef4c Bug 1610641 - Remove unused Prompt.jsm r=esawin
Differential Revision: https://phabricator.services.mozilla.com/D60577

--HG--
extra : moz-landing-system : lando
2020-01-22 14:52:36 +00:00
Agi Sferro ae9d27056b Bug 1610641 - Remove unused HelperApps.jsm. r=esawin
Differential Revision: https://phabricator.services.mozilla.com/D60576

--HG--
extra : moz-landing-system : lando
2020-01-22 14:52:34 +00:00
Agi Sferro 9881f80610 Bug 1593395 - Remove unused FxAccountsWebChannel.jsm. r=esawin
Differential Revision: https://phabricator.services.mozilla.com/D60575

--HG--
extra : moz-landing-system : lando
2020-01-22 14:52:31 +00:00
Agi Sferro 4b9cbeb71e Bug 1610641 - Remove unused SelectHelper.jsm r=esawin
Differential Revision: https://phabricator.services.mozilla.com/D60574

--HG--
extra : moz-landing-system : lando
2020-01-22 14:52:29 +00:00
Agi Sferro 8cae585683 Bug 1610641 - Remove unused InputWidgetHelper.jsm. r=esawin
Differential Revision: https://phabricator.services.mozilla.com/D60573

--HG--
extra : moz-landing-system : lando
2020-01-22 14:52:27 +00:00
Agi Sferro f141e90b45 Bug 1610641 - Remove unused WebrtcUI.jsm. r=esawin
Differential Revision: https://phabricator.services.mozilla.com/D60572

--HG--
extra : moz-landing-system : lando
2020-01-22 14:52:25 +00:00
Oana Pop Rus 1d2bce24ac Backed out 2 changesets (bug 1601660) for gv-junit failures in ContentBlockingControllerTest. on a CLOSED TREE
Backed out changeset ec5d3b078a88 (bug 1601660)
Backed out changeset 06001b30f6cd (bug 1601660)
2020-01-22 12:06:22 +02:00
Tim Huang 91e877c5cd 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-06 20:00:16 +00:00
Agi Sferro 5473cc01bb Bug 1579440 - Set browser.tabs.remote.autostart to true for geckoview. r=snorp
Differential Revision: https://phabricator.services.mozilla.com/D60332

--HG--
extra : moz-landing-system : lando
2020-01-21 23:46:32 +00:00
James Willcox cee307c4e2 Bug 1610619 - Remove unused GeckoJarReader class r=geckoview-reviewers,aklotz
Differential Revision: https://phabricator.services.mozilla.com/D60556

--HG--
extra : moz-landing-system : lando
2020-01-21 20:10:11 +00:00
Makoto Kato 452a87b7b0 Bug 1574307 - Part 4. Notify GV of viewport-fit. r=geckoview-reviewers,snorp
`viewport-fit` is hint that browser application can use cutout area. So we should expose it to GeckoView application to set `layoutInDisplayCutoutMode`.

When meta element is found or changed, `ContentDelegate.onMetaviewportFitChange` is called. Even if nothing, it will be called after DOMContentLoaded is fired.

Depends on D57398

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

--HG--
extra : moz-landing-system : lando
2020-01-20 08:42:05 +00:00
Aaron Klotz d0c0679aac Bug 1600663: Hook GV process management into ContentParent; r=geckoview-reviewers,snorp
We need to propagate `ContentParent::MarkAsDead` up to the Android java layer
so that it has a view of the state of content processes that is consistent
with the view of Gecko's content process management.

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

--HG--
extra : moz-landing-system : lando
2020-01-20 07:46:33 +00:00
Aaron Klotz c21015215b Bug 1594820: Part 4 - Modify GeckoThread.preload to directly call into the process manager; r=geckoview-reviewers,snorp
Now that everything in `GeckoProcessManager` runs on the XPCOM launcher thread,
`GeckoThread` should just call `GeckoProcessManager.preload()` directly.

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

--HG--
extra : moz-landing-system : lando
2020-01-20 07:45:55 +00:00
Aaron Klotz ed64053aec Bug 1594820: Part 3 - Modify GeckoProcessManager to bind and start child processes asynchronously on the XPCOM launcher thread; r=geckoview-reviewers,agi
The primary purpose of this patch is to convert the internal sequence of
service binding and invoking of `start` to asynchronously run on the XPCOM
launcher thread via `GeckoResult`. Because more of the code now runs on the same
thread, many of these methods no longer need to be `synchronized`.

Disconnecting via `unbind` is also modified to use the launcher thread and
`GeckoResult`.

Note that no changes have been made yet to enable multiple processes of the
same type; those changes will be made in bug 1595834.

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

--HG--
extra : moz-landing-system : lando
2020-01-20 07:45:22 +00:00
Aaron Klotz e0ad4a5462 Bug 1594820: Part 2 - Make GeckoResult compatible with XPCOMEventTarget; r=snorp
This patch adds a `Dispatcher` implementation that allows us to create
`GeckoResult`s that will dispatch to the XPCOM launcher thread.

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

--HG--
extra : moz-landing-system : lando
2020-01-20 07:44:45 +00:00
Aaron Klotz c78829b682 Bug 1594820: Part 1 - Modify XPCOMEventTarget to accept method calls before JNI is ready; r=snorp
Since `XPCOMEventTarget` uses JNI, this patch makes it possible for consumers to
retrieve and invoke methods on one without needing to worry about whether JNI
is actually up yet.

To achieve this, we create the `IXPCOMEventTarget` interface, and observe that
both of its methods can be handled by a proxy if JNI is not ready:

* Calls to `dispatch` may be enqueued until JNI is up;
* Observe that, when JNI is not up yet, the result of `isOnCurrentThread`
  can never be `true`.

Once JNI is up and the event targets have been resolved, the proxies are
replaced with the real, concrete `XPCOMEventTarget`s and are no longer used for
the remainder of the Gecko instance's lifetime.

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

--HG--
extra : moz-landing-system : lando
2020-01-20 07:44:07 +00:00
Agi Sferro c84a99bcfd Bug 1609750 - Ignore Extension fallback page in LoadURIDelegate. r=esawin
Differential Revision: https://phabricator.services.mozilla.com/D60174

--HG--
extra : moz-landing-system : lando
2020-01-17 15:23:57 +00:00
Eugen Sawin 85bf14df9d Bug 1609753 - [1.0] Only access matchedTrackingLists when implemented. r=droeh,dimi
Differential Revision: https://phabricator.services.mozilla.com/D60176

--HG--
extra : moz-landing-system : lando
2020-01-16 20:57:12 +00:00
Eitan Isaacson 20e563fc1c Bug 1534287 - Catch exception when sending a11y event when platform a11y is disabled. r=geckoview-reviewers,snorp
Differential Revision: https://phabricator.services.mozilla.com/D59419

--HG--
extra : moz-landing-system : lando
2020-01-10 15:35:06 +00:00
Tomislav Jovanovic 48d05a45cb Bug 1602639 - Switch native messaging from MessageManagers to Conduits r=robwu
Differential Revision: https://phabricator.services.mozilla.com/D58356

--HG--
extra : moz-landing-system : lando
2020-01-16 22:41:27 +00:00
Agi Sferro 45e134701d Bug 1608296 - Attach DelegateController to WebExtension created by ExtensionStore. r=snorp
Differential Revision: https://phabricator.services.mozilla.com/D60061

--HG--
extra : moz-landing-system : lando
2020-01-16 18:25:47 +00:00
Dylan Roeh f24f8dde64 Bug 1587552 - Update GeckoView content blocking exception API and add better support for removing exceptions. r=esawin,Ehsan,geckoview-reviewers,snorp
Differential Revision: https://phabricator.services.mozilla.com/D58828

--HG--
extra : moz-landing-system : lando
2020-01-16 18:09:45 +00:00
Agi Sferro f3a473d590 Bug 1588150 - Add Install AddOn to GVE. r=snorp
This patch adds a new menu item to GVE that allows users to install an
arbitrary extension given it's URL (usually from a.m.o, but we don't really
verify that).

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

--HG--
extra : moz-landing-system : lando
2020-01-15 22:03:13 +00:00
Shane Caraveo 8351044ded Bug 1524327 remove MOZ_ALLOW_LEGACY_EXTENSIONS and extensions.legacy.enabled r=zombie,aswan
Legacy extensions are no longer loaded, so we can drop the build config for it.  We
still need flags for handling experimental APIs since what we require differs between builds
and distributions.

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

--HG--
extra : moz-landing-system : lando
2020-01-15 21:38:40 +00:00
Eugen Sawin d73a132ca5 Bug 1608514 - [2.1] Extend Login Storage tests to test credential updates. r=geckoview-reviewers,snorp
Differential Revision: https://phabricator.services.mozilla.com/D59546

--HG--
extra : moz-landing-system : lando
2020-01-15 20:25:03 +00:00
James Willcox a11e70ded5 Bug 1609158 - Add a simple test for `window.open('file://...')` with GeckoView r=geckoview-reviewers,agi
This is covered in other test suites, but it may be possible for
GeckoView to get this wrong, so add an explicit test.

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

--HG--
extra : moz-landing-system : lando
2020-01-15 14:20:26 +00:00
Bogdan Tara c75b5dbb22 Backed out 2 changesets (bug 1608514) for geckoview.test.LoginStorageDelegateTest.loginUpdateAccept timeouts
Backed out changeset f4537109c514 (bug 1608514)
Backed out changeset 5cd5aee16013 (bug 1608514)
2020-01-15 16:48:51 +02:00
Eugen Sawin feb691f14c Bug 1608514 - [2.0] Extend Login Storage tests to test credential updates. r=geckoview-reviewers,snorp
Differential Revision: https://phabricator.services.mozilla.com/D59546

--HG--
extra : moz-landing-system : lando
2020-01-14 15:57:15 +00:00
Emilio Cobos Álvarez fff6c9e1ac Bug 981248 - Rewrite <input type=number> to avoid an anonymous input. r=masayuki,surkov,jwatt,ntim,jfkthame,smaug
Instead, subclass nsTextControlFrame. This simplifies the code and avoids
correctness issues.

I kept the localization functionality though it is not spec compliant. But I
filed a bug to remove it in a followup.

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

--HG--
extra : moz-landing-system : lando
2020-01-14 19:01:05 +00:00
James Willcox ca5e7b9dc0 Bug 1542579 - Use the Android app name as the Gecko app name r=geckoview-reviewers,esawin
Differential Revision: https://phabricator.services.mozilla.com/D59530

--HG--
extra : moz-landing-system : lando
2020-01-14 20:14:59 +00:00
Agi Sferro 7110e845e3 Bug 1602565 - Don't run LoadURIDelegateChild on WebExtension windows. r=snorp
Differential Revision: https://phabricator.services.mozilla.com/D59910

--HG--
extra : moz-landing-system : lando
2020-01-14 19:05:28 +00:00
Narcis Beleuzu 3779d59f17 Backed out changeset db42fce46a0b (bug 1587552) for gv failures on trackingProtectionExceptionRemoveByException. CLOSED TREE 2020-01-14 20:59:28 +02:00
Mihai Alexandru Michis 0d01c60c37 Backed out 2 changesets (bug 981248) for causing multiple failures.
CLOSED TREE

Backed out changeset 7a96708cc8b7 (bug 981248)
Backed out changeset 1eace7bd28d9 (bug 981248)
2020-01-14 19:28:17 +02:00
Dylan Roeh 0971e00ebf Bug 1587552 - Update GeckoView content blocking exception API and add better support for removing exceptions. r=esawin,Ehsan,geckoview-reviewers,snorp
Differential Revision: https://phabricator.services.mozilla.com/D58828

--HG--
extra : moz-landing-system : lando
2020-01-14 16:40:46 +00:00
Emilio Cobos Álvarez 4bd78f7a9c Bug 981248 - Remove now-unneeded special-case in AutoFillDelegateTest.kt. r=snorp
Differential Revision: https://phabricator.services.mozilla.com/D59886

--HG--
extra : moz-landing-system : lando
2020-01-14 16:10:21 +00:00
Agi Sferro fb2e2aaa8e Bug 1604222 - Implement disable(APP_DISABLED) for WebExtension. r=snorp
Differential Revision: https://phabricator.services.mozilla.com/D59223

--HG--
extra : moz-landing-system : lando
2020-01-13 23:32:33 +00:00
Razvan Maries c743b59ecb Backed out 3 changesets (bug 1604222) for gv-junit perma fails. CLOSED TREE
Backed out changeset a135f610a311 (bug 1604222)
Backed out changeset 34eace2047b4 (bug 1604222)
Backed out changeset 15bf31fa86b9 (bug 1604222)
2020-01-14 01:03:18 +02:00
Agi Sferro 0d072a9009 Bug 1604222 - Implement disable(APP_DISABLED) for WebExtension. r=snorp
Differential Revision: https://phabricator.services.mozilla.com/D59223

--HG--
extra : moz-landing-system : lando
2020-01-13 22:13:02 +00:00
James Willcox cdbb518fb1 Bug 1608560 - Use androidx.test instead of android-support r=geckoview-reviewers,aklotz,nalexander
Differential Revision: https://phabricator.services.mozilla.com/D59575

--HG--
extra : moz-landing-system : lando
2020-01-13 21:36:22 +00:00
James Willcox 95667b8165 Bug 1608570 - Remove some old Fennec-related build variables r=nalexander
Differential Revision: https://phabricator.services.mozilla.com/D59573

--HG--
extra : moz-landing-system : lando
2020-01-10 22:51:03 +00:00
Emily Toop 1f0a7e46ff Bug 1607843 - Add instructions for running ESLint as well if JavaScript changes are also made. r=geckoview-reviewers,agi
Originally submitted as PR on documentation site by @jonalmeida.

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

--HG--
extra : moz-landing-system : lando
2020-01-09 17:10:26 +00:00
Tim Huang d9eda2ce70 Bug 1599043 - Part 10: Make GeckoView to listen OnContentBlockingEvent on the parent process. r=geckoview-reviewers,agi
The GeckoView is listening OnContentBlockingEvent in the content process.
As we move the event into the parent process, we have to change it to
listen the event in the parent process.

This patch also adds a workaround in the test
ContentBlockingControllerTest#getLog(). This workaround adds a 500ms
delays before we check the ContentBlockingLog. This is needed because there
is a delay between the notification of OnContentBlockingEven in the parent
process and the actual recording of the log in the content process. This
workaround will be no longer needed once we move the log entirely to the
parent process (Bug 1599046).

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

--HG--
extra : moz-landing-system : lando
2020-01-13 14:09:12 +00:00
Agi Sferro 074fd40dd6 Bug 1602565 - Don't run LoadURIDelegateChild on non-Content windows. r=snorp
Differential Revision: https://phabricator.services.mozilla.com/D59536

--HG--
extra : moz-landing-system : lando
2020-01-11 01:18:26 +00:00
Daniel Varga 3215317bdc Backed out changeset dd2f16711aba (bug 1606922) for causing build failures
CLOSED TREE
2020-01-11 03:08:34 +02:00
Mike Shal f5adc4762e Bug 1606922 - Move MOZ_AUTOMATION_PACKAGE_TESTS from mozconfigs to taskcluster; r=firefox-build-system-reviewers,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 task is win64-aarch64-shippable/opt, which copies tests
from another build rather than building them itself. For this reason, it
explicitly sets MOZ_AUTOMATION_PACKAGE_TESTS: '0' in the environment
even though that is now the default. This is why the exception is only
raised if MOZ_AUTOMATION_PACKAGE_TESTS is not set at all, rather than
checking that it is set to 1.

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

--HG--
extra : moz-landing-system : lando
2020-01-10 22:46:11 +00:00
James Willcox 01077c56aa Bug 1598793 - Use GeckoView logo for the example app icon r=geckoview-reviewers,twisniewski
Differential Revision: https://phabricator.services.mozilla.com/D59544

--HG--
extra : moz-landing-system : lando
2020-01-10 21:52:29 +00:00
James Willcox 5cdbd73662 Bug 1508730 - Ensure `WebExecutorTest#testSslError()` actually throws r=geckoview-reviewers,twisniewski
Differential Revision: https://phabricator.services.mozilla.com/D59529

--HG--
extra : moz-landing-system : lando
2020-01-10 21:40:40 +00:00
Neil Deakin f4cc73018c Bug 1601301, add an 'include descendants' flag to mediaCaptureWindowState. With fission, need to handle each subframe separately, r=jib
The window will be supplied in the recording-device-events notification and mediaCaptureWindowState will be called on each window in turn.

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

--HG--
extra : moz-landing-system : lando
2020-01-10 15:29:08 +00:00
James Willcox 3a8c22db22 Bug 1508730 - Add `WebRequestError#certificate`. r=geckoview-reviewers,droeh,agi
This is useful if you get a certificate-related error and want
to inspect the broken certificate.

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

--HG--
extra : moz-landing-system : lando
2020-01-10 15:24:08 +00:00
James Willcox e2656f7f99 Bug 1508730 - Add `WebResponse#certificate` r=geckoview-reviewers,droeh,agi
This is the server certificate, if any, as a
java.security.cert.X509Certificate.

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

--HG--
extra : moz-landing-system : lando
2020-01-10 15:09:24 +00:00
James Willcox 4764fe7733 Bug 1508730 - Add `WebResponse#isSecure` r=geckoview-reviewers,droeh,agi
Differential Revision: https://phabricator.services.mozilla.com/D58155

--HG--
extra : moz-landing-system : lando
2020-01-10 15:09:22 +00:00
James Willcox c1f7515ff8 Bug 1508730 - Expose full X509Certificate in `SecurityInfo` object r=geckoview-reviewers,droeh,agi
Differential Revision: https://phabricator.services.mozilla.com/D58154

--HG--
extra : moz-landing-system : lando
2020-01-10 15:24:36 +00:00
Emily Toop 8ef5bead3a Bug 1607817 - Sometimes gradle sync does not automatically start, in that case it is required to 'force' the sync to happen. Added instructions on how to do that. r=geckoview-reviewers,agi
Originally submitted as PR to documentation GH repo by @ktaelman. https://github.

...ub.com/mozilla/geckoview/pull/97

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

--HG--
extra : moz-landing-system : lando
2020-01-09 17:11:19 +00:00
Emily Toop c8d8e8922c Bug 1607814 - Add section for debugging GV on Windows to documentation r=geckoview-reviewers,m_kato
Originally submitted as PR on GH repo by @m_kato. Moved to docs repo in Mozilla Central. https://github.com/mozilla/geckoview/pull/89

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

--HG--
extra : moz-landing-system : lando
2020-01-10 13:32:52 +00:00
Narcis Beleuzu b5b7a719b8 Backed out 4 changesets (bug 1594820) for geckoview failures. CLOSED TREE
Backed out changeset 5bf29e6ca1e8 (bug 1594820)
Backed out changeset a6554cbe8a2f (bug 1594820)
Backed out changeset 9cc8d70c23bb (bug 1594820)
Backed out changeset b7ff66be3a86 (bug 1594820)
2020-01-10 03:16:20 +02:00
Aaron Klotz 4a2545c164 Bug 1594820: Part 4 - Modify GeckoThread.preload to directly call into the process manager; r=geckoview-reviewers,snorp
Now that everything in `GeckoProcessManager` runs on the XPCOM launcher thread,
`GeckoThread` should just call `GeckoProcessManager.preload()` directly.

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

--HG--
extra : moz-landing-system : lando
2020-01-09 21:41:02 +00:00
Aaron Klotz 5350ee469a Bug 1594820: Part 3 - Modify GeckoProcessManager to bind and start child processes asynchronously on the XPCOM launcher thread; r=geckoview-reviewers,agi
The primary purpose of this patch is to convert the internal sequence of
service binding and invoking of `start` to asynchronously run on the XPCOM
launcher thread via `GeckoResult`. Because more of the code now runs on the same
thread, many of these methods no longer need to be `synchronized`.

Disconnecting via `unbind` is also modified to use the launcher thread and
`GeckoResult`.

Note that no changes have been made yet to enable multiple processes of the
same type; those changes will be made in bug 1595834.

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

--HG--
extra : moz-landing-system : lando
2020-01-09 21:40:34 +00:00
Aaron Klotz 1a1ed57324 Bug 1594820: Part 2 - Make GeckoResult compatible with XPCOMEventTarget; r=snorp
This patch adds a `Dispatcher` implementation that allows us to create
`GeckoResult`s that will dispatch to the XPCOM launcher thread.

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

--HG--
extra : moz-landing-system : lando
2020-01-09 21:40:06 +00:00
Aaron Klotz cec0194852 Bug 1594820: Part 1 - Modify XPCOMEventTarget to accept method calls before JNI is ready; r=snorp
Since `XPCOMEventTarget` uses JNI, this patch makes it possible for consumers to
retrieve and invoke methods on one without needing to worry about whether JNI
is actually up yet.

To achieve this, we create the `IXPCOMEventTarget` interface, and observe that
both of its methods can be handled by a proxy if JNI is not ready:

* Calls to `dispatch` may be enqueued until JNI is up;
* Observe that, when JNI is not up yet, the result of `isOnCurrentThread`
  can never be `true`.

Once JNI is up and the event targets have been resolved, the proxies are
replaced with the real, concrete `XPCOMEventTarget`s and are no longer used for
the remainder of the Gecko instance's lifetime.

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

--HG--
extra : moz-landing-system : lando
2020-01-09 21:39:31 +00:00
Eugen Sawin a8257a80e4 Bug 1588237 - [1.1] Adjust telemetry test to accept incremental telemetry dispatching. r=chutten,agi
Differential Revision: https://phabricator.services.mozilla.com/D59129

--HG--
extra : moz-landing-system : lando
2020-01-09 12:25:33 +00:00
Tim Nguyen d6d631b95f Bug 1516577 - Update GeckoView about:config visual design. r=geckoview-reviewers,snorp
Differential Revision: https://phabricator.services.mozilla.com/D59203

--HG--
extra : moz-landing-system : lando
2020-01-08 21:06:36 +00:00
Aaron Klotz 0cd38fb1a5 Bug 1604345: Mark crashParent as UiThreadTest; r=geckoview-reviewers,snorp
`TestCrashHandler.Client` expects to run in the UI thread, so we move calls
to its methods into `crashParent` and annotate the test with `@UiThreadTest`.

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

--HG--
extra : moz-landing-system : lando
2020-01-07 15:41:27 +00:00
Agi Sferro 6ac412a45a Bug 1599585 - Implement enable/disable extensions. r=esawin,snorp
Differential Revision: https://phabricator.services.mozilla.com/D58859

--HG--
extra : moz-landing-system : lando
2020-01-07 22:30:59 +00:00
Agi Sferro 969a457a69 Bug 1605256 - Add exception type to message. r=snorp
This commit does two things:

- It exposes the error that caused the test to fail in our logs, so it would
  appear like so:

```
TEST-UNEXPECTED-FAIL | org.mozilla.geckoview.test.ExtensionActionTest.setIconSvg[#pageAction] | java.lang.AssertionError: We shouldn't get here
```

- It catches exceptions that are raised before any test code is run and outputs
  a different message (since those failures do not depend on the test at all),
  like so:

```
ERROR runjunit.py | The previous test failed because of an error in the test harness | org.mozilla.geckoview.test.rule.TestHarnessException: java.lang.RuntimeException: We shouldn't get here
```

This will hopefully help with spurious intermittents and understand when a
failure changes.

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

--HG--
extra : moz-landing-system : lando
2020-01-06 22:48:03 +00:00
Kris Taeleman 3850e70cb0 Bug 1605454 - Use GeckoRuntimeSettings intent extras to avoid API change for webrender fenix experiment. r=snorp
Differential Revision: https://phabricator.services.mozilla.com/D58568

--HG--
extra : moz-landing-system : lando
2020-01-06 20:38:18 +00:00
Arthur Iakab 3b5a06561f Backed out changeset debd90b3f579 (bug 1605454) for causing lint failure on GeckoRuntime.java
CLOSED TREE
2020-01-06 22:20:42 +02:00