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

31013 Коммитов

Автор SHA1 Сообщение Дата
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
Alexandru Michis 9c0300eebd Backed out changeset 1e76e5ecdfbe (bug 1714614) for causing gtest and gv-junit failures.
CLOSED TREE
2021-06-10 17:35:20 +03:00
Emilio Cobos Álvarez d883d39471 Bug 1714614 - Send visited query results only to interested processes. r=mak,geckoview-reviewers,agi
Differential Revision: https://phabricator.services.mozilla.com/D117179
2021-06-10 12:21:42 +00:00
Christoph Kerschbaumer 2df9bc6544 Bug 1714950: Fix test loadWithHTTPSOnlyMode with https-first-mode enabled r=geckoview-reviewers,agi
Differential Revision: https://phabricator.services.mozilla.com/D116990
2021-06-09 19:42:32 +00:00
Emilio Cobos Álvarez b2f35d2cc0 Bug 1714614 - Avoid some copies of URI arrays in GeckoViewHistory. r=geckoview-reviewers,agi
Also preliminar cleanup.

Depends on D117177

Differential Revision: https://phabricator.services.mozilla.com/D117178
2021-06-08 17:53:04 +00:00
Emilio Cobos Álvarez af1c25c2fe Bug 1714614 - Remove unused members in GeckoViewHistory. r=geckoview-reviewers,agi
This is just preliminar cleanup.

Differential Revision: https://phabricator.services.mozilla.com/D117177
2021-06-08 17:53:03 +00:00
Brindusan Cristian 19785b8b33 Backed out 3 changesets (bug 1709640) for causing android-4-1-armv7 pgo build bustages.
CLOSED TREE

Backed out changeset d8f2f3cc4da7 (bug 1709640)
Backed out changeset 3a6a274dae0d (bug 1709640)
Backed out changeset decc4edd47f9 (bug 1709640)
2021-06-08 03:58:27 +03:00
Makoto Kato 017277558c Bug 1713588 - Don't sync shadow text during composing. r=geckoview-reviewers,agi
Gecko's text API has a hint whether text change notification is by IME
composing. If by IME composing, it is unnecessary to synchronize it by
onSelectionChange because JavaScript doesn't block/change inputted text.
It means that shadow (Java) text is always matched to Gecko text.

So we don't have to synchronize shadow text during composing.

Differential Revision: https://phabricator.services.mozilla.com/D116476
2021-06-08 00:33:59 +00:00
Agi Sferro bb1ab4b1d3 Bug 1709640 - Remove unused variables in android/confvars.sh r=nalexander,aklotz
Differential Revision: https://phabricator.services.mozilla.com/D114371
2021-06-07 21:49:07 +00:00
Agi Sferro 63b9850a4c 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-06-07 21:49:07 +00:00
Dylan Roeh eaaaa8490a Bug 1712754 - Do not autogrant permissions in GV push notification code. r=aklotz
Differential Revision: https://phabricator.services.mozilla.com/D116293
2021-06-07 17:57:26 +00:00
Dylan Roeh bbdf0480b8 Bug 1699480 - Add string-based setPermission with deprecation schedule so AC can import old permissions. r=agi,geckoview-reviewers
Depends on D113422

Differential Revision: https://phabricator.services.mozilla.com/D114264
2021-06-07 17:57:26 +00:00
Dylan Roeh 6631b713ec Bug 1699480 - Update GV changelog for permissions API changes. r=geckoview-reviewers,agi
Depends on D113421

Differential Revision: https://phabricator.services.mozilla.com/D113422
2021-06-07 17:57:25 +00:00
Dylan Roeh 5f6ea1b21b Bug 1699480 - Add tests for new GV permission functionality. r=geckoview-reviewers,agi
Depends on D113134

Differential Revision: https://phabricator.services.mozilla.com/D113421
2021-06-07 17:57:25 +00:00
Dylan Roeh c5afb9285f Bug 1699480 - Deprecate most existing TP exception API in GV and migrate it to new permissions API; also allow for importing/exporting ContentPermissions as JSONObjects. r=agi,geckoview-reviewers,aklotz
Depends on D112042

Differential Revision: https://phabricator.services.mozilla.com/D113134
2021-06-07 17:57:24 +00:00
Dylan Roeh 9aee13c478 Bug 1699480 - Add setPermission, update onContentPermissionRequest to use ContentPermission, and let Gecko manage and persist permissions in GV. r=agi,geckoview-reviewers,owlish
Differential Revision: https://phabricator.services.mozilla.com/D112042
2021-06-07 17:57:24 +00:00
Alexandru Michis e8904db16a Backed out 5 changesets (bug 1699480) for causing lint failures.
CLOSED TREE

Backed out changeset 5ed626994de6 (bug 1699480)
Backed out changeset e4be23f4dbe9 (bug 1699480)
Backed out changeset 68b5f5c2f1e6 (bug 1699480)
Backed out changeset 425aa354f1ca (bug 1699480)
Backed out changeset e3005001299c (bug 1699480)
2021-06-07 20:52:25 +03:00
Brindusan Cristian 5cf5cf50d5 Backed out changeset 6815d3239524 (bug 1712754) for causing lint failures in StorageController.java. CLOSED TREE 2021-06-07 20:30:47 +03:00
Dylan Roeh 088158ede7 Bug 1712754 - Do not autogrant permissions in GV push notification code. r=aklotz
Differential Revision: https://phabricator.services.mozilla.com/D116293
2021-06-07 17:02:28 +00:00
Dylan Roeh a139dfb77a Bug 1699480 - Add string-based setPermission with deprecation schedule so AC can import old permissions. r=agi,geckoview-reviewers
Depends on D113422

Differential Revision: https://phabricator.services.mozilla.com/D114264
2021-06-07 17:02:28 +00:00
Dylan Roeh 4e374809d5 Bug 1699480 - Update GV changelog for permissions API changes. r=geckoview-reviewers,agi
Depends on D113421

Differential Revision: https://phabricator.services.mozilla.com/D113422
2021-06-07 17:02:28 +00:00
Dylan Roeh a8706c49cc Bug 1699480 - Add tests for new GV permission functionality. r=geckoview-reviewers,agi
Depends on D113134

Differential Revision: https://phabricator.services.mozilla.com/D113421
2021-06-07 17:02:27 +00:00
Dylan Roeh 45c8708b61 Bug 1699480 - Deprecate most existing TP exception API in GV and migrate it to new permissions API; also allow for importing/exporting ContentPermissions as JSONObjects. r=agi,geckoview-reviewers,aklotz
Depends on D112042

Differential Revision: https://phabricator.services.mozilla.com/D113134
2021-06-07 17:02:27 +00:00
Dylan Roeh 648ddb2f54 Bug 1699480 - Add setPermission, update onContentPermissionRequest to use ContentPermission, and let Gecko manage and persist permissions in GV. r=agi,geckoview-reviewers,owlish
Differential Revision: https://phabricator.services.mozilla.com/D112042
2021-06-07 17:02:26 +00:00
Julian Descottes 5f47d42219 Bug 1714348 - [marionette] Update chrome imports for Marionette modules to /remote/content/marionette r=webdriver-reviewers,Gijs,whimboo
Differential Revision: https://phabricator.services.mozilla.com/D116732
2021-06-07 10:08:24 +00:00
Makoto Kato 19830e553c Bug 1711626 - Don't set InputType.TYPE_TEXT_FLAG_CAP_SENTENCES for some types. r=geckoview-reviewers,agi
Actually, we set auto-capitalize flag if current `<input>` element isn't text
due to bug 871884.

Most 3rd party keyboard ignores this flag if it is password. But Samsung's
default keyboard uses this flag even if this is password.

So we shouldn't set auto-capitalize flag if `<input>` element is password.

Also, we also set this on `type=email` and `type=url`. But when I check Chrome
behaviour, they don't set this flag on these types. So I would like not to set
this flag to these types too.

Differential Revision: https://phabricator.services.mozilla.com/D115677
2021-06-07 04:34:28 +00:00
Makoto Kato c8a63999d9 Bug 1713354 - Destroy previous text transactions when Gecko requests to synchronize all text. r=geckoview-reviewers,agi
https://accounts.firefox.com runs the following script.

```
input.addEventListener("keyup", () => {
  // Update <datalist>

  temporaryElement.focus();
  input.focus();
}
```

Since `input.focus()` is called, `GeckoViewSupport` sends current value of
focused `<input>` element to `GeckoEditable`, but we don't cancel previous
text transaction unfortunately. Then it may cause unexpected behaviours such
as reported issue.

So we should dispose previous text transaction when getting new focus.

Also it is difficult to write unit test for this. Because,
- Mochitest cannot test this since this issue is native IME behaviour.
- No way to create this timing on geckoview-junit.

Differential Revision: https://phabricator.services.mozilla.com/D116681
2021-06-07 03:53:37 +00:00
Agi Sferro 65b64cb3e0 Bug 1709640 - Rename android-api-16 to android-arm. r=marionette-reviewers,firefox-build-system-reviewers,nalexander,whimboo,aklotz,releng-reviewers,mhentges,glandium,mtabara
We don't offer API splits any more, and with the separation of GeckoView with
the rest of the front-end it's increasingly unlikely that we will in the
future.

This change makes it so that the build name doesn't contain the API version so
that we can update it without breaking all the automation that relies on the
build name.

Differential Revision: https://phabricator.services.mozilla.com/D114369
2021-06-04 22:31:14 +00:00
Sandor Molnar 2a126fe036 Backed out changeset 453cb34e4a4a (bug 1709640) for causing linting failures in perfdocs/config. CLOSED TREE 2021-06-05 01:00:19 +03:00
Agi Sferro ecf4f5f0ad Bug 1709640 - Rename android-api-16 to android-arm. r=marionette-reviewers,firefox-build-system-reviewers,nalexander,whimboo,aklotz,releng-reviewers,mhentges,glandium,mtabara
We don't offer API splits any more, and with the separation of GeckoView with
the rest of the front-end it's increasingly unlikely that we will in the
future.

This change makes it so that the build name doesn't contain the API version so
that we can update it without breaking all the automation that relies on the
build name.

Differential Revision: https://phabricator.services.mozilla.com/D114369
2021-06-04 21:20:56 +00:00
Rob Wu 7652aacc5a Bug 1706391 - Disable blocklist v2 by default r=Gijs,geckoview-reviewers,aklotz
- Require the blocklist v3 everywhere except on Android,
  as Android support will be done in bug 1639050.
  On Firefox desktop it is not possible to switch back to blocklist v2.

- The application size (Firefox/Thunderbird) shrinks by 1 MB
  because the addons.json dump no longer needs to be packaged.

- Thunderbird will now use blocklist v3 instead of v2.
  Doesn't matter because it didn't use the blocklist in practice.

Differential Revision: https://phabricator.services.mozilla.com/D116418
2021-06-04 20:03:27 +00:00
Brindusan Cristian be4ce39d9a Backed out 5 changesets (bug 1706391) for xpcshell failures at test_gfxBlacklist_Equal_DriverNew.js.
CLOSED TREE

Backed out changeset ccd2f9b9c513 (bug 1706391)
Backed out changeset 4abbf0ced8b8 (bug 1706391)
Backed out changeset 51ed9a912826 (bug 1706391)
Backed out changeset 90724663c6c4 (bug 1706391)
Backed out changeset 6d733a44225a (bug 1706391)
2021-06-04 22:28:37 +03:00
Rob Wu 64c804f78d Bug 1706391 - Disable blocklist v2 by default r=Gijs,geckoview-reviewers,aklotz
- Require the blocklist v3 everywhere except on Android,
  as Android support will be done in bug 1639050.
  On Firefox desktop it is not possible to switch back to blocklist v2.

- The application size (Firefox/Thunderbird) shrinks by 1 MB
  because the addons.json dump no longer needs to be packaged.

