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

31781 Коммитов

Автор SHA1 Сообщение Дата
Makoto Kato 6200ec5835 Bug 1828461 - Load LoadURIDelegate as lazy module. r=geckoview-reviewers,calu
After landing bug 1673068, `LoadURIDelegate.jsm` isn't used until error page
is shown. This should move to lazy and convert to ES system module.

Differential Revision: https://phabricator.services.mozilla.com/D175661
2023-04-21 01:45:22 +00:00
Emilio Cobos Álvarez 1d61a94f1b Bug 1828477 - Support input type=date in non-tabbrowser windows. r=Gijs,geckoview-reviewers,ohall
Differential Revision: https://phabricator.services.mozilla.com/D175771
2023-04-20 21:14:07 +00:00
jackyzy823 9ea31449b3 Bug 1822731 - Fix NullPointerException when scheme is null in normalizeUriScheme. r=geckoview-reviewers,m_kato
Differential Revision: https://phabricator.services.mozilla.com/D175728
2023-04-20 12:34:51 +00:00
Hiroyuki Ikezoe 80d9a64924 Bug 1704631 - Expand the size for `background-attachmend: fixed` image. r=botond,tnikkel,geckoview-reviewers,owlish
Differential Revision: https://phabricator.services.mozilla.com/D169001
2023-04-19 21:08:53 +00:00
Cathy Lu 761608991d Bug 1825156 - Resolve tabs event page intermittent test r=geckoview-reviewers,extension-reviewers,zmckenney,rpl
Differential Revision: https://phabricator.services.mozilla.com/D174536
2023-04-19 15:19:03 +00:00
Gabriel Luong 45e8c44ba3 Bug 1828719 - Remove omnijar Gradle project from srcdir r=geckoview-reviewers,nalexander,amejiamarmol
Differential Revision: https://phabricator.services.mozilla.com/D175790
2023-04-18 23:20:43 +00:00
Butkovits Atila 31a4ea6812 Backed out changeset 20b2f1dab9b3 (bug 1796570) for causing failures at canvas-display-p3-drawImage-ImageBitmap-Blob.html. CLOSED TREE 2023-04-18 00:18:38 +03:00
Titouan Thibaud 7033ba1f2d Bug 1796570 - Stop overwritting the value of gfx.color_management.mode on Android r=geckoview-reviewers,calu,jnicol
Differential Revision: https://phabricator.services.mozilla.com/D169300
2023-04-17 16:59:16 +00:00
Calixte 0b03a89b68 Bug 1827963 - Enable the download button in pdf.js only on nightly in GeckoView r=geckoview-reviewers,amejiamarmol
Differential Revision: https://phabricator.services.mozilla.com/D175389
2023-04-14 14:46:01 +00:00
Natalia Csoregi fdbf2a7c34 Backed out 2 changesets (bug 1827986, bug 1827963) for causing failures on test_pdf_file_in_iframe.html. CLOSED TREE
Backed out changeset d7824ac93744 (bug 1827963)
Backed out changeset a3b00fcd5fe0 (bug 1827986)
2023-04-14 07:39:47 +03:00
Calixte 6abbe23090 Bug 1827963 - Enable the download button in pdf.js only on nightly in GeckoView r=geckoview-reviewers,amejiamarmol
Differential Revision: https://phabricator.services.mozilla.com/D175389
2023-04-13 22:11:32 +00:00
Eitan Isaacson c275c3a7d9 Bug 1825891 - P2: Remove Android's non-CTW implementation. r=Jamie,geckoview-reviewers,m_kato
Differential Revision: https://phabricator.services.mozilla.com/D174516
2023-04-13 17:58:57 +00:00
Eitan Isaacson ea0675fb68 Bug 1825891 - P1: Remove viewport cache from java layer. r=Jamie,geckoview-reviewers,m_kato
Differential Revision: https://phabricator.services.mozilla.com/D174515
2023-04-13 17:58:57 +00:00
Stephanie Cunnane 811d067d75 Bug 1824473 - Update consumers of toolkit/components/formautofill to import ES modules directly. r=Standard8,geckoview-reviewers,credential-management-reviewers,sgalich,m_kato
Differential Revision: https://phabricator.services.mozilla.com/D173587
2023-04-12 20:30:43 +00:00
Calixte f9f7694a7b Bug 1823164 - Add an event GeckoView:SavePdf in order to be able save a pdf from the pdf.js UI r=geckoview-reviewers,pdfjs-reviewers,marco,m_kato
Differential Revision: https://phabricator.services.mozilla.com/D174969
2023-04-11 21:50:49 +00:00
Ebilite Uchenna 8c931cb313 Bug 1824611 - Convert consumers of toolkit/components/passwordmgr to import ES modules directly. r=Standard8,credential-management-reviewers,settings-reviewers,fxview-reviewers,sclements,sgalich,geckoview-reviewers,owlish
Differential Revision: https://phabricator.services.mozilla.com/D174446
2023-04-11 19:06:24 +00:00
CanadaHonk 2d520652e0 Bug 1794628 - Implement inverted-colors media feature r=geckoview-reviewers,morgan,emilio,m_kato,cmartin
Implemented the inverted-colors media feature from Media Queries Level 5
for all platforms.
Spec: https://drafts.csswg.org/mediaqueries-5/#inverted

