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

30070 Коммитов

Автор SHA1 Сообщение Дата
Agi Sferro fcb9b12423 Bug 1634504 - Remove deprecated registerWebExtension. r=snorp
Differential Revision: https://phabricator.services.mozilla.com/D87512
2020-08-20 01:15:00 +00:00
Bogdan Tara 6d322bffe4 Backed out 5 changesets (bug 1633322, bug 1634504) for touchEventForResult gv-junit failures CLOSED TREE
Backed out changeset 3f866663b0aa (bug 1634504)
Backed out changeset 953d128f4c51 (bug 1633322)
Backed out changeset 84454fa520be (bug 1633322)
Backed out changeset 1aa6be497177 (bug 1633322)
Backed out changeset 9be548b05e86 (bug 1633322)
2020-08-20 03:01:02 +03:00
Agi Sferro b5e6b3f840 Bug 1634504 - Remove deprecated registerWebExtension. r=snorp
Differential Revision: https://phabricator.services.mozilla.com/D87512
2020-08-19 22:59:22 +00:00
James Willcox 1ea4dc253d Bug 1633322 - Consider content handling for `onTouchEventForResult` r=geckoview-reviewers,botond,agi,esawin
Differential Revision: https://phabricator.services.mozilla.com/D86384
2020-08-19 21:31:46 +00:00
Agi Sferro 52adf9f9c4 Bug 1659553 - Define charset in all mobile html tests. r=snorp
Differential Revision: https://phabricator.services.mozilla.com/D87340
2020-08-19 16:20:23 +00:00
Jamie Nicol 456abf2772 Bug 1647797 - Add geckoview-junit tests for onPaintStatusReset. r=agi,geckoview-reviewers
Add test paintStatusReset() to ContentDelegateTest, which asserts that
onPaintStatusReset() is called after GeckoSession.setActive(false).

Add test capturePixelsSessionDeactivatedActivated() to ScreenshotTest, which
asserts that capturePixels() is successful if called when the session is
deactivated then reactivated, after waiting for the onPaintStatusReset() and
onFirstContentfulPaint() callbacks.

Differential Revision: https://phabricator.services.mozilla.com/D87463
2020-08-19 15:25:26 +00:00
Jamie Nicol 54ed855193 Bug 1647797 - Add GeckoView API to listen for when contentful paint status has been reset. r=geckoview-reviewers,agi,esawin
Android-components listens to the GeckoView callback onFirstContentfulPaint to
track whether a contentful paint has occured, in order to decide when to
thumbnail a tab. Currently this gets fired once per tab.

However, when the GeckoSession is paused, we clear cached resources in the
compositor. This means that when the session is resumed, the compositor does not
have the necessary information to render the page (such as painted content
buffers, or the webrender display list). Because android-components attempts to
capture a new thumbnail immediately upon resuming, it ends up capturing a blank
thumbnail.

To fix this, add a new callback onPaintStatusReset() which is invoked when the
cached resources are cleared. Android-components can listen for this to be
informed when the contentful paint is no longer visible. It can then wait until
the subsequent contentful paint occurs before capturing the thumbnail.

Differential Revision: https://phabricator.services.mozilla.com/D87341
2020-08-19 15:24:14 +00:00
Emilio Cobos Álvarez f04cda9679 Bug 1602410 - Make window.print() work with tab-modal printing. r=nika,geckoview-reviewers,agi
Do this by spinning the event loop until we've done the clone for
preview as appropriate.

This should be much less risky than finishing the previous patches
which would still be nice, but realistically landing them for 81 is not
going to happen.

This just returns without doing nothing in a couple cases, like when
there's already another modal dialog or such. That seems acceptable to
me, it's not clear what better way to do would be.

Differential Revision: https://phabricator.services.mozilla.com/D87484
2020-08-19 09:27:18 +00:00
Sonia Singla 5f5c9fd7f2 Bug 1659267 - Remove usages of -moz-user-select across the Firefox codebase. r=emilio,marionette-reviewers,geckoview-reviewers,preferences-reviewers,whimboo,agi
Differential Revision: https://phabricator.services.mozilla.com/D87499
2020-08-18 23:37:51 +00:00
David Major 69c3b9a896 Bug 1659806 - Set -fcrash-diagnostics-dir on Android CI builds r=geckoview-reviewers,froydnj,agi
This will make clang put reproducers for compiler crashes into the artifacts upload directory. We've been doing this on other platforms for a while but it seems Android was left out.

