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

25728 Коммитов

Автор SHA1 Сообщение Дата
Rob Wu 8162b376d4 Bug 1642671 - Add tests for falsey result from runtime.onMessage r=zombie,geckoview-reviewers,agi
Differential Revision: https://phabricator.services.mozilla.com/D77895
2020-06-03 17:26:43 +00:00
Agi Sferro 570ba4b9d5 Bug 1642429 - Use checkstyle to enforce that all API methods have docs. r=esawin,snorp
Differential Revision: https://phabricator.services.mozilla.com/D77693
2020-06-02 15:05:13 +00:00
Makoto Kato 0917864e45 Bug 1593683 - Part 2. Handle arrow left/right key when having composition. r=geckoview-reviewers,esawin
Most IMEs handle arrow key, then set caret position by IME. But GBoard doesn't
handle it. GBoard will dispatch key event to application for arrow left/right
even if having IME composition.

Since Gecko doesn't dispatch key press during IME composition due to DOM UI
events spec, we have to emulate arrow key's behaviour.

And, `GeckoEditable` has a hack that composition text is committed when
dispatching key event. This hack is unnecessary after landing
bug 1613804 that `InputConnection.finishComposingText` is implemented.

Differential Revision: https://phabricator.services.mozilla.com/D76658
2020-06-01 08:36:29 +00:00
Razvan Maries a36bb7751f Backed out 3 changesets (bug 1638153) for perma failures on cross-origin-objects.html. CLOSED TREE
Backed out changeset f7aedc92d396 (bug 1638153)
Backed out changeset 07ec713926c6 (bug 1638153)
Backed out changeset 5a656842e241 (bug 1638153)
2020-06-01 23:51:35 +03:00
Kris Maglione b3fcd970ec Bug 1638153: Part 2 - Fix uses of .rootTreeItem to get top browser window. r=geckoview-reviewers,nika,snorp
Differential Revision: https://phabricator.services.mozilla.com/D75429
2020-06-01 17:59:01 +00:00
Agi Sferro 582feb1629 Bug 1575999 - Always run javadoc tasks during lint. r=nalexander,esawin
Differential Revision: https://phabricator.services.mozilla.com/D77489
2020-06-01 15:58:03 +00:00
Agi Sferro bf1d097cb9 Bug 1641711 - Make javadoc output parsing more resilient. r=snorp
As it turns out, javadoc output is not stable across platforms / OSs / versions
(not a big suprise).

E.g. in try this is an example line:

```
/builds/worker/checkouts/gecko/mobile/android/geckoview/src/main/java/org/mozilla/geckoview/GeckoRuntimeSettings.java:1124: warning - Tag @link: reference not found: Autocomplete.LoginStorageDelegate.onLoginFetch onLoginFetch
```

on my mac, this is the same error:

```
/Users/asferro/workspace/mozilla-central/mobile/android/geckoview/src/main/java/org/mozilla/geckoview/GeckoRuntimeSettings.java:1118: error: reference not found
     * {@link Autocomplete.LoginStorageDelegate.onLoginFetch onLoginFetch}.
```

Notice the `-` character after `warning` in the first example and the `:`
character after the second example.

To be able to parse both this patch simiplifies the regex and also adds a
failsafe that will mark anything that contains the string "error" and "warning"
as such.

Differential Revision: https://phabricator.services.mozilla.com/D77545
2020-06-01 15:58:05 +00:00
Agi Sferro 519207a6a8 Bug 1641711 - Don't fail the build if javadoc fails. r=nalexander,snorp,esawin
`|mach lint -f treeherder|` expects lint to not fail ever, if a lint fails it's
just ignored. This means that when our javadoc errors out and fails the build
all lints are ignored.

To avoid that we add `failOnError = false` to the javadoc job so that we can
finish the build and actually report the errors.

This patch also adds gradle output `|mach lint|` to make it easier to
diagnose errors in the lint.

Differential Revision: https://phabricator.services.mozilla.com/D77373
2020-06-01 15:58:13 +00:00
Tomislav Jovanovic 8f0bdce123 Bug 1583484 - Move extension messaging off MessageChannel r=geckoview-reviewers,mixedpuppy,agi
Differential Revision: https://phabricator.services.mozilla.com/D74026
2020-05-22 22:50:46 +00:00
Mihai Alexandru Michis 7ac149a023 Backed out 2 changesets (bug 1593683) for causing failures in test_selectevents.html
Backed out changeset 05d7ad574df4 (bug 1593683)
Backed out changeset 16cc9284bc5f (bug 1593683)
2020-06-01 06:29:24 +03:00
Makoto Kato 6608bcb9fd Bug 1593683 - Part 2. Handle arrow left/right key when having composition. r=geckoview-reviewers,esawin
Most IMEs handle arrow key, then set caret position by IME. But GBoard doesn't
handle it. GBoard will dispatch key event to application for arrow left/right
even if having IME composition.