- Thunderbird will now use blocklist v3 instead of v2.
  Doesn't matter because it didn't use the blocklist in practice.

Differential Revision: https://phabricator.services.mozilla.com/D116418
2021-06-04 18:16:38 +00:00
Timothy Nikkel 1d3ddabcf8 Bug 1551302. Enable visual viewport on desktop platforms. r=botond,smaug,geckoview-reviewers,m_kato
Differential Revision: https://phabricator.services.mozilla.com/D115955
2021-06-01 07:56:49 +00:00
R. Martinho Fernandes 7ea1bcd018 Bug 1597600 - make certificate overrides depend on origin attributes r=keeler,geckoview-reviewers,smaug,agi
Differential Revision: https://phabricator.services.mozilla.com/D91962
2021-06-01 06:55:07 +00:00
Sandor Molnar 5c1116ba0d Backed out changeset b021a3ea639f (bug 1712754) at devs request. CLOSED TREE 2021-05-31 23:19:06 +03:00
Dylan Roeh 1aa7f85e88 Bug 1712754 - Do not autogrant permissions in GV push notification code. r=aklotz
Differential Revision: https://phabricator.services.mozilla.com/D116293
2021-05-31 19:13:19 +00:00
Dorel Luca 211b017ce9 Backed out changeset 089c88b9657b (bug 1597600) for XPCshell failures in toolkit/components/cleardata/tests/unit/test_certs.js. CLOSED TREE 2021-05-29 23:31:00 +03:00
R. Martinho Fernandes a9e55ea7fc Bug 1597600 - make certificate overrides depend on origin attributes r=keeler,geckoview-reviewers,smaug,agi
Differential Revision: https://phabricator.services.mozilla.com/D91962
2021-05-29 19:34:35 +00:00
owlishDeveloper 6374902150 Bug 1713237 - Disable intermittent failure in isolated process builds r=geckoview-reviewers,aklotz
Differential Revision: https://phabricator.services.mozilla.com/D116249
2021-05-28 15:31:21 +00:00
owlishDeveloper 2c3fed9c99 Bug 1700763 - [Part 3] Disable specific junit tests that fail in isolated process build r=geckoview-reviewers,aklotz
Differential Revision: https://phabricator.services.mozilla.com/D115391
2021-05-27 21:02:10 +00:00
owlishDeveloper 868834d735 Bug 1700763 - [Part 1] Add new build type with isolated process on r=geckoview-reviewers,aklotz
Differential Revision: https://phabricator.services.mozilla.com/D115389
2021-05-27 20:24:40 +00:00
Butkovits Atila d97787594b Backed out changeset 570a1c32aff5 (bug 1700763) for causing Gecko Decision Task bustage. CLOSED TREE 2021-05-27 21:32:39 +03:00
owlishDeveloper 608bff225f Bug 1700763 - [Part 1] Add new build type with isolated process on r=geckoview-reviewers,aklotz
Differential Revision: https://phabricator.services.mozilla.com/D115389
2021-05-27 18:07:38 +00:00
Mike Hommey 28e098745c Bug 1712633 - Set MOZ_REQUIRE_SIGNING appropriately by default. r=firefox-build-system-reviewers,mhentges
At the same time, move the option to python configure, which changes how
to disable it (setting to an empty value rather than 0).

