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

30355 Коммитов

Автор SHA1 Сообщение Дата
Bogdan Tara ade4d82c59 Backed out changeset 98c3e6255c58 (bug 1597600) for browser_installssl.js failures CLOSED TREE 2020-12-07 21:01:50 +02:00
R. Martinho Fernandes c99fe51d2d Bug 1597600 - make certificate overrides depend on origin attributes r=keeler,geckoview-reviewers,smaug,agi
Differential Revision: https://phabricator.services.mozilla.com/D91962
2020-12-07 17:10:52 +00:00
Geoff Brown bebfc32efd Bug 1643448 - Add ACCESS_WIFI_STATE permission and disable failing tests in dom/presentation; r=geckoview-reviewers,bc,agi
Add the permission to the geckoview manifest, as previously attempted. Also disable failing tests
to enable a green test run. Add permission to adb.py grants list for good measure.

Differential Revision: https://phabricator.services.mozilla.com/D98809
2020-12-07 16:09:06 +00:00
owlishDeveloper f2128d3927 Bug 1680622 - Remove dead code r=geckoview-reviewers,agi
Differential Revision: https://phabricator.services.mozilla.com/D98833
2020-12-05 02:51:09 +00:00
Agi Sferro 7c25d2ff06 Bug 1625233 - Add smoke test for browsingData.settings. r=robwu,owlish
Depends on D96154

Differential Revision: https://phabricator.services.mozilla.com/D98368
2020-12-04 21:43:24 +00:00
Agi Sferro be73b6f3a4 Bug 1625233 - Implement ext-browsingData on Android. r=robwu,owlish,droeh
Depends on D96152

Differential Revision: https://phabricator.services.mozilla.com/D96153
2020-12-04 21:07:58 +00:00
Agi Sferro 7afeed9b20 Bug 1625233 - Add EventCallback.resolveTo. r=snorp
Differential Revision: https://phabricator.services.mozilla.com/D96150
2020-12-04 20:52:45 +00:00
Agi Sferro 167d5effe6 Bug 1672262 - Remove workaround for duplicated START events. r=aklotz
The underlying problem has been fixed in Bug 1661833.

Differential Revision: https://phabricator.services.mozilla.com/D98686
2020-12-04 20:11:13 +00:00
Agi Sferro 242368746a Bug 1644561 - Add stress test for capturePixels(). r=esawin
Differential Revision: https://phabricator.services.mozilla.com/D80759
2020-09-12 01:09:54 +00:00
Chris Martin 886c2c65a8 Bug 1657404 - Implement a strongly-typed, service-dependent gamepad handle r=handyman,aklotz
Currently, the gamepad code uses a uint32_t as a handle and does some trickery
with it by trying to create a unique ID and adding an offset to it for VR code.

This can (and has) led to errors where the developer forgets to perform the
arithmetic and sends the wrong number to the wrong manager.

This change created a strongly-typed handle that remembers which service it
belongs to. This should eliminate such accidents.