Differential Revision: https://phabricator.services.mozilla.com/D87482
2020-08-18 19:16:42 +00:00
Csoregi Natalia 15818e2195 Backed out 4 changesets (bug 1633322) for android failures e.g. test_group_checkerboarding.html. CLOSED TREE
Backed out changeset ffa257a29649 (bug 1633322)
Backed out changeset 8271d4e51f25 (bug 1633322)
Backed out changeset 21c0baa65724 (bug 1633322)
Backed out changeset 193fa2a0b926 (bug 1633322)
2020-08-18 23:45:49 +03:00
James Willcox c3a58d3e76 Bug 1633322 - Consider content handling for `onTouchEventForResult` r=geckoview-reviewers,botond,agi,esawin
Differential Revision: https://phabricator.services.mozilla.com/D86384
2020-08-18 18:39:17 +00:00
Eugen Sawin 7609049ab6 Bug 1623715 - [8.2] Move media fullscreen event to JS and extend its metadata. r=geckoview-reviewers,snorp,alwu
Differential Revision: https://phabricator.services.mozilla.com/D86350
2020-08-18 17:29:33 +00:00
Eugen Sawin 308a5f3d79 Bug 1623715 - [7.2] Extract media utility functions. r=geckoview-reviewers,owlish
Differential Revision: https://phabricator.services.mozilla.com/D86349
2020-08-18 17:29:24 +00:00
Eugen Sawin 48d824c5b0 Bug 1623715 - [3.2] Update changelog. r=geckoview-reviewers,droeh
Differential Revision: https://phabricator.services.mozilla.com/D84405
2020-08-18 17:29:03 +00:00
Eugen Sawin da3c98ab79 Bug 1623715 - [2.4] Add MediaSession API tests. r=geckoview-reviewers,droeh,snorp
Differential Revision: https://phabricator.services.mozilla.com/D84190
2020-08-18 17:28:54 +00:00
Eugen Sawin 35d86f7eeb Bug 1623715 - [1.8] Add MediaSession API for (DOM) media session control delegation. r=snorp,alwu,geckoview-reviewers,agi
Differential Revision: https://phabricator.services.mozilla.com/D84189
2020-08-18 17:28:44 +00:00
Agi Sferro ba52475378 Bug 1659587 - Ignore events coming from non-GeckoView windows. r=snorp
Differential Revision: https://phabricator.services.mozilla.com/D87358
2020-08-18 16:06:38 +00:00
Razvan Maries 1cad430a1a Backed out 7 changesets (bug 1623715) for build bustages on nsWindow.cpp. CLOSED TREE
Backed out changeset 9704afdeefb1 (bug 1623715)
Backed out changeset 2e7e298cfe27 (bug 1623715)
Backed out changeset 579df1a653ee (bug 1623715)
Backed out changeset 4361ef84e780 (bug 1623715)
Backed out changeset 898972ec680c (bug 1623715)
Backed out changeset a118a4d72bef (bug 1623715)
Backed out changeset 4ff55894774d (bug 1623715)
2020-08-18 18:38:43 +03:00
Eugen Sawin 3454e7652e Bug 1623715 - [8.2] Move media fullscreen event to JS and extend its metadata. r=geckoview-reviewers,snorp,alwu
Differential Revision: https://phabricator.services.mozilla.com/D86350
2020-08-18 14:37:39 +00:00
Eugen Sawin e5a2325e53 Bug 1623715 - [7.2] Extract media utility functions. r=geckoview-reviewers,owlish
Differential Revision: https://phabricator.services.mozilla.com/D86349
2020-08-18 14:37:35 +00:00
Eugen Sawin 40a155f1ab Bug 1623715 - [3.2] Update changelog. r=geckoview-reviewers,droeh
Differential Revision: https://phabricator.services.mozilla.com/D84405
2020-08-18 14:37:24 +00:00
Eugen Sawin 38e22e79a2 Bug 1623715 - [2.4] Add MediaSession API tests. r=geckoview-reviewers,droeh,snorp
Differential Revision: https://phabricator.services.mozilla.com/D84190
2020-08-18 14:37:21 +00:00
Eugen Sawin 0c4fd16ae8 Bug 1623715 - [1.8] Add MediaSession API for (DOM) media session control delegation. r=snorp,alwu,geckoview-reviewers,agi
Differential Revision: https://phabricator.services.mozilla.com/D84189
2020-08-18 14:37:17 +00:00
Nazım Can Altınova 8fbf2fb2ca Bug 1659103 - Start JVM profiler before loading of libxul and mozglue r=geckoview-reviewers,julienw,snorp
Before this patch, we were always waiting for libxul to load because we were
starting the JVM from libxul. But we needed to start this a lot earlier. Also
thinking that JVM profiler can actually run without the gecko side, we can
start this a lot earlier than we currently start. We need to check the
environmnet variables to be able to start the profiler. It looks like the best
place to do it is inside the GeckoThread.run method.