Differential Revision: https://phabricator.services.mozilla.com/D115844
2021-05-25 20:00:05 +00:00
Csoregi Natalia 39083eaa43 Backed out changeset 998fc8ecd2ae (bug 1700763) for causing gecko decision task failure. CLOSED TREE 2021-05-25 21:04:05 +03:00
owlishDeveloper 7d2335ed24 WIP: Bug 1700763 - [Part 1] Add new build type with isolated process on r=geckoview-reviewers,aklotz
Differential Revision: https://phabricator.services.mozilla.com/D115389
2021-05-25 17:46:10 +00:00
Henrik Skupin fa4fbb78b4 Bug 1695031 - Combine build flags --disable-marionette and --enable-cdp as --disable-webdriver. r=firefox-build-system-reviewers,Gijs,smaug,keeler,jdescottes,glandium
Differential Revision: https://phabricator.services.mozilla.com/D115583
2021-05-25 09:13:28 +00:00
Agi Sferro 3679063fc1 Bug 1705181 - Adjust rAF rate for asyncScriptsSuspendedWhileInactive. r=owlish
The 500ms value was completely arbitrary (we're trying to test that the rAF
rate is reduced, not that it's exactly 500ms), looks like in some cases we get
updates _just_ below the 500ms mark, so to avoid false failures we can reduce
the value to 450ms.

Differential Revision: https://phabricator.services.mozilla.com/D115744
2021-05-21 23:45:12 +00:00
Agi Sferro aac7c3df78 Bug 1706403 - Remove deprecated onTouchEventForResult. r=owlish
Differential Revision: https://phabricator.services.mozilla.com/D115660
2021-05-21 22:43:01 +00:00
Agi Sferro 24adaff7bc Bug 1712379 - Initialize sTreatMouseAsTouch lazily. r=owlish, a=RyanVM
We call initMouseAsTouch when creating GeckoSession, normally this happens
after a GeckoRuntime has been created, so GeckoAppShell.getApplicationContext()
will return a non-null value.

If the GeckoSession is created before then, however, that method will return
null causing a NullPointerException (a AC unit test does that).

We fix this problem by initializing sTreatMouseAsTouch lazily, and not assuming
that the Context is present.

Differential Revision: https://phabricator.services.mozilla.com/D115727
2021-05-21 19:33:36 +00:00
Agi Sferro b7be734589 Bug 1701269 - Remove PrefsHelper. r=owlish
Differential Revision: https://phabricator.services.mozilla.com/D109927
2021-05-20 22:03:07 +00:00
Agi Sferro f37fabfc65 Bug 1701269 - Don't call getProfile in GeckoSessionTestRule. r=owlish
Differential Revision: https://phabricator.services.mozilla.com/D109926
2021-05-20 22:03:06 +00:00
Agi Sferro 480e2d036a Bug 1701269 - Add forceEnableAccessibility to GeckoRuntimeSettings. r=eeejay,owlish,droeh
Differential Revision: https://phabricator.services.mozilla.com/D109925
2021-05-20 22:03:06 +00:00
Agi Sferro 8595d5de61 Bug 1701269 - Remove ui.android.mouse_as_touch. r=botond,owlish
Differential Revision: https://phabricator.services.mozilla.com/D109924
2021-05-20 22:03:05 +00:00
Agi Sferro a4f212aa12 Bug 1701269 - Remove unused Camera code in GeckoAppShell. r=owlish
Differential Revision: https://phabricator.services.mozilla.com/D109923
2021-05-20 22:03:05 +00:00
Agi Sferro ad41d2bdec Bug 1701269 - Remove unused code in org.mozilla.gecko. r=owlish
Differential Revision: https://phabricator.services.mozilla.com/D109922
2021-05-20 22:03:05 +00:00
Agi Sferro c6730b3c16 Bug 1701269 - Remove unused GeckoProfile. r=owlish
Differential Revision: https://phabricator.services.mozilla.com/D109921
2021-05-20 22:03:04 +00:00
Agi Sferro de4e13e402 Bug 1701269 - Remove GempadUtils. r=owlish
Differential Revision: https://phabricator.services.mozilla.com/D109920
2021-05-20 22:03:04 +00:00
Agi Sferro 5e28045dd6 Bug 1701269 - Remove unused MinidumpAnalyzer. r=owlish
Differential Revision: https://phabricator.services.mozilla.com/D109919
2021-05-20 22:03:03 +00:00
Agi Sferro 114966c6e0 Bug 1701269 - Remove mobile/android/base. r=nalexander,flod,owlish
Differential Revision: https://phabricator.services.mozilla.com/D109918
2021-05-20 22:03:03 +00:00
Agi Sferro 96274c4ba9 Bug 1707959 - Set TYPE_GLOW overscroll type on Android 12. r=droeh
Android 12 introduces a new type of overscroll effect named TYPE_STRETCH which
stretches the whole surface when overscrolling.

Unforunately, given how it's implemented, SurfaceView does not support this
type of effect, similarly to many other View effects.

The OverscrollEffect is currently crashing on Android 12 builds so we restore the
type to the previous (and only) default to fix the crash.

Note that Overscroll is still not displayed, I'll open a new bug to fix that
part.

This patch also avoids using reflection for setBlendMode on API 29 and later
where an API is actually available. Using reflection to access private APIs is
not available since Android 9 so this code was a no-op before this patch.

Differential Revision: https://phabricator.services.mozilla.com/D115031
2021-05-20 17:39:12 +00:00
Butkovits Atila 1e689de392 Backed out changeset a53711ef58c9 (bug 1707959) for linting failures. CLOSED TREE 2021-05-20 19:46:32 +03:00
Agi Sferro 3e525ec94e Bug 1707959 - Set TYPE_GLOW overscroll type on Android 12. r=droeh
Android 12 introduces a new type of overscroll effect named TYPE_STRETCH which
stretches the whole surface when overscrolling.

Unforunately, given how it's implemented, SurfaceView does not support this
type of effect, similarly to many other View effects.

The OverscrollEffect is currently crashing on Android 12 builds so we restore the
type to the previous (and only) default to fix the crash.

Note that Overscroll is still not displayed, I'll open a new bug to fix that
part.

This patch also avoids using reflection for setBlendMode on API 29 and later
where an API is actually available. Using reflection to access private APIs is
not available since Android 9 so this code was a no-op before this patch.

Differential Revision: https://phabricator.services.mozilla.com/D115031
2021-05-20 15:58:02 +00:00
Dylan Roeh d488467816 Bug 1699480 - Back out permissions changes at AC's request, r=geckoview-reviewers,agi
Differential Revision: https://phabricator.services.mozilla.com/D115515
2021-05-19 18:07:28 +00:00
Andrew Sutherland b856f8e987 Bug 1710101 - Enable LSNG for GeckoView across all channels. r=aklotz
Differential Revision: https://phabricator.services.mozilla.com/D115414
2021-05-19 00:38:57 +00:00
Dylan Roeh b7e8cb3274 Bug 1711765 - Update GV content permissions documentation to reflect API changes. r=geckoview-reviewers,owlish
Differential Revision: https://phabricator.services.mozilla.com/D115400
2021-05-18 20:37:37 +00:00
Alex Lopez 455d9a088b Bug 1696251 - Pass MachCommandBase object as first argument for Mach Commands. r=mhentges,remote-protocol-reviewers,marionette-reviewers,webdriver-reviewers,perftest-reviewers
As an intermediate step to allow mach commands as standalone functions, the MachCommandBase
subclass instance that currently corresponds to self has to be made available as a separate
argument (named command_context).

Differential Revision: https://phabricator.services.mozilla.com/D109650
2021-05-17 16:15:58 +00:00
Dylan Roeh 417ca0c967 Bug 1699480 - Update GV changelog for permissions API changes. r=geckoview-reviewers,agi
Differential Revision: https://phabricator.services.mozilla.com/D113422
2021-05-17 15:55:22 +00:00
Dylan Roeh 98866abf89 Bug 1699480 - Add tests for new GV permission functionality. r=geckoview-reviewers,agi
Differential Revision: https://phabricator.services.mozilla.com/D113421
2021-05-17 15:55:22 +00:00
Dylan Roeh 65c6963a0e Bug 1699480 - Deprecate most existing TP exception API in GV and migrate it to new permissions API; also allow for importing/exporting ContentPermissions as JSONObjects. r=agi,geckoview-reviewers,aklotz
Differential Revision: https://phabricator.services.mozilla.com/D113134
2021-05-17 15:55:21 +00:00
Dylan Roeh ff4369ad7c Bug 1699480 - Add setPermission, update onContentPermissionRequest to use ContentPermission, and let Gecko manage and persist permissions in GV. r=agi,geckoview-reviewers,owlish
Differential Revision: https://phabricator.services.mozilla.com/D112042
2021-05-17 15:55:21 +00:00
Agi Sferro 1c9fdbfa5c Bug 1701932 - Cleanup mobile.js r=aklotz
Differential Revision: https://phabricator.services.mozilla.com/D115080
2021-05-13 23:50:12 +00:00
Makoto Kato 7c255c77bf Bug 1709394 - Use split text data on binder call. r=geckoview-reviewers,agi
When taking focus on <input> element that has large text such as 1MB, we
cannot pass current text to InputConnection.

Since we use binder call to set initial text to InputConnection, large text
causes TransactionTooLargeException exception. So we use small chunked data
(64K length) instead.

Differential Revision: https://phabricator.services.mozilla.com/D114710
2021-05-12 12:45:49 +00:00
Tomislav Jovanovic c5fa3a1d8d Bug 1708238 - Stop relying on messagemanager in ExtensionPolicyService r=robwu,geckoview-reviewers,agi
Patch mostly by Nika Layzell; test, some tweaks (and all bugs) by me.

Differential Revision: https://phabricator.services.mozilla.com/D114060
2021-05-10 16:55:09 +00:00
Karl Tomlinson 9f60769705 Bug 1709474 move mozGetUserMediaDevices from Navigator to GetUserMediaRequest r=jib,webidl,geckoview-reviewers,smaug,agi
Differential Revision: https://phabricator.services.mozilla.com/D111565
2021-05-06 05:16:49 +00:00
Peter Van der Beken 2ec947a685 Bug 1708660 - Remove support for map/setLike in JS-implemented WebIDL. r=edgar
Differential Revision: https://phabricator.services.mozilla.com/D113949
2021-05-06 05:12:03 +00:00
Csoregi Natalia 8cad1a2512 Backed out 2 changesets (bug 1709484, bug 1709474) for geckoview fails on testDeviceRecordingEventAudioAndVideo. CLOSED TREE
Backed out changeset 069415280f6d (bug 1709474)
Backed out changeset 3853186911c9 (bug 1709484)
2021-05-06 03:38:52 +03:00
Karl Tomlinson 10fe97e403 Bug 1709474 move mozGetUserMediaDevices from Navigator to GetUserMediaRequest r=jib,webidl,geckoview-reviewers,smaug,agi
Differential Revision: https://phabricator.services.mozilla.com/D111565
2021-05-05 23:04:13 +00:00
Aaron Klotz d83342602d Bug 1699464: Set GV content process count to 2 across all release channels; r=geckoview-reviewers,agi
I'm changing this to be unconditional so that it may ride the trains.

If we later decide that we need to hold it back for another release, we can
revert this in Beta.

I'm talking to data people about analyzing Fenix's tab retention probes. I'll
obviously be keeping an eye on those numbers as this change propagates.

Differential Revision: https://phabricator.services.mozilla.com/D114404
2021-05-05 20:58:33 +00:00
David Parks e37ad4b27a Bug 1698959: Remove HangData union and SLOW_SCRIPT enum value r=dthayer,geckoview-reviewers,agi
HangData is the only member left in the union and SLOW_SCRIPT is the only member left in the enum.
This patch also migrates the one remaining (invalid) use of PLUGIN_HANG in testing to work as a SLOW_SCRIPT instead.

Differential Revision: https://phabricator.services.mozilla.com/D113885
2021-05-01 01:12:46 +00:00
David Parks 27e7bb9383 Bug 1698959: Clean up dead terminatePlugin references r=dthayer
PLUGIN_HANG events are no longer sent so terminatePlugin is unused.

Differential Revision: https://phabricator.services.mozilla.com/D113884
2021-05-01 01:12:45 +00:00
Agi Sferro fec841bfe8 Bug 1698968 - Always send marionette-startup-requested r=whimboo,aklotz,webdriver-reviewers
Marionette enables itself only when --marionette is passed in. Given that
command line arguments can only be passed in using the debug configuration, it
is safe to send this event all the time.

Differential Revision: https://phabricator.services.mozilla.com/D113829
2021-04-30 20:48:37 +00:00
Shane Caraveo 7d11b0aa66 Bug 1687762 fix deprecated extension api use r=robwu
Differential Revision: https://phabricator.services.mozilla.com/D111966
2021-04-30 20:31:40 +00:00
Makoto Kato 3f0a7708f7 Bug 1706499 - Reset batch edit count on InputConnection.closeConnection. r=geckoview-reviewers,agi
The latest version of GBoard seems to call `InputConnection.closeConnection`
without calling `InputConnection.endBatchEdit`. Since we recycle
`InputConnection` object, we have to reset batch edit count on
`closeConnection`.

Also there is no way to write GV-junit and mochitests because we cannot check
whether current text transaction is batch mode or not.

Differential Revision: https://phabricator.services.mozilla.com/D113297
2021-04-28 05:42:17 +00:00
Agi Sferro 0bacfb352b Bug 1699046 - Allow GVE to have zero tabs. r=droeh
Marionette uses GVE and sometimes closes the last tab and calls |Quit| at the
same time. When the last tab is closed, GVE will try to open a new tab with the
same content in it, to avoid leaving the browser in the "zero tabs" state. This
causes a race condition where the browser is shutting down and a new tab is
being created, which trips an assertion in our widget code.

During real life usage of the browser, calling Quit only happens during errors.
Because of that, and the fact that we're not seing this crash in the wild,
it should be safe to just fix the problem in GVE instead of supporting this
edge case in GeckoView.

To support the Marionette case, we allow GVE to stay at zero tabs. Some menu
elements need to be disabled (like reload tab and the url bar).

This has the added benefit of being able to test the "no windows" case in GVE
which wasn't possible until now.

Differential Revision: https://phabricator.services.mozilla.com/D113202
2021-04-26 20:49:00 +00:00
Henrik Skupin 59d0b4e978 Bug 1676803 - [remote] Enable Remote Agent on Android. r=firefox-build-system-reviewers,mhentges,glandium
Differential Revision: https://phabricator.services.mozilla.com/D112005
2021-04-26 19:46:09 +00:00
Henrik Skupin 8bcc373610 Bug 1676803 - Make the Remote Agent part of remote debugging within GeckoView. r=geckoview-reviewers,agi
Differential Revision: https://phabricator.services.mozilla.com/D112004
2021-04-26 19:46:08 +00:00
keiko 425815c622 Bug 1705675 -Deleted and modified the document links. r=ahal DONTBUILD
Differential Revision: https://phabricator.services.mozilla.com/D113260
2021-04-26 18:24:14 +00:00
Butkovits Atila 2e34e363b9 Backed out 2 changesets (bug 1696251) for causing js-bench-sm failures. CLOSED TREE
Backed out changeset 1c84c9a34575 (bug 1696251)
Backed out changeset e169193b7423 (bug 1696251)
2021-04-23 02:53:36 +03:00
Alex Lopez d1a82b8092 Bug 1696251 - Pass MachCommandBase object as first argument for Mach Commands. r=mhentges,remote-protocol-reviewers,marionette-reviewers,webdriver-reviewers,perftest-reviewers
As an intermediate step to allow mach commands as standalone functions, the MachCommandBase
subclass instance that currently corresponds to self has to be made available as a separate
argument (named command_context).

Differential Revision: https://phabricator.services.mozilla.com/D109650
2021-04-22 18:56:15 +00:00
Csoregi Natalia 0aefbf5f94 Backed out 2 changesets (bug 1676803) for xpcshell failures on test_StreamRegistry.js. CLOSED TREE
Backed out changeset 368bc78b72f1 (bug 1676803)
Backed out changeset 6c62669cb5f0 (bug 1676803)
2021-04-22 18:39:30 +03:00
Henrik Skupin 23de16f8bf Bug 1676803 - [remote] Enable Remote Agent on Android. r=firefox-build-system-reviewers,mhentges,glandium
Differential Revision: https://phabricator.services.mozilla.com/D112005
2021-04-22 12:38:06 +00:00
Henrik Skupin 58ee0c217e Bug 1676803 - Make the Remote Agent part of remote debugging within GeckoView. r=geckoview-reviewers,agi
Differential Revision: https://phabricator.services.mozilla.com/D112004
2021-04-22 12:38:05 +00:00
Agi Sferro f8a731e34e Bug 1696145 - Support Notification.silent and .vibrate on Android. r=smaug,droeh,aklotz
Differential Revision: https://phabricator.services.mozilla.com/D111924
2021-04-20 18:35:36 +00:00
Csoregi Natalia cd658de8c3 Backed out 2 changesets (bug 1696145) for causing build bustage on notifications. CLOSED TREE
Backed out changeset 2e18b65dd133 (bug 1696145)
Backed out changeset 6d302afe732f (bug 1696145)
2021-04-20 20:13:56 +03:00
Agi Sferro 97ede8ffca Bug 1696145 - Support Notification.silent and .vibrate on Android. r=smaug,droeh,aklotz
Differential Revision: https://phabricator.services.mozilla.com/D111924
2021-04-20 16:38:45 +00:00
Agi Sferro 15db873142 Bug 1704194 - Use appropriate principal when creating new tabs. r=aklotz,robwu,ckerschb
Differential Revision: https://phabricator.services.mozilla.com/D112101
2021-04-19 19:42:39 +00:00
Agi Sferro e2c0bc7534 Bug 1700775 - Revert "Bug 1567341 - Release EventDispatcher listeners on xpcom-shutdown" r=aklotz
This reverts commit e542e8826b92f70dbabaf577d80a32273c684d1b.

In hindsight, this was a pretty bad change. It introduces a third place where
the EventDispatcher can be shutdown (JavaScript) and doesn't do a good job at
communicating this across all consumers.

I introduced this change in Bug 1567341 to fix some leaks in xpcshell tests at
xpcom shutdown, and it was never meant to affect a normal browser use (turns
out, it does).

I ran the tests again in try and they are still green when reverting this
change, I suspect that the actual failures I was seeing were due to a separate
leak that I fixed while developing the patches.

Differential Revision: https://phabricator.services.mozilla.com/D112637
2021-04-19 19:17:55 +00:00
Cosmin Sabou 785f9b8a87 Backed out changeset d4a5d8567977 (bug 1696251) for non-unified build bustages. CLOSED TREE 2021-04-19 19:43:31 +03:00
Alex Lopez 75dfe35468 Bug 1696251 - Pass MachCommandBase object as first argument for Mach Commands. r=mhentges,remote-protocol-reviewers,marionette-reviewers,webdriver-reviewers,perftest-reviewers
As an intermediate step to allow mach commands as standalone functions, the MachCommandBase
subclass instance that currently corresponds to self has to be made available as a separate
argument (named command_context).

Differential Revision: https://phabricator.services.mozilla.com/D109650
2021-04-19 16:15:11 +00:00
owlishDeveloper 618690bc1f WIP: Bug 1703707 - Replace cross-process OMXClient call with IPC to enable isolated process in Android r=geckoview-reviewers,aklotz,agi,jolin
Differential Revision: https://phabricator.services.mozilla.com/D111200
2021-04-16 23:34:35 +00:00
Dylan Roeh 8b312dabda Bug 1700750 - Added setCookieBehaviorPrivateMode to ContentBlocking.Settings r=esawin,geckoview-reviewers,agi
Differential Revision: https://phabricator.services.mozilla.com/D110940
2021-04-14 01:29:17 +00:00
John Lin 65f7cd93e6 Bug 1689368 - check state and URL before forwarding to native code. r=bryce
Differential Revision: https://phabricator.services.mozilla.com/D111780
2021-04-13 18:38:27 +00:00
Paul Zuehlcke 9cecd28621 Bug 1661330 - Log STATE_ALLOWED_TRACKING_CONTENT to the ContentBlockingLog if a channel is allowed. r=geckoview-reviewers,dimi,droeh
Differential Revision: https://phabricator.services.mozilla.com/D109716
2021-04-13 16:11:20 +00:00
Agi Sferro 8575705ad4 Bug 1703629 - Discard useless prompts. r=aklotz
Differential Revision: https://phabricator.services.mozilla.com/D111474
2021-04-13 15:19:38 +00:00
Aaron Klotz 90495c13c6 Bug 1703968: Part 7 - Set GV's COOP+COEP processCount; r=geckoview-reviewers,agi
The default setting for the number of COOP+COEP processes is 1, which I believe
is causing various test failures. While this is not the final configuration,
I'd like to use this value (total content processes - number of e10s web content
processes) to test this out.

