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

30342 Коммитов

Автор SHA1 Сообщение Дата
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
Razvan Maries 10425eddfc Backed out 7 changesets (bug 1658084, bug 1671983) for perma failures on browser_async_remove_tab.js and browser_e10s_chrome_process.js. CLOSED TREE
Backed out changeset 2e6309c1cdbd (bug 1658084)
Backed out changeset 99aafd9304ef (bug 1671983)
Backed out changeset 80280b85280a (bug 1671983)
Backed out changeset 008db2659002 (bug 1671983)
Backed out changeset 32bd45c7fe3a (bug 1671983)
Backed out changeset 56e227e6580c (bug 1671983)
Backed out changeset a404f809f79d (bug 1671983)
2020-11-04 04:23:47 +02:00
Nika Layzell b20d2f0f1b 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-04 00:55:23 +00:00
Bharath S 2d2bc309c9 Bug 1663884 - <input type=number> should use TYPE_NUMBER_FLAG_DECIMAL too. r=m_kato,geckoview-reviewers,snorp
Differential Revision: https://phabricator.services.mozilla.com/D95773
2020-11-03 22:54:40 +00:00
Markus Stange f2606240fd Bug 1615858 - Propagate historical touch data from Java to C++. r=kats,geckoview-reviewers,agi
Differential Revision: https://phabricator.services.mozilla.com/D95650
2020-11-03 19:48:43 +00:00
Agi Sferro 4107fe7acb Bug 1674701 - Don't ignore duplicate page loads. r=esawin
This patch makes it so we only ignore duplicated start events if there is a
request in progress, so that navigating to the same URI twice in a row will
results in the right events being fired.

Differential Revision: https://phabricator.services.mozilla.com/D95596
2020-11-02 21:42:31 +00:00
Agi Sferro 5929dd84e5 Bug 1671460 - Add @DeprecationSchedule to @Deprecated APIs. r=snorp
Differential Revision: https://phabricator.services.mozilla.com/D95383
2020-11-02 19:42:17 +00:00
Agi Sferro 6cc1c746de Bug 1671460 - Update to apilint 0.4.0. r=snorp
There is an unfortunate-but-necessary ordering issue that needs to be fixed in
the api.txt file which is causing a lot of one time updates. The ordering of
annotations was not stable (and now it is).

Differential Revision: https://phabricator.services.mozilla.com/D95382
2020-11-02 19:42:25 +00:00
Agi Sferro fa670d7327 Bug 1673100 - Disable junit tests that fail on Fission. r=esawin
Differential Revision: https://phabricator.services.mozilla.com/D95063
2020-11-02 19:39:52 +00:00
Ricky Stewart 119ff36277 Bug 1674498 - Remove references to `jarsigner` from `configure` and delete the `debug_sign_tool` r=geckoview-reviewers,nalexander,snorp
This is no longer used by Android devs.

Differential Revision: https://phabricator.services.mozilla.com/D95417
2020-11-02 16:50:56 +00:00
Aaron Klotz 35ceb74e03 Bug 1674211: Part 2 - Explicitly mark GeckoProcessType.fromInt as WrapForJNI; r=geckoview-reviewers,agi
As a result of part 1, we need to make this change, as this method needs to
be wrapped for the benefit of native code.

Not only does this patch fix the build error, but it also acts as an examplar
for how to explicitly annotate additional members of the `enum`.

Depends on D95203

Differential Revision: https://phabricator.services.mozilla.com/D95204
2020-10-29 20:55:35 +00:00
Aaron Klotz 7e3d0c15ba Bug 1674211: Part 1 - Modify the annotation processor for enums to only include enumerated values by default; r=geckoview-reviewers,agi
Our annotation processing for `enum`s kind of sucks.

The typical use case is that we want to generate wrappers for the values of the
`enum`.

On the one hand, we can annotate each individual enumerated value with
`@WrapForJNI` which is noisy and error-prone.

On the other hand, we can mark the entire `enum` as `@WrapForJNI`, which causes
everything in the enum to get JNI wrappers, including private members that we
typically don't care about. This pollutes the generated JNI wrappers with noise
and makes it harder for somebody inspecting the generated C++ header to find
relevant information.

This patch modifies the annotation processor so that `enum`s are treated as a
special case: when we mark an entire `enum` as `@WrapForJNI`, only the
enumerated values will be wrapped. Any additional fields or methods that we need
to wrap may then be annotated on a case-by-case basis.

This should give us both cleaner Java and cleaner generated C++.

Differential Revision: https://phabricator.services.mozilla.com/D95203
2020-10-29 20:59:04 +00:00
Agi Sferro 1db387985d Bug 1670873 - Ignore DebugConfig on SDK_INT < 21. r=snorp
Differential Revision: https://phabricator.services.mozilla.com/D94481
2020-10-29 18:10:06 +00:00
Cristina Coroiu 85b675fb77 Backed out changeset e8148ff3fdd3 (bug 1670873) for lint failure at GeckoRuntimeSettings.java on a CLOSED TREE 2020-10-29 19:31:33 +02:00