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

31181 Коммитов

Автор SHA1 Сообщение Дата
Andi-Bogdan Postelnicu da72439c02 Bug 1731582 - Move to clang-13 r=firefox-build-system-reviewers,mhentges
Join work with glandium.

Differential Revision: https://phabricator.services.mozilla.com/D126208
2021-10-19 08:00:30 +00:00
Evgenia Kotovich 0d0980ee0d Bug 1576768 - Automatically format .sjs files using prettier. r=Standard8,agi,zombie,extension-reviewers
# ignore-this-changeset

Differential Revision: https://phabricator.services.mozilla.com/D128482
2021-10-18 09:26:33 +00:00
Noemi Erli 2bba3cec69 Backed out changeset 2ab6bb03dcc1 (bug 1576768) for causing failures in test_double_submit.html CLOSED TREE 2021-10-18 02:05:57 +03:00
Evgenia Kotovich 3e3dff109c Bug 1576768 - Automatically format .sjs files using prettier. r=Standard8,agi,zombie,extension-reviewers
# ignore-this-changeset

Differential Revision: https://phabricator.services.mozilla.com/D128482
2021-10-17 14:59:14 +00:00
Alexandru Michis dac6815201 Backed out changeset 7c08aa027893 (bug 1576768) for causing multiple failures.
CLOSED TREE
2021-10-15 16:52:43 +03:00
Evgenia Kotovich a8b32926fa Bug 1576768 - Automatically format .sjs files using prettier. r=Standard8,agi,zombie,extension-reviewers
# ignore-this-changeset

Differential Revision: https://phabricator.services.mozilla.com/D128482
2021-10-15 12:58:11 +00:00
Mike Hommey 7debb35262 Bug 1572618 - Statically link the rlbox library to libxul. r=firefox-build-system-reviewers,nika,andi
We still rely on dynamic loading to find the symbols, but since we get
them from libxul, we don't need to load the library before activating
the process sandbox anymore.

Differential Revision: https://phabricator.services.mozilla.com/D128333
2021-10-15 01:17:58 +00:00
Hiroyuki Ikezoe c61c568d4a Bug 1696785 - Use (400x400) display size in SelectionActionDelegateTest to avoid unexpected multiple updateposition events during the test. r=geckoview-reviewers,agi
SelectionActionDelegateTest does just respond a single event in each test cases,
so if there are multiple events we need to respond, the test stops working since
the response will be discarded in SelectionActionDelegateChild.jsm [1].

We use a lager display size here to avoid the situation, in bug 1735655 the situation
will be eliminated.

[1] https://searchfox.org/mozilla-central/rev/0998b61022a1ece43afe3c750077e5804c6c6392/mobile/android/actors/SelectionActionDelegateChild.jsm#260-264

Differential Revision: https://phabricator.services.mozilla.com/D128418
2021-10-14 02:54:58 +00:00
Michael Comella 94cf414dcd Bug 1734935 - add marker for GeckoSession.onLoadRequest. r=agi
Here is a profile demonstrating the change (debug build) when the request is
resolved UI thread -> Gecko thread -> UI thread:
https://share.firefox.dev/3Aru9NW

Here is a profile when the request is resolved synchronously on the UI thread:
https://share.firefox.dev/3BzGTDs

Differential Revision: https://phabricator.services.mozilla.com/D127989
2021-10-12 21:21:42 +00:00
Agi Sferro e8e0f7e153 Bug 1571899 - Format Java codebase with google-java-formatter. r=owlish
This commit was generated by running |./mach lint -l android-formatter --fix|.

Differential Revision: https://phabricator.services.mozilla.com/D127733
2021-10-11 18:11:56 +00:00
Agi Sferro 2bd64785fc Bug 1571899 - Use google-java-format via spotless to enforce Java formatting. r=ahal,owlish
This change adds a new lint `android-format` which enforces formatting of Java
code using google-java-format.

To run the lint simply run:

./mach lint -l android-format

This command also support automatically fixing all errors running by adding
--fix:

./mach lint -l android-format --fix

This change also removes all the formatting-related checkstyle checks which are
now implicitly enforced by the formatter.

Differential Revision: https://phabricator.services.mozilla.com/D127734
2021-10-11 18:11:55 +00:00
Jamie Nicol 54efd0cd5a Bug 1733732 - Disable display port multiplier on Android. r=tnikkel
On Android we currently apply a 4x multiplier to the size of the
display port. When using the old Layers rendering backend, we would
render the non-multiplied "critical display port" at normal
resolution, and if required we would render the inflated display port
in low resolution. This helped avoid checkerboarding.

With webrender we only render what is currently visible on the
screen, so having an inflated display port is probably less
useful. There are still circumstances when it could help avoid
checkerboarding, for example when the main thread is busy it allows
for more scrolling without a new scene being built. But this benefit
is likely outweighed by the increased display list and scene building
time caused by the larger display port.

As a first step this patch simply sets the layers.low-precision-buffer
pref to false, which will prevent us from increasing the display port
size. This will make the change easy to revert in case it does cause
any issues. If this has the desired effect then we can remove the
relevant code in a follow up patch.

Differential Revision: https://phabricator.services.mozilla.com/D128062
2021-10-11 17:52:14 +00:00
Makoto Kato 9408d87ba5 Bug 1734552 - Don't walk though the accessibility nodes on autofill. r=geckoview-reviewers,agi
When Autofill service runs with compatibility mode [*1] (such as Bitwarden),
`View.onProvideAutofillStructure` walks through the accessibility nodes.
Walking through it spends a lot of times.

When checking Android's source code, the following walks through it.

- `onProvideAutofillVirtualStructure`
- `autofill`
- `isVisibleToUserForAutofill`

Actually, since we already add autofill's virtual nodes, it is unnecessary to
walk through it.

*1 https://developer.android.com/reference/android/service/autofill/AutofillService#compatibility-mode

Differential Revision: https://phabricator.services.mozilla.com/D127952
2021-10-11 13:16:45 +00:00
Tomislav Jovanovic 1b801a123d Bug 1708243 - Part 4: Remove tab-content.js and onExtensionBrowser.js, stop touching .content eagerly r=robwu
Differential Revision: https://phabricator.services.mozilla.com/D127750
2021-10-09 22:45:28 +00:00
Michael Comella 97fefdd3af Bug 1734941 - add marker for EventDispatcher handleMessage. r=agi
Here's a sample profile when loading a page while using this marker (debug
build): https://share.firefox.dev/3Fni5kq

Differential Revision: https://phabricator.services.mozilla.com/D127990
2021-10-08 21:39:36 +00:00
Cathy Lu dcdbccb976 Bug 1708815 - Rename enterpiseRootsEnabled r=geckoview-reviewers,agi,owlish
Differential Revision: https://phabricator.services.mozilla.com/D127729
2021-10-07 19:16:41 +00:00
owlishDeveloper 7a6decb12a Bug 1734028 - Update GeckoView Contributor Guide r=geckoview-reviewers,agi,calu
Differential Revision: https://phabricator.services.mozilla.com/D127493
2021-10-06 16:12:02 +00:00
Agi Sferro 4fa08131c7 Bug 1714945 - Add StorageController::setPrivateBrowsingPermanentPermission. r=owlish
Normally, a private browsing session doesn't store any data permamently. This
extends to permissions, which are cleared at the end of the browsing session
(i.e. when the GeckoRuntime is closed or killed).

There are cases, however, where we want to keep the data around. For example
Focus needs to store tracking protection permissions permanently.

For this reason, this patch introduces a new API that allows embedders to set
permanent permissions for private browsing GeckoSession.

This patch also always sends a tracking protection permission for every page
load, this allows embedders to set the tracking protection permission without
using the deprecated API `setPermission`, this was an oversight during the
implementation of the new StorageController API.

Differential Revision: https://phabricator.services.mozilla.com/D126546
2021-10-05 22:09:59 +00:00
Agi Sferro 486cf25495 Bug 1714945 - Clean up PermissionDelegateTest. r=owlish
Removes redundant namespaces, adds some static imports, cleans up some java-ism
(like .equals and semicolons).

Differential Revision: https://phabricator.services.mozilla.com/D126545
2021-10-05 22:09:59 +00:00
Agi Sferro 165f96a8a2 Bug 1714945 - Actually deprecate ContentBlockingController. r=owlish
Differential Revision: https://phabricator.services.mozilla.com/D126543
2021-10-05 22:09:58 +00:00
Agi Sferro 36efcb63bd Bug 1572245 - Add TestRuntimeService to restart runtime in tests. r=owlish
This patch adds a new test service class that can be used to more easily write
a test that needs to run multiple runtimes or needs to reset the runtime.

The service also includes an optional Instance class that can be used to
control the service and send and receive messages from the remote runtime.

Differential Revision: https://phabricator.services.mozilla.com/D126542
2021-10-05 22:09:58 +00:00
Andrew Halberstadt 95449daa6d Bug 1732723 - Rename "taskgraph" Python module to "gecko_taskgraph". r=jmaher
For a long time two copies of the 'taskgraph' module have existed in parallel.
We've attempted to keep them in sync, but over time they have diverged and the
maintenance burden has increased.

In order to reduce this burden, we'd like to re-join the two code bases. The
canonical repo will be the one that lives outside of mozilla-central, and this
module will depend on it. Since they both have the same module name (taskgraph)
we need to rename the version in mozilla-central to avoid collisions.

Other consumers of 'taskgraph' (like mobile repos) have standardized on
'<project>_taskgraph' as their module names. So replicating that here as well.

Differential Revision: https://phabricator.services.mozilla.com/D127118
2021-09-30 09:50:08 -04:00
Makoto Kato c4cc01692d Bug 1672609 - Implement nsWindow::SetCursor to support cursor property on GeckoView. r=geckoview-reviewers,emilio,owlish
This change also supports pointer icon change such as I-beam etc when pointer
is on text box etc.

Differential Revision: https://phabricator.services.mozilla.com/D126062
2021-10-05 11:42:00 +00:00
Makoto Kato ac58befba4 Bug 1672609 - Add GeckoSessionTestRule.synthesizeMouseMove. r=geckoview-reviewers,agi
Differential Revision: https://phabricator.services.mozilla.com/D127019
2021-10-05 11:41:59 +00:00
Mirko Brodesser c61c10a2ce Bug 1731994: part 8) Rename `nsIContentPermissionRequest`'s `isHandlingUserInput` to `hasValidTransientUserGestureActivation`. r=edgar
It's more accurate.

Differential Revision: https://phabricator.services.mozilla.com/D126916
2021-10-04 12:16:00 +00:00
owlishDeveloper 82a30bcd6d Bug 1703976 - [1.0] Extend Autocomplete API to support credit card saving r=geckoview-reviewers,agi
Differential Revision: https://phabricator.services.mozilla.com/D111341
2021-10-02 00:28:05 +00:00
Makoto Kato c3d7964c59 Bug 1582606 - Allow data: url on GVE. r=geckoview-reviewers,agi
If data: url has space, it doesn't be recognized as data: url on GVE.

Differential Revision: https://phabricator.services.mozilla.com/D127124
2021-10-01 04:34:10 +00:00
Agi Sferro 1f930e4253 Bug 1557796 - Custom mozconfig for gradle build. r=nalexander,owlish
This patch introduces a new local.settings field: mozilla-central.mozconfig.

This field can be used to set a custom mozconfig file for the gradle build (and
for Android Studio).

The environment variable MOZCONFIG will take precedence over what is defined in
local.settings to allow Gecko engineers to use multiple mozconfig files.

Co-Authored-By: Nick Alexander <nalexander@mozilla.com>

Differential Revision: https://phabricator.services.mozilla.com/D124830
2021-09-29 17:54:57 +00:00
Noemi Erli 5ae6eff43a Backed out changeset 3339b501299a (bug 1703976) for causing geckoview failures CLOSED TREE 2021-09-28 02:38:01 +03:00
owlishDeveloper 20ea47506e Bug 1703976 - [1.0] Extend Autocomplete API to support credit card saving r=geckoview-reviewers,agi
Differential Revision: https://phabricator.services.mozilla.com/D111341
2021-09-27 21:41:13 +00:00
criss f968bf6006 Backed out changeset cd12974c5646 (bug 1703976) for causing lint failures in api.txt. CLOSED TREE 2021-09-28 00:03:31 +03:00
criss 1dc219c943 Backed out changeset ba8b96449fbd (bug 1703976) for causing Lint failures on Autocomplete.java. CLOSED TREE 2021-09-27 23:48:19 +03:00
owlishDeveloper e6812a3528 Bug 1703976 - [2.0] Update API changelog r=geckoview-reviewers,agi
Differential Revision: https://phabricator.services.mozilla.com/D111343
2021-09-27 20:37:06 +00:00
owlishDeveloper de738da4c8 Bug 1703976 - [1.0] Extend Autocomplete API to support credit card saving r=geckoview-reviewers,agi
Differential Revision: https://phabricator.services.mozilla.com/D111341
2021-09-27 20:16:25 +00:00
Alex Lopez 63022efc7a Bug 1696251: Allow mach commands as stand-alone functions and adapt existing commands. r=mhentges,webdriver-reviewers,perftest-reviewers,sparky,whimboo
This removes the `@CommandProvider` decorator and the need to implement
mach commands inside subclasses of `MachCommandBase`, and moves all
existing commands out from classes to module level functions.