Differential Revision: https://phabricator.services.mozilla.com/D96273
2020-12-02 23:06:05 +00:00
Eugen Sawin 96296324c9 Bug 1679897 - [1.0] Remove GV onActivated order workaround. r=geckoview-reviewers,agi
Differential Revision: https://phabricator.services.mozilla.com/D98256
2020-12-01 02:53:51 +00:00
Eugen Sawin 48fe64d4de Bug 1674110 - [1.0] Avoid triggering default metadata events in tests. r=geckoview-reviewers,alwu,agi
Differential Revision: https://phabricator.services.mozilla.com/D98255
2020-12-01 02:52:38 +00:00
Cristina Coroiu f795b6e3c2 Backed out 2 changesets (bug 1654817) on request by aklotz
Backed out changeset bf721cd8ab14 (bug 1654817)
Backed out changeset fb1c314e6394 (bug 1654817)
2020-11-23 19:12:29 +02:00
Simon Giesecke 971b645fe3 Bug 1660470 - Add missing include directives/forward declarations. r=nika
Differential Revision: https://phabricator.services.mozilla.com/D87865
2020-11-23 16:21:38 +00:00
pbz 5d2e319a03 Bug 1338637 - Ask user for confirmation before folder upload. r=Gijs,geckoview-reviewers,baku
Differential Revision: https://phabricator.services.mozilla.com/D95324
2020-11-17 17:15:51 +00:00
Markus Stange 8b72e2eb8d Bug 1677868 - Rename "Java Main Thread" to "AndroidUI (Java)" in the profiler. r=canaltinova
Differential Revision: https://phabricator.services.mozilla.com/D97378
2020-11-18 23:15:27 +00:00
Razvan Maries efd002addd Backed out 2 changesets (bug 1677396, bug 1677868) for perma failures on browser_startup_syncIPC.js. CLOSED TREE
Backed out changeset e43e56bfbfc6 (bug 1677396)
Backed out changeset 0ecfa354c74c (bug 1677868)
2020-11-19 01:03:25 +02:00
Markus Stange a121e8f0c7 Bug 1677868 - Rename "Java Main Thread" to "AndroidUI (Java)" in the profiler. r=canaltinova
Differential Revision: https://phabricator.services.mozilla.com/D97378
2020-11-18 21:01:46 +00:00
David Parks e5b505e41d Bug 1675349: Remove unused files following removing plugin support r=jmathies,extension-reviewers,geckoview-reviewers,agi,mixedpuppy
Remove some support files for plugin features and stop building TestPlugins.

Differential Revision: https://phabricator.services.mozilla.com/D95904
2020-11-18 15:56:10 +00:00
Makoto Kato d7c9b6c0fe Bug 1673681 - Software keyboard show/dimiss shouldn't be reentrant. r=geckoview-reviewers,agi
Originally, this issue was bug 1283739. But I guess that this might be
regression by bug 1464096.

Actually, reentrant code seems to be broken now, so I make it simple.

Differential Revision: https://phabricator.services.mozilla.com/D97266
2020-11-18 12:39:42 +00:00
Bogdan Tara 56346a0425 Backed out 19 changesets (bug 1675349) for lint failures on browser_ext_browsingData_pluginData and test_archive CLOSED TREE
Backed out changeset 244e0f2b410c (bug 1675349)
Backed out changeset ba5724069dd4 (bug 1675349)
Backed out changeset 37fca259c7e9 (bug 1675349)
Backed out changeset f2b16caca1fc (bug 1675349)
Backed out changeset 28835d4935be (bug 1675349)
Backed out changeset eb913f58953a (bug 1675349)
Backed out changeset 19e3cb80f469 (bug 1675349)
Backed out changeset d9723f3a3a7e (bug 1675349)
Backed out changeset c888dfcdf70e (bug 1675349)
Backed out changeset 48f153341af6 (bug 1675349)
Backed out changeset 7fc67a9b2932 (bug 1675349)
Backed out changeset 1cee4d97f801 (bug 1675349)
Backed out changeset 59a0cb79c7c1 (bug 1675349)
Backed out changeset 43d349fa37b1 (bug 1675349)
Backed out changeset c84bfb6eae59 (bug 1675349)
Backed out changeset 38e9af69ae57 (bug 1675349)
Backed out changeset 3255c1ab3059 (bug 1675349)
Backed out changeset 2f3eaf9c342c (bug 1675349)
Backed out changeset 769e5c0db4c2 (bug 1675349)
2020-11-18 06:06:36 +02:00
David Parks 47765051d4 Bug 1675349: Remove unused files following removing plugin support r=jmathies,extension-reviewers,geckoview-reviewers,agi,mixedpuppy
Remove some support files for plugin features and stop building TestPlugins.

Differential Revision: https://phabricator.services.mozilla.com/D95904
2020-11-18 03:12:08 +00:00
Johann Hofmann 9272d44515 Bug 1675018 - Part 5 - Use deleteUserInteractionForClearingHistory in GeckoView. r=agi
This uses the new deleteUserInteractionForClearingHistory API in GeckoView to avoid
clearing all storage access API permissions and thus causing purging to clear all cookies
and site data when clearing only history.