Since Gecko doesn't dispatch key press during IME composition due to DOM UI
events spec, we have to emulate arrow key's behaviour.

And, `GeckoEditable` has a hack that composition text is committed when
dispatching key event. This hack is unnecessary after landing
bug 1613804 that `InputConnection.finishComposingText` is implemented.

Differential Revision: https://phabricator.services.mozilla.com/D76658
2020-05-28 15:38:03 +00:00
Bogdan Tara f863a91210 Backed out changeset 2548f39e1751 (bug 1641711) for lints.py failure CLOSED TREE 2020-05-29 12:37:18 +03:00
Agi Sferro 465a4e3f1a Bug 1641711 - Don't fail the build if javadoc fails. r=nalexander,snorp
`|mach lint -f treeherder|` expects lints to not fail ever, if a lint fails it's
just ignored. This means that when our javadoc errors out and fails the build
all lints are ignored.

To avoid that we add `failOnError = false` to the javadoc job so that we can
finish the build and actually report the errors.

This patch also adds gradle output `|mach lint|` to make it easier to
diagnose errors in the lint.

Differential Revision: https://phabricator.services.mozilla.com/D77373
2020-05-29 00:24:22 +00:00
Rob Wu 9b0fc7b0fa Bug 1641516 - Use sendRequest in extension actions r=geckoview-reviewers,agi
The sender doesn't await a result, and the recipient does not send a
result. To get rid of logspam when the finalizer is invoked, simply
replace `sendRequestForResult` with `sendRequest`.

Differential Revision: https://phabricator.services.mozilla.com/D77235
2020-05-28 20:37:08 +00:00
Agi Sferro ba50630491 Bug 1641591 - restore WebExtension docs to current version. r=fluffyemily
Differential Revision: https://phabricator.services.mozilla.com/D77310
2020-05-28 17:38:23 +00:00
Eugen Sawin 6a2dd06f72 Bug 1641475 - [1.0] Fix Javadoc warnings. r=geckoview-reviewers,droeh
Differential Revision: https://phabricator.services.mozilla.com/D77311
2020-05-28 21:12:05 +00:00
Aaron Klotz bcc33f9b49 Bug 1641315: Fix crash when a binding connection is lost during final connection setup; r=geckoview-reviewers,agi
This crash hits when a `RemoteException` is thrown during `onServiceConnected`.
We `unbind`, which destroys all our bookkeeping data. During this destruction,
we also attempt to retrieve the pid, which fails because we lost our binding
before we had a chance to retrieve it.

This patch adds a new exception to be thrown in this case, which we explicitly
catch in `removeContentConnection`.

Differential Revision: https://phabricator.services.mozilla.com/D77135
2020-05-27 23:08:07 +00:00
Anny Gakhokidze 28243d5736 Bug 1630323 - Do not override user preferences when clicking on a service worker notification to open a new document, r=Gijs,nika,geckoview-reviewers,snorp
In Bug 1622749 a user preference for where to open new documents (from a
service worker notification) was temporarily overriden in order to quickly fix
a crash that was happening in mozilla::dom::ClientOpenWindow. The crash was
ocurring when the pref "browser.link.open_newwindow" was set to 2, meaning new
documents are opened in a new window, instead of a new tab. The reason the
browser crashed is because the path for opening a new document is different
depending on the current user setting, and in NEWWINDOW case we did not get a
browsing context returned when calling mozilla::dom::OpenWindow which resulted
in a failed assertion.

The solution is to pass in a callback to mozilla::dom::OpenWindow as part of
nsOpenWindowInfo object, and invoke that callback with a corresponding
BrowsingContext in nsFrameLoader when that browsing context is ready.

After we call mozilla::dom::OpenWindow, we wait on a promise, that will be
resolved when the callback is invoked, before executing the rest of the code
that depends on the browsing context for a newly opened document being
available.