Differential Revision: https://phabricator.services.mozilla.com/D121512
2021-09-27 18:12:51 +00:00
Cristian Tuns e3e80a22dc Bug 1717506 Disabled AutofillDelegate on debug build r=intermittent-reviewers,jmaher DONTBUILD
Differential Revision: https://phabricator.services.mozilla.com/D126613
2021-09-27 15:32:57 +00:00
Rob Wu 32398ebd89 Bug 1641735 - Re-enable some tabs tests on Android r=agi,extension-reviewers,zombie
test_ext_tab_runtimeConnect.html can be re-enabled since bug 1534640 got fixed.
test_ext_tabs_reload.html had a race condition.
test_ext_tabs_reload_bypass_cache.html fix similar to bug 1335180.

Differential Revision: https://phabricator.services.mozilla.com/D124090
2021-09-27 13:34:55 +00:00
Rob Wu f3cf76cb48 Bug 1641735 - Code cleanup of some extension tests r=geckoview-reviewers,agi,mixedpuppy
In the past, add_task was generator-based, and tests were automatically
rewritten to use Promises. Some tests have weird constructs such as the
use of Promise.all+await or still using generators. These have been
fixed.

Some tests request the tabs permission without actually needing it.

This patch does not affect the behavior of the tests.

Differential Revision: https://phabricator.services.mozilla.com/D124089
2021-09-27 13:34:55 +00:00
Rob Wu 8c0d686282 Bug 1641735 - Replace unnecessary uses of useAddonManager of ExtensionTestUtils.loadExtension r=zombie,agi,extension-reviewers
In mochitests on Android, ExtensionTestUtils.loadExtension defaults to
`useAddonManager: "android-only"` to allow Android tests to correctly
register with the AddonManager without unnecessarily forcing this
registration on desktop.

This patch removes all unnecessary uses of useAddonManager, to make it
obvious when a test really depends on the AddonManager (on desktop),
opposed to only depending on it indirectly as part of the GeckoView
implementation.

Differential Revision: https://phabricator.services.mozilla.com/D124088
2021-09-27 13:34:54 +00:00
Butkovits Atila eb735ac57e Backed out changeset 53b1fa0faa6d (bug 1696251) for breaking the static-analysis integration. a=backout 2021-09-23 13:06:40 +03:00
owlishDeveloper 800e6ffa5d Bug 1697866 - Add HTTPS-only specific error code and pass it to GeckoView, to handle HTTPS-only specific errors correctly r=agi,JulianWels,nika,ckerschb
Differential Revision: https://phabricator.services.mozilla.com/D120914
2021-09-23 01:41:47 +00:00
Noemi Erli 50d4e6c878 Backed out changeset 890d147bad1d (bug 1697866) for causing bustages in WindowGlobalParent.cpp CLOSED TREE 2021-09-23 01:20:43 +03:00
Katherine Patenio d2129b2d30 Bug 1731381 - remove brandProductName properties for Fluent migration r=fluent-reviewers,flod,mtigley
Differential Revision: https://phabricator.services.mozilla.com/D126027
2021-09-22 19:55:57 +00:00
owlishDeveloper 7acebc65af Bug 1697866 - Add HTTPS-only specific error code and pass it to GeckoView, to handle HTTPS-only specific errors correctly r=agi,JulianWels,nika,ckerschb
Differential Revision: https://phabricator.services.mozilla.com/D120914
2021-09-22 18:30:39 +00:00
Makoto Kato ac34e350cd Bug 1731517 - GeckoViewStreamListener::WriteSegment returns error instead of crash by java.lang.OutOfMemoryError. r=geckoview-reviewers,agi
It is better to return error instead of crash since
`nsIInputStream::ReadSegment` can handle error.

Differential Revision: https://phabricator.services.mozilla.com/D126060
2021-09-22 09:47:58 +00:00
Christoph Kerschbaumer 62ef76f6fa Bug 1731750: Adjust test loadWithHTTPSOnlyMode to work with https-first-mode enabled r=geckoview-reviewers,agi
Differential Revision: https://phabricator.services.mozilla.com/D126239
2021-09-22 09:45:40 +00:00
Alex Lopez a8e7083c84 Bug 1696251: Allow mach commands as stand-alone functions and adapt existing commands. r=mhentges,webdriver-reviewers,perftest-reviewers,sparky,whimboo
This removes the `@CommandProvider` decorator and the need to implement
mach commands inside subclasses of `MachCommandBase`, and moves all
existing commands out from classes to module level functions.

Differential Revision: https://phabricator.services.mozilla.com/D121512
2021-09-21 20:38:16 +00:00
Butkovits Atila c06a3dd9fa Backed out changeset 510dd46a9de7 (bug 1696251) for causing Android build bustages. 2021-09-21 05:16:50 +03:00
Alex Lopez fe61e94ec8 Bug 1696251: Allow mach commands as stand-alone functions and adapt existing commands. r=mhentges,webdriver-reviewers,perftest-reviewers,sparky,whimboo
This removes the `@CommandProvider` decorator and the need to implement
mach commands inside subclasses of `MachCommandBase`, and moves all
existing commands out from classes to module level functions.

Differential Revision: https://phabricator.services.mozilla.com/D121512
2021-09-20 20:21:07 +00:00
Katherine Patenio 4b0addaf02 Bug 1730972 - remove brandProductName from DTD. r=mtigley
Differential Revision: https://phabricator.services.mozilla.com/D125750
2021-09-20 14:39:05 +00:00
Noemi Erli 91aa2e2b9c Backed out changeset 5f5b612878f3 (bug 1696251) for causing multiple bustages 2021-09-18 02:22:39 +03:00
John Lin bae830176f Bug 1665776 - p5: add VPx support to AndroidEncoderModule. r=alwu
Differential Revision: https://phabricator.services.mozilla.com/D121022
2021-09-17 19:10:59 +00:00
Alex Lopez bf860fe7dc Bug 1696251: Allow mach commands as stand-alone functions and adapt existing commands. r=mhentges,webdriver-reviewers,perftest-reviewers,sparky,whimboo
This removes the `@CommandProvider` decorator and the need to implement
mach commands inside subclasses of `MachCommandBase`, and moves all
existing commands out from classes to module level functions.

Differential Revision: https://phabricator.services.mozilla.com/D121512
2021-09-17 19:00:39 +00:00
Rob Wu b92b9a1695 Bug 1728461 - Properly remove startup canary on Android to avoid purged caches r=agi,rpl,mossop
See https://bugzilla.mozilla.org/show_bug.cgi?id=1728461#c12 for
the analysis of the problem.

Differential Revision: https://phabricator.services.mozilla.com/D125131
2021-09-16 14:25:45 +00:00
Makoto Kato 00b8414f9b Bug 1717464 - Handle ACTION_CANCEL for TrackPad scroll. r=geckoview-reviewers,agi
This will be a bug of Android VM on Chrome OS.

When touching trackpad, Android VM on Chrome OS might fire scroll event for
trackpad, then, it fires cancel event immediately.

Actually, since we don't consider this situation, APZ detects that this is
log tap unfortunately.

So we should dispatch ACTION_CANCEL as scroll event.

Differential Revision: https://phabricator.services.mozilla.com/D125643
2021-09-16 00:57:18 +00:00
Csoregi Natalia 450bb4a4ae Backed out 13 changesets (bug 1665776) for causing failures on test_peerConnection_stats.html. CLOSED TREE
Backed out changeset 4b0d4001f1f1 (bug 1665776)
Backed out changeset 73ed5fe5e08f (bug 1665776)
Backed out changeset d1f7b6269840 (bug 1665776)
Backed out changeset 1611a0c8732c (bug 1665776)
Backed out changeset 15600cb52973 (bug 1665776)
Backed out changeset 5c0df59f6d97 (bug 1665776)
Backed out changeset 7cb0765f266c (bug 1665776)
Backed out changeset 07a4e96d4f2d (bug 1665776)
Backed out changeset 4e9613c3f492 (bug 1665776)
Backed out changeset c42a861fa5aa (bug 1665776)
Backed out changeset c1747633cf3a (bug 1665776)
Backed out changeset aeacd2804c75 (bug 1665776)
Backed out changeset 1e367c8a87bb (bug 1665776)
2021-09-15 23:12:53 +03:00
John Lin cf5c1036de Bug 1665776 - p5: add VPx support to AndroidEncoderModule. r=alwu
Differential Revision: https://phabricator.services.mozilla.com/D121022
2021-09-15 15:59:43 +00:00
Mark Banner 14aedbb785 Bug 1729460 - Change users of defineLazyServiceGetter(s) to use Services.* where appropriate. r=mossop,webdriver-reviewers,extension-reviewers,whimboo,robwu
Differential Revision: https://phabricator.services.mozilla.com/D124838
2021-09-10 12:09:49 +00:00
Noemi Erli e0f4b9b5fe Backed out 2 changesets (bug 1729460) for causing newtab failures CLOSED TREE
Backed out changeset 5617839462be (bug 1729460)
Backed out changeset 6d52fde3ee0e (bug 1729460)
2021-09-10 13:14:12 +03:00
Mark Banner 3cfdb5c41a Bug 1729460 - Change users of defineLazyServiceGetter(s) to use Services.* where appropriate. r=mossop,webdriver-reviewers,extension-reviewers,whimboo,robwu
Differential Revision: https://phabricator.services.mozilla.com/D124838
2021-09-10 09:38:42 +00:00
Agi Sferro 2ee8774b86 Bug 1729561 - Update com.koushikdutta.async to 3.1.0. r=owlish
This fixes a crash in our test harness, see
https://github.com/koush/AndroidAsync/issues/685.

Differential Revision: https://phabricator.services.mozilla.com/D124924
2021-09-09 15:57:32 +00:00
Tetsuharu Ohzeki 1b25bc2c77 Bug 1729580 - Remove unused `layers.***` pref more. r=gfx-reviewers,lsalzman
Differential Revision: https://phabricator.services.mozilla.com/D124866
2021-09-08 15:31:50 +00:00
Makoto Kato 750b27206e Bug 1729295 - Call super.actorCreated() to use eventDispatcher. r=geckoview-reviewers,agi
When tapping accessiblecaret and moving/releasing it, the follow error occurs.

```
GeckoViewContent[C]: handleEvent: mozcaretstatechanged
Web Content: [JavaScript Error: "TypeError: can't access property "sendRequest", this.eventDispatcher is undefined" {file: "resource:///actors/GeckoViewContentChild.jsm" line: 291}]
Web Content: handleEvent@resource:///actors/GeckoViewContentChild.jsm:291:11
```

I think that we miss super.actorCreated() call in actorCreate(). This might be
regression by bug 1661480.

Differential Revision: https://phabricator.services.mozilla.com/D124639
2021-09-07 23:06:31 +00:00
Agi Sferro fe18354034 Bug 1713969 - Generate session id ahead of time when requesting new session. r=owlish
Hiro found this race condition.

The problem is in this code:

```
338:    this.eventDispatcher
339:      .sendRequestForResult(message)
340:      .then(sessionId => {
341:        return this.waitAndSetupWindow(sessionId, aOpenWindowInfo, aName);
342:      })
```

At line 339 we ask the Java front-end to create a session and return back the
id of the session just created.

We then, at line 341, wait until the `geckoview-window-created` event fires
which signals that the session has been opened. We then _synchronously_ set
some attributes on the window object that allows us to connect the Java session
to the JavaScript window object.

Synchronicity is important as right after the `geckoview-window-created` event
fires all actors expect the embedderElement to be set on the window.

This, however, races with the code that creates the session:

```
540: } else if ("GeckoView:OnNewSession".equals(event)) {
541:     final String uri = message.getString("uri");
542:     final GeckoResult<GeckoSession> result = delegate.onNewSession(GeckoSession.this, uri);
...
547:
548:     callback.resolveTo(result.map(session -> {
...
562:         session.open(GeckoSession.this.mWindow.runtime);
563:         return session.getId();
564:     }));
```

As you can see, at line 562 we open the session, which asynchronously builds
the Gecko window and eventually fires the `geckoview-window-create` event. In
most cases, the message with the sessionId, sent at line 563, reaches the
JavaScript layer before the window has been opened, but sometimes it doesn't.

When the window opens before the JavaScript layer receives the sessionId back,
the promise at line 341 will never complete, causing intermittent failures in
our testing harness (and causing missing windows in consumer devices).

To fix this problem we modify the timing of creating the GeckoSession id.

The GeckoSession id only makes sense when the session is associated to a
GeckoRuntime instance, as the id is only used by Gecko. We can thus generate
the id whenever the Session is opened.

For sessions that are opened by the embedder directly, we can generate the id
randomly like usual. However, when the session is opened as a result of a
onNewSession (or onNewTab) call, we will set the id of the session using the id
given by the JavaScript layer.

This will enable the JavaScript layer to wait for the `geckoview-window-create`
before the Java layer has opportunity to respond, fixing the race condition.

Co-Authored-By: Hiroyuki Ikezoe <hikezoe.birchill@mozilla.com>