Differential Revision: https://phabricator.services.mozilla.com/D111729
2021-04-12 21:57:26 +00:00
Eugen Sawin 22b0e9f5fc Bug 1691819 - [4.5] Add credit card autocomplete tests. r=geckoview-reviewers,agi
Differential Revision: https://phabricator.services.mozilla.com/D109135
2021-04-12 21:57:16 +00:00
Eugen Sawin e44cf5685a Bug 1691819 - [3.3] Update API changelog. r=geckoview-reviewers,owlish
Differential Revision: https://phabricator.services.mozilla.com/D108522
2021-04-12 21:57:16 +00:00
Eugen Sawin 33a0e4b5a4 Bug 1691819 - [2.1] Share required prefs to enable credit card and address form autocomplete for GeckoView. r=geckoview-reviewers,agi
Differential Revision: https://phabricator.services.mozilla.com/D108521
2021-04-12 21:57:15 +00:00
Eugen Sawin 434f165a88 Bug 1691819 - [1.7] Extend the Autocomplete API to support credit cards. r=geckoview-reviewers,agi
Differential Revision: https://phabricator.services.mozilla.com/D106695
2021-04-12 21:57:15 +00:00
owlishDeveloper 612a8706c7 WIP: Bug 1701283 - Catch security exceptions thrown by Android Autofill Manager r=geckoview-reviewers,aklotz
Differential Revision: https://phabricator.services.mozilla.com/D111465
2021-04-12 18:46:07 +00:00
Christoph Kerschbaumer 5427febae7 Bug 1670244: Ensure we never load a document with a codebase principal in the wrong type of webIsolated process r=nika
Differential Revision: https://phabricator.services.mozilla.com/D108185
2021-04-12 18:06:52 +00:00
Eugen Sawin ea394ebcbc Bug 1691821 - [2.7] Extend the form autofill component to support GeckoView. r=erik,zbraniecki,dimi,geckoview-reviewers,owlish
Differential Revision: https://phabricator.services.mozilla.com/D108059
2021-04-12 17:33:18 +00:00
Makoto Kato 4232c2a5ef Bug 1655896 -Use TextChangeData.MergeWith instead. r=geckoview-reviewers,agi
deleteSurroundingText may create multiple text transactions. This test
failure occurs when multiple text transactions are dispatched to Gecko.

GeckoEditableSupport records text changes by Gecko then it notifies Java
of text changes. And it merges old text changes with new text changes by
AddIMETextChange to reduce JNI/Binder calls if possible.

This issue is that AddIMETextChange creates incorrect text change range
by merging text change ranges.

Actually, TextChangeData already has merge function now, so we should use it
instead of own merge function in GeckoEditableSupport.

Differential Revision: https://phabricator.services.mozilla.com/D111207
2021-04-12 03:14:24 +00:00
Dorel Luca 96e01b8c73 Backed out 7 changesets (bug 1691821) for Browser-chrome failures in autofill/FormAutofillParent.jsm. CLOSED TREE
Backed out changeset d12aec06eedd (bug 1691821)
Backed out changeset 0affe1783697 (bug 1691821)
Backed out changeset f807e0d0d095 (bug 1691821)
Backed out changeset abdc3fede62b (bug 1691821)
Backed out changeset cea92bd86972 (bug 1691821)
Backed out changeset 1c86de8cd775 (bug 1691821)
Backed out changeset e955f7f5503c (bug 1691821)
2021-04-10 03:05:35 +03:00
Aaron Klotz 276503f3cd Bug 1703968: Part 1 - Set GeckoView's e10s web process count to 2 on Nightly; r=geckoview-reviewers,agi
Differential Revision: https://phabricator.services.mozilla.com/D111443
2021-04-09 22:57:16 +00:00
Eugen Sawin 89177b7e27 Bug 1691821 - [2.6] Extend the form autofill component to support GeckoView. r=erik,zbraniecki,dimi,geckoview-reviewers,owlish
Differential Revision: https://phabricator.services.mozilla.com/D108059
2021-04-09 22:12:13 +00:00
Dorel Luca 0e53a30dc1 Backed out 7 changesets (bug 1703968) for WPT failures in hr-time/clamped-time-origin-isolated.https.html. CLOSED TREE
Backed out changeset f9628f3c1fe0 (bug 1703968)
Backed out changeset 2297f0570091 (bug 1703968)
Backed out changeset 4d48931594ed (bug 1703968)
Backed out changeset d169cd7d7083 (bug 1703968)
Backed out changeset fcb0f1251d66 (bug 1703968)
Backed out changeset cbe5389803cd (bug 1703968)
Backed out changeset ac7dbdbff84d (bug 1703968)
2021-04-10 01:27:48 +03:00
Aaron Klotz 04d8844a1a Bug 1703968: Part 1 - Set GeckoView's e10s web process count to 2 on Nightly; r=geckoview-reviewers,agi
Differential Revision: https://phabricator.services.mozilla.com/D111443
2021-04-09 16:45:53 +00:00
Aaron Klotz 3ae6f9e444 Bug 1668952: Part 4 - Update GV tests for long URIs; r=geckoview-reviewers,droeh
Now that we can report long URI errors to the app using `NavigationDelegate`,
I have updated the tests accordingly.

I also added a test to ensure that long `data:` URIs are still accepted when we
are not dealing with a toplevel document. We generate a PNG image filled with
randomness, which compresses poorly (and thus is "large") and yet is a valid PNG
file. We expect its `onload` event to fire.

Differential Revision: https://phabricator.services.mozilla.com/D109429
2021-04-09 06:01:59 +00:00
Aaron Klotz 79d24bda0b Bug 1668952: Part 3 - update api.txt and changelog; r=geckoview-reviewers,droeh
I also fixed a bad reference in the `setEnterpriseRootsEnabled` entry.

Differential Revision: https://phabricator.services.mozilla.com/D109428
2021-04-09 06:01:59 +00:00
Aaron Klotz d248fe7914 Bug 1668952: Part 2 - Fix handling of long toplevel data URIs in GeckoView; r=geckoview-reviewers,agi
While I evaluated multiple approaches to this problem, I selected two:

The first is to handle the case in `GeckoSession.load` directly from within
Java, as this allows us to avoid a Java to Native string conversion, as well as
giving us better opportunities to report the exact nature of the failure back to
the embedding app.

We add a new error code specifically for this case.

In the case where no `NavigationDelegate` is registered, I used
`GeckoSession.load` throwing an exception as a crude way of notifying the app.

In the case where the load request originates from within web content, we deny
the request from within `nsWindow` to avoid requiring any conversion of the
URI spec from native into Java.

Differential Revision: https://phabricator.services.mozilla.com/D109427
2021-04-09 06:01:58 +00:00
Andreea Pavel 194634dd05 Bug 1655896 - update disabling condition for all platforms r=geckoview-reviewers,m_kato DONTBUILD
Differential Revision: https://phabricator.services.mozilla.com/D110797
2021-04-07 20:34:24 +00:00
Makoto Kato a6a94c7a07 Bug 1561927 - Ignore weird motion event on Chrome OS. r=geckoview-reviewers,agi
Android app on Chrome OS doesn't use scroll event on touch pad scroll. And
this generate wired mouse event via it.

