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

30972 Коммитов

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

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

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

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

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

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

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

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

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

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

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

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

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

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

So I would like to rewrite this test.

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

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

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

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

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

Depends on D117622

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

We should check `mReleasing` before calling callback.

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

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

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

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

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