Differential Revision: https://phabricator.services.mozilla.com/D124502
2021-09-07 15:25:28 +00:00
Makoto Kato 07a531585b Bug 1724811 - Disable selection check of Java side on inputConnection_sendKeyEvent. r=geckoview-reviewers,agi
Actually `inputConnection_sendKeyEvent` test is rarely failed such as bug
1676245. Because we have no way to wait for correct selection data.
`TextInputDelegate.updateSelection` isn't called when view isn't attached to
window like geckoview-junit case.

So I would like to comment out this check now.

Depends on D124435

Differential Revision: https://phabricator.services.mozilla.com/D124436
2021-09-06 12:38:26 +00:00
owlishDeveloper 2942d2a222 Bug 1726209 - Add null check when retreiving UUID of a Node r=geckoview-reviewers,agi
Differential Revision: https://phabricator.services.mozilla.com/D123274
2021-09-03 22:43:01 +00:00
Rob Wu 2974448d5d Bug 1728669 - Simplify GeckoView:WebExtension:Connect/Message handlers r=agi
Differential Revision: https://phabricator.services.mozilla.com/D124260
2021-09-02 19:55:13 +00:00
Agi Sferro 52b49a2dbe Bug 1676216 - Remove unused checkbox on promptAuth and similar. r=dimi,owlish,necko-reviewers,kershaw
The checkbox is never actually displayed (I think) so we don't need any of this
code.

Differential Revision: https://phabricator.services.mozilla.com/D122502
2021-09-01 23:42:25 +00:00
Agi Sferro 0daddcbbb6 Bug 1676216 - Revert "Bug 1607537: Fix timeouts in ParentCrashTest.crashParent and re-enable the test" r=owlish
The code in this patch is not needed anymore because now we can handle multiple
in-app runtimes after Bug 1696460.

This reverts commit d49a34c51bc537caffcd559cda07be994105cebb.

Differential Revision: https://phabricator.services.mozilla.com/D123980
2021-09-01 23:40:35 +00:00
Agi Sferro 9ec1b5b24c Bug 1676216 - Use login storage for HTTP auth on Android r=dimi,owlish
This commit allows Android to use the login storage for HTTP auth by migrating
some common toolkit code to promptUsernameAndPassword and promptPassword which
use the login storage.

Differential Revision: https://phabricator.services.mozilla.com/D122508
2021-09-01 23:40:34 +00:00
Agi Sferro 1b4bd12049 Bug 1676216 - Allow runtime delegates in GeckoSessionTestRule. r=owlish
Historically, only session delegates have been allowed in GeckoSessionTestRule
utilities like delegateUntilTestEnd or delegateDuringNextWait.

There's no reason it has to be that way though, and allowing runtime delegates
to use the same utilities removes a lot of boilerplate code that we don't need.

Differential Revision: https://phabricator.services.mozilla.com/D122507
2021-09-01 23:40:34 +00:00
Agi Sferro a4f2c7f7f0 Bug 1676216 - Remove o.m.g.test.util.Callbacks. r=owlish
It's a relic of the past when we didn't require default methods for delegates,
we don't need it anymore.

Differential Revision: https://phabricator.services.mozilla.com/D122506
2021-09-01 23:40:33 +00:00
Agi Sferro f4796a5e64 Bug 1676216 - Add missing delegate getters. r=owlish
Almost all delegates have getters except for these two. These are also helpful
when implementing delegateUntilTestEnd for runtime delegates.

Differential Revision: https://phabricator.services.mozilla.com/D122505
2021-09-01 23:40:33 +00:00
Agi Sferro 524db15b59 Bug 1710668 - Allow Gecko to dismiss a prompt. r=owlish
This change adds a new API that allows Gecko to dismiss a prompt automatically.

This will be used to dismiss prompts when they shouldn't be displayed anymore,
e.g. when using basic auth, we hide the prompt if the server rejects the login
information, as we know that the login info is not correct, so there's no point
in saving it.

We will also dismiss prompts automatically when they become stale, e.g. if a
permission prompt is raised and then the user navigates away.

To be able to dismiss a prompt we need to keep track of existing prompt
instances for a Session. We assign each prompt a unique, randomly generated,
UUID that is used to match the javascript prompt instance with the java
counterpart.

The prompts are stored in PromptHolder. Because the PromptController is owned
by the GeckoSession, whenever the session is GC'd we will also release the
prompts associated to it (if any).

Differential Revision: https://phabricator.services.mozilla.com/D122504
2021-09-01 23:40:32 +00:00
Agi Sferro d0f048826c Bug 1710668 - Refactor handlePromptEvent into PromptController. r=owlish
Differential Revision: https://phabricator.services.mozilla.com/D122503
2021-09-01 23:40:32 +00:00
Narcis Beleuzu 117d408424 Backed out 1 changesets (bug 1728669) for mochitest failures on test_ext_tabs_executeScript_good.html
Backed out changeset 35295637d5fd (bug 1728669)
2021-09-02 02:25:00 +03:00
Agi Sferro 44c6b0ba31 Bug 1728666 - Allow building artifact builds without the NDK. r=nalexander
Looks like the new gradle version throws an exception now.

Differential Revision: https://phabricator.services.mozilla.com/D124258
2021-09-01 21:59:41 +00:00
Rob Wu 8bf1867b97 Bug 1728669 - Simplify GeckoView:WebExtension:Connect/Message handlers r=agi
Differential Revision: https://phabricator.services.mozilla.com/D124260
2021-09-01 21:57:20 +00:00
Botond Ballo 4d407aff38 Bug 1727676 - Remove APZ support code for progressive painting. r=tnikkel
The patch also removes the remaining related code from
CompositorBridgeParent/Child.

Differential Revision: https://phabricator.services.mozilla.com/D123721
2021-09-01 19:57:59 +00:00
Iulian Moraru 0672e33a18 Backed out 8 changesets (bug 1676216, bug 1710668) for causing build bustages. CLOSED TREE
Backed out changeset b18aea9590ee (bug 1676216)
Backed out changeset bb5fc7f9df83 (bug 1676216)
Backed out changeset dfc0ce411a75 (bug 1676216)
Backed out changeset d83b518be746 (bug 1676216)
Backed out changeset a7c71027c898 (bug 1676216)
Backed out changeset 41fee786f8ec (bug 1676216)
Backed out changeset 86546e1132f5 (bug 1710668)
Backed out changeset 8e3d053f5f55 (bug 1710668)
2021-09-01 21:57:28 +03:00
Agi Sferro 33356cb6e5 Bug 1676216 - Revert "Bug 1607537: Fix timeouts in ParentCrashTest.crashParent and re-enable the test" r=owlish
The code in this patch is not needed anymore because now we can handle multiple
in-app runtimes after Bug 1696460.

This reverts commit d49a34c51bc537caffcd559cda07be994105cebb.

Differential Revision: https://phabricator.services.mozilla.com/D123980
2021-09-01 17:19:41 +00:00
Agi Sferro 22c6b5887b Bug 1676216 - Remove unused checkbox on promptAuth and similar. r=dimi,owlish,necko-reviewers,kershaw
The checkbox is never actually displayed (I think) so we don't need any of this
code.

Differential Revision: https://phabricator.services.mozilla.com/D122502
2021-09-01 17:19:41 +00:00
Agi Sferro 3a3490bde8 Bug 1676216 - Use login storage for HTTP auth on Android r=dimi,owlish
This commit allows Android to use the login storage for HTTP auth by migrating
some common toolkit code to promptUsernameAndPassword and promptPassword which
use the login storage.

Differential Revision: https://phabricator.services.mozilla.com/D122508
2021-09-01 17:19:40 +00:00
Agi Sferro b885582d75 Bug 1676216 - Allow runtime delegates in GeckoSessionTestRule. r=owlish
Historically, only session delegates have been allowed in GeckoSessionTestRule
utilities like delegateUntilTestEnd or delegateDuringNextWait.

There's no reason it has to be that way though, and allowing runtime delegates
to use the same utilities removes a lot of boilerplate code that we don't need.

Differential Revision: https://phabricator.services.mozilla.com/D122507
2021-09-01 17:19:40 +00:00
Agi Sferro d556f6b9a9 Bug 1676216 - Remove o.m.g.test.util.Callbacks. r=owlish
It's a relic of the past when we didn't require default methods for delegates,
we don't need it anymore.

Differential Revision: https://phabricator.services.mozilla.com/D122506
2021-09-01 17:19:39 +00:00
Agi Sferro 70bca1ec31 Bug 1676216 - Add missing delegate getters. r=owlish
Almost all delegates have getters except for these two. These are also helpful
when implementing delegateUntilTestEnd for runtime delegates.

Differential Revision: https://phabricator.services.mozilla.com/D122505
2021-09-01 17:19:39 +00:00
Agi Sferro 675ba8fb82 Bug 1710668 - Allow Gecko to dismiss a prompt. r=owlish
This change adds a new API that allows Gecko to dismiss a prompt automatically.

This will be used to dismiss prompts when they shouldn't be displayed anymore,
e.g. when using basic auth, we hide the prompt if the server rejects the login
information, as we know that the login info is not correct, so there's no point
in saving it.

We will also dismiss prompts automatically when they become stale, e.g. if a
permission prompt is raised and then the user navigates away.

To be able to dismiss a prompt we need to keep track of existing prompt
instances for a Session. We assign each prompt a unique, randomly generated,
UUID that is used to match the javascript prompt instance with the java
counterpart.

The prompts are stored in PromptHolder. Because the PromptController is owned
by the GeckoSession, whenever the session is GC'd we will also release the
prompts associated to it (if any).

Differential Revision: https://phabricator.services.mozilla.com/D122504
2021-09-01 17:19:38 +00:00
Agi Sferro 063b1134e6 Bug 1710668 - Refactor handlePromptEvent into PromptController. r=owlish
Differential Revision: https://phabricator.services.mozilla.com/D122503
2021-09-01 17:19:38 +00:00
Tomislav Jovanovic 4d1c2087ec Bug 1708243 - Part 2: stop using sender data from the child process r=robwu,agi
Differential Revision: https://phabricator.services.mozilla.com/D123351
2021-08-31 23:15:17 +00:00
Agi Sferro 06af054df7 Bug 1727438 - Define glean as a capability instead of depending on it. r=nalexander,owlish
Depending on glean creates a circular dependency as glean depends on
glean-native which is substituted with GeckoView in omni builds.

Since Gradle 6 capabilities are passed on to consumers using the Gradle Module
Metadata, so now we can just define a glean capability in GeckoView and Fenix
will consume glean-native from GeckoView instead of adding a duplicated
libglean blob (there is code in the glean plugin to make sure this happens).

See also: https://docs.gradle.org/current/userguide/component_capabilities.html

Co-authored-by: Jan-Erik Rediger <janerik@fnordig.de>

Differential Revision: https://phabricator.services.mozilla.com/D123572
2021-08-31 20:53:10 +00:00
Agi Sferro 2d0ad69c9d Bug 1727438 - Import publishing metadata from variant. r=nalexander,owlish
There's a lot of code that we don't need anymore in our publication path (I'm
assuming it was needed when it was written but then gradle/the android plugin
caught up).

This has the nice side effect of producing better metadata (e.g. our
implementation dependencies end up in the |runtime| dependency group instead of
the default one where they were before, which means the app doesn't inherit our
private dependencies).

Co-authored-by: Jan-Erik Rediger <janerik@fnordig.de>

Differential Revision: https://phabricator.services.mozilla.com/D123571
2021-08-31 20:53:10 +00:00
Agi Sferro a820b1404e Bug 1727438 - Upgrade kotlin to 1.5.20. r=nalexander,owlish
Co-authored-by: Jan-Erik Rediger <janerik@fnordig.de>

Differential Revision: https://phabricator.services.mozilla.com/D123570
2021-08-31 20:53:09 +00:00
Agi Sferro 5675e00bd6 Bug 1727438 - Upgrade to Gradle 6.9.1. r=nalexander,owlish
This is the last version that doesn't require Java 11, we will upgrade to
Gradle 7 once all components are ready (namely, apilint).

Co-authored-by: Jan-Erik Rediger <janerik@fnordig.de>

Differential Revision: https://phabricator.services.mozilla.com/D123569
2021-08-31 20:53:09 +00:00
Agi Sferro 8b804e3125 Bug 1727438 - Increase java max heap to 32G. r=nalexander,owlish
Looks like 6G is not enough for an ASAN build when updating the gradle version.
I tried 8G and 16G on try but that's not enough either.

This also:

* Moves the asan job to `b-linux-large` as the `b-linux` builder does not have
  enough memory to run this build.
* Stops running a full build during lints, which is not necessary (and
  sometimes uses more memory than the build runner has, failing the lint).

Differential Revision: https://phabricator.services.mozilla.com/D123970
2021-08-31 20:53:08 +00:00
criss d1e9a72deb Backed out changeset a269440d7e21 (bug 1708243) for causing failures on mochitest/test_ext_tabs_create.html. CLOSED TREE 2021-08-31 23:22:19 +03:00
Tomislav Jovanovic c8825f7521 Bug 1708243 - Part 2: stop using sender data from the child process r=robwu,agi
Differential Revision: https://phabricator.services.mozilla.com/D123351
2021-08-31 18:48:17 +00:00
Agi Sferro 8c5a8a729e Bug 1725469 - Remove deprecated LoginStorageDelegate. r=owlish
This also removes deprecated getProfileDir.

