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

29383 Коммитов

Автор SHA1 Сообщение Дата
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