Differential Revision: https://phabricator.services.mozilla.com/D72745
2020-05-27 18:15:36 +00:00
Agi Sferro 5b00703f08 Bug 1629113 - Add missing documentation to onBeforeUnloadPrompt. r=esawin
Differential Revision: https://phabricator.services.mozilla.com/D76964
2020-05-27 15:10:46 +00:00
Eugen Sawin 0ddffb01f3 Bug 1640990 - [1.1] Add login autofill runtime setting. r=geckoview-reviewers,MattN,snorp
Differential Revision: https://phabricator.services.mozilla.com/D76891
2020-05-27 14:04:52 +00:00
Agi Sferro 0f0c68a81d Bug 1640743 - Update WebExtension example links. r=snorp
Differential Revision: https://phabricator.services.mozilla.com/D76756
2020-05-26 19:31:01 +00:00
Agi Sferro c1406546b5 Bug 1629113 - Use |class| in GeckoViewPrompt.jsm r=snorp
Differential Revision: https://phabricator.services.mozilla.com/D75879
2020-05-26 07:44:49 +00:00
Agi Sferro c36e973433 Bug 1629113 - Move remaining services to components.conf. r=snorp,baku
Differential Revision: https://phabricator.services.mozilla.com/D75878
2020-05-26 07:44:52 +00:00
Agi Sferro 7cdda27e40 Bug 1629113 - Move prompt classes to its own modules. r=snorp
Differential Revision: https://phabricator.services.mozilla.com/D75877
2020-05-26 16:35:28 +00:00
Agi Sferro 903fea5453 Bug 1629113 - Use |class| more in GeckoViewPrompt. r=snorp
Differential Revision: https://phabricator.services.mozilla.com/D75876
2020-05-26 16:33:21 +00:00
Agi Sferro 4b055fe237 Bug 1629113 - Move GeckoViewPrompt.js to static component. r=droeh,pbz,MattN
Differential Revision: https://phabricator.services.mozilla.com/D75875
2020-05-26 07:44:44 +00:00
Butkovits Atila a2bda5fd7e Backed out 5 changesets (bug 1629113) for causing Geckoview perma failures. CLOSED TREE
Backed out changeset cd5c87a17008 (bug 1629113)
Backed out changeset 3729b2c288ba (bug 1629113)
Backed out changeset 2cd92d6c2998 (bug 1629113)
Backed out changeset 6d7c87f3c329 (bug 1629113)
Backed out changeset 2bcba09433b5 (bug 1629113)
2020-05-26 10:39:42 +03:00
Agi Sferro cd12daf7d8 Bug 1629113 - Use |class| in GeckoViewPrompt.jsm r=snorp
Differential Revision: https://phabricator.services.mozilla.com/D75879
2020-05-26 04:14:15 +00:00
Agi Sferro 398b7f2e76 Bug 1629113 - Move remaining services to components.conf. r=snorp,baku
Differential Revision: https://phabricator.services.mozilla.com/D75878
2020-05-26 04:14:12 +00:00
Agi Sferro c4530466c4 Bug 1629113 - Move prompt classes to its own modules. r=snorp
Differential Revision: https://phabricator.services.mozilla.com/D75877
2020-05-26 04:14:05 +00:00
Agi Sferro 74d9fc93d1 Bug 1629113 - Use |class| more in GeckoViewPrompt. r=snorp
Differential Revision: https://phabricator.services.mozilla.com/D75876
2020-05-26 04:14:05 +00:00
Agi Sferro e5ad06bfc2 Bug 1629113 - Move GeckoViewPrompt.js to static component. r=droeh,pbz,MattN
Differential Revision: https://phabricator.services.mozilla.com/D75875
2020-05-26 04:14:00 +00:00
Eugen Sawin 3e1783def2 Bug 1618058 - [4.3] Update API changelog. r=geckoview-reviewers,agi
Differential Revision: https://phabricator.services.mozilla.com/D74685
2020-05-25 13:12:33 +00:00
Eugen Sawin a81483a92c Bug 1618058 - [3.3] Rename and extend LoginStorage tests to Autocomplete tests. r=geckoview-reviewers,agi,snorp
Differential Revision: https://phabricator.services.mozilla.com/D73060
2020-05-25 18:46:15 +00:00
Eugen Sawin 077dbf3832 Bug 1618058 - [2.c.7] Implement Autocomplete API backend. r=geckoview-reviewers,MattN,aklotz
Differential Revision: https://phabricator.services.mozilla.com/D73753
2020-05-25 18:45:25 +00:00
Eugen Sawin 1e6ebcef70 Bug 1618058 - [2.b.3] Refactor LoginStorage backend API to the Autocomplete backend API. r=geckoview-reviewers,droeh
Differential Revision: https://phabricator.services.mozilla.com/D73057
2020-05-25 18:44:47 +00:00
Eugen Sawin 8a665d9c0e Bug 1618058 - [1.4] Add Autocomplete API for login autocomplete. r=geckoview-reviewers,snorp,agi
Differential Revision: https://phabricator.services.mozilla.com/D73055
2020-05-25 18:43:15 +00:00
Aaron Klotz 025407f0ea Bug 1625325: Part 1 - Add telemetry timer to record GeckoView content process lifetimes; r=geckoview-reviewers,agi
Differential Revision: https://phabricator.services.mozilla.com/D76378
2020-05-22 23:21:50 +00:00
Agi Sferro cabca57aba Bug 1629113 - Implement nsIPromptCollection on GeckoView. r=snorp,droeh
Differential Revision: https://phabricator.services.mozilla.com/D72722
2020-05-22 23:22:41 +00:00
Agi Sferro 55a1cf51ab Bug 1629113 - Factor out prompter logic in GeckoViewPrompter. r=droeh
Differential Revision: https://phabricator.services.mozilla.com/D75874
2020-05-22 23:22:34 +00:00
James Willcox b4862ab01a Bug 1611035 - Grant "desktop-notification" when delivering Web Push in GeckoView r=geckoview-reviewers,agi
Differential Revision: https://phabricator.services.mozilla.com/D76218
2020-05-21 20:20:40 +00:00
Nazım Can Altınova e135e0b3f6 Bug 1639630 - Increase the java sample count limit to 120000 to cover up to 2 mins with 1ms interval. r=julienw,geckoview-reviewers,agi
Depends on D76180