Differential Revision: https://phabricator.services.mozilla.com/D122911
2021-08-31 14:53:59 +00:00
Csoregi Natalia ac7da6c730 Backed out changeset f966b7898d9f (bug 1708243) for geckoview failures. CLOSED TREE 2021-08-31 18:40:20 +03:00
Makoto Kato 74eb4491ae Bug 1727151 - Don't pass all text to intent if it is large. r=geckoview-reviewers,agi
Although we set all selected text to intent that is text processing, it may
cause `RemoteException` since binder cannot handle large data.

So we should truncate the text if it is more than 100K. This value is same as
Blink's limitation (https://crbug.com/1077599).

Differential Revision: https://phabricator.services.mozilla.com/D123410
2021-08-31 11:54:59 +00:00
Tomislav Jovanovic fdf59b2ca2 Bug 1708243 - Part 2: stop using sender data from the child process r=robwu,agi
Differential Revision: https://phabricator.services.mozilla.com/D123351
2021-08-31 11:46:11 +00:00
Marian-Vasile Laza d4a1825562 Backed out changeset 1395c54325a7 (bug 1708243) for causing gv-junit failures. CLOSED TREE 2021-08-31 06:53:43 +03:00
Tomislav Jovanovic 596f309c03 Bug 1708243 - Part 2: stop using sender data from the child process r=robwu,agi
Differential Revision: https://phabricator.services.mozilla.com/D123351
2021-08-31 00:21:38 +00:00
Marian-Vasile Laza e12ef6952e Backed out changeset 38cfb452cecf (bug 1708243) for causing mochitest failures on test_ext_tabs_sendMessage.html. CLOSED TREE 2021-08-31 02:40:51 +03:00
Tomislav Jovanovic 45dbaa8381 Bug 1708243 - Part 2: stop using sender data from the child process r=robwu,agi
Differential Revision: https://phabricator.services.mozilla.com/D123351
2021-08-30 22:54:47 +00:00
Cosmin Sabou c9893d3d5f Backed out 5 changesets (bug 1727438) for causing android build bustages. CLOSED TREE
Backed out changeset 66bad7f53820 (bug 1727438)
Backed out changeset e015a4e8b62e (bug 1727438)
Backed out changeset 97a06ad4cbcc (bug 1727438)
Backed out changeset ebb080f68880 (bug 1727438)
Backed out changeset 8d03d49fe3a3 (bug 1727438)
2021-08-31 00:11:19 +03:00
Agi Sferro dd1a360320 Bug 1727438 - Define glean as a capability instead of depending on it. r=nalexander,owlish
Depending on glean creates a circular dependency as glean depends on
glean-native which is substituted with GeckoView in omni builds.

Since Gradle 6 capabilities are passed on to consumers using the Gradle Module
Metadata, so now we can just define a glean capability in GeckoView and Fenix
will consume glean-native from GeckoView instead of adding a duplicated
libglean blob (there is code in the glean plugin to make sure this happens).

See also: https://docs.gradle.org/current/userguide/component_capabilities.html

Co-authored-by: Jan-Erik Rediger <janerik@fnordig.de>

Differential Revision: https://phabricator.services.mozilla.com/D123572
2021-08-30 19:15:11 +00:00
Agi Sferro 05048aa439 Bug 1727438 - Import publishing metadata from variant. r=nalexander,owlish
There's a lot of code that we don't need anymore in our publication path (I'm
assuming it was needed when it was written but then gradle/the android plugin
caught up).

This has the nice side effect of producing better metadata (e.g. our
implementation dependencies end up in the |runtime| dependency group instead of
the default one where they were before, which means the app doesn't inherit our
private dependencies).

Co-authored-by: Jan-Erik Rediger <janerik@fnordig.de>

Differential Revision: https://phabricator.services.mozilla.com/D123571
2021-08-30 19:15:11 +00:00
Agi Sferro aed476bdf8 Bug 1727438 - Upgrade kotlin to 1.5.20. r=nalexander,owlish
Co-authored-by: Jan-Erik Rediger <janerik@fnordig.de>

Differential Revision: https://phabricator.services.mozilla.com/D123570
2021-08-30 19:15:10 +00:00
Agi Sferro 78ae1c7c9b Bug 1727438 - Upgrade to Gradle 6.9.1. r=nalexander,owlish
This is the last version that doesn't require Java 11, we will upgrade to
Gradle 7 once all components are ready (namely, apilint).

Co-authored-by: Jan-Erik Rediger <janerik@fnordig.de>

Differential Revision: https://phabricator.services.mozilla.com/D123569
2021-08-30 19:15:10 +00:00
Agi Sferro d15794b08e Bug 1727438 - Increase java max heap to 16G. r=nalexander
Looks like 6G is not enough for an ASAN build when updating the gradle version.
I tried 8G on try but that's not enough either.

Differential Revision: https://phabricator.services.mozilla.com/D123970
2021-08-30 19:15:10 +00:00
Makoto Kato cceec66897 Bug 1670129 - Changing inputmode to none should dismiss software keyboard. r=geckoview-reviewers,agi
When focus isn't changed and inputmode in focused element is changed to none,
we should dismiss software keyboard.

Also, this has same issue for changing from none to text to show software
keyboard.

When changing inputmode, icNotifyIMEContext is called then we should control
software keyboard open/close state too.

Differential Revision: https://phabricator.services.mozilla.com/D122491
2021-08-30 01:30:30 +00:00
Butkovits Atila e42d7aa018 Backed out 5 changesets (bug 1727438, bug 1727577) for causing Android bustage. CLOSED TREE
Backed out changeset 552d8919435c (bug 1727577)
Backed out changeset 59d1a463178b (bug 1727438)
Backed out changeset 8cba5f574196 (bug 1727438)
Backed out changeset 00d32a3af979 (bug 1727438)
Backed out changeset efda82445d85 (bug 1727438)
2021-08-26 03:33:58 +03:00
Agi Sferro 6eb547963d Bug 1727438 - Define glean as a capability instead of depending on it. r=nalexander
Depending on glean creates a circular dependency as glean depends on
glean-native which is substituted with GeckoView in omni builds.

Since Gradle 6 capabilities are passed on to consumers using the Gradle Module
Metadata, so now we can just define a glean capability in GeckoView and Fenix
will consume glean-native from GeckoView instead of adding a duplicated
libglean blob (there is code in the glean plugin to make sure this happens).

See also: https://docs.gradle.org/current/userguide/component_capabilities.html

Co-authored-by: Jan-Erik Rediger <janerik@fnordig.de>

Differential Revision: https://phabricator.services.mozilla.com/D123572
2021-08-25 21:02:18 +00:00
Agi Sferro 895f5e7ae7 Bug 1727438 - Import publishing metadata from variant. r=nalexander
There's a lot of code that we don't need anymore in our publication path (I'm
assuming it was needed when it was written but then gradle/the android plugin
caught up).

This has the nice side effect of producing better metadata (e.g. our
implementation dependencies end up in the |runtime| dependency group instead of
the default one where they were before, which means the app doesn't inherit our
private dependencies).

Co-authored-by: Jan-Erik Rediger <janerik@fnordig.de>

Differential Revision: https://phabricator.services.mozilla.com/D123571
2021-08-25 21:02:18 +00:00
Agi Sferro 3e4b709e6d Bug 1727438 - Upgrade kotlin to 1.5.20. r=nalexander
Co-authored-by: Jan-Erik Rediger <janerik@fnordig.de>

Differential Revision: https://phabricator.services.mozilla.com/D123570
2021-08-25 21:02:17 +00:00
Agi Sferro 16fe3c1b74 Bug 1727438 - Upgrade to Gradle 6.9.1. r=nalexander
This is the last version that doesn't require Java 11, we will upgrade to
Gradle 7 once all components are ready (namely, apilint).

Co-authored-by: Jan-Erik Rediger <janerik@fnordig.de>

Differential Revision: https://phabricator.services.mozilla.com/D123569
2021-08-25 21:02:17 +00:00
Narcis Beleuzu 4981262857 Backed out changeset e49874b751fa (bug 1708243) for bc failures on browser_shims.js . CLOSED TREE 2021-08-25 19:23:32 +03:00
Tomislav Jovanovic 091713a1b5 Bug 1708243 - Part 2: stop using sender data from the child process r=robwu,agi
Differential Revision: https://phabricator.services.mozilla.com/D123351
2021-08-25 12:00:34 +00:00
Alex Lopez 4ae24b1f1b Bug 1696251: Refactor docstrings in mach commands. r=mhentges,webdriver-reviewers,geckoview-reviewers,agi
The purpose of this is to remove as many docstrings from CommandProvider
classes to make the step of moving commands out of classes simpler.
Where possible, the docstring has been moved to or merged with the function.

Differential Revision: https://phabricator.services.mozilla.com/D123288
2021-08-24 20:16:05 +00:00
Rob Wu 9cb377d63a Bug 1727272 - Improve performance of GeckoViewWebExtension.ensureBuiltIn r=agi,rpl
Differential Revision: https://phabricator.services.mozilla.com/D123431
2021-08-24 17:40:29 +00:00
Cosmin Sabou 0292ffb142 Backed out 6 changesets (bug 1676216, bug 1710668) for turning Bug 1615203 into permafail. CLOSED TREE
Backed out changeset 4784149fa5ae (bug 1676216)
Backed out changeset 42527af9a64a (bug 1676216)
Backed out changeset 9f187777d447 (bug 1676216)
Backed out changeset 708468680122 (bug 1676216)
Backed out changeset 71a4059dfe6f (bug 1710668)
Backed out changeset dbfc41e9bb76 (bug 1710668)
2021-08-24 07:22:27 +03:00
Agi Sferro 3f31865abf Bug 1676216 - Use login storage for HTTP auth on Android r=dimi,owlish
This commit allows Android to use the login storage for HTTP auth by migrating
some common toolkit code to promptUsernameAndPassword and promptPassword which
use the login storage.

Differential Revision: https://phabricator.services.mozilla.com/D122508
2021-08-23 17:40:07 +00:00
Agi Sferro 8cbdee0f49 Bug 1676216 - Allow runtime delegates in GeckoSessionTestRule. r=owlish
Historically, only session delegates have been allowed in GeckoSessionTestRule
utilities like delegateUntilTestEnd or delegateDuringNextWait.

There's no reason it has to be that way though, and allowing runtime delegates
to use the same utilities removes a lot of boilerplate code that we don't need.

Differential Revision: https://phabricator.services.mozilla.com/D122507
2021-08-23 17:40:07 +00:00
Agi Sferro 659b7748f9 Bug 1676216 - Remove o.m.g.test.util.Callbacks. r=owlish
It's a relic of the past when we didn't require default methods for delegates,
we don't need it anymore.

Differential Revision: https://phabricator.services.mozilla.com/D122506
2021-08-23 17:40:06 +00:00
Agi Sferro 3dfc1b68c4 Bug 1676216 - Add missing delegate getters. r=owlish
Almost all delegates have getters except for these two. These are also helpful
when implementing delegateUntilTestEnd for runtime delegates.

Differential Revision: https://phabricator.services.mozilla.com/D122505
2021-08-23 17:40:06 +00:00
Agi Sferro 1a53e17bd7 Bug 1710668 - Allow Gecko to dismiss a prompt. r=owlish
This change adds a new API that allows Gecko to dismiss a prompt automatically.

This will be used to dismiss prompts when they shouldn't be displayed anymore,
e.g. when using basic auth, we hide the prompt if the server rejects the login
information, as we know that the login info is not correct, so there's no point
in saving it.

We will also dismiss prompts automatically when they become stale, e.g. if a
permission prompt is raised and then the user navigates away.

To be able to dismiss a prompt we need to keep track of existing prompt
instances for a Session. We assign each prompt a unique, randomly generated,
UUID that is used to match the javascript prompt instance with the java
counterpart.

The prompts are stored in PromptHolder. Because the PromptController is owned
by the GeckoSession, whenever the session is GC'd we will also release the
prompts associated to it (if any).

Differential Revision: https://phabricator.services.mozilla.com/D122504
2021-08-23 17:40:05 +00:00
Agi Sferro 32f191786b Bug 1710668 - Refactor handlePromptEvent into PromptController. r=owlish
Differential Revision: https://phabricator.services.mozilla.com/D122503
2021-08-23 17:40:05 +00:00
Mike Hommey 2f0f713de2 Bug 1726101 - Enable wasm sandboxing on 64-bits Android. r=firefox-build-system-reviewers,mhentges,agi
Differential Revision: https://phabricator.services.mozilla.com/D122827
2021-08-20 04:02:41 +00:00
Mike Hommey b13e2389b8 Bug 1726453 - Don't set LLVM_LIBDIR_SUFFIX=64 when building android-cross clang. r=firefox-build-system-reviewers,mhentges
It's an unnecessary difference with our other clang builds. It looks
like it was cargo-culted from some external script. It makes the
android-cross clang different in the way it finds e.g. compiler
runtimes, some of which are in lib/, and others in lib64/, and only the
latter are actually found.