Platform specific implementations:
- Windows: Checks system color filter setting, and if it is inverted
  (note: Windows does not live update due to having to read a reg key)
- Mac: Checks dedicated inverted accessibility system setting
- Android: Checks dedicated inverted system setting
- Linux: No GTK API exposes anything like it so always none

Locked behind new pref `layout.css.inverted-colors.enabled`,
always off by default for now.

Also added new WPT tests (none previously).

Other browsers:
- WebKit: shipped since Safari 9.1 (Jan 2017)
- Blink: no signal

Test page: https://goose.icu/inverted-colors

Differential Revision: https://phabricator.services.mozilla.com/D173201
2023-04-11 13:34:00 +00:00
William Durand cfb6408c17 Bug 1826739 - Implement more AddonManager events. r=rpl,geckoview-reviewers,zmckenney
Differential Revision: https://phabricator.services.mozilla.com/D174874
2023-04-11 12:27:40 +00:00
Makoto Kato dbdf270e6a Bug 1826265 - Convert lazy load JSM by GeckoViewStartup module to ESM. r=geckoview-reviewers,extension-reviewers,amejiamarmol
Also, GeckoViewStorageController might not use correct principal since
bug 1801338 doesn't consider GeckoView.

So this fix loads correct ESM and use lazy loading.

Differential Revision: https://phabricator.services.mozilla.com/D174557
2023-04-11 08:55:43 +00:00
Tooru Fujisawa 611bc49dcf Bug 1821308 - Part 2: Convert ctypes.jsm consumers to use ESM. r=Standard8,geckoview-reviewers,application-update-reviewers,credential-management-reviewers,sgalich,bytesized,m_kato
Differential Revision: https://phabricator.services.mozilla.com/D173811
2023-04-11 01:25:15 +00:00
Mark Banner 5fb4f28a11 Bug 1425048 - Enable ESLint rules no-unused-vars/no-undef for mobile/android/components/extensions/. r=geckoview-reviewers,extension-reviewers,robwu,owlish
Differential Revision: https://phabricator.services.mozilla.com/D174749
2023-04-10 18:11:03 +00:00
Olivia Hall 5028881191 Bug 1809922 - Enable window.print for Release in GeckoView r=geckoview-reviewers,webidl,smaug,saschanaz,m_kato
This bug changes the preference for window.print (dom.enable_window_print)
in GeckoView and Android to on by default. It also adjusts WPT expectations.

Differential Revision: https://phabricator.services.mozilla.com/D174535
2023-04-05 21:30:19 +00:00
William Durand 2185297fa9 Bug 1822763 - Listen to AddonManager "onUninstalled" event. r=zmckenney,rpl,geckoview-reviewers,calu,amejiamarmol
For completeness, I added this event too.

Depends on D174466

Differential Revision: https://phabricator.services.mozilla.com/D174469
2023-04-05 14:55:03 +00:00
William Durand 00f8eb6c65 Bug 1822763 - Listen to AddonManager "onEnabled" event. r=zmckenney,rpl,geckoview-reviewers,amejiamarmol
Depends on D173835

Differential Revision: https://phabricator.services.mozilla.com/D174466
2023-04-05 14:55:03 +00:00
William Durand f862225c59 Bug 1822763 - Listen to AddonManager "onDisabled" event. r=geckoview-reviewers,zmckenney,rpl,amejiamarmol
This is the first step to listen to other AddonManager events. We likely
need a new delegate because there is no other existing delegate we can
leverage I think.

In Fenix, we could use this new delegate like this:

```diff
diff --git a/android-components/components/browser/engine-gecko/src/main/java/mozilla/components/browser/engine/gecko/GeckoEngine.kt b/android-components/components/browser/engine-gecko/src/main/java/mozilla/components/browser/engine/gecko/GeckoEngine.kt
index 5d34a952e8..8031bd1f67 100644
--- a/android-components/components/browser/engine-gecko/src/main/java/mozilla/components/browser/engine/gecko/GeckoEngine.kt
+++ b/android-components/components/browser/engine-gecko/src/main/java/mozilla/components/browser/engine/gecko/GeckoEngine.kt
@@ -357,8 +357,15 @@ class GeckoEngine(
             }
         }

-        runtime.webExtensionController.promptDelegate = promptDelegate
+        val addonManagerDelegate = object : WebExtensionController.AddonManagerDelegate {
+            override fun onDisabled(extension: org.mozilla.geckoview.WebExtension) {
+                webExtensionDelegate.onDisabled(GeckoWebExtension(extension, runtime))
+            }
+        }
+
+        runtime.webExtensionController.setPromptDelegate(promptDelegate)
         runtime.webExtensionController.setDebuggerDelegate(debuggerDelegate)
+        runtime.webExtensionController.setAddonManagerDelegate(addonManagerDelegate)
     }

     /**
@@ -422,7 +429,6 @@ class GeckoEngine(
         runtime.webExtensionController.disable((extension as GeckoWebExtension).nativeExtension, source.id).then(
             {
                 val disabledExtension = GeckoWebExtension(it!!, runtime)
-                webExtensionDelegate?.onDisabled(disabledExtension)
                 onSuccess(disabledExtension)
                 GeckoResult<Void>()
             },
```

Differential Revision: https://phabricator.services.mozilla.com/D173835
2023-04-05 14:55:02 +00:00
Ankit Anand 10efe6698a Bug 1510662 - Suppress Lint Warning: Using Private APIs. r=m_kato,geckoview-reviewers
Differential Revision: https://phabricator.services.mozilla.com/D174551
2023-04-05 09:55:34 +00:00
Robert Longson f29442930b Bug 1773092 - Remove browser.ssl_override_behavior r=geckoview-reviewers,owlish
Differential Revision: https://phabricator.services.mozilla.com/D174470
2023-04-05 07:40:36 +00:00
Cristina Horotan bc4704efa9 Backed out 3 changesets (bug 1822763) for causing xpcshell failures at test_ext_manifest.js
Backed out changeset 9c4e16dbfdff (bug 1822763)
Backed out changeset 0c59791435ce (bug 1822763)
Backed out changeset 87701a14d81d (bug 1822763)
2023-04-04 18:00:58 +03:00
William Durand ed21f91fe2 Bug 1822763 - Listen to AddonManager "onUninstalled" event. r=zmckenney,rpl,geckoview-reviewers,calu,amejiamarmol
For completeness, I added this event too.

Depends on D174466

Differential Revision: https://phabricator.services.mozilla.com/D174469
2023-04-04 13:42:37 +00:00
William Durand bb93f2ed24 Bug 1822763 - Listen to AddonManager "onEnabled" event. r=zmckenney,rpl,geckoview-reviewers,amejiamarmol
Depends on D173835

Differential Revision: https://phabricator.services.mozilla.com/D174466
2023-04-04 13:42:36 +00:00
William Durand 8b1846587e Bug 1822763 - Listen to AddonManager "onDisabled" event. r=geckoview-reviewers,zmckenney,rpl,amejiamarmol
This is the first step to listen to other AddonManager events. We likely
need a new delegate because there is no other existing delegate we can
leverage I think.

In Fenix, we could use this new delegate like this:

```diff
diff --git a/android-components/components/browser/engine-gecko/src/main/java/mozilla/components/browser/engine/gecko/GeckoEngine.kt b/android-components/components/browser/engine-gecko/src/main/java/mozilla/components/browser/engine/gecko/GeckoEngine.kt
index 5d34a952e8..8031bd1f67 100644
--- a/android-components/components/browser/engine-gecko/src/main/java/mozilla/components/browser/engine/gecko/GeckoEngine.kt
+++ b/android-components/components/browser/engine-gecko/src/main/java/mozilla/components/browser/engine/gecko/GeckoEngine.kt
@@ -357,8 +357,15 @@ class GeckoEngine(
             }
         }

-        runtime.webExtensionController.promptDelegate = promptDelegate
+        val addonManagerDelegate = object : WebExtensionController.AddonManagerDelegate {
+            override fun onDisabled(extension: org.mozilla.geckoview.WebExtension) {
+                webExtensionDelegate.onDisabled(GeckoWebExtension(extension, runtime))
+            }
+        }
+
+        runtime.webExtensionController.setPromptDelegate(promptDelegate)
         runtime.webExtensionController.setDebuggerDelegate(debuggerDelegate)
+        runtime.webExtensionController.setAddonManagerDelegate(addonManagerDelegate)
     }

     /**
@@ -422,7 +429,6 @@ class GeckoEngine(
         runtime.webExtensionController.disable((extension as GeckoWebExtension).nativeExtension, source.id).then(
             {
                 val disabledExtension = GeckoWebExtension(it!!, runtime)
-                webExtensionDelegate?.onDisabled(disabledExtension)
                 onSuccess(disabledExtension)
                 GeckoResult<Void>()
             },
```

