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

30754 Коммитов

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