Differential Revision: https://phabricator.services.mozilla.com/D123017
2021-08-20 03:56:12 +00:00
Cosmin Sabou 84969e5caa Backed out 12 changesets (bug 1665776) for causing mda failures. CLOSED TREE
Backed out changeset 1093b571cd9e (bug 1665776)
Backed out changeset 97401a43356f (bug 1665776)
Backed out changeset e4d1fab7ed91 (bug 1665776)
Backed out changeset eef564e4e8ce (bug 1665776)
Backed out changeset b436ced5a9c2 (bug 1665776)
Backed out changeset 231057bbccc6 (bug 1665776)
Backed out changeset 918d100709b3 (bug 1665776)
Backed out changeset 63a6fb712a7c (bug 1665776)
Backed out changeset 2f9e721a4adb (bug 1665776)
Backed out changeset f65349f581ac (bug 1665776)
Backed out changeset eb289c096758 (bug 1665776)
Backed out changeset 077b96856a67 (bug 1665776)
2021-08-20 01:55:26 +03:00
John Lin 89a7c5d4f9 Bug 1665776 - p5: add VPx support to AndroidEncoderModule. r=alwu
Differential Revision: https://phabricator.services.mozilla.com/D121022
2021-08-19 19:01:20 +00:00
cschanaj f44ca48708 Bug 1510664 - Replace `HashMap` with `SparseArray` r=agi
This PR replaces `HashMap` with `SparseArray` from the Android API to
improve memory efficiency and performance.

Differential Revision: https://phabricator.services.mozilla.com/D121484
2021-08-18 14:40:26 +00:00
Butkovits Atila 3926c74569 Backed out changeset d06e292a30c1 (bug 1726101) for causing build bustages. CLOSED TREE 2021-08-18 13:37:17 +03:00
Mike Hommey 0476c7b042 Bug 1726101 - Enable wasm sandboxing on 64-bits Android. r=firefox-build-system-reviewers,mhentges,agi
Differential Revision: https://phabricator.services.mozilla.com/D122827
2021-08-18 01:17:55 +00:00
Eitan Isaacson 369b2d3854 Bug 1725413 - Null check arguments argument in performAction. r=agi
Differential Revision: https://phabricator.services.mozilla.com/D122647
2021-08-17 18:13:28 +00:00
Agi Sferro 5c215db6b3 Bug 1726180 - Include |api| dependencies in pom file. r=mhentges,owlish
Glean introduced a new type of dependencies (for us), "api". Since we build our
pom file manually we need to look at api dependencies too now.