So we should add a workaround like Blink (https://crbug.com/704051).

Differential Revision: https://phabricator.services.mozilla.com/D110058
2021-04-06 22:50:03 +00:00
Agi Sferro 356e2d8209 Bug 1697824 - Don't clear GeckoSession.mOwner instance. r=esawin
Having a null WeakReference<> object is a little unexpected, to avoid confusion
we set mOwner to a WeakReference<>(null) value instead to avoid
a NullPointerException.

Differential Revision: https://phabricator.services.mozilla.com/D110976
2021-04-06 22:41:18 +00:00
David Parks 9c8a6dec0d Bug 1682030 - Remove NPAPI support from ClearDataService. r=baku
Removes NPAPI plugin support from the ClearDataService as part of removing all of NPAPI.

Differential Revision: https://phabricator.services.mozilla.com/D107146
2021-04-06 19:28:13 +00:00
Neil Deakin 5ef8aadb93 Bug 1701668, remove WebBrowserChromeChild actor, r=agi
Differential Revision: https://phabricator.services.mozilla.com/D110876
2021-04-06 18:52:47 +00:00
Neil Deakin 4ca286a995 Bug 1701668, remove onBeforeLinkTraversal implementations and handle links in docshell, r=kmag,mixedpuppy,geckoview-reviewers,agi
This also fixes links in top or in-process subframes and out-of-process subframes in extensions sidebars and panels so that they open in new tabs.

Differential Revision: https://phabricator.services.mozilla.com/D110102
2021-04-06 18:52:46 +00:00
Neil Deakin 54284e502d Bug 1701668, remove shouldLoadURI and shouldLoadURIInThisProcess methods now that all implementers return true, r=kmag
Differential Revision: https://phabricator.services.mozilla.com/D110101
2021-04-06 18:52:46 +00:00
Csoregi Natalia d68661e2cc Backed out 24 changesets (bug 1682030) for bustage on ProcessHangMonitor.cpp and nsCOMPtr.h. CLOSED TREE
Backed out changeset 5b1644096477 (bug 1682030)
Backed out changeset 35ae60eea3c7 (bug 1682030)
Backed out changeset 3eca76a6d639 (bug 1682030)
Backed out changeset 259c45447ad9 (bug 1682030)
Backed out changeset de9222dc8c31 (bug 1682030)
Backed out changeset 2986c7e14349 (bug 1682030)
Backed out changeset 6af3410bdb93 (bug 1682030)
Backed out changeset 42b0621c2927 (bug 1682030)
Backed out changeset 366e3e371858 (bug 1682030)
Backed out changeset 9adb2865adea (bug 1682030)
Backed out changeset 6af6af3bc03a (bug 1682030)
Backed out changeset da94a91b35ae (bug 1682030)
Backed out changeset 9143da258d0e (bug 1682030)
Backed out changeset 5e20d06952ba (bug 1682030)
Backed out changeset 6253d7e1ce7d (bug 1682030)
Backed out changeset 0e06ddeea3e2 (bug 1682030)
Backed out changeset 9c58d57c9e44 (bug 1682030)
Backed out changeset e90edd89430e (bug 1682030)
Backed out changeset 5861b8166b10 (bug 1682030)
Backed out changeset b4b88cdc7993 (bug 1682030)
Backed out changeset b80054e9805c (bug 1682030)
Backed out changeset 580d857674c0 (bug 1682030)
Backed out changeset a9cdf93c2662 (bug 1682030)
Backed out changeset 9c9c8b4998e2 (bug 1682030)
2021-04-06 03:54:12 +03:00
David Parks f85199c17c Bug 1682030 - Remove NPAPI support from ClearDataService. r=baku
Removes NPAPI plugin support from the ClearDataService as part of removing all of NPAPI.

Differential Revision: https://phabricator.services.mozilla.com/D107146
2021-04-05 23:48:36 +00:00
Agi Sferro 0a52903f23 Bug 1678191 - Add GeckoRuntimeSettings.setEnterpriseRootsEnabled. r=keeler,owlish,droeh
Differential Revision: https://phabricator.services.mozilla.com/D109666
2021-04-05 20:20:14 +00:00
Doug Thayer f75d49d54f Bug 1702516 - Remove all terminateGlobal uses r=kmag
This never actually worked, because nothing ever listened to the notification
sent in XPCJSContext (kill-content-script-sandbox). We're also removing the
"Temporarily disable extension" button in the slow addon notification, which
was the primary caller of this - however, that's in a separate patch.

Differential Revision: https://phabricator.services.mozilla.com/D110583
2021-04-05 16:00:09 +00:00
Andreea Pavel e6200ad54c Bug 1655896 - disable inputConnection_deleteSurroundingText on debug r=intermittent-reviewers,geckoview-reviewers,m_kato,jmaher
Differential Revision: https://phabricator.services.mozilla.com/D110048
2021-03-30 08:19:05 +00:00
Karl Tomlinson 42f47f0844 Bug 1698238 remove unused mozGetUserMediaDevices() constraints parameter r=pehrsons,webidl,smaug
Differential Revision: https://phabricator.services.mozilla.com/D108372
2021-03-30 07:52:12 +00:00
Alexandru Michis 1b37371a3f Backed out 7 changesets (bug 1698238) for causing mda failures in mozGetUserMediaDevices.
CLOSED TREE

Backed out changeset ced3a595578f (bug 1698238)
Backed out changeset 9fbbeadcb724 (bug 1698238)
Backed out changeset 90315eae4c9d (bug 1698238)
Backed out changeset ef9119db5670 (bug 1698238)
Backed out changeset 936e27e7b234 (bug 1698238)
Backed out changeset 6f32420b1ca5 (bug 1698238)
Backed out changeset 39d307ba24d4 (bug 1698238)
2021-03-30 07:20:46 +03:00
Karl Tomlinson 52c860d12c Bug 1698238 remove unused mozGetUserMediaDevices() constraints parameter r=pehrsons,webidl,smaug
Depends on D108371

Differential Revision: https://phabricator.services.mozilla.com/D108372
2021-03-29 23:42:49 +00:00
Tim Huang 5b93148330 Bug 1695050 - Part 1: Add a pref for controlling the cookieBehavior for Private Brwosing Mode. r=dimi,droeh
Differential Revision: https://phabricator.services.mozilla.com/D109044
2021-03-29 11:01:50 +00:00
Agi Sferro 57fe963335 Bug 1700917 - Force multi_e10s on xpcshell tests. r=aklotz
Differential Revision: https://phabricator.services.mozilla.com/D109798
2021-03-26 18:30:17 +00:00
Dylan Roeh 91ff860316 Bug 1697633 - Add tests for getPermissions and onLocationChange permission reporting. r=geckoview-reviewers,agi
Differential Revision: https://phabricator.services.mozilla.com/D108962
2021-03-25 16:20:26 +00:00
Dylan Roeh ab0bb6167e Bug 1697633 - Update onLocationChange to include permission reporting; add getAllPermissions and getPermissions to StorageController. r=agi,geckoview-reviewers,owlish
Differential Revision: https://phabricator.services.mozilla.com/D107927
2021-03-25 16:20:25 +00:00
Simon Giesecke 4f0b94ee34 Bug 708901 - Migrate to nsTHashSet in docshell. r=smaug,geckoview-reviewers,aklotz
Differential Revision: https://phabricator.services.mozilla.com/D108591
2021-03-25 08:04:20 +00:00
Agi Sferro 9b8c61f3ff Bug 1567341 - Use UUID IDs for isolated processes. r=aklotz
Differential Revision: https://phabricator.services.mozilla.com/D109561
2021-03-24 21:49:41 +00:00
Agi Sferro 2f2ff0fda4 Bug 1567341 - Unbind with a busy connection before trying a new one. r=aklotz
Differential Revision: https://phabricator.services.mozilla.com/D109560
2021-03-24 21:49:41 +00:00
Agi Sferro 1e86fa929b Bug 1567341 - Generate content process ID randomly. r=aklotz
Differential Revision: https://phabricator.services.mozilla.com/D109559
2021-03-24 21:49:40 +00:00
Agi Sferro 11764ebeee Bug 1567341 - Fix typo in removeContentConnection. r=aklotz
The code as written does not remove the connection from both
mContentConnections and mNonStartedContentConnections since && short circuits.

Since the connection is always present in mContentConnections, we just check
that.

Differential Revision: https://phabricator.services.mozilla.com/D109443
2021-03-24 21:49:40 +00:00
Agi Sferro e6082b32a6 Bug 1567341 - Kill child process when Gecko exits. r=aklotz
Differential Revision: https://phabricator.services.mozilla.com/D109442
2021-03-24 21:49:40 +00:00
Agi Sferro c056964bc7 Bug 1567341 - Add XpcshellTestRunnerService. r=owlish
This service, based off of TestRunnerActivity, can be used to run an
xpcshell-test instance.

It supports up to 10 concurrent instances, although we can add more if we need
to.

Local testing indicates that with more than 4 concurrent instances there's not
gain in test running performance.

This also adds a new intent action
|org.mozilla.geckoview.test.XPCSHELL_TEST_MAIN| that can be used by the test
harness to start the main application and gain foreground priority without
starting Gecko (which would interfere with the xpcshell runner services).

Differential Revision: https://phabricator.services.mozilla.com/D106212
2021-03-24 21:49:38 +00:00
Agi Sferro 34624a6abf Bug 1567341 - Allow geckoview.test to run xpcshell. r=esawin
This commit adds a new command line option |-xpcshell| that, when passed, will
run an xpcshell instead of launching a full Gecko instance.

This command line option is restricted to org.mozilla.geckoview.test for now,
as it's really hard to use and not really a usecase outside mozilla. We can
revisit this if there's interest.

Differential Revision: https://phabricator.services.mozilla.com/D106211
2021-03-24 21:49:38 +00:00
Agi Sferro 122215de9e Bug 1567341 - Send arguments using array instead of one string in adb.py. r=firefox-build-system-reviewers,mhentges,owlish
Sending arguments in one string breaks arguments that contain a space, e.g. in
xpcshell-test.

Differential Revision: https://phabricator.services.mozilla.com/D106208
2021-03-24 21:49:37 +00:00
Agi Sferro 888d230519 Bug 1567341 - Initialize GeckoViewWebExtensions when getting extension-installed. r=esawin
When getting the *-extension-installed messages we should always notify
GeckoViewWebExtension.

This currently works because we always install the test support extension which
causes us to initialize GeckoViewWebExtension. On xpcshel tests, however, there
is no support extension so we need to account for that in GeckoViewStartup.

Differential Revision: https://phabricator.services.mozilla.com/D106319
2021-03-24 21:49:36 +00:00
Agi Sferro 04b86a5bf7 Bug 1567341 - Wait for the AddonManager to start up in GeckoViewWebExtension. r=esawin
Differential Revision: https://phabricator.services.mozilla.com/D106205
2021-03-24 21:49:35 +00:00
Agi Sferro 32e27b2a7c Bug 1567341 - Release EventDispatcher listeners on xpcom-shutdown. r=esawin
Differential Revision: https://phabricator.services.mozilla.com/D106204
2021-03-24 21:49:35 +00:00
Agi Sferro a208f94178 Bug 1567341 - Initialize SafeBrowsing in geckoview.js. r=esawin
We don't need to initialize SafeBrowsing _immediately_ at startup and we can
wait until the InitLater stage.

This has the added benefit of not crashing xpcshell-test which doesn't have
SafeBrowsing support.

Differential Revision: https://phabricator.services.mozilla.com/D106200
2021-03-24 21:49:33 +00:00
Alexandru Michis 497409d76e Backed out 24 changesets (bug 1567341) for causing xpcshell failures in test_telemetry.js
CLOSED TREE

Backed out changeset deb795c7d0ed (bug 1567341)
Backed out changeset 62d24a3e5e33 (bug 1567341)
Backed out changeset 1185cabd94e0 (bug 1567341)
Backed out changeset 73a4ae419261 (bug 1567341)
Backed out changeset b6eb111329f3 (bug 1567341)
Backed out changeset 0dc0bfedc042 (bug 1567341)
Backed out changeset 9dca635e41d7 (bug 1567341)
Backed out changeset c34928580933 (bug 1567341)
Backed out changeset f9ba384bb407 (bug 1567341)
Backed out changeset ec25c2df380e (bug 1567341)
Backed out changeset 9e8ea542b51e (bug 1567341)
Backed out changeset 3dc62863a028 (bug 1567341)
Backed out changeset 6c104f865540 (bug 1567341)
Backed out changeset c422ca4207ea (bug 1567341)
Backed out changeset e3df748ed62f (bug 1567341)
Backed out changeset 9d1f27796a97 (bug 1567341)
Backed out changeset 1d93ba23f809 (bug 1567341)
Backed out changeset 55652f6af6ed (bug 1567341)
Backed out changeset 9fb892955a88 (bug 1567341)
Backed out changeset 1cdd95c43416 (bug 1567341)
Backed out changeset 5a839d5e3e33 (bug 1567341)
Backed out changeset ea84b5749a27 (bug 1567341)
Backed out changeset dcb1ae146475 (bug 1567341)
Backed out changeset d72accc274ac (bug 1567341)
2021-03-24 23:37:43 +02:00
Agi Sferro b4dcf88b8d Bug 1567341 - Use UUID IDs for isolated processes. r=aklotz
Differential Revision: https://phabricator.services.mozilla.com/D109561
2021-03-24 20:20:05 +00:00
Agi Sferro 022eeb2fac Bug 1567341 - Unbind with a busy connection before trying a new one. r=aklotz
Differential Revision: https://phabricator.services.mozilla.com/D109560
2021-03-24 20:20:05 +00:00
Agi Sferro 3bd712aaa8 Bug 1567341 - Generate content process ID randomly. r=aklotz
Differential Revision: https://phabricator.services.mozilla.com/D109559
2021-03-24 20:20:04 +00:00
Agi Sferro db8e80fc4e Bug 1567341 - Fix typo in removeContentConnection. r=aklotz
The code as written does not remove the connection from both
mContentConnections and mNonStartedContentConnections since && short circuits.

Since the connection is always present in mContentConnections, we just check
that.

Differential Revision: https://phabricator.services.mozilla.com/D109443
2021-03-24 20:20:04 +00:00
Agi Sferro 57b7f95b43 Bug 1567341 - Kill child process when Gecko exits. r=aklotz
Differential Revision: https://phabricator.services.mozilla.com/D109442
2021-03-24 20:20:03 +00:00
Agi Sferro b6e53a5e0a Bug 1567341 - Add XpcshellTestRunnerService. r=owlish
This service, based off of TestRunnerActivity, can be used to run an
xpcshell-test instance.

It supports up to 10 concurrent instances, although we can add more if we need
to.

Local testing indicates that with more than 4 concurrent instances there's not
gain in test running performance.

This also adds a new intent action
|org.mozilla.geckoview.test.XPCSHELL_TEST_MAIN| that can be used by the test
harness to start the main application and gain foreground priority without
starting Gecko (which would interfere with the xpcshell runner services).

Differential Revision: https://phabricator.services.mozilla.com/D106212
2021-03-24 20:20:02 +00:00
Agi Sferro 5256b36255 Bug 1567341 - Allow geckoview.test to run xpcshell. r=esawin
This commit adds a new command line option |-xpcshell| that, when passed, will
run an xpcshell instead of launching a full Gecko instance.

This command line option is restricted to org.mozilla.geckoview.test for now,
as it's really hard to use and not really a usecase outside mozilla. We can
revisit this if there's interest.

Differential Revision: https://phabricator.services.mozilla.com/D106211
2021-03-24 20:20:01 +00:00
Agi Sferro 17a5705ca2 Bug 1567341 - Send arguments using array instead of one string in adb.py. r=firefox-build-system-reviewers,mhentges,owlish
Sending arguments in one string breaks arguments that contain a space, e.g. in
xpcshell-test.

Differential Revision: https://phabricator.services.mozilla.com/D106208
2021-03-24 20:20:00 +00:00
Agi Sferro 0515113457 Bug 1567341 - Initialize GeckoViewWebExtensions when getting extension-installed. r=esawin
When getting the *-extension-installed messages we should always notify
GeckoViewWebExtension.

This currently works because we always install the test support extension which
causes us to initialize GeckoViewWebExtension. On xpcshel tests, however, there
is no support extension so we need to account for that in GeckoViewStartup.

Differential Revision: https://phabricator.services.mozilla.com/D106319
2021-03-24 20:19:58 +00:00
Agi Sferro 2031c684a0 Bug 1567341 - Wait for the AddonManager to start up in GeckoViewWebExtension. r=esawin
Differential Revision: https://phabricator.services.mozilla.com/D106205
2021-03-24 20:19:58 +00:00
Agi Sferro 5a745c2b72 Bug 1567341 - Release EventDispatcher listeners on xpcom-shutdown. r=esawin
Differential Revision: https://phabricator.services.mozilla.com/D106204
2021-03-24 20:19:58 +00:00
Agi Sferro 84add96ac7 Bug 1567341 - Initialize SafeBrowsing in geckoview.js. r=esawin
We don't need to initialize SafeBrowsing _immediately_ at startup and we can
wait until the InitLater stage.

This has the added benefit of not crashing xpcshell-test which doesn't have
SafeBrowsing support.

Differential Revision: https://phabricator.services.mozilla.com/D106200
2021-03-24 20:19:56 +00:00
Agi Sferro cca95eccac Bug 1697844 - Re-enable checkstyle for org.mozilla.gecko. r=esawin
Differential Revision: https://phabricator.services.mozilla.com/D108072
2021-03-24 20:06:27 +00:00
Agi Sferro 6fa04e6d9d Bug 1697844 - Remove unused Fennec code from org.mozilla.gecko. r=esawin
Differential Revision: https://phabricator.services.mozilla.com/D108071
2021-03-24 20:06:27 +00:00
Agi Sferro 26d653d3ca Bug 1697844 - Remove unused ActivityUtils. r=esawin
Differential Revision: https://phabricator.services.mozilla.com/D108070
2021-03-24 20:06:27 +00:00
Agi Sferro 14735aa95a Bug 1697844 - Remove unused IOUtils. r=esawin
Differential Revision: https://phabricator.services.mozilla.com/D108069
2021-03-24 20:06:26 +00:00
Agi Sferro 8370647485 Bug 1697844 - Merge GeckoHalDefines in GeckoAppShell. r=esawin
Differential Revision: https://phabricator.services.mozilla.com/D108068
2021-03-24 20:06:26 +00:00
Agi Sferro 50c5621594 Bug 1697844 - Remove unused SysInfo. r=esawin
Differential Revision: https://phabricator.services.mozilla.com/D108067
2021-03-24 20:06:25 +00:00
Agi Sferro e57f4ab44a Bug 1697844 - Remove unused GeckoSharedPrefs. r=esawin
Differential Revision: https://phabricator.services.mozilla.com/D108066
2021-03-24 20:06:25 +00:00
Agi Sferro 4e73af0a82 Bug 1697844 - Remove unused StringUtils. r=esawin
Differential Revision: https://phabricator.services.mozilla.com/D108065
2021-03-24 20:06:25 +00:00
Agi Sferro 674d630320 Bug 1697844 - Remove unused FENNEC_NIGHTLY. r=esawin
Differential Revision: https://phabricator.services.mozilla.com/D108049
2021-03-24 20:06:24 +00:00
Agi Sferro 9a5a44bb58 Bug 1697844 - Remove unused Fennec telemetry code. r=esawin
Differential Revision: https://phabricator.services.mozilla.com/D108044
2021-03-24 20:06:24 +00:00
Alexandru Michis ced948f22d Backed out 10 changesets (bug 1697844) for causing mpu failures in test_visualmetrics.py
CLOSED TREE

Backed out changeset 63b3268b0d2d (bug 1697844)
Backed out changeset 875b2aa342d9 (bug 1697844)
Backed out changeset 4fb528aaf7d5 (bug 1697844)
Backed out changeset 6ef5e1c9ca21 (bug 1697844)
Backed out changeset 430d6c940eb9 (bug 1697844)
Backed out changeset 7a306f28dc64 (bug 1697844)
Backed out changeset 871a40e2fc00 (bug 1697844)
Backed out changeset 083e9ce71d14 (bug 1697844)
Backed out changeset b53930a3f065 (bug 1697844)
Backed out changeset 24326d04dd37 (bug 1697844)
2021-03-24 21:59:28 +02:00
Agi Sferro 9c99ace8f3 Bug 1697844 - Re-enable checkstyle for org.mozilla.gecko. r=esawin
Differential Revision: https://phabricator.services.mozilla.com/D108072
2021-03-24 18:54:48 +00:00
Agi Sferro fd023af94e Bug 1697844 - Remove unused Fennec code from org.mozilla.gecko. r=esawin
Differential Revision: https://phabricator.services.mozilla.com/D108071
2021-03-24 18:54:48 +00:00
Agi Sferro 5d4af28f40 Bug 1697844 - Remove unused ActivityUtils. r=esawin
Differential Revision: https://phabricator.services.mozilla.com/D108070
2021-03-24 18:54:47 +00:00
Agi Sferro ace87a181c Bug 1697844 - Remove unused IOUtils. r=esawin
Differential Revision: https://phabricator.services.mozilla.com/D108069
2021-03-24 18:54:47 +00:00
Agi Sferro a3266b72dc Bug 1697844 - Merge GeckoHalDefines in GeckoAppShell. r=esawin
Differential Revision: https://phabricator.services.mozilla.com/D108068
2021-03-24 18:54:46 +00:00
Agi Sferro e84808f52d Bug 1697844 - Remove unused SysInfo. r=esawin
Differential Revision: https://phabricator.services.mozilla.com/D108067
2021-03-24 18:54:46 +00:00
Agi Sferro 02128f12c1 Bug 1697844 - Remove unused GeckoSharedPrefs. r=esawin
Differential Revision: https://phabricator.services.mozilla.com/D108066
2021-03-24 18:54:46 +00:00
Agi Sferro 79837c7cf8 Bug 1697844 - Remove unused StringUtils. r=esawin
Differential Revision: https://phabricator.services.mozilla.com/D108065
2021-03-24 18:54:45 +00:00
Agi Sferro a6f7203643 Bug 1697844 - Remove unused FENNEC_NIGHTLY. r=esawin
Differential Revision: https://phabricator.services.mozilla.com/D108049
2021-03-24 18:54:45 +00:00
Agi Sferro 318e4fa13d Bug 1697844 - Remove unused Fennec telemetry code. r=esawin
Differential Revision: https://phabricator.services.mozilla.com/D108044
2021-03-24 18:54:44 +00:00
Nazım Can Altınova 4e8f3a2687 Bug 1699646 - Add Android device information to the profile meta object r=geckoview-reviewers,agi,gerald,julienw
Differential Revision: https://phabricator.services.mozilla.com/D109408
2021-03-24 16:56:12 +00:00
Aaron Klotz ed199e4918 Bug 1698174: Remove support for MOZ_DEBUG_*_WAIT_FOR_JAVA_DEBUGGER environment variables; r=geckoview-reviewers,agi
This is in favour of using `adb shell am set-debug-app` instead.

Differential Revision: https://phabricator.services.mozilla.com/D108977
2021-03-23 18:59:54 +00:00
Makoto Kato 3888581ee0 Bug 1694046 - Don't wait for selection event. r=geckoview-reviewers,droeh
Bug 1650705's geckoview-junit test counts the number of input event times.
It is unnecessary to wait for selection event and Gecko may not sometimes
fire selection event on input or textarea element. So use
InputConnection.setSelection directly instead of waiting for DOM event.

Differential Revision: https://phabricator.services.mozilla.com/D109354
2021-03-23 01:06:19 +00:00
Kagami Sascha Rosylight 24e9b29c8d Bug 1699707 - Remove DeviceProximityEvent and UserProximityEvent r=agi,annevk,smaug
Note that this removes `window.ondeviceproximity` and `window.onuserproximity` which unexpectedly have been exposed unconditionally.

Differential Revision: https://phabricator.services.mozilla.com/D109160
2021-03-22 18:16:16 +00:00
Agi Sferro 4869e57e24 Bug 1685556 - Put tmp dir under app cache. r=droeh
We do this so that users can clear it manually if it grows too large.

Differential Revision: https://phabricator.services.mozilla.com/D109163
2021-03-22 17:49:45 +00:00
Eitan Isaacson e2e455ad6a Bug 1697683 - Don't allow getAvailableLanguages to return null. r=geckoview-reviewers,agi
Differential Revision: https://phabricator.services.mozilla.com/D109111
2021-03-22 16:30:06 +00:00
Emilio Cobos Álvarez 501a3f8567 Bug 1695338 - Tweak extension approval panel layout so that the messages are inline. r=mconley,robwu
Differential Revision: https://phabricator.services.mozilla.com/D107998
2021-03-21 17:02:10 +00:00
Cosmin Sabou 75f75ddd39 Backed out changeset c81efb7a797f (bug 1695338) for xpcshell failures on test_ext_permission_warnings.js. CLOSED TREE 2021-03-20 20:00:14 +02:00
Emilio Cobos Álvarez 79fa3042a4 Bug 1695338 - Tweak extension approval panel layout so that the messages are inline. r=mconley,robwu
Differential Revision: https://phabricator.services.mozilla.com/D107998
2021-03-20 17:22:29 +00:00
Agi Sferro 63f01b6505 Bug 1698963 - Enable FinalLocalVariableCheck. r=esawin
Patch was automatically generated by Android Studio.

Differential Revision: https://phabricator.services.mozilla.com/D108694
2021-03-19 16:47:48 +00:00
Agi Sferro f6eb2f79b8 Bug 1698823 - Don't allow null delegateController. r=aklotz,droeh
We used to support having a null delegateController because WebExtension could
be constructed from the app. Now that we can only go through the Controller we
don't need to do that anymore.

Differential Revision: https://phabricator.services.mozilla.com/D108695
2021-03-18 18:31:09 +00:00
Dylan Roeh 11f680c9cd Bug 1685486 - Annotate SessionState.fromString/toString appropriately, stop throwing JSONExceptions, and handle null values a bit more gracefully. r=agi,geckoview-reviewers,owlish
Differential Revision: https://phabricator.services.mozilla.com/D105385
2021-03-18 17:49:23 +00:00
Makoto Kato 2f96cd0e52 Bug 1699022 - Set surrounding text on onCreateInputConnection. r=geckoview-reviewers,agi
Android R+ has new API to set initial surrounding text.

According to Android commit log [*], it can improve IME start up performance
when setting initial surrounding text that is new API from Android API 30.

* c486acc4d2

Differential Revision: https://phabricator.services.mozilla.com/D108736
2021-03-18 03:18:37 +00:00
Luca Greco 7b459bbed3 Bug 1698158 - part 3.2 - Remove unnecessary imports from testharness addons experimental API. r=mixedpuppy
Differential Revision: https://phabricator.services.mozilla.com/D108229
2021-03-16 18:15:41 +00:00
Aaron Klotz d3d15f26b8 Bug 1573860: Always use the system principal as the requesting principal when loading user-initiated URIs; r=agi,ckerschb
As discussed in the bug, when the app calls `loadUri` without
`LOAD_FLAGS_EXTERNAL` and there is no referrer session, we may always use the
system principal as the requesting principal.

I removed all the special-casing of the other various schemes under the
expectation that, under the conditions described above, they are also subject
to the same policy.

Differential Revision: https://phabricator.services.mozilla.com/D107517
2021-03-16 15:26:44 +00:00
owlishDeveloper 78f7152b08 Bug 1523577 - Clean up dead fennec code r=geckoview-reviewers,agi
Depends on D108267

Differential Revision: https://phabricator.services.mozilla.com/D108268
2021-03-15 22:31:51 +00:00
Aaron Klotz fa8747857b Bug 1523639: Make GeckoLoader.setupGeckoEnvironment compatible with isolatedProcess; r=geckoview-reviewers,agi
* We remove the reference to `MOZ_ANDROID_DATA_DIR`, since it appears to have no
  more references in mozilla-central. There is one reference in the xpcshell
  harness for which I have filed a follow-up bug.
* Given that the following variables are not useful by content, we restrict
  their retrieval to the parent process:
  * `DOWNLOADS_DIRECTORY`
  * `UPDATES_DIRECTORY`
  * `EXTERNAL_STORAGE`
  * `CACHE_DIRECTORY`
  * `PUBLIC_STORAGE`
  * Initial prefs
* `TMPDIR` is still used by the XPCOM directory service. Given that we can still
  retrieve this value safely under `isolatedProcess`, we leave this in for now.
  We can revisit this one in the future.
* We restrict retrieval of the user serial number to the parent process. AFAICT
  we do send this value along with crash reports, so I modified `IChildProcess.start`
  to accept this value and propagate it into the child process's environment
  so that an isolated process crash may still include it.
* The remaining envrionment variables remain safe to retrieve when isolated.

Differential Revision: https://phabricator.services.mozilla.com/D108507
2021-03-15 20:45:46 +00:00
Ted Campbell 0004fb8b5c Bug 1697954 - Remove unused javascript.options.showInConsole prefs r=marionette-reviewers,webdriver-reviewers,mossop,remote-protocol-reviewers,whimboo
This dates back to a time before the browser console where the normal content
console could optionally show chrome code messages. Today it serves no use.

Differential Revision: https://phabricator.services.mozilla.com/D108130
2021-03-15 19:50:41 +00:00
Agi Sferro 0ae24ebfa4 Bug 1697503 - Remove GeckoAppShell.KillAnyZombies. r=mossop,droeh
Before this patch, when the profile is locked on Android, we would call "ps",
parse the human-readable output and kill any other Gecko process that we could
find.

But this is completely unnecessary, as we know exactly that the PID of the
process holding the lock is.

In this patch we just kill the process holding the lock since this is
equivalent to the previous behavior.

Differential Revision: https://phabricator.services.mozilla.com/D106186
2021-03-15 17:04:41 +00:00
Mitchell Hentges b7e0dfe1d1 Bug 1695272: Move `--no-interactive` to global mach args r=firefox-build-system-reviewers,glandium
Updates `./mach bootstrap` to use `--no-interactive` from global args.
Ensures all bootstrap prompts have a default option.

Differential Revision: https://phabricator.services.mozilla.com/D106814
2021-03-12 16:07:11 +00:00
Agi Sferro f1becc166b Bug 1696460 - Improve bind error logging. r=aklotz
This error is sent to the native layer so we never log it (at least locally).

This also adds a "cause" exception to have the full stacktrace.

Differential Revision: https://phabricator.services.mozilla.com/D108038
2021-03-12 00:01:11 +00:00
Agi Sferro 448bc74775 Bug 1696460 - Allow multiple runtimes to run at the same time. r=aklotz
For tests, we want to be able to run multiple runtimes at the same time (each
runtime gets its own process).

This mostly work, except our process allocator does not currently check that it
owns a certain process and it will happily try to take control of a different
runtime's process (and fail).

To make this work we tag each content process with the parent process' UUID so
that we can check whether the process that we try to create is free or not.

This strategy is pretty rudimental and we can iteratively improve on it if we
decide to use multiple runtimes on actual apps (and not just tests).

Differential Revision: https://phabricator.services.mozilla.com/D108037
2021-03-12 00:01:10 +00:00
Agi Sferro 34ae374160 Bug 1696460 - Ensure GeckoServiceChildProcess is treated as a bound service. r=aklotz
There is a little Woodoo in this patch but here it is:

- According to the Android docs, services that implement onStartService are
_not_ considered bound services and need to stop themselves. Since we do want
our child processes to die after every client unbounds, we shouldn't implement
it.
- Sometimes processes don't die after |onDestroy| is called, this causes
processes being reused on some esoteric edge case (multiple runtimes, mostly).
To avoid these corner cases, we call System.exit in onDestroy. Note: chromium
does this too.
- We now don't need to kill the process on onBind anymore (this is mostly to
align with chromium).
- We make sure we don't get created multiple times, as that could cause really
weird behavior which is hard to debug (especially on users' devices).

Differential Revision: https://phabricator.services.mozilla.com/D108036
2021-03-12 00:01:10 +00:00
Doug Thayer 14caf9713d Bug 1678411 - Ensure we show slow script notification for fission iframes r=smaug
See bug for more details, but effectively the decision is to show the same
notification which we would normally show for hung pages if an iframe hangs,
but only do so if the user is trying to interact with content hung by that
iframe. This should accomplish that.

Differential Revision: https://phabricator.services.mozilla.com/D107933
2021-03-11 17:41:19 +00:00
owlishDeveloper d2fed3ba8c Bug 1691101 - Migrate from jcenter in android builds r=geckoview-reviewers,nalexander,agi
Differential Revision: https://phabricator.services.mozilla.com/D107573
2021-03-11 00:18:40 +00:00
Agi Sferro f002e607b0 Bug 1694481 - Remove unused code in GeckoAppShell. r=aklotz
Differential Revision: https://phabricator.services.mozilla.com/D106187
2021-03-10 22:43:10 +00:00
Agi Sferro e4db9c53e4 Bug 1694481 - Simplify Android Listeners in GeckoAppShell. r=aklotz
GeckoAppShell has code to handle custom listeners, but we don't use them anymore.

Differential Revision: https://phabricator.services.mozilla.com/D106185
2021-03-10 22:43:09 +00:00
Agi Sferro 0d3819e98e Bug 1694481 - Remove unused android lock screen orientation support. r=aklotz
Differential Revision: https://phabricator.services.mozilla.com/D106184
2021-03-10 22:43:09 +00:00
Agi Sferro eac41f1807 Bug 1694481 - Remove unused methods in GeckoAppShell. r=aklotz
Differential Revision: https://phabricator.services.mozilla.com/D106183
2021-03-10 22:43:08 +00:00
Agi Sferro 111343732d Bug 1694481 - Remove unused code from exthandler/android. r=droeh,esawin
Differential Revision: https://phabricator.services.mozilla.com/D106182
2021-03-10 22:43:08 +00:00
Agi Sferro 9ec0facdaa Bug 1694481 - Remove unused methods in GeckoLoader. r=aklotz
Differential Revision: https://phabricator.services.mozilla.com/D106181
2021-03-10 22:43:08 +00:00
Agi Sferro 71dbca3068 Bug 1694481 - Remove unused NativeZip. r=aklotz
Differential Revision: https://phabricator.services.mozilla.com/D106180
2021-03-10 22:43:07 +00:00
Agi Sferro b39485034a Bug 1694481 - Remove unused DirectBufferAllocator. r=aklotz
Differential Revision: https://phabricator.services.mozilla.com/D106179
2021-03-10 22:43:07 +00:00
Agi Sferro 4a3ac00774 Bug 1694481 - Remove unused android:// protocol handler r=aklotz
Differential Revision: https://phabricator.services.mozilla.com/D106178
2021-03-10 22:43:06 +00:00
Agi Sferro 83874acc8d Bug 1694481 - Remove unused telemetry methods. r=aklotz
Differential Revision: https://phabricator.services.mozilla.com/D106174
2021-03-10 22:43:05 +00:00
Agi Sferro 01502e4660 Bug 1697270 - Provide GeckoResult.allow() and .deny() r=owlish,droeh
GeckoResult uses the thread is instantiated on to run callbacks, so it's
important that the calling code builds GeckoResult on the same thread where
it's used to avoid suprising cross-thread effects.

The above assumption is broken when using ALLOW and DENY as these objects are
built on whatever thread happens to load the GeckoResult class in the JVM.

This change deprecates ALLOW and DENY and introdocues allow() and deny() which
build the GeckoResult instance on the same thread where they are called
avoiding any cross-thread problems.

Differential Revision: https://phabricator.services.mozilla.com/D107729
2021-03-10 21:44:05 +00:00
Simon Giesecke ad01a10a3b Bug 1634281 - Use nsTHashMap instead of nsDataHashtable. r=xpcom-reviewers,necko-reviewers,jgilbert,nika,valentin
Note that this patch only transforms the use of the nsDataHashtable type alias
to a directly equivalent use of nsTHashMap. It does not change the specification
of the hash key type to make use of the key class deduction that nsTHashMap
allows for in some cases. That can be done in a separate step, but requires more
attention.

Differential Revision: https://phabricator.services.mozilla.com/D106008
2021-03-10 10:47:47 +00:00
owlishDeveloper 5f323edf67 Bug 1432949 - Return error if channel cannot be opened. Expand download blob test case r=geckoview-reviewers,snorp
Differential Revision: https://phabricator.services.mozilla.com/D75687
2021-03-09 00:45:22 +00:00
Aaron Klotz 16e2a045ee Bug 1691799: Bump GeckoView Nightly's content process limit to 40; r=geckoview-reviewers,agi
This is the same number that Chromium uses.

Differential Revision: https://phabricator.services.mozilla.com/D107518
2021-03-08 20:51:34 +00:00
owlishDeveloper 8a5e082ba7 Bug 1693416: Rewrite reset processes in tests to be compatible with isolated process r=geckoview-reviewers,agi
Differential Revision: https://phabricator.services.mozilla.com/D106862
2021-03-08 20:20:26 +00:00
owlishDeveloper bdd6620010 Bug 1631945 - Add API to junit test harness that enables tests to query for all web content pids r=geckoview-reviewers,aklotz
Differential Revision: https://phabricator.services.mozilla.com/D106861
2021-03-08 20:05:32 +00:00
owlishDeveloper 75c069fff9 Bug 1658988 - Close tab in ContentDelegate#onCloseRequest instead of finishing the activity to keep GVE from going into background r=geckoview-reviewers,agi
Differential Revision: https://phabricator.services.mozilla.com/D107484
2021-03-08 17:24:11 +00:00
Kagami Sascha Rosylight a9417a719e Bug 1360715 - Part 2: Modify instanceofs in tests to non-cross-context r=edgar
Differential Revision: https://phabricator.services.mozilla.com/D106662
2021-03-04 22:03:57 +00:00
Eugen Sawin c2e482bffe Bug 1693584 - [2.0] Update MediaElement tests so suppress deprecation warnings. r=geckoview-reviewers,agi
Differential Revision: https://phabricator.services.mozilla.com/D107232
2021-03-04 18:27:03 +00:00
Eugen Sawin 19033fdc7a Bug 1693584 - [1.1] Deprecate the MediaElement API. r=geckoview-reviewers,agi
Differential Revision: https://phabricator.services.mozilla.com/D107124
2021-03-04 18:27:02 +00:00
Brindusan Cristian b926d96be6 Backed out 3 changesets (bug 1360715) for mochitest failures at test_WebCrypto.html. CLOSED TREE
Backed out changeset b4a14c42313d (bug 1360715)
Backed out changeset 0e4b1b65fcbe (bug 1360715)
Backed out changeset fb8b9841d82b (bug 1360715)
2021-03-04 21:15:16 +02:00
Kagami Sascha Rosylight 73ec445d30 Bug 1360715 - Part 2: Modify instanceofs in tests to non-cross-context r=edgar
Differential Revision: https://phabricator.services.mozilla.com/D106662
2021-03-04 15:05:26 +00:00
Emilio Cobos Álvarez d43ee0e7b6 Bug 1695338 - Update WebExtension approval panel for Proton. r=mconley,robwu
Differential Revision: https://phabricator.services.mozilla.com/D107065
2021-03-04 11:03:11 +00:00
Makoto Kato 642a244fdf Bug 1693477 - notifyPush needs messageId. r=geckoview-reviewers,agi
This is simple typo when payload is nothing.

Also, we should add unit tests for this since we don't run mochitest in
dom/push/test. The mochitest requires mock's implementation, but we doesn't
have it.

Differential Revision: https://phabricator.services.mozilla.com/D107067
2021-03-04 00:36:44 +00:00
Simon Giesecke b5855b89fc Bug 1634281 - Remove unused nsDataHashtable.h includes. r=xpcom-reviewers,nika
Differential Revision: https://phabricator.services.mozilla.com/D106007
2021-03-03 08:58:52 +00:00
Jens Stutte 05581ddca4 Bug 1678330: Ensure nested SpinEventLoopUntil(OrShutdown) calls are traceable to the originating source in case of crash. r=nika,extension-reviewers
Differential Revision: https://phabricator.services.mozilla.com/D106839
2021-03-02 22:11:58 +00:00
Agi Sferro c6942877da Bug 1695051 - Add /security to .lldbinit. r=aklotz
This is required to debug code in libnss3.

Differential Revision: https://phabricator.services.mozilla.com/D106541
2021-03-02 20:39:12 +00:00
Cosmin Sabou b2eb620ed0 Backed out changeset 03cae7800b41 (bug 1678330) for mochitest plain failures on test_window_open_discarded_bc.html. CLOSED TREE 2021-03-02 20:18:21 +02:00
Jens Stutte a0af9ea0a4 Bug 1678330: Ensure nested SpinEventLoopUntil(OrShutdown) calls are traceable to the originating source in case of crash. r=nika,extension-reviewers
Differential Revision: https://phabricator.services.mozilla.com/D106839
2021-03-02 15:15:20 +00:00
Hiroyuki Ikezoe 2dbfa985b4 Bug 1678505 - Add an additional test case that touch events are handled in non root scroll container having overscroll-behavior: none. r=botond
overscroll-behavior-none-on-non-root.html is a test case that the document has
a 100vh scrollable element and its overscroll-behavior is `none`, thus all
touch events are consumed by the non-root scroll container. But with dynamic
toolbar, it will be notified as if it's consumed by the root container to move
the dynamic toolbar if the scroll position in the scrollable element is at the
bottom edge.

Differential Revision: https://phabricator.services.mozilla.com/D105712
2021-03-02 08:06:29 +00:00
Hiroyuki Ikezoe ed8e2f3684 Bug 1678505 - Add {PanZoomController, GeckoView}.onTouchEventForDetailResult. r=geckoview-reviewers,agi,owlish
Note about junit tests for overscroll-behavior;
With a single test html and changing overscroll-behavior style on the root
scroll element (i.e. <html>) dynamically would introduce new intermittent
failures because there is no handy way to make sure the style change has been
reflected on the APZ side, so instead we use static html files respectively.

Differential Revision: https://phabricator.services.mozilla.com/D103421
2021-03-02 08:06:29 +00:00
Hiroyuki Ikezoe 58d740803c Bug 1678505 - Expose ScrollableDirections and OverscrollDirecitons to GeckoView. r=botond,geckoview-reviewers,agi,aklotz
Differential Revision: https://phabricator.services.mozilla.com/D103420
2021-03-02 08:06:28 +00:00
ankushduacodes 4b9df6ba3b Bug 1643736 - Adding appropriate check before passing cookieStoreId to GeckoViewTabBridge.createNewTab() r=robwu,agi
Differential Revision: https://phabricator.services.mozilla.com/D100151
2021-03-01 20:49:07 +00:00
Agi Sferro d7c56b38e4 Bug 1688062 - Update target SDK to API 30. r=esawin,jnicol
Differential Revision: https://phabricator.services.mozilla.com/D106556
2021-03-01 19:12:16 +00:00
Doug Thayer 3e030acee5 Bug 1694229 - Show slow script warning only when critical input is pending r=smaug
We want to restrict the slow script warning to cases where the user is actually
trying to interact with the browser.

Differential Revision: https://phabricator.services.mozilla.com/D106017
2021-02-27 18:22:33 +00:00
Noemi Erli 67edd199af Backed out changeset 0ca845833464 (bug 1688062) for causinf Android Webrender bustages CLOSED TREE 2021-02-27 14:15:09 +02:00
Csoregi Natalia 863547c177 Merge mozilla-central to autoland on a CLOSED TREE 2021-02-27 11:48:23 +02:00
Csoregi Natalia 52a3b19a3d Merge autoland to mozilla-central. a=merge 2021-02-27 11:43:56 +02:00
Csoregi Natalia b08394edf3 Backed out 11 changesets (bug 1678505) for causing crashes. a=backout
Backed out changeset 7cd5f2c1c3f4 (bug 1678505)
Backed out changeset 09f4c4093c07 (bug 1678505)
Backed out changeset 76e3f391b7dd (bug 1678505)
Backed out changeset 6a0e949d4a2d (bug 1678505)
Backed out changeset 69c7b98ac8f6 (bug 1678505)
Backed out changeset 63608c5df1b0 (bug 1678505)
Backed out changeset a4532c4a1768 (bug 1678505)
Backed out changeset 09aab64b89cd (bug 1678505)
Backed out changeset e832d2bfe7a6 (bug 1678505)
Backed out changeset e0898b4f9fe6 (bug 1678505)
Backed out changeset 04a759c327cd (bug 1678505)
2021-02-27 11:26:46 +02:00
Agi Sferro b69e57d56f Bug 1688062 - Update target SDK to API 30. r=esawin
Differential Revision: https://phabricator.services.mozilla.com/D106556
2021-02-26 21:45:15 +00:00
Rob Wu 252ef583b9 Bug 1694699 - Minimize access to tab.hasTabPermission r=rpl,geckoview-reviewers,agi
tab.hasTabPermission indirectly triggers an access to
browser.currentURI, which for lazy tab browsers causes an incorrect
value to be cached. To avoid this, skip the call to hasTabPermission.

Differential Revision: https://phabricator.services.mozilla.com/D106622
2021-02-26 21:34:54 +00:00
Agi Sferro 3b0e7a3659 Bug 1695056 - Don't provide details info about mobile networks. r=valentin,esawin,mixedpuppy
Since Android 11, READ_PHONE_STATE is required to get detailed information
about mobile networks. Since we don't actually use this information anywhere
right now, we just won't provide it isntead of adding a new permission.

Differential Revision: https://phabricator.services.mozilla.com/D106557
2021-02-26 18:43:40 +00:00
Dorel Luca 0875c78fec Backed out changeset 0e3e3b8a55b4 (bug 1688062) for Linting failure in java/org/mozilla/gecko/GeckoAppShell.java. CLOSED TREE 2021-02-26 19:02:12 +02:00
Agi Sferro c0dc6e84b0 Bug 1688062 - Update target SDK to API 30. r=esawin
Differential Revision: https://phabricator.services.mozilla.com/D106556
2021-02-26 16:34:02 +00:00
Hiroyuki Ikezoe 3fb4d533c8 Bug 1678505 - Add an additional test case that touch events are handled in non root scroll container having overscroll-behavior: none. r=botond
overscroll-behavior-none-on-non-root.html is a test case that the document has
a 100vh scrollable element and its overscroll-behavior is `none`, thus all
touch events are consumed by the non-root scroll container. But with dynamic
toolbar, it will be notified as if it's consumed by the root container to move
the dynamic toolbar if the scroll position in the scrollable element is at the
bottom edge.

Differential Revision: https://phabricator.services.mozilla.com/D105712
2021-02-26 04:15:20 +00:00
Hiroyuki Ikezoe f83e9fbb57 Bug 1678505 - Add {PanZoomController, GeckoView}.onTouchEventForDetailResult. r=geckoview-reviewers,agi,owlish
Note about junit tests for overscroll-behavior;
With a single test html and changing overscroll-behavior style on the root
scroll element (i.e. <html>) dynamically would introduce new intermittent
failures because there is no handy way to make sure the style change has been
reflected on the APZ side, so instead we use static html files respectively.

Differential Revision: https://phabricator.services.mozilla.com/D103421
2021-02-26 04:15:19 +00:00
Hiroyuki Ikezoe 15210a1949 Bug 1678505 - Expose ScrollableDirections and OverscrollDirecitons to GeckoView. r=botond,geckoview-reviewers,agi,aklotz
Differential Revision: https://phabricator.services.mozilla.com/D103420
2021-02-26 04:15:19 +00:00
Agi Sferro 79b1179eb9 Bug 1694179 - Add workaround for getNetworkLinkType on Android 11. r=esawin
I have a better fix but let's land this in the meanwhile as this crashes at
startup on any Android 11 device.

Differential Revision: https://phabricator.services.mozilla.com/D106547
2021-02-25 21:50:19 +00:00
Bogdan Tara d53cfe7369 Backed out 5 changesets (bug 1694229) by flod's request, lint failures CLOSED TREE
Backed out changeset cb3d9e8d32e6 (bug 1694229)
Backed out changeset 877471a44509 (bug 1694229)
Backed out changeset 286b311d32b2 (bug 1694229)
Backed out changeset 42cb688eae03 (bug 1694229)
Backed out changeset d082f53d882e (bug 1694229)
2021-02-25 22:43:33 +02:00
Doug Thayer 8195515eec Bug 1694229 - Show slow script warning only when critical input is pending r=smaug
We want to restrict the slow script warning to cases where the user is actually
trying to interact with the browser.

Differential Revision: https://phabricator.services.mozilla.com/D106017
2021-02-25 19:59:15 +00:00
Brindusan Cristian 6f8f3d0e90 Backed out 5 changesets (bug 1694229) for geckoview failures. CLOSED TREE
Backed out changeset 5ce24c91b0c1 (bug 1694229)
Backed out changeset 7fef19f47442 (bug 1694229)
Backed out changeset a70e27ec7747 (bug 1694229)
Backed out changeset 6a5d472e1b05 (bug 1694229)
Backed out changeset d32085239f92 (bug 1694229)
2021-02-25 09:27:50 +02:00
Doug Thayer 7cada2b622 Bug 1694229 - Show slow script warning only when critical input is pending r=smaug
We want to restrict the slow script warning to cases where the user is actually
trying to interact with the browser.

Differential Revision: https://phabricator.services.mozilla.com/D106017
2021-02-25 04:14:13 +00:00
Agi Sferro 816cdb938f Bug 1609198 - Print logcat on junit test failure. r=droeh,nalexander
This also adds a --verbose flag to |mach geckoview-junit| which always prints
the logcat for every test.

Differential Revision: https://phabricator.services.mozilla.com/D104769
2021-02-24 17:02:54 +00:00
Masayuki Nakano ef2253b4a1 Bug 1691622 - part 9: Make `nsIWidget::SynthesizeNativeMouseEvent` take an XP button ID and abstract message value r=smaug,geckoview-reviewers,agi,m_kato
Currently, it takes a raw native message value, but it makes JS content too
complicated.  And on Linux, it cannot synthesize non-primary button events
because GDK has only button press and release messages which dont' include
mouse button information.

For solving these problems, this patch creates a new abstract native message
as `nsIWidget::NativeMouseMessage` and makes each widget converts it to
a platform native message.

Additionally, this patch adds an argument to make it possible its callers
to specify pressing or releasing mouse button with a DOM mouse button value.

Note that the following patch adds new argument to
`synthesizeNativeEventMouse*` for mochitests and which will be tested by
new tests.

Differential Revision: https://phabricator.services.mozilla.com/D105763
2021-02-24 01:27:10 +00:00
owlishDeveloper 0ff7359c48 Bug 1684923 - Implement Web Extension downloads.onChanged event in GeckoView r=agi,robwu,geckoview-reviewers,esawin
Differential Revision: https://phabricator.services.mozilla.com/D101377
2021-02-22 23:54:22 +00:00