We have also a similar code for Java debugger, with maybeWaitForJavaDebugger
name. This fucntion does similar things in terms of enviromnent variable
handling.

Differential Revision: https://phabricator.services.mozilla.com/D87069
2020-08-18 12:57:22 +00:00
Makoto Kato 30203bd6ad Bug 1659388 - Remove unused about:* L10N resources. r=geckoview-reviewers,snorp
These L10N resources seemed to be for Fennec. So it is unnecessary for GeckoView.

Differential Revision: https://phabricator.services.mozilla.com/D87223
2020-08-17 15:15:38 +00:00
Rob Wu 8103eaba24 Bug 1659074 - Regression tests for undefined/uncloneable error in onMessage r=zombie,geckoview-reviewers,agi
Differential Revision: https://phabricator.services.mozilla.com/D85644
2020-08-14 10:23:51 +00:00
Dorel Luca 6e3ab7e5fa Backed out 7 changesets (bug 1623715) for Linting failure and android build bustage. CLOSED TREE
Backed out changeset c8ca1d1866e7 (bug 1623715)
Backed out changeset 1b7c3fb0da3b (bug 1623715)
Backed out changeset 4887dea37231 (bug 1623715)
Backed out changeset 47f3eb481909 (bug 1623715)
Backed out changeset 6e7ce9e5f89b (bug 1623715)
Backed out changeset ddff358f800e (bug 1623715)
Backed out changeset cd585490e79b (bug 1623715)
2020-08-18 00:20:24 +03:00
Eugen Sawin cd681f2862 Bug 1623715 - [8.2] Move media fullscreen event to JS and extend its metadata. r=geckoview-reviewers,snorp,alwu
Differential Revision: https://phabricator.services.mozilla.com/D86350
2020-08-17 20:37:55 +00:00
Eugen Sawin 82db8a3949 Bug 1623715 - [7.2] Extract media utility functions. r=geckoview-reviewers,owlish
Differential Revision: https://phabricator.services.mozilla.com/D86349
2020-08-17 20:37:47 +00:00
Eugen Sawin 759fa68308 Bug 1623715 - [3.2] Update changelog. r=geckoview-reviewers,droeh
Differential Revision: https://phabricator.services.mozilla.com/D84405
2020-08-17 20:37:29 +00:00
Eugen Sawin de1303029f Bug 1623715 - [2.4] Add MediaSession API tests. r=geckoview-reviewers,droeh,snorp
Differential Revision: https://phabricator.services.mozilla.com/D84190
2020-08-17 20:37:21 +00:00
Eugen Sawin fc486d897e Bug 1623715 - [1.7] Add MediaSession API for (DOM) media session control delegation. r=snorp,alwu,geckoview-reviewers,agi
Differential Revision: https://phabricator.services.mozilla.com/D84189
2020-08-17 20:37:14 +00:00
Kris Maglione 0c976d908a Bug 1651519: Part 2 - Also remove nsIDOMWindowUtils::outerWindowID. r=nika,geckoview-reviewers,agi
Differential Revision: https://phabricator.services.mozilla.com/D82957
2020-08-17 20:22:12 +00:00
Agi Sferro 041412208a Bug 1648149 - Check that a module does not define onInit and onEnable. r=snorp
After moving to actors it will be common to define both a onInit phase and a
onEnable phase for actors. We don't handle having both phases contain a
main-process script so we should check that.

Differential Revision: https://phabricator.services.mozilla.com/D87119
2020-08-17 19:41:21 +00:00
Agi Sferro 4488c5be10 Bug 1648149 - Ignore debug and warn in eslint. r=snorp
Differential Revision: https://phabricator.services.mozilla.com/D86777
2020-08-17 19:41:18 +00:00
Agi Sferro 79c6d13f6b Bug 1648149 - Split GeckoViewContent in enable and init phases. r=snorp,esawin
This commit splits the `GeckoViewContent` actor in two parts:

- `GeckoViewContent` proper, which runs unconditionally and handles code that
  needs to run regardless of whether we have a delegate installed or not.

- `ContentDelegate` which runs only when a delegate is first installed.

This emulates the previous paradigm of installing some listeners only when the
delegate is installed.

I discussed it briefly with :nika and she thinks that splitting modules in two
should not affect performance in a measurable manner.

Note that actors cannot be registered per-window, so we will get messages from
all windows as long as one content delegate is registered.