Differential Revision: https://phabricator.services.mozilla.com/D76181
2020-05-21 21:20:38 +00:00
Nazım Can Altınova cdad822203 Bug 1639630 - Use the limited sample count instead of non-limited one. r=julienw,geckoview-reviewers,agi
Differential Revision: https://phabricator.services.mozilla.com/D76180
2020-05-21 21:20:37 +00:00
Rob Wu ac650df53f Bug 1636158 - Remove addons-bloomfilters from Android package r=agi,geckoview-reviewers,snorp
Those will be restored in bug 1639050

Differential Revision: https://phabricator.services.mozilla.com/D76157
2020-05-20 16:39:05 +00:00
Aaron Klotz f65b5795c7 Bug 1630229: Part 8 - Stop throwing AssertionError for binding of defunct ServiceAllocator.InstanceInfo; r=geckoview-reviewers,owlish
I'm keeping this patch as simple as possible so that we can uplift to beta.
I'll sort out the rest of this in follow-up bugs.

Differential Revision: https://phabricator.services.mozilla.com/D76333
2020-05-21 19:11:22 +00:00
Bogdan Tara 5e15baf1e4 Backed out changeset e562d64f2bf9 (bug 1630229) for lints failure on ServiceAllocator.java CLOSED TREE 2020-05-21 21:47:57 +03:00
Aaron Klotz 06cd8d0427 Bug 1630229: Part 8 - Stop throwing AssertionError for binding of defunct ServiceAllocator.InstanceInfo; r=geckoview-reviewers,owlish
I'm keeping this patch as simple as possible so that we can uplift to beta.
I'll sort out the rest of this in follow-up bugs.

Differential Revision: https://phabricator.services.mozilla.com/D76333
2020-05-21 17:53:08 +00:00
Emilio Cobos Álvarez 7b19f0d6d4 Bug 1609024 - Remove cache mechanism which is not very useful. r=hiro,snorp,mccr8
I don't think all this complexity is worth it for having a
marginally-more-realistic testing story. Using the pref just works and we should
do that, I think.

Differential Revision: https://phabricator.services.mozilla.com/D59980
2020-05-21 17:02:06 +00:00
Emily Toop bcb67c8680 Bug 1639180 - Port docs to Sphinx and reST and stop copying to GitHub. r=geckoview-reviewers,snorp
Differential Revision: https://phabricator.services.mozilla.com/D75935
2020-05-20 15:22:32 +00:00
Mihai Alexandru Michis e9d51d0f4d Backed out changeset 141fda86ce58 (bug 1639180) for causing rst lint failures.
CLOSED TREE
2020-05-20 15:24:58 +03:00