Differential Revision: https://phabricator.services.mozilla.com/D96642
2020-11-17 22:25:14 +00:00
Csoregi Natalia af42a4dbc7 Backed out 5 changesets (bug 1675018) for linting failure. CLOSED TREE
Backed out changeset 81e7fe361388 (bug 1675018)
Backed out changeset 7fe621a805eb (bug 1675018)
Backed out changeset 34fd482121f2 (bug 1675018)
Backed out changeset ee836c7f63d4 (bug 1675018)
Backed out changeset 0e09ce61e374 (bug 1675018)
2020-11-17 00:34:27 +02:00
Johann Hofmann f73ecf941f Bug 1675018 - Part 5 - Use deleteUserInteractionForClearingHistory in GeckoView. r=agi
This uses the new deleteUserInteractionForClearingHistory API in GeckoView to avoid
clearing all storage access API permissions and thus causing purging to clear all cookies
and site data when clearing only history.

Differential Revision: https://phabricator.services.mozilla.com/D96642
2020-11-16 19:29:42 +00:00
Razvan Maries d92ef717a6 Backed out 2 changesets (bug 1338637) for perma failures on test_webkitdirectory.html. CLOSED TREE
Backed out changeset 5bddcb99f650 (bug 1338637)
Backed out changeset 5c29fd30af97 (bug 1338637)
2020-11-16 18:49:34 +02:00
Nika Layzell 9ff27adca3 Bug 1671983 - Part 1: Remove now-unused process switching shouldLoadURI methods, r=annyG,geckoview-reviewers,snorp
These methods are no longer necessary, as all loads which can trigger process
switches now go through DocumentChannel.

The shouldLoadURI methods on nsIWebBrowserChrome3 are unfortunately still
necessary as they're used by the disabled-by-default "Single-Site Browser"
feature. In the future this may be possible to clean-up.

Differential Revision: https://phabricator.services.mozilla.com/D94638
2020-11-12 18:00:53 +00:00
pbz 574bf71758 Bug 1338637 - Ask user for confirmation before folder upload. r=Gijs,geckoview-reviewers,agi,baku
Differential Revision: https://phabricator.services.mozilla.com/D95324
2020-11-16 09:33:43 +00:00
Markus Stange 758ee8a36c Bug 1677011 - Add an AndroidVsync class, and use it for the implementation of the Android VsyncSource. r=kats
This allows adding another vsync listener that gets called before the regular VsyncSource.
And it allows adding the listener on the Java UI thread.
The existing infrastructure is pretty adamant about being used on the main thread.

Differential Revision: https://phabricator.services.mozilla.com/D96797
2020-11-13 19:06:50 +00:00
Hiroyuki Ikezoe 9b56e1a377 Bug 1676814 - Revert a2f0dae16c37 to stop crashing on fast fling etc. r=botond,geckoview-reviewers,snorp
Differential Revision: https://phabricator.services.mozilla.com/D96965
2020-11-13 15:21:59 +00:00
Agi Sferro db6763404e Bug 1675644 - Flush extension messages per-session and per-nativeApp. r=esawin
The extension code _tries_ to flush messages when the relevant delegate is attached.

The logic, however, is pretty flawed: we currently only flush runtime-messages
(i.e. not coming from a WebExtension Page) and we flush all messages when the
first delegate is attached, even though there could be messages for different
nativeApp values which don't have a delegate attached yet.

We also erroneusly return a rejected promise to javascript when a message is queued up.

This patch addresses the above by:

- Never rejecting a pending connection request, the connection request will be
  resolved when the delegate for the right nativeApp is attached.
- Making the pending messages queue per-nativeApp and per-session.
- Flushing pending messages when a session delegate is attached.

Differential Revision: https://phabricator.services.mozilla.com/D96645
2020-11-11 22:46:22 +00:00
Csoregi Natalia b76edd489d Backed out changeset 67f8778fe68b (bug 1675644) for causing geckoview failures. CLOSED TREE 2020-11-11 23:59:38 +02:00
Agi Sferro 120761944a Bug 1675644 - Flush extension messages per-session and per-nativeApp. r=esawin
The extension code _tries_ to flush messages when the relevant delegate is attached.

