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

30087 Коммитов

Автор SHA1 Сообщение Дата
Agi Sferro 672892c504 Bug 1661480 - Restore scrolling position and form data. r=droeh
When migrating RestoreState to actors we didn't consider that the child actor
gets recreated at every navigation, as its lifetime is tied to the inner
window.

This means that restoring state in one step is not possible, as restoring the
history will trigger a navigation from `about:blank` to the restored page.

To achieve this, we split restoring in two steps and we keep the state on the
parent actor instead of the child.

We move the restoring logic to a newly added GeckoViewContent parent actor,
which is more readibly accessible from both geckoview.js and
GeckoViewContent.jsm.

Differential Revision: https://phabricator.services.mozilla.com/D88637
2020-08-28 20:19:44 +00:00
Narcis Beleuzu 3361c24c23 Backed out 7 changesets (bug 1651705) for mochitest failures on test_resizers_resizing_elements.html . CLOSED TREE
Backed out changeset 7fd32a3fb6e7 (bug 1651705)
Backed out changeset de4edbcb15c1 (bug 1651705)
Backed out changeset 531e71369f68 (bug 1651705)
Backed out changeset 84590e96de88 (bug 1651705)
Backed out changeset 7d9d2d44b2ee (bug 1651705)
Backed out changeset 9ffca762753c (bug 1651705)
Backed out changeset 2d79f4348b36 (bug 1651705)
2020-08-28 23:06:39 +03:00
Aaron Klotz fd8538d823 Bug 1651705: Part 1 - Make JNIObject.mHandle volatile; r=geckoview-reviewers,snorp
Given the access patterns involved on the native side, I think it is safest
to ensure that this field is access atomically by the VM.

Differential Revision: https://phabricator.services.mozilla.com/D87360
2020-08-27 20:13:56 +00:00
Nick Alexander d36eacb26b Bug 1661406 - Allow artifact builds without an NDK when working around Android-Gradle plugin bug substituting GeckoView. r=agi,geckoview-reviewers
Differential Revision: https://phabricator.services.mozilla.com/D88501
2020-08-28 16:51:52 +00:00
Cosmin Sabou 2a9db10f24 Backed out 7 changesets (bug 1518999) for causing browsertime failures. CLOSED TREE
Backed out changeset d93cb254eef5 (bug 1518999)
Backed out changeset a9715e73e862 (bug 1518999)
Backed out changeset e28081d16e3c (bug 1518999)
Backed out changeset c9d88f3f1f5b (bug 1518999)
Backed out changeset 9836adcc4e83 (bug 1518999)
Backed out changeset 9f01755d327f (bug 1518999)
Backed out changeset ef494065b8e2 (bug 1518999)
2020-08-28 06:27:11 +03:00
Sean Feng fb465be325 Bug 1518999 - Trick contentful detection in some geckoview tests r=snorp,geckoview-reviewers,agi
Some geckoview tests require gradient usage. Since background
images are async, these tests would wait for a contentful paint
to make sure the images are decoded before running the assertions.
This causes an issue because gradient-only backgrounds aren't
contentful anymore according to the latest spec.

We fix the tests by adding a transparent gif to the background
image list to trick the contentful detection.

Differential Revision: https://phabricator.services.mozilla.com/D88230
2020-08-27 14:49:57 +00:00
Agi Sferro a9c523c4c8 Bug 1661270 - Actually run ContentDelegate on all frames. r=snorp
Differential Revision: https://phabricator.services.mozilla.com/D88303
2020-08-26 16:56:32 +00:00
Nick Alexander 22467b70a7 Bug 1661158 - Include hash of JVM inputs when working around Android-Gradle plugin bug substituting GeckoView. r=agi,geckoview-reviewers
Differential Revision: https://phabricator.services.mozilla.com/D88220
2020-08-26 14:43:45 +00:00
James Willcox 4b79e3e88e Bug 1661105 - Don't use `onTouchEventForResult()` inside `onTouchEvent()` in GeckoView r=geckoview-reviewers,agi
Differential Revision: https://phabricator.services.mozilla.com/D88180
2020-08-25 20:43:31 +00:00
Agi Sferro 26fc2c0843 Bug 1649494 - Don't assume a notification has a URL. r=aklotz
Differential Revision: https://phabricator.services.mozilla.com/D88165
2020-08-25 17:49:31 +00:00
Emilio Cobos Álvarez 044b3c4332 Bug 1636728 - Centralize printing entry points in nsGlobalWindowOuter, and move cloning out of nsPrintJob. r=jwatt,geckoview-reviewers,smaug,agi
This centralizes our print and preview setup in nsGlobalWindowOuter so
that we never re-clone a clone, and so that we reuse the window.open()
codepath to create the browsing context to clone into.

For window.print, for both old print dialog / silent printing and new
print preview UI, we now create a hidden browser (as in with visibility:
collapse, which takes no space but still gets a layout box).

 * In the modern UI case, this browser is swapped with the actual print
   preview clone, and the UI takes care of removing the browser.

 * In the print dialog / silent printing case, the printing code calls
   window.close() from nsDocumentViewer::OnDonePrinting().

 * We don't need to care about the old print preview UI for this case
   because it can't be open from window.print().

We need to fall back to an actual window when there's no
nsIBrowserDOMWindow around for WPT print tests and the like, which don't
have one. That seems fine, we could special-case this code path more if
needed but it doesn't seem worth it.

Differential Revision: https://phabricator.services.mozilla.com/D87063
2020-08-25 17:45:12 +00:00
Tomislav Jovanovic ccc7783ad3 Bug 1636508 - Make tabs.captureTab compatible with Fission r=mattwoodrow,robwu,geckoview-reviewers,agi
Also fix WindowGlobalParent.drawSnapshot() to render the currently visible
viewport when called with a null rect, and clarify the webidl comment.

Differential Revision: https://phabricator.services.mozilla.com/D87971
2020-08-25 11:30:52 +00:00
Ricky Stewart f5328d27ba Bug 1659756 - Move `MOZ_USE_NATIVE_POPUP_WINDOWS` from `old-configure` to Python `configure` r=geckoview-reviewers,mhentges,agi,froydnj,glandium
Differential Revision: https://phabricator.services.mozilla.com/D87462
2020-08-21 22:48:09 +00:00
Nick Alexander 851257343a Bug 1626336 - Remove `MOZ_GECKOVIEW_JAR`. r=agi,geckoview-reviewers
While we're here we remove some Gradle Fennec-isms that are no longer
needed.

Differential Revision: https://phabricator.services.mozilla.com/D87334
2020-08-24 18:13:49 +00:00
James Willcox 02dffea93c Bug 1660357 - Disable PanZoomControllerTest.touchEventForResult for intermittents r=geckoview-reviewers,agi
Differential Revision: https://phabricator.services.mozilla.com/D88045
2020-08-24 17:07:32 +00:00
Nick Alexander 84b295af03 Bug 1627796 - Work around Android-Gradle plugin bug causing startup crash when substituting GeckoView. r=agi,geckoview-reviewers
Differential Revision: https://phabricator.services.mozilla.com/D87551
2020-08-24 17:13:54 +00:00
James Willcox d8817b722b Bug 1633322 - Consider content handling for `onTouchEventForResult` r=geckoview-reviewers,botond,agi,esawin
Differential Revision: https://phabricator.services.mozilla.com/D86384
2020-08-20 20:40:51 +00:00
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