Differential Revision: https://phabricator.services.mozilla.com/D173835
2023-04-04 13:42:36 +00:00
Cosmin Sabou df35858e9c Backed out 3 changesets (bug 1822763) for xpcshell failures on test_ext_indexedDB_principal.js. CLOSED TREE
Backed out changeset 2fa13aa9553d (bug 1822763)
Backed out changeset 152d4079f316 (bug 1822763)
Backed out changeset e69ce1b32ff2 (bug 1822763)
2023-04-04 13:14:47 +03:00
William Durand fe01ea6a84 Bug 1822763 - Listen to AddonManager "onUninstalled" event. r=zmckenney,rpl,geckoview-reviewers,calu,amejiamarmol
For completeness, I added this event too.

Depends on D174466

Differential Revision: https://phabricator.services.mozilla.com/D174469
2023-04-04 09:24:24 +00:00
William Durand d7c5d6acb8 Bug 1822763 - Listen to AddonManager "onEnabled" event. r=zmckenney,rpl,geckoview-reviewers
Depends on D173835

Differential Revision: https://phabricator.services.mozilla.com/D174466
2023-04-04 09:24:24 +00:00
William Durand 4efa862fc4 Bug 1822763 - Listen to AddonManager "onDisabled" event. r=geckoview-reviewers,zmckenney,rpl,amejiamarmol
This is the first step to listen to other AddonManager events. We likely
need a new delegate because there is no other existing delegate we can
leverage I think.

In Fenix, we could use this new delegate like this:

```diff
diff --git a/android-components/components/browser/engine-gecko/src/main/java/mozilla/components/browser/engine/gecko/GeckoEngine.kt b/android-components/components/browser/engine-gecko/src/main/java/mozilla/components/browser/engine/gecko/GeckoEngine.kt
index 5d34a952e8..8031bd1f67 100644
--- a/android-components/components/browser/engine-gecko/src/main/java/mozilla/components/browser/engine/gecko/GeckoEngine.kt
+++ b/android-components/components/browser/engine-gecko/src/main/java/mozilla/components/browser/engine/gecko/GeckoEngine.kt
@@ -357,8 +357,15 @@ class GeckoEngine(
             }
         }

-        runtime.webExtensionController.promptDelegate = promptDelegate
+        val addonManagerDelegate = object : WebExtensionController.AddonManagerDelegate {
+            override fun onDisabled(extension: org.mozilla.geckoview.WebExtension) {
+                webExtensionDelegate.onDisabled(GeckoWebExtension(extension, runtime))
+            }
+        }
+
+        runtime.webExtensionController.setPromptDelegate(promptDelegate)
         runtime.webExtensionController.setDebuggerDelegate(debuggerDelegate)
+        runtime.webExtensionController.setAddonManagerDelegate(addonManagerDelegate)
     }

     /**
@@ -422,7 +429,6 @@ class GeckoEngine(
         runtime.webExtensionController.disable((extension as GeckoWebExtension).nativeExtension, source.id).then(
             {
                 val disabledExtension = GeckoWebExtension(it!!, runtime)
-                webExtensionDelegate?.onDisabled(disabledExtension)
                 onSuccess(disabledExtension)
                 GeckoResult<Void>()
             },
```

Differential Revision: https://phabricator.services.mozilla.com/D173835
2023-04-04 09:24:23 +00:00
Makoto Kato 01a6aeea6a Bug 1825695 - Remove JPZ preferences. r=geckoview-reviewers,calu,amejiamarmol
JPZ (JavaPanZoomController) was gone, but mobile.js still has a lot
of preferences for it. Let's remove it.