The logic, however, is pretty flawed: we currently only flush runtime-messages
(i.e. not coming from a WebExtension Page) and we flush all messages when the
first delegate is attached, even though there could be messages for different
nativeApp values which don't have a delegate attached yet.

We also erroneusly return a rejected promise to javascript when a message is queued up.

This patch addresses the above by:

- Never rejecting a pending connection request, the connection request will be
  resolved when the delegate for the right nativeApp is attached.
- Making the pending messages queue per-nativeApp and per-session.
- Flushing pending messages when a session delegate is attached.

Differential Revision: https://phabricator.services.mozilla.com/D96645
2020-11-11 18:07:17 +00:00
Dylan Roeh 8abcee089a Bug 1674500 - Remove deprecated content blocking exception code. r=geckoview-reviewers,agi
Differential Revision: https://phabricator.services.mozilla.com/D95418
2020-11-11 00:54:40 +00:00
Butkovits Atila 3e4030f9b6 Backed out changeset 92ed8a00d24f (bug 1674500) for lint failures. CLOSED TREE 2020-11-11 02:43:10 +02:00
Dylan Roeh cc299b0f8c Bug 1674500 - Remove deprecated content blocking exception code. r=geckoview-reviewers,agi
Differential Revision: https://phabricator.services.mozilla.com/D95418
2020-11-10 23:42:52 +00:00
Chris Martin d14d817428 Bug 1657404 - Change how AndroidGamepadManager handles gamepad service IDs r=geckoview-reviewers,agi
Currently, the AndroidGamepadManager uses a single function to both add and
remove gamepad service entries (Even though their functionality is different),
and it also uses a JNI callback to set the ID rather than simply returning it

This fixes both of those things.

Depends on D96270

Differential Revision: https://phabricator.services.mozilla.com/D96272
2020-11-10 23:02:36 +00:00
Botond Ballo dcc29b730f Bug 1676293 - Remove Java components that were used only by StackScrollerFlingAnimation. r=mstange,geckoview-reviewers,agi
Depends on D96508

Differential Revision: https://phabricator.services.mozilla.com/D96509
2020-11-10 16:59:44 +00:00
Aaron Klotz 57400b371b Bug 1674224: Generate Java signature hints in JNI wrappers; r=geckoview-reviewers,agi
This patch adds some code to our annotation processor that produces comments in
our generated JNI headers to help the developer understand which types are
involved. There are two new types of comments:

* For generated methods from native to Java, we produce a simplified Java method
  signature (sans package names) to help the caller disambiguate parameter
  types. This is helpful since the machine-readable method signature tend to
  use `mozilla::jni::Object::Param` instead of actual types (for the purposes of
  avoiding dependency hell, presumably).
* For Java to native methods, we produce a sample signature that is usable for
  the implementation of the native method.

While we did discuss some ideas about other locations where we could output this
data, I'd like to start with the generated header files for now. We can make
adjustments to the output location in future bugs.

I will be attaching an example of a generated header that contains these new
comments to the bug.

Differential Revision: https://phabricator.services.mozilla.com/D96236
2020-11-10 17:11:34 +00:00
Markus Stange cb3b5afd46 Bug 1675887 - Respect the time value that's passed to Choreographer.FrameCallback.doFrame. r=kats
This makes the vsync times more consistent.
On a Pixel 2 running Android 11, the callback was called between 1ms and 6ms
after the vsync timestamp in my tests. Having the vsync timestamp slightly in
the past is what the rest of our vsync infrastructure expects.

Differential Revision: https://phabricator.services.mozilla.com/D96279
2020-11-09 18:32:13 +00:00
Aaron Klotz 54f06947cd Bug 1654817: Part 2 - Bump dom.ipc.processCount pref to 3 on Nightly; r=geckoview-reviewers,agi
I want to start with 3 so that we initially get a good look at how things run
with multiple processes, but when we easily hit the limit. We'll increase to
our final process count in a future bug.

Differential Revision: https://phabricator.services.mozilla.com/D94884
2020-11-04 17:26:16 +00:00
Chris H-C 3847814685 Bug 1675310 - Remove enabled and limit prefs for the event ping r=janerik
Recording events involved asking whether they should go in the event ping or
not, and also whether we hit the limit for how many are allowed in a ping.
These values are stored in prefs which aren't terribly accessible off the main
thread, even if the event recording is.

