Commit Graph

30656 Commits

Author SHA1 Message Date
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