Differential Revision: https://phabricator.services.mozilla.com/D86776
2020-08-14 14:51:07 +00:00
Agi Sferro e9a73810de Bug 1648149 - Move GeckoViewContent to Actor. r=snorp
Differential Revision: https://phabricator.services.mozilla.com/D84040
2020-08-14 14:48:37 +00:00
Agi Sferro ee2f0fa3e7 Bug 1648149 - Use named EventDispatcher for Port. r=snorp
Differential Revision: https://phabricator.services.mozilla.com/D84261
2020-08-14 05:44:26 +00:00
Agi Sferro a4ca1db123 Bug 1648149 - Add named EventDispatcher's. r=snorp
This patch adds a "named" EventDispatcher that can be accessed on both java and
javascript by calling

```
EventDispatcher.byName(...)
```

A named EventDispatcher will receive messages only from it's counterpart with
the same name and can be used to implement bidirectional communication like
WebExtension ports.

Differential Revision: https://phabricator.services.mozilla.com/D84260
2020-08-14 05:44:24 +00:00
Agi Sferro f9f4f28787 Bug 1648149 - Removed unused background and gecko listeners. r=owlish
Differential Revision: https://phabricator.services.mozilla.com/D84636
2020-08-14 05:44:22 +00:00
Mihai Alexandru Michis 2ce16351f8 Backed out 5 changesets (bug 1648149) for causing android wpt failures in closed-attribute.window.html
CLOSED TREE

Backed out changeset 470b0fa401ab (bug 1648149)
Backed out changeset 938bf3fab3ee (bug 1648149)
Backed out changeset a41e4158e960 (bug 1648149)
Backed out changeset 700f8e53ed10 (bug 1648149)
Backed out changeset 3f74337b160e (bug 1648149)
2020-08-14 08:40:29 +03:00
Agi Sferro aaa44e891b Bug 1648149 - Split GeckoViewContent in enable and init phases. r=snorp
This commit splits the `GeckoViewContent` actor in two parts:

- `GeckoViewContent` proper, which runs unconditionally and handles code that
  needs to run regardless of whether we have a delegate installed or not.

- `ContentDelegate` which runs only when a delegate is first installed.

This emulates the previous paradigm of installing some listeners only when the
delegate is installed.

I discussed it briefly with :nika and she thinks that splitting modules in two
should not affect performance in a measurable manner.

Note that actors cannot be registered per-window, so we will get messages from
all windows as long as one content delegate is registered.

Differential Revision: https://phabricator.services.mozilla.com/D86776
2020-08-13 20:24:52 +00:00
Agi Sferro 4c8aa34ba2 Bug 1648149 - Move GeckoViewContent to Actor. r=snorp
Differential Revision: https://phabricator.services.mozilla.com/D84040
2020-08-13 20:24:54 +00:00
Agi Sferro 10bb01cfc6 Bug 1648149 - Use named EventDispatcher for Port. r=snorp
Differential Revision: https://phabricator.services.mozilla.com/D84261
2020-08-13 20:25:02 +00:00
Agi Sferro 8aa84b1183 Bug 1648149 - Add named EventDispatcher's. r=snorp
This patch adds a "named" EventDispatcher that can be accessed on both java and
javascript by calling

```
EventDispatcher.byName(...)
```

A named EventDispatcher will receive messages only from it's counterpart with
the same name and can be used to implement bidirectional communication like
WebExtension ports.

Differential Revision: https://phabricator.services.mozilla.com/D84260
2020-08-13 20:25:05 +00:00
Agi Sferro dfcf7861a7 Bug 1648149 - Removed unused background and gecko listeners. r=owlish
Differential Revision: https://phabricator.services.mozilla.com/D84636
2020-08-13 20:25:12 +00:00
Ricky Stewart cd9a620ede Bug 1657954 - Move various branding options from `old-configure` r=geckoview-reviewers,mhentges,nalexander,snorp
Differential Revision: https://phabricator.services.mozilla.com/D86391
2020-08-11 15:58:52 +00:00
John Lin 9550d9ab87 Bug 1638452 - don't hold lock while waiting player thread. r=snorp,geckoview-reviewers
Differential Revision: https://phabricator.services.mozilla.com/D86658
2020-08-11 13:54:33 +00:00
John Lin 7ab9a436b9 Bug 1651088 - ensure ExoPlayer instance operate on a single thread. r=geckoview-reviewers,snorp
The threading model described in the javadoc (ExoPlayer.java#92 in tree)
requires that the player is accessed from a single thread. However current
GeckoHlsPlayer implementation violates this rule and uses the player from
Gecko main thread and other media task queues. Introduce methods to execute
code asynchronously and synchronously for GeckoHlsPlayer to follows the rule.
Also add comments documenting thread usages for some instance variables and
assertions in the begining of methods that need to be on the player thread
to help debugging.

Differential Revision: https://phabricator.services.mozilla.com/D85668
2020-08-05 20:04:30 +00:00