Both of these prefs have been set in stone in their default values for over two
years now, so we can safely remove them and their scaffolding. Huzzah!

Differential Revision: https://phabricator.services.mozilla.com/D96102
2020-11-09 10:40:03 +00:00
Neil Deakin c5eff66205 Bug 1649843, remove now unused legacy actor code, r=kmag
Differential Revision: https://phabricator.services.mozilla.com/D95206
2020-11-06 15:46:11 +00:00
John Lin b9803a4d20 Bug 1640416 - p1: input size check before creating video encoder. r=alwu,geckoview-reviewers,snorp
On Android, software H.264 video encoder accepts some sizes when configuring
but will crash later after frames are sent to the encoder. Use method provided
in API 21+ to validate the input size and avoid using software encoder on
earlier versions to prevent crashes.

Differential Revision: https://phabricator.services.mozilla.com/D94461
2020-11-04 21:57:36 +00:00
Markus Stange c3e353b81f Bug 1458653 - Do not prevent fling acceleration based on the time that has elapsed between two flings. r=botond,geckoview-reviewers,snorp
The other fling acceleration restrictions make it so that there is no need for
this additional restriction anymore.
Removing this restriction allows a fling to be accelerated even if the previous
fling has been "spinning" for a while (a second or more), provided that the page
is still moving fast enough.
This matches Chrome's behavior.

Differential Revision: https://phabricator.services.mozilla.com/D95472
2020-11-04 23:32:38 +00:00
Hiroyuki Ikezoe d72d343fad Bug 1663000 - Ensure the dynamic toolbar can be movied via scroll handoff from a subframe. r=botond,geckoview-reviewers,snorp
Differential Revision: https://phabricator.services.mozilla.com/D93919
2020-11-04 03:21:14 +00:00
Hiroyuki Ikezoe f5ab9e9122 Bug 1663000 - Handle the event as if it's consumed in the root APZC in InputQueue::ReceiveTouchInput() if there's contents covered by the dynamic toolbar. r=geckoview-reviewers,botond,snorp
Differential Revision: https://phabricator.services.mozilla.com/D93917
2020-11-04 03:16:17 +00:00
Hiroyuki Ikezoe 32b301eceb Bug 1663000 - Add a bunch of tests including non-scrollable contents but covered by the dynamic toolbar. r=botond,geckoview-reviewers,snorp
- The test cases cover with/without event handler, and with preventDefault in
  the event handler
- The non-scrollable contents but covered by the dynamic toolbar cases don't
  pass without the event handler now (the cases with the event handler have been
  fixed by the previous change)
- There is a test case which don't pass at all right now, that is a case
  (iframe_98vh_scrollable.html) that after scrolled at the bottom edge of an
  iframe

Differential Revision: https://phabricator.services.mozilla.com/D93916
2020-11-04 03:16:15 +00:00
Hiroyuki Ikezoe 9a544e618f Bug 1663000 - Return UNHANDLED even if there's no event handler which uses preventDefault() and the root content is not covered by the dynamic toolbar. r=botond,geckoview-reviewers,snorp
This change has a couple of tests but they are for scrollable/non-scrollable
contents, they are not for non-scrollable contents but covered by the dynamic
toolbar cases, e.g. 100vh body element.  Those cases will be introduced in the
subsequent change.

Differential Revision: https://phabricator.services.mozilla.com/D93915
2020-11-04 03:16:07 +00:00
Hiroyuki Ikezoe 96bd13728c Bug 1663000 - Change 33vh value to 33% in touch.html and rename touchEventForResult to touchEventForResultWithStaticToolbar. r=botond,geckoview-reviewers,snorp
touchEventForResult is the only one test using touch.html and it doesn't use
`setDynamicToolbarMaxHeight`, which means the test is supposed to work with
static toolbar, so with this change it gets clearer what the test does.
(and we are going to add a bunch of tests with dynamic toolbar)

Differential Revision: https://phabricator.services.mozilla.com/D93913
2020-11-04 03:15:57 +00:00