Differential Revision: https://phabricator.services.mozilla.com/D174205
2023-04-04 00:31:47 +00:00
Noemi Erli 118513ad00 Backed out 2 changesets (bug 1824473) for causing failures in test_clear_form.html CLOSED TREE
Backed out changeset b38aeb74da71 (bug 1824473)
Backed out changeset b73ead08bb19 (bug 1824473)
2023-03-31 21:51:12 +03:00
Stephanie Cunnane 3bb55d1cbe Bug 1824473 - Update consumers of toolkit/components/formautofill to import ES modules directly. r=Standard8,geckoview-reviewers,credential-management-reviewers,sgalich,m_kato
Differential Revision: https://phabricator.services.mozilla.com/D173587
2023-03-31 16:45:03 +00:00
Olivia Hall ff14122df4 Bug 1816151 - GeckoView Window.Print() Telemetry r=geckoview-reviewers,owlish
This bug adds basic telemetry if window.print() is used or not in
Android through GeckoView.

Differential Revision: https://phabricator.services.mozilla.com/D173875
2023-03-31 14:38:53 +00:00
Csoregi Natalia 64c0437f97 Backed out 2 changesets (bug 1824473) for causing mochitest failures on test_address_level_1_submission.html. CLOSED TREE
Backed out changeset 8dd52b2dae6b (bug 1824473)
Backed out changeset 5fbc5b6422c7 (bug 1824473)
2023-03-30 21:14:51 +03:00
Stephanie Cunnane 660bd43791 Bug 1824473 - Update consumers of toolkit/components/formautofill to import ES modules directly. r=Standard8,geckoview-reviewers,credential-management-reviewers,sgalich,m_kato
Differential Revision: https://phabricator.services.mozilla.com/D173587
2023-03-30 17:29:18 +00:00
Makoto Kato f5090d66a1 Bug 1819814 - Call MediaSession.Delegate.onFullscreen correctly when entering full screen. r=geckoview-reviewers,calu
This is a race condition of full screen event and activated event of media
controller.

Media controller will dispatch activated event when full screen button is
clicked on controller. But since this depends on full screen event, if
GeckoView's media session receives this event before controller fires activated
event, `MediaSession.Delegate.onFullscreen` won't be called because
MediaSession.isActive() is false at this time.

So I would like to retry `GeckoView:MediaSession:Fullscreen` call when
entering full screen and controller isn't active yet.

Differential Revision: https://phabricator.services.mozilla.com/D173831
2023-03-30 14:26:13 +00:00
Makoto Kato 6543182f23 Bug 1819088 - Update Fenix links after moving to monorepo. r=geckoview-reviewers,calu
Differential Revision: https://phabricator.services.mozilla.com/D173380
2023-03-30 01:14:56 +00:00
Cathy Lu 6715c36d52 Bug 1815310 - Support persistent events for mobile tabs API r=extension-reviewers,robwu,amejiamarmol,geckoview-reviewers
Differential Revision: https://phabricator.services.mozilla.com/D172746
2023-03-28 21:25:05 +00:00
Calixte fefd92b8e9 Bug 1824610 - EMSification of pdf.js r=Standard8,pdfjs-reviewers,geckoview-reviewers,marco,m_kato
Differential Revision: https://phabricator.services.mozilla.com/D173674
2023-03-28 09:18:58 +00:00
Sandor Molnar fa2ae22888 Backed out 2 changesets (bug 1824473) for causing failures in browser/extensions/formautofill/test/<...>.js
Backed out changeset 01046e78078c (bug 1824473)
Backed out changeset 4203fbb8f229 (bug 1824473)
2023-03-27 22:44:33 +03:00
Stephanie Cunnane d31dfc03b2 Bug 1824473 - Update consumers of toolkit/components/formautofill to import ES modules directly. r=Standard8,geckoview-reviewers,credential-management-reviewers,sgalich,m_kato
Differential Revision: https://phabricator.services.mozilla.com/D173587
2023-03-27 18:12:17 +00:00
Makoto Kato cf3b888238 Bug 1820567 - Add more annotations for GeckoSessionSettings. r=geckoview-reviewers,calu,owlish
Add more annotations for GeckoSessionSettings API to reduce document
warning and etc.

Differential Revision: https://phabricator.services.mozilla.com/D171835
2023-03-27 12:31:12 +00:00
Butkovits Atila a720480444 Backed out changeset e45c47334c6c (bug 1815015) for causing failures at test_transformed_scrolling_repaints_3.html. CLOSED TREE 2023-03-23 22:17:42 +02:00
kycn cd41e64152 Bug 1815015 - Set the browser's activeness to false by default at the time of creation. r=geckoview-reviewers,jonalmeida
By means of setting the browser's initial activeness to false, a newly created background tab will
no longer have an active browsing context which reduces its cpu consumption while it is not selected.
The setTimeout callback is going to be throttled when the tab is created in the background by the
help of this fix.

Differential Revision: https://phabricator.services.mozilla.com/D173320
2023-03-23 19:13:40 +00:00