Differential Revision: https://phabricator.services.mozilla.com/D122869
2021-08-17 16:24:38 +00:00
Marian-Vasile Laza b50f0ce625 Backed out changeset 65f8b0434e1e (bug 1708580) for causing Btime failures. CLOSED TREE 2021-08-14 00:44:48 +03:00
John Lin 7ef81ed249 Bug 1519236 - p1: expose cbcs support methods to JNI. r=bryce
Differential Revision: https://phabricator.services.mozilla.com/D122509
2021-08-13 18:35:55 +00:00
Aaron Klotz d8a5c41db0 Bug 1708580: When the "quit-application" event fires in GeckoView, annotate the GeckoThread.State and force crash on nightly and early beta; r=agi
AFAICT, all roads lead though [`nsAppStartup::Quit`](https://searchfox.org/mozilla-central/rev/0fec57c05d3996cc00c55a66f20dd5793a9bfb5d/toolkit/components/startup/nsAppStartup.cpp#448),
which is responsible for firing the `"quit-application"` observer notification
and then posting the `nsAppExitEvent` that causes the `nsAppShell` to break out
of its event loop and proceed with shutdown.

If we trigger a native crash in the observer, we should be able to capture a
symbolicated stack of whatever called `Quit`. We might as well force-crash
anyway, since AC is going to throw an exception regardless...

Before we crash, we annotate the current `GeckoThread` state to enable us to
find out whether we were fully initialized at the time of the shutdown.

Differential Revision: https://phabricator.services.mozilla.com/D122256
2021-08-13 15:45:37 +00:00
Narcis Beleuzu 5956c10a41 Backed out 10 changesets (bug 1665776) for mda failures on test_peerConnection_basicH264Video.html. CLOSED TREE
Backed out changeset 495d29e49600 (bug 1665776)
Backed out changeset def1b1ef88a0 (bug 1665776)
Backed out changeset d6c3bea02005 (bug 1665776)
Backed out changeset b5aecfe25f9f (bug 1665776)
Backed out changeset 76ab66d90c6b (bug 1665776)
Backed out changeset d5bd2b250b28 (bug 1665776)
Backed out changeset e8dc6645692d (bug 1665776)
Backed out changeset a1e00e5bd88f (bug 1665776)
Backed out changeset 3f6ff34fda68 (bug 1665776)
Backed out changeset 8d2f96b977ea (bug 1665776)
2021-08-13 04:34:55 +03:00
John Lin cbb3b7b6c4 Bug 1665776 - p5: add VPx support to AndroidEncoderModule. r=alwu
Differential Revision: https://phabricator.services.mozilla.com/D121022
2021-08-12 22:12:15 +00:00
Dorel Luca c5bcb28b25 Backed out changeset 27e6d1f6f6c1 (bug 1708580) on Dev's request. CLOSED TREE 2021-08-12 22:30:34 +03:00
Aaron Klotz 9daf72aa1f Bug 1708580: When the "quit-application" event fires in GeckoView, annotate the GeckoThread.State and force crash on nightly and early beta; r=agi
AFAICT, all roads lead though [`nsAppStartup::Quit`](https://searchfox.org/mozilla-central/rev/0fec57c05d3996cc00c55a66f20dd5793a9bfb5d/toolkit/components/startup/nsAppStartup.cpp#448),
which is responsible for firing the `"quit-application"` observer notification
and then posting the `nsAppExitEvent` that causes the `nsAppShell` to break out
of its event loop and proceed with shutdown.

If we trigger a native crash in the observer, we should be able to capture a
symbolicated stack of whatever called `Quit`. We might as well force-crash
anyway, since AC is going to throw an exception regardless...

Before we crash, we annotate the current `GeckoThread` state to enable us to
find out whether we were fully initialized at the time of the shutdown.

Differential Revision: https://phabricator.services.mozilla.com/D122256
2021-08-12 19:12:49 +00:00
Agi Sferro c14e63e428 Bug 1725400 - Fix GeckoView release artifactId. r=nalexander,owlish
The problem here is that the release artifactId was using single quotes instead
of double. I rewrote this code a little bit to avoid this sort of problem next
time by not having a release-build-only conditional branch.

Differential Revision: https://phabricator.services.mozilla.com/D122496
2021-08-12 18:36:42 +00:00
Agi Sferro b78b62e773 Bug 1725006 - Add missing unregister actor call. r=owlish
Differential Revision: https://phabricator.services.mozilla.com/D122396
2021-08-11 23:22:05 +00:00
Hiroyuki Ikezoe 982e2f4067 Bug 1678895 - Wait for PageStop and call promiseAllPaintsDone instead of waiting for the first-contentful-paint. r=geckoview-reviewers,agi
The first-contentful-paint doesn't ensure there's no more pending paint requests,
so if there's still pending paint requests and if one of the requests was an
important request to make sure our hit testing machinery works as expected (for
example, addEventListener triggers a paint request [1]), test doesn't work as
expected.

[1] https://searchfox.org/mozilla-central/rev/bb5549df90f9b0f5b453f9d8e872a94e503c64a6/dom/events/EventListenerManager.cpp#478

Differential Revision: https://phabricator.services.mozilla.com/D122311
2021-08-11 21:09:38 +00:00
Hiroyuki Ikezoe 68028d7f04 Bug 1678895 - Add GeckoSessionTestRule.promiseAllPaintsDone to make sure all pending paints have been finished. r=geckoview-reviewers,agi
This function will be used in the next commit to make sure there's no remaining
paint requests before proceeding each test cases. This code was mostly copied
and pasted from the commit when we introduced flushApzRepaints in bug 1660357.

This `promiseAllPaintsDone` is a simplified version of promiseAllPaintsDone in
paint_listener.js.  Though the paint_listener version is supposed to be loaded
and supposed to add an event listener for MozAfterPaint events in the first
place, whereas this version is supposed to keep adding an event listener for a
MozAfterPaint event until there's no pending paint request when it gets called,
it's a compromise but it should work as expected in most cases.

Differential Revision: https://phabricator.services.mozilla.com/D122310
2021-08-11 21:09:37 +00:00
Jan Varga 4311e5674b Bug 1599979 - Enable LSNG on Release; r=dom-storage-reviewers,jari,jstutte
Differential Revision: https://phabricator.services.mozilla.com/D121941
2021-08-10 14:53:34 +00:00
Emilio Cobos Álvarez 624584c368 Bug 1724405 - Make ui.caretBlinkCount a proper widget int, and make it respect GTK settings. r=stransky
And make sure the caret ends up being visible, rather than _not_
visible.

This should be implementable on windows as well. It seems macOS doesn't
have a timeout thing.

Differential Revision: https://phabricator.services.mozilla.com/D122132
2021-08-10 14:39:27 +00:00
Nika Layzell 9a93da8ebd Bug 1650089 - Part 9: Report errors back to caller when messaging from outside of a GeckoView controlled window, r=agi
Differential Revision: https://phabricator.services.mozilla.com/D122147
2021-08-10 14:31:19 +00:00
Nika Layzell aa9b1db7d6 Bug 1650089 - Part 3: Rework DocumentChannel-triggered process switches to support null principals, r=annyG,kmag
This is a large refactoring of the DocumentChannel process switch codepath,
with the end goal of being better able to support future process switch
requirements such as dynamic isolation on android, as well as the immediate
requirement of null principal handling.

The major changes include:
1. The logic is in C++ and has less failure cases, meaning it should be harder
   for us to error out unexpectedly and not process switch.
2. Process selection decisions are more explicit, and tend to rely less on
   state such as the current remoteType when possible. This makes reasoning
   about where a specific load will complete easier.
3. Additional checks are made after a "WebContent" behavior is selected to
   ensure that if an existing document in the same BCG is found, the load will
   finish in the required content process. This should make dynamic checks such
   as Android's logged-in site isolation easier to implement.
4. ProcessIsolation logging is split out from DocumentChannel so that it's
   easier to log just the information related to process selection when
   debugging.
5. Null result principal precursors are considered when performing process
   selection.

Other uses of E10SUtils for process selection have not yet been migrated to the
new design as they have slightly different requirements. This will be done in
follow-up bugs.

Differential Revision: https://phabricator.services.mozilla.com/D120673
2021-08-10 14:31:17 +00:00
Jan-Erik Rediger 123198cf63 Bug 1670261 - GeckoView: Ignore the JNA module. r=agi,firefox-build-system-reviewers,nalexander
Otherwise we end up with `libjnidispatch.so` for all targets in the
final APK, which we don't want.

Depends on D121100

Differential Revision: https://phabricator.services.mozilla.com/D122104
2021-08-10 07:49:09 +00:00
Jan-Erik Rediger 20e5ef2e83 Bug 1670261 - Add Mozilla Maven as a maven repository on CI. r=agi,firefox-build-system-reviewers,mhentges,nalexander
Differential Revision: https://phabricator.services.mozilla.com/D116603
2021-08-10 07:49:08 +00:00
Jan-Erik Rediger 9ff433d96b Bug 1670261 - Ensure the Glean versions in the project match. r=agi,chutten
In GeckoView we need to depend on the same Glean version as the included
Glean Rust crate has.
We _could_ let Gradle read that from Cargo.lock directly,
but that complicates the build.

Instead we manually update both versions to the same
and have Gradle ensure we don't forget that.

Differential Revision: https://phabricator.services.mozilla.com/D116602
2021-08-10 07:49:08 +00:00
Jan-Erik Rediger b2808bbfce Bug 1670261 - Re-export the Glean Kotlin bindings from GeckoView. r=agi
This also upgrades to Kotlin 1.3.50, which is required to due Glean
requirements. Fenix is already on 1.4, so that's no problem.

We also turn the geckoview_example into a multiDex application.
Otherwise we run into the 64k dex symbols size limit.

Differential Revision: https://phabricator.services.mozilla.com/D116601
2021-08-10 07:49:08 +00:00
Butkovits Atila 22fb2b6793 Backed out 8 changesets (bug 1650089) for causing Xpcshell failures on test_ext_redirects.js. CLOSED TREE
Backed out changeset ee763318d378 (bug 1650089)
Backed out changeset 24d7898ec4bd (bug 1650089)
Backed out changeset bcdd2f5c9840 (bug 1650089)
Backed out changeset 24a5bd7f97dd (bug 1650089)
Backed out changeset 1b8b4e939e82 (bug 1650089)
Backed out changeset a7a4f37a5d72 (bug 1650089)
Backed out changeset 78c012d4b071 (bug 1650089)
Backed out changeset e870508c1ddc (bug 1650089)
2021-08-06 04:35:52 +03:00
Nika Layzell 58c1037005 Bug 1650089 - Part 3: Rework DocumentChannel-triggered process switches to support null principals, r=annyG,kmag
This is a large refactoring of the DocumentChannel process switch codepath,
with the end goal of being better able to support future process switch
requirements such as dynamic isolation on android, as well as the immediate
requirement of null principal handling.

The major changes include:
1. The logic is in C++ and has less failure cases, meaning it should be harder
   for us to error out unexpectedly and not process switch.
2. Process selection decisions are more explicit, and tend to rely less on
   state such as the current remoteType when possible. This makes reasoning
   about where a specific load will complete easier.
3. Additional checks are made after a "WebContent" behavior is selected to
   ensure that if an existing document in the same BCG is found, the load will
   finish in the required content process. This should make dynamic checks such
   as Android's logged-in site isolation easier to implement.
4. ProcessIsolation logging is split out from DocumentChannel so that it's
   easier to log just the information related to process selection when
   debugging.
5. Null result principal precursors are considered when performing process
   selection.

Other uses of E10SUtils for process selection have not yet been migrated to the
new design as they have slightly different requirements. This will be done in
follow-up bugs.

Differential Revision: https://phabricator.services.mozilla.com/D120673
2021-08-06 00:10:57 +00:00
Agi Sferro 42b4f07527 Bug 1697636 - Removed deprecated GeckoResult.ALLOW and DENY. r=aklotz
Differential Revision: https://phabricator.services.mozilla.com/D119807
2021-08-04 18:01:33 +00:00
Alexandru Michis b042913290 Backed out 4 changesets (bug 1703977) for causing geckoview failures in AutocompleteTest#creditCardSelectAndFill
CLOSED TREE

Backed out changeset 25e5608dad37 (bug 1703977)
Backed out changeset e5af3f0446fa (bug 1703977)
Backed out changeset 40915609cbd8 (bug 1703977)
Backed out changeset 17226fa8618a (bug 1703977)
2021-08-04 14:13:28 +03:00
Dimi Lee 5384b694a0 Bug 1703977 - P1. Extend Form Autofill credit card saving support for the GeckoView storage r=geckoview-reviewers,agi
Differential Revision: https://phabricator.services.mozilla.com/D121633
2021-08-04 08:38:43 +00:00
Alexandru Michis 4f28e79ca9 Merge mozilla-central to autoland a=merge on a CLOSED TREE 2021-08-04 12:41:22 +03:00
Alexandru Michis 5ca72bfc53 Backed out 7 changesets (bug 1650089) for causing xpcshell failures in test_ext_cookieBehaviors.js
Backed out changeset 336d6eb2fc15 (bug 1650089)
Backed out changeset 283ba29cdbeb (bug 1650089)
Backed out changeset c470e4c65117 (bug 1650089)
Backed out changeset 8fc2f428694d (bug 1650089)
Backed out changeset 37e5185dae14 (bug 1650089)
Backed out changeset a26afdc56d91 (bug 1650089)
Backed out changeset 32e207558b3d (bug 1650089)
2021-08-04 12:32:07 +03:00
Makoto Kato 074bf8f89d Bug 1721395 - Don't send composing text to Gecko when selection is out of composing range. r=geckoview-reviewers,agi
Actually, Gecko cannot set caret position that is out of composing range. When
having composition, caret (in other word, IME caret) has to be within composing
string.

But Android's text framework can set caret position (selection) that is out of
composing range. Example, Android can have the following. `"ABCD[]"` is current
text and `[]` is selection and AB is composing string. But Gecko cannot.

So if this situation, we have to remove composing state then set selection from
Android's.

Differential Revision: https://phabricator.services.mozilla.com/D121502
2021-08-04 04:52:57 +00:00
Nika Layzell e0fc657cb6 Bug 1650089 - Part 3: Rework DocumentChannel-triggered process switches to support null principals, r=annyG,kmag
This is a large refactoring of the DocumentChannel process switch codepath,
with the end goal of being better able to support future process switch
requirements such as dynamic isolation on android, as well as the immediate
requirement of null principal handling.

The major changes include:
1. The logic is in C++ and has less failure cases, meaning it should be harder
   for us to error out unexpectedly and not process switch.
2. Process selection decisions are more explicit, and tend to rely less on
   state such as the current remoteType when possible. This makes reasoning
   about where a specific load will complete easier.
3. Additional checks are made after a "WebContent" behavior is selected to
   ensure that if an existing document in the same BCG is found, the load will
   finish in the required content process. This should make dynamic checks such
   as Android's logged-in site isolation easier to implement.
4. ProcessIsolation logging is split out from DocumentChannel so that it's
   easier to log just the information related to process selection when
   debugging.
5. Null result principal precursors are considered when performing process
   selection.

Other uses of E10SUtils for process selection have not yet been migrated to the
new design as they have slightly different requirements. This will be done in
follow-up bugs.

Differential Revision: https://phabricator.services.mozilla.com/D120673
2021-08-03 18:17:54 +00:00
Noemi Erli 6cd9318b66 Backed out 7 changesets (bug 1650089) foe causing bustages in ProcessIsolation.cpp
Backed out changeset 4e73beb8872c (bug 1650089)
Backed out changeset 092451e931ce (bug 1650089)
Backed out changeset ca9ba60010c6 (bug 1650089)
Backed out changeset ee61b69ba556 (bug 1650089)
Backed out changeset 091c4efa36a7 (bug 1650089)
Backed out changeset dbdee40ef8a0 (bug 1650089)
Backed out changeset 54d12a4333a0 (bug 1650089)
2021-08-03 20:15:54 +03:00
Nika Layzell 35dca5bd20 Bug 1650089 - Part 3: Rework DocumentChannel-triggered process switches to support null principals, r=annyG,kmag
This is a large refactoring of the DocumentChannel process switch codepath,
with the end goal of being better able to support future process switch
requirements such as dynamic isolation on android, as well as the immediate
requirement of null principal handling.

The major changes include:
1. The logic is in C++ and has less failure cases, meaning it should be harder
   for us to error out unexpectedly and not process switch.
2. Process selection decisions are more explicit, and tend to rely less on
   state such as the current remoteType when possible. This makes reasoning
   about where a specific load will complete easier.
3. Additional checks are made after a "WebContent" behavior is selected to
   ensure that if an existing document in the same BCG is found, the load will
   finish in the required content process. This should make dynamic checks such
   as Android's logged-in site isolation easier to implement.
4. ProcessIsolation logging is split out from DocumentChannel so that it's
   easier to log just the information related to process selection when
   debugging.
5. Null result principal precursors are considered when performing process
   selection.

Other uses of E10SUtils for process selection have not yet been migrated to the
new design as they have slightly different requirements. This will be done in
follow-up bugs.

Differential Revision: https://phabricator.services.mozilla.com/D120673
2021-08-03 15:39:34 +00:00
Butkovits Atila 0474a346a1 Backed out 6 changesets (bug 1670261) for causing perma android bustage. CLOSED TREE
Backed out changeset 58ab9d5d45b7 (bug 1670261)
Backed out changeset e68f58dd9c24 (bug 1670261)
Backed out changeset af093190c4f7 (bug 1670261)
Backed out changeset 150c73837e22 (bug 1670261)
Backed out changeset c42784eeccee (bug 1670261)
Backed out changeset 45ab05c0c371 (bug 1670261)
2021-08-03 15:11:22 +03:00
Jan-Erik Rediger 17a64b1d2a Bug 1670261 - Add Mozilla Maven as a maven repository on CI. r=agi,firefox-build-system-reviewers,mhentges,nalexander
Differential Revision: https://phabricator.services.mozilla.com/D116603
2021-08-02 16:22:46 +00:00
Jan-Erik Rediger d1298df426 Bug 1670261 - Ensure the Glean versions in the project match. r=agi,chutten
In GeckoView we need to depend on the same Glean version as the included
Glean Rust crate has.
We _could_ let Gradle read that from Cargo.lock directly,
but that complicates the build.

Instead we manually update both versions to the same
and have Gradle ensure we don't forget that.

Differential Revision: https://phabricator.services.mozilla.com/D116602
2021-08-02 16:22:46 +00:00
Jan-Erik Rediger e31efdfb2d Bug 1670261 - Re-export the Glean Kotlin bindings from GeckoView. r=agi
This also upgrades to Kotlin 1.3.50, which is required to due Glean
requirements. Fenix is already on 1.4, so that's no problem.

We also turn the geckoview_example into a multiDex application.
Otherwise we run into the 64k dex symbols size limit.

Differential Revision: https://phabricator.services.mozilla.com/D116601
2021-08-02 16:22:46 +00:00
William Durand b1c4ce35a8 Bug 1720845 - Remove the `extensions.webextPermissionPrompts` pref. r=rpl,robwu,asuth
This patch removes the `extensions.webextPermissionPrompts` pref as well as
`permissionPromptsEnabled` prop on `mozAddonManager`.

While working on this patch, we noticed that some of the `browser_webapi.js`
weren't testing anything for a while now. That has been fixed. In addition,
the `test_blocklistchange.js` file has been updated to handle the permissions
prompt.

Differential Revision: https://phabricator.services.mozilla.com/D121114
2021-07-30 14:25:24 +00:00
Henrik Skupin c27e9e4c4a Bug 1720676 - [marionette] Move component registration into components.conf. r=webdriver-reviewers,jdescottes
Differential Revision: https://phabricator.services.mozilla.com/D121095
2021-07-30 10:44:48 +00:00
Noemi Erli a5ebee57bb Backed out 2 changesets (bug 1720676) for causing remote failures CLOSED TREE
Backed out changeset 3c2599c00332 (bug 1720676)
Backed out changeset b58937c59f63 (bug 1720676)
2021-07-30 00:21:00 +03:00
Henrik Skupin 38d311bf45 Bug 1720676 - [marionette] Move component registration into components.conf. r=webdriver-reviewers,jdescottes
Differential Revision: https://phabricator.services.mozilla.com/D121095
2021-07-29 19:31:43 +00:00
Csoregi Natalia e8cf092efc Backed out 2 changesets (bug 1720676) for remote fails on browser_agent.js. CLOSED TREE
Backed out changeset 93a9c870d3d8 (bug 1720676)
Backed out changeset f915c04b9c35 (bug 1720676)
2021-07-29 21:30:57 +03:00
Henrik Skupin 5d0d08b2c2 Bug 1720676 - [marionette] Move component registration into components.conf. r=webdriver-reviewers,jdescottes
Differential Revision: https://phabricator.services.mozilla.com/D121095
2021-07-29 16:14:08 +00:00
Dorel Luca f8c23e7e7f Backed out 5 changesets (bug 1650089) for Browser-chrome failures in browser/components/originattributes/test/browser/browser_firstPartyIsolation_aboutPages.js. CLOSED TREE
Backed out changeset 26ddad079ad3 (bug 1650089)
Backed out changeset 5ae2b2641484 (bug 1650089)
Backed out changeset c5d267a1907c (bug 1650089)
Backed out changeset d9eeca699dec (bug 1650089)
Backed out changeset 8bb303f6831a (bug 1650089)
2021-07-29 05:53:31 +03:00
Nika Layzell 3072efd270 Bug 1650089 - Part 3: Rework DocumentChannel-triggered process switches to support null principals, r=annyG,kmag
This is a large refactoring of the DocumentChannel process switch codepath,
with the end goal of being better able to support future process switch
requirements such as dynamic isolation on android, as well as the immediate
requirement of null principal handling.

The major changes include:
1. The logic is in C++ and has less failure cases, meaning it should be harder
   for us to error out unexpectedly and not process switch.
2. Process selection decisions are more explicit, and tend to rely less on
   state such as the current remoteType when possible. This makes reasoning
   about where a specific load will complete easier.
3. Additional checks are made after a "WebContent" behavior is selected to
   ensure that if an existing document in the same BCG is found, the load will
   finish in the required content process. This should make dynamic checks such
   as Android's logged-in site isolation easier to implement.
4. ProcessIsolation logging is split out from DocumentChannel so that it's
   easier to log just the information related to process selection when
   debugging.
5. Null result principal precursors are considered when performing process
   selection.

Other uses of E10SUtils for process selection have not yet been migrated to the
new design as they have slightly different requirements. This will be done in
follow-up bugs.

Differential Revision: https://phabricator.services.mozilla.com/D120673
2021-07-29 01:40:20 +00:00
mleclair 6bab832d33 Bug 1710471 - added Gecko profiler markers for when GeckoView starts and finishes to initialize r=geckoview-reviewers,agi
Differential Revision: https://phabricator.services.mozilla.com/D114763
2021-07-28 22:37:12 +00:00
Aaron Klotz c9ac59dfa8 Bug 1714582: Ensure that cert error overrides do not mistakenly flag a connection as secure; r=geckoview-reviewers,owlish
Two issues:

1. We were missing the `originAttributes` argument to `nsICertOverrideService.hasMatchingOverride`.
2. If the override *does* exist, we should flagging it as insecure.

I also enhanced a test to check this.

Differential Revision: https://phabricator.services.mozilla.com/D121009
2021-07-27 22:57:25 +00:00
Aaron Klotz 022c804b33 Bug 1690296: Add callback to notify app to fully display its dynamic toolbar; r=agi,owlish,hiro
* Per advice from Emilio on Matrix, I consolidated overflow checks into `ScrollFrameHelper::GetOverflowState()`.
* In `ScrollFrameHelper::ReflowFinished` we detect the condition requring the app to expand the toolbar.
  (Hiro, I know that you suggested a second place to detect this. If you feel that it is important enough to add that,
   we'd prefer filing a follow-up bug in Layout for that case that your team can follow up on.)
* We then propagate the notification through `PresShell`, up through `PBrowser`, through the `nsWindow`, then into the `GeckoSession`
* We invoke a new method on the `ContentDelegate`. This seemed like the reasonable delegate to use given other existing
  callbacks in the similar vein (such as going fullscreen), but let me know if this should go elsewhere.
* We update GVE and JUnit tests to test this.

Differential Revision: https://phabricator.services.mozilla.com/D120499
2021-07-27 21:50:03 +00:00
Emilio Cobos Álvarez 857d1bf138 Bug 1249548 - Use svg for GeckoView carets. r=TYLin,agi
This allows us to style them with system colors. The SVGs are comment 2
but:

 * Cleaned up manually (removed random ids / namespaces / etc).
 * With -moz-accent-color as the fill color rather than orange.
 * With license added (since it was added by a mozilla.com address I'm
   pretty sure we can use them pretty much as-is, thanks :antlam!).

Differential Revision: https://phabricator.services.mozilla.com/D120910
2021-07-27 18:24:39 +00:00
Emilio Cobos Álvarez cd1744924f Bug 1722397 - Add a way to use the native accent color for selection and form controls on Android. r=agi
I tied it to the use-theme-accent bit in non-native-theme just for
convenience (so that form controls just react to this).

This works nicely, but I didn't turn this on by default because the
accessiblecaret images are hardcoded-blue pngs, and they look ugly
without being the same color as the native accent.

Differential Revision: https://phabricator.services.mozilla.com/D120898
2021-07-27 17:12:15 +00:00
Emilio Cobos Álvarez e16b720d45 Bug 1722353 - Remove unused defines.css in geckoview. r=geckoview-reviewers,agi
Differential Revision: https://phabricator.services.mozilla.com/D120873
2021-07-26 21:17:33 +00:00
Emilio Cobos Álvarez ebffc1928f Bug 1722359 - Remove ui.showHideScrollbars. r=mstange
It probably did something more useful in the past, but right now it's
only used to avoid throttling some overflow-causing animations.

It returns 0 everywhere except on Android (for some reason?), but in any
case it doesn't seem this would need to be a LookAndFeel integer, it
could just be a regular pref that we turn on for tests.

However the tests pass with this patch locally, so for now I'm not
adding a pref to replace it.

Differential Revision: https://phabricator.services.mozilla.com/D120871
2021-07-26 18:42:36 +00:00
Agi Sferro 6296f9a20b Bug 1722347 - Check for the AVD in |mach android-emulator|. r=owlish
Differential Revision: https://phabricator.services.mozilla.com/D120862
2021-07-26 17:57:30 +00:00
Gijs Kruitbosch 8a51e12805 Bug 1722076 - stop loading previously-removed GeckoViewPromptChild.js from GeckoViewStartup.jsm, r=agi
Differential Revision: https://phabricator.services.mozilla.com/D120758
2021-07-23 20:07:50 +00:00
Agi Sferro 9ddb8fe28a Bug 1719088 - Use document.exitFullscreen instead of traversing the tree. r=aklotz
We already have a method to do this in platform, let's use it.

Differential Revision: https://phabricator.services.mozilla.com/D120409
2021-07-23 16:54:15 +00:00
Karim Rahal 4d5eecd33f Bug 1669566 - Add cookieStoreId functionality to browser.download.download, browser.download.search, and browser.download.erase; add unit tests. r=robwu,geckoview-reviewers,agi
Differential Revision: https://phabricator.services.mozilla.com/D119967
2021-07-23 15:13:37 +00:00
owlishDeveloper 876dbadeb9 Bug 1648148 - Migrate GeckoViewAutofillChild from framescript to actor r=geckoview-reviewers,agi
Differential Revision: https://phabricator.services.mozilla.com/D120560
2021-07-22 23:15:39 +00:00
Jeff Muizelaar 3272c0e6ca Bug 1721631 - Remove Android WebRender experiment hack. r=jnicol,geckoview-reviewers,agi
We're not running this experiment anymore.

Differential Revision: https://phabricator.services.mozilla.com/D120487
2021-07-21 21:22:43 +00:00
Butkovits Atila 65bab54631 Backed out changeset 9d2cc3a9622d (bug 1721631) for causing geckoview failures. CLOSED TREE 2021-07-21 23:54:19 +03:00
Agi Sferro 0e8b9d451f Bug 1716536 - Add missing License headers to mobile. r=aklotz
This also moves some tests to the public domain according to the Mozilla
License Policy: https://www.mozilla.org/en-US/MPL/license-policy/

Differential Revision: https://phabricator.services.mozilla.com/D119824
2021-07-21 18:43:06 +00:00
Jeff Muizelaar c06402f582 Bug 1721631 - Remove Android WebRender experiment hack. r=jnicol,geckoview-reviewers,agi
We're not running this experiment anymore.

Differential Revision: https://phabricator.services.mozilla.com/D120487
2021-07-21 18:30:17 +00:00
Emilio Cobos Álvarez a5e65da4cb Bug 1714614 - Send visited query results only to interested processes. r=mak,geckoview-reviewers,agi
Differential Revision: https://phabricator.services.mozilla.com/D117179
2021-07-21 12:23:33 +00:00
Agi Sferro 52ba1458a2 Bug 1709640 - Remove unused variables in android/confvars.sh r=nalexander,aklotz
Differential Revision: https://phabricator.services.mozilla.com/D114371
2021-07-20 22:19:17 +00:00
Agi Sferro 8fc4964dd1 Bug 1709640 - Add GeckoView Lite build variant. r=jmaher,aklotz,mhentges,glandium
This patch adds a new GeckoView build variant dubbed "lite". We are in the
process of adding some optional dependencies to GeckoView that are needed by
Fenix (like Glean and Nimbus) which are likely not going to be used by anyone
else at Mozilla. To avoid bloating third party consumers, we provide a
geckoview-lite build that doesn't contain any optional dependency.

The min SDK version of GeckoView (non-lite) is being increased to 21 to match
Glean's min SDK. Given that Fenix's min SDK version is already 21 and that the
lite version's min SDK is still at 16 this change is safe to do and will not
incur in any loss of usability.

Differential Revision: https://phabricator.services.mozilla.com/D114370
2021-07-20 22:19:17 +00:00
Agi Sferro e8f6769032 Bug 1718341 - Download Android AVD from TL job artifact. r=nalexander
Differential Revision: https://phabricator.services.mozilla.com/D119542
2021-07-20 22:19:16 +00:00
Agi Sferro 6e06d728d2 Bug 1718341 - Run instrumented build on x86_64. r=aklotz,glandium
The ARM emulator images have very poor support and haven't been updated for a
long time.

Normally x86_64 images need KVM acceleration which is not available on build
machines (see Bug 1545497). We can work around this by starting the emulator
with the command line |--no-accel|.

Differential Revision: https://phabricator.services.mozilla.com/D119223
2021-07-20 22:19:13 +00:00
Agi Sferro 05486b27b3 Bug 1718341 - Rename arm-4.3 -> arm r=aklotz,nalexander
Differential Revision: https://phabricator.services.mozilla.com/D119220
2021-07-20 22:19:13 +00:00
Dylan Roeh 4160392bdb Bug 1543720 - Add support for Storage Access API in GeckoView. r=aklotz,geckoview-reviewers
Differential Revision: https://phabricator.services.mozilla.com/D116143
2021-07-20 20:28:28 +00:00
Sebastian Hengst 5a4f8ee0eb Backed out 13 changesets (bug 1709640, bug 1718341) for failing geckoview-junit tasks on shippable lite platform. CLOSED TREE
Backed out changeset abc4249b08a0 (bug 1709640)
Backed out changeset c7f2fa8d7535 (bug 1709640)
Backed out changeset 45b07d37f247 (bug 1709640)
Backed out changeset a15b3b87d71e (bug 1718341)
Backed out changeset a87639f2921b (bug 1718341)
Backed out changeset 31a57851c6d1 (bug 1718341)
Backed out changeset c7de56a1f886 (bug 1718341)
Backed out changeset 5e76806752c8 (bug 1718341)
Backed out changeset 74cfe6df218b (bug 1718341)
Backed out changeset 3bd0e376de51 (bug 1718341)
Backed out changeset 176238f92cfe (bug 1718341)
Backed out changeset 38d622f60fa5 (bug 1718341)
Backed out changeset 2e16fa5f0a1f (bug 1718341)
2021-07-20 11:31:01 +02:00
Agi Sferro 652c8238cf Bug 1709640 - Remove unused variables in android/confvars.sh r=nalexander,aklotz
Differential Revision: https://phabricator.services.mozilla.com/D114371
2021-07-20 03:23:33 +00:00
Agi Sferro 4c9aa8ef11 Bug 1709640 - Add GeckoView Lite build variant. r=jmaher,aklotz,mhentges,glandium
This patch adds a new GeckoView build variant dubbed "lite". We are in the
process of adding some optional dependencies to GeckoView that are needed by
Fenix (like Glean and Nimbus) which are likely not going to be used by anyone
else at Mozilla. To avoid bloating third party consumers, we provide a
geckoview-lite build that doesn't contain any optional dependency.

The min SDK version of GeckoView (non-lite) is being increased to 21 to match
Glean's min SDK. Given that Fenix's min SDK version is already 21 and that the
lite version's min SDK is still at 16 this change is safe to do and will not
incur in any loss of usability.

Differential Revision: https://phabricator.services.mozilla.com/D114370
2021-07-20 03:23:32 +00:00
Agi Sferro 4881f826db Bug 1718341 - Download Android AVD from TL job artifact. r=nalexander
Differential Revision: https://phabricator.services.mozilla.com/D119542
2021-07-20 03:23:32 +00:00
Agi Sferro 967c4e3272 Bug 1718341 - Run instrumented build on x86_64. r=aklotz,glandium
The ARM emulator images have very poor support and haven't been updated for a
long time.

Normally x86_64 images need KVM acceleration which is not available on build
machines (see Bug 1545497). We can work around this by starting the emulator
with the command line |--no-accel|.

Differential Revision: https://phabricator.services.mozilla.com/D119223
2021-07-20 03:23:29 +00:00
Agi Sferro 910da6cc43 Bug 1718341 - Rename arm-4.3 -> arm r=aklotz,nalexander
Differential Revision: https://phabricator.services.mozilla.com/D119220
2021-07-20 03:23:29 +00:00
Alex Lopez 77ce415604 Bug 1696251 - Replace self with command_context where possible in existing mach commands. r=mhentges,webdriver-reviewers,perftest-reviewers,whimboo
This step removes all the dependencies of mach commands to
having a MachCommandBase as the `self` by using the `command_context`
argument instead. This also removes any remaining statefulness from those
classes that implement mach commands, ultimately making it easier to move
existing commands out of classes in a follow-up.

Differential Revision: https://phabricator.services.mozilla.com/D118058
2021-07-19 16:04:25 +00:00
Butkovits Atila df5b6f3929 Backed out 13 changesets (bug 1709640, bug 1718341) for causing android build bustages. CLOSED TREE
Backed out changeset 20645ae32b84 (bug 1709640)
Backed out changeset 7c45682a8f98 (bug 1709640)
Backed out changeset 667e768fd75e (bug 1709640)
Backed out changeset f072adb45b85 (bug 1718341)
Backed out changeset cf443dddb5f5 (bug 1718341)
Backed out changeset 09d3d3e4ce7d (bug 1718341)
Backed out changeset 2b47cc469477 (bug 1718341)
Backed out changeset 8ec277361e46 (bug 1718341)
Backed out changeset b6c4c82d3efc (bug 1718341)
Backed out changeset 8afb8fcd0dc3 (bug 1718341)
Backed out changeset 7723d3a9ba7f (bug 1718341)
Backed out changeset f33b120a77d0 (bug 1718341)
Backed out changeset e7bf6deac270 (bug 1718341)
2021-07-17 01:02:51 +03:00
Agi Sferro 263b69b32d Bug 1709640 - Remove unused variables in android/confvars.sh r=nalexander,aklotz
Differential Revision: https://phabricator.services.mozilla.com/D114371
2021-07-16 19:26:49 +00:00
Agi Sferro 73fdfec807 Bug 1709640 - Add GeckoView Lite build variant. r=jmaher,aklotz,mhentges,glandium
This patch adds a new GeckoView build variant dubbed "lite". We are in the
process of adding some optional dependencies to GeckoView that are needed by
Fenix (like Glean and Nimbus) which are likely not going to be used by anyone
else at Mozilla. To avoid bloating third party consumers, we provide a
geckoview-lite build that doesn't contain any optional dependency.

The min SDK version of GeckoView (non-lite) is being increased to 21 to match
Glean's min SDK. Given that Fenix's min SDK version is already 21 and that the
lite version's min SDK is still at 16 this change is safe to do and will not
incur in any loss of usability.

Differential Revision: https://phabricator.services.mozilla.com/D114370
2021-07-16 19:26:48 +00:00
Agi Sferro 0c28adfdc3 Bug 1718341 - Download Android AVD from TL job artifact. r=nalexander
Differential Revision: https://phabricator.services.mozilla.com/D119542
2021-07-16 17:49:57 +00:00
Agi Sferro b06582c791 Bug 1718341 - Run instrumented build on x86_64. r=aklotz,glandium
The ARM emulator images have very poor support and haven't been updated for a
long time.

Normally x86_64 images need KVM acceleration which is not available on build
machines (see Bug 1545497). We can work around this by starting the emulator
with the command line |--no-accel|.

Differential Revision: https://phabricator.services.mozilla.com/D119223
2021-07-16 17:49:54 +00:00
Agi Sferro c43f1d54ef Bug 1718341 - Rename arm-4.3 -> arm r=aklotz,nalexander
Differential Revision: https://phabricator.services.mozilla.com/D119220
2021-07-16 17:49:54 +00:00
Butkovits Atila a07f790e42 Backed out changeset e1921c5112d8 (bug 1696251) for causing bustages complaining about 'CommandContext'. CLOSED TREE 2021-07-16 20:35:55 +03:00
Alex Lopez 190e03aaab Bug 1696251 - Replace self with command_context where possible in existing mach commands. r=mhentges,webdriver-reviewers,perftest-reviewers,whimboo
This step removes all the dependencies of mach commands to
having a MachCommandBase as the `self` by using the `command_context`
argument instead. This also removes any remaining statefulness from those
classes that implement mach commands, ultimately making it easier to move
existing commands out of classes in a follow-up.

Differential Revision: https://phabricator.services.mozilla.com/D118058
2021-07-16 15:51:29 +00:00
Sandor Molnar c40ce62c3c Backed out 10 changesets (bug 1718341) for causing wrench bustages. CLOSED TREE
Backed out changeset e5bd150a58b2 (bug 1718341)
Backed out changeset e82e752b8f44 (bug 1718341)
Backed out changeset d9462c727c8f (bug 1718341)
Backed out changeset 2bd647754780 (bug 1718341)
Backed out changeset 31dfce45985f (bug 1718341)
Backed out changeset 03266cea345d (bug 1718341)
Backed out changeset 3920b27acecb (bug 1718341)
Backed out changeset 2b17603c5e65 (bug 1718341)
Backed out changeset ebc0d5d4f537 (bug 1718341)
Backed out changeset 1c8844157b8d (bug 1718341)
2021-07-16 03:40:56 +03:00
Agi Sferro ea13a76521 Bug 1718341 - Download Android AVD from TL job artifact. r=nalexander
Differential Revision: https://phabricator.services.mozilla.com/D119542
2021-07-15 23:22:18 +00:00
Agi Sferro eebbe208b3 Bug 1718341 - Run instrumented build on x86_64. r=aklotz,glandium
The ARM emulator images have very poor support and haven't been updated for a
long time.

Normally x86_64 images need KVM acceleration which is not available on build
machines (see Bug 1545497). We can work around this by starting the emulator
with the command line |--no-accel|.

Differential Revision: https://phabricator.services.mozilla.com/D119223
2021-07-15 23:22:15 +00:00
Agi Sferro eb60dc64d3 Bug 1718341 - Rename arm-4.3 -> arm r=aklotz,nalexander
Differential Revision: https://phabricator.services.mozilla.com/D119220
2021-07-15 23:22:15 +00:00
Agi Sferro 6753022d3d Bug 1689612 - Support WebAuthn authenticator type on Android. r=tjr,dveditz,aklotz
The fact that we were checking for `extensions` seems like a typo to me? We
never set anything other than `fidoAppId` in the `extensions` bundle, which
makes sense to me (authenticatorAttachment is not an extension from what I can
tell).

Differential Revision: https://phabricator.services.mozilla.com/D119675
2021-07-13 16:56:26 +00:00
Tooru Fujisawa cc92ef732d Bug 1708448 - Move property and element functions into js/public/PropertyAndElement.h. r=nbp
Differential Revision: https://phabricator.services.mozilla.com/D119619
2021-07-13 11:52:42 +00:00
Rob Wu 85a7ce3d7c Bug 1717068 - Package summary of last_modified of RemoteSettings dumps r=leplatrem,nalexander
Package a summary of the RemoteSettings dumps with the application, so
that RemoteSettings clients can look up the last_modified value of a
dump without loading the whole JSON dump file.

For simplicity, the initial version of `gen_last_modified.py` generates
only one entry for the only present use case. A more generic version of
the script will be implemented in bug 1719560.

Differential Revision: https://phabricator.services.mozilla.com/D119336
2021-07-08 20:02:07 +00:00
Agi Sferro afa28451bf Bug 1696186 - Remove deprecated MediaElement API. r=aklotz
We're keeping the recording-related API since there's is (yet) no replacement
for it.

Differential Revision: https://phabricator.services.mozilla.com/D119325
2021-07-07 21:37:51 +00:00
Paul Zuehlcke 0e06dbdd71 Bug 1718091 - Added clearDataFromBaseDomain to GeckoView StorageController. r=geckoview-reviewers,agi,aklotz
Differential Revision: https://phabricator.services.mozilla.com/D118829
2021-07-06 21:21:10 +00:00
Makoto Kato 1c5c3f4ec2 Bug 1718512 - Remove unused BundleEventListener from GeckoNetworkManager. r=geckoview-reviewers,aklotz
By bug 1697680, Gecko removes Presentation API. `Wifi:GetIPAddress` was only used on this API implementation.
So now, this is unused.

Differential Revision: https://phabricator.services.mozilla.com/D118911
2021-07-06 04:10:22 +00:00
owlishDeveloper 1c2af46134 Bug 1699794 - [2.0] Add address autocomplete tests r=geckoview-reviewers,agi
Depends on D109139

Differential Revision: https://phabricator.services.mozilla.com/D109137
2021-06-22 22:03:01 +00:00
Makoto Kato 2bbef07fe0 Bug 1714998 - Rewrite org.mozilla.geckoview.test.TextInputDelegateTest.editorInfo_defaultByInputType. r=geckoview-reviewers,agi
When landing bug 1711626, I reuse /assets/www/forms.html for this issue. But
this causes unexpected issue. Although this HTML has iframe,
`loadTestPath(FORMS_HTML_PATH)` doesn't wait for iframe content, so then,
it seems to cause unexpected form initialization and editorInfo becomes
invalid value.

So I would like to rewrite this test.

InputConnection is updated asynchronously, so we need to check whether it is
created. Then even if it is created, editorInfo may not be ready. So we need
to flush IC's thread task.

Differential Revision: https://phabricator.services.mozilla.com/D118371
2021-06-21 21:19:46 +00:00
Henri Sivonen 7df7939f77 Bug 1713627 - Remove code obsoleted by the replacing the Text Encoding menu with one item. r=jaws,emk
Differential Revision: https://phabricator.services.mozilla.com/D116391
2021-06-21 12:09:01 +00:00
Dorel Luca 2118316ba4 Backed out changeset 4891a17c55e2 (bug 1713627) for Browser-chrome failures in docshell/test/browser/browser_bug673087-1.js. CLOSED TREE 2021-06-21 12:10:54 +03:00
Henri Sivonen abbbf94915 Bug 1713627 - Remove code obsoleted by the replacing the Text Encoding menu with one item. r=jaws,emk
Differential Revision: https://phabricator.services.mozilla.com/D116391
2021-06-21 08:09:43 +00:00
Peter Van der Beken 8f8cf61e5b Bug 1715483 - Prepare for BFCache in parent on Android when Fission is enabled. r=eeejay
Disabling a GeckoView-only test when BFCache in parent is on.

Differential Revision: https://phabricator.services.mozilla.com/D117274
2021-06-18 08:19:49 +00:00
Makoto Kato e03ba44abf Bug 1711541 - Implement IsUserVerifyingPlatformAuthenticatorAvailable for GeckoView. r=tjr,geckoview-reviewers,agi
Differential Revision: https://phabricator.services.mozilla.com/D117494
2021-06-16 00:00:05 +00:00
Sandor Molnar 75b64984a6 Backed out changeset fcc24ac34f5d (bug 1699794) for causing mochitest failures in creditCard/test_clear_form. CLOSED TREE 2021-06-15 21:32:49 +03:00
Shane Caraveo 957cb7e5e2 Bug 1706398 implement action support and alias browser_action to action. r=robwu,geckoview-reviewers,agi
Differential Revision: https://phabricator.services.mozilla.com/D113461
2021-06-15 14:51:12 +00:00
owlishDeveloper 9440a70da9 Bug 1699794 - [2.0] Add address autocomplete tests r=geckoview-reviewers,agi
Depends on D109139

Differential Revision: https://phabricator.services.mozilla.com/D109137
2021-06-15 13:59:59 +00:00
Kris Maglione ae436f55ec Bug 1646560: Part 2 - Move allowJavascript and friends from DocShell to BrowsingContext and WindowContext. r=jdescottes,nika,geckoview-reviewers,devtools-backward-compat-reviewers,agi
This is slightly complicated by the fact that the editor code wants to be able
to set this from the content process, so we really need separate
BrowsingContext and WindowContext flags, the latter of which can be set by the
owning process.

Differential Revision: https://phabricator.services.mozilla.com/D114899
2021-06-15 04:40:11 +00:00
Makoto Kato 75d5eab147 Bug 1711501 - Clean up browser.properties. r=geckoview-reviewers,agi
Extension.jsm, ContextualIdentityService.jsm and GeckoViewConsole.jsm still reference browser.properties.

Depends on D117622

Differential Revision: https://phabricator.services.mozilla.com/D117623
2021-06-15 03:00:54 +00:00
Makoto Kato 91cbe3c73a Bug 1711501 - Remove Fennec's character encoding menu preference. r=geckoview-reviewers,agi
Differential Revision: https://phabricator.services.mozilla.com/D117622
2021-06-15 03:00:54 +00:00
Makoto Kato 714e4c72eb Bug 1715947 - Don't call callback after GeckoHlsPlayer is released. r=jolin
`GeckoHlsPlayer.release()` releases `ExoPlayer` object on player thread. But it
doesn't wait for whether it calls stop and callback is released. But
`HLSDecoder` calls `GeckoHLSResourceWrapper.destroy()` then dispose JNI
callback object immediately. So `GeckoHlsPlayer` may calls callback even if
callback is disposed.

We should check `mReleasing` before calling callback.

Differential Revision: https://phabricator.services.mozilla.com/D117505
2021-06-14 02:17:57 +00:00
Butkovits Atila 2d737038f6 Backed out changeset a6ec3acd5daf (bug 1543720) for causing failures at dlharness.window.html. CLOSED TREE 2021-06-12 05:16:57 +03:00
Butkovits Atila a4246aecb0 Backed out changeset c99bb7d3308e (bug 1699794) for causing Mochitest failures in browser_anti_clickjacking.js. CLOSED TREE 2021-06-12 02:41:21 +03:00
Dylan Roeh 8c537c1329 Bug 1543720 - Add support for Storage Access API in GeckoView. r=aklotz,geckoview-reviewers
Differential Revision: https://phabricator.services.mozilla.com/D116143
2021-06-11 23:15:01 +00:00
owlishDeveloper 001ef39fb7 Bug 1699794 - [2.0] Add address autocomplete tests r=geckoview-reviewers,agi
Depends on D109139

Differential Revision: https://phabricator.services.mozilla.com/D109137
2021-06-11 21:41:09 +00:00
Dorel Luca 7b8732cc36 Backed out changeset 3a5a0d8ea411 (bug 1699794) for Browser-chrome failures in browser/extensions/formautofill/test/browser/browser_autocomplete_footer.js. CLOSED TREE 2021-06-11 08:16:37 +03:00
owlishDeveloper 6e8d713c5a Bug 1699794 - [2.0] Add address autocomplete tests r=geckoview-reviewers,agi
Depends on D109139

Differential Revision: https://phabricator.services.mozilla.com/D109137
2021-06-11 03:58:30 +00:00
Sandor Molnar 9fc83995ba Backed out changeset 7cede79b33b2 (bug 1699794) for causing mochitest failures in browser_autocomplete_footer. CLOSED TREE 2021-06-11 00:10:21 +03:00
owlishDeveloper 0e08522db7 Bug 1699794 - [3.0] Update API changelog r=geckoview-reviewers,agi
Depends on D109137

Differential Revision: https://phabricator.services.mozilla.com/D109138
2021-06-10 20:02:19 +00:00
owlishDeveloper a7b2c26e2a Bug 1699794 - [2.0] Add address autocomplete tests r=geckoview-reviewers,agi
Depends on D109139

Differential Revision: https://phabricator.services.mozilla.com/D109137
2021-06-10 19:54:05 +00:00
owlishDeveloper b9108bfd0e Bug 1699794 - [1.0] Extend GV Autocomplete API with address support r=geckoview-reviewers,agi,aklotz
Differential Revision: https://phabricator.services.mozilla.com/D109139
2021-06-10 19:17:11 +00:00