Commit Graph

32062 Commits

Author SHA1 Message Date
William Durand
4550305168 Bug 1848426 - Add deferred task and counter to monitor extensions process crashes. r=geckoview-reviewers,robwu,amejiamarmol
Differential Revision: https://phabricator.services.mozilla.com/D185030
2023-08-30 22:37:52 +00:00
jackyzy823
ae43dd8d8f Bug 1809282 - Src url should not convert to lowercase. r=geckoview-reviewers,m_kato
Differential Revision: https://phabricator.services.mozilla.com/D186836
2023-08-30 11:33:09 +00:00
Edgar Chen
cc82f561cd Bug 1841258 - Part 1: Support clipboard sequence number on Android clipboard backend; r=geckoview-reviewers,m_kato
Differential Revision: https://phabricator.services.mozilla.com/D182558
2023-08-30 10:26:37 +00:00
Cathy Lu
82e014f2c2 Bug 1849234 - isProductUrl should be async to prevent blocking page loads r=geckoview-reviewers,owlish
Differential Revision: https://phabricator.services.mozilla.com/D186511
2023-08-29 16:17:28 +00:00
Hiroyuki Ikezoe
64723af836 Bug 1649440 - Send GeckoView:ZoomToInput messages only to the focused browsing context. r=geckoview-reviewers,m_kato
Differential Revision: https://phabricator.services.mozilla.com/D184439
2023-08-29 08:52:05 +00:00
Cristian Tuns
fccd8c0ac9 Backed out 5 changesets (bug 1649440) for causing reftest failures in zoom-to-focus-input-oopif.html CLOSED TREE
Backed out changeset 4cca72b5cd90 (bug 1649440)
Backed out changeset a4ee97519b88 (bug 1649440)
Backed out changeset 4c44cb1968ae (bug 1649440)
Backed out changeset 9f29d5bbcaa7 (bug 1649440)
Backed out changeset 677d0763ba27 (bug 1649440)
2023-08-28 23:01:46 -04:00
Hiroyuki Ikezoe
b75fd2b88f Bug 1649440 - Send GeckoView:ZoomToInput messages only to the focused browsing context. r=geckoview-reviewers,m_kato
Differential Revision: https://phabricator.services.mozilla.com/D184439
2023-08-29 02:16:59 +00:00
Arturo Mejia
43d8eef7f4 Bug 1848100 - Expose Add-on installation failed listener. r=willdurand,geckoview-reviewers,zmckenney
Differential Revision: https://phabricator.services.mozilla.com/D186413
2023-08-27 22:33:15 +00:00
Zac McKenney
14cca9efa4 Bug 1819737 - Listen for extension process crashes and pass to new delegate methods r=geckoview-reviewers,willdurand,owlish,amejiamarmol
Differential Revision: https://phabricator.services.mozilla.com/D184071
2023-08-25 13:49:03 +00:00
Luca Greco
7ea21d9c6c Bug 1843926 - Add a new ExtensionsProcessEnabled GeckoRuntimeSettings and expose it in GeckoViewExample Settings UI. r=amejiamarmol,geckoview-reviewers,zmckenney
Differential Revision: https://phabricator.services.mozilla.com/D183779
2023-08-19 17:22:04 +00:00
William Durand
c48fc42f33 Bug 1849329 - Print GeckoView version in Gradle output r=geckoview-reviewers,owlish
Differential Revision: https://phabricator.services.mozilla.com/D186533
2023-08-19 07:28:33 +00:00
Natalia Csoregi
2bb32121f6 Backed out changeset f05efdacedad (bug 1843926) for causing gv-junit failures on RuntimeSettings. CLOSED TREE 2023-08-18 20:38:52 +03:00
Luca Greco
0869e40917 Bug 1843926 - Add a new ExtensionsProcessEnabled GeckoRuntimeSettings and expose it in GeckoViewExample Settings UI. r=amejiamarmol,geckoview-reviewers,zmckenney
Differential Revision: https://phabricator.services.mozilla.com/D183779
2023-08-18 16:22:17 +00:00
owlishDeveloper
87ae383410 Bug 1847048 - Disable Shopping APIs for non-Nightly builds because Shopping modules are only packaged for Nightly r=geckoview-reviewers,calu
Differential Revision: https://phabricator.services.mozilla.com/D186404
2023-08-17 17:16:31 +00:00
Cathy Lu
9c4e5ea687 Bug 1848184 - Update lastAnalysisTime to be a long r=geckoview-reviewers,amejiamarmol,jonalmeida
Differential Revision: https://phabricator.services.mozilla.com/D186144
2023-08-17 16:04:10 +00:00
owlishDeveloper
a1ea6eda0f Bug 1673763 - Enable more tests; make sure the comments for disabled tests are accurate r=geckoview-reviewers,boek
Differential Revision: https://phabricator.services.mozilla.com/D186399
2023-08-17 00:38:25 +00:00
Hanpu Liu Charles
af4d15c34d Bug 1817779 - Implemented tabs.detectLanguage for Android, r=robwu,geckoview-reviewers,extension-reviewers,owlish,amejiamarmol
Differential Revision: https://phabricator.services.mozilla.com/D184942
2023-08-16 09:05:20 +00:00
Harveer Singh
52d33dca7e Bug 1843046: Ignored a android kt private notification test.r=geckoview-reviewers,owlish
Depends on D184064

Differential Revision: https://phabricator.services.mozilla.com/D185818
2023-08-15 20:48:14 +00:00
owlishDeveloper
5637e974b1 Bug 1673763 - Do not switch processes when loading error pages on Android r=geckoview-reviewers,nika,jonalmeida
Differential Revision: https://phabricator.services.mozilla.com/D186065
2023-08-15 18:43:38 +00:00
Iulian Moraru
04ddb49c81 Backed out changeset c8c9ef33bbcf (bug 1817779) for causing mochitest-plain failures on test_ext_all_apis.html. CLOSED TREE 2023-08-14 17:59:30 +03:00
Manuel Bucher
1f724e77c8 Bug 1847718 - Require nsIChannel instead of nsIRequest in nsIExternalHelperAppService r=necko-reviewers,geckoview-reviewers,valentin,owlish
All callers already pass an nsIChannel and lower in the stack an
nsIChannel is required to serialize its LoadInfoArgs over IPC.

Differential Revision: https://phabricator.services.mozilla.com/D185682
2023-08-14 14:25:29 +00:00
Iulian Moraru
2d4db439a8 Backed out 2 changesets (bug 1843046) for causing android linting failures. CLOSED TREE
Backed out changeset 31e28d290422 (bug 1843046)
Backed out changeset 5e8b64d6b91a (bug 1843046)
2023-08-14 17:46:58 +03:00
Harveer Singh
7d21deec06 Bug 1843046: Ignored a android kt private notification test.r=geckoview-reviewers,owlish
Depends on D184064

Differential Revision: https://phabricator.services.mozilla.com/D185818
2023-08-14 14:06:05 +00:00
Hanpu Liu Charles
4d4f9a2c43 Bug 1817779 - Implemented tabs.detectLanguage for Android, r=robwu,geckoview-reviewers,extension-reviewers,owlish
Differential Revision: https://phabricator.services.mozilla.com/D184942
2023-08-14 14:00:41 +00:00
renevietnam29@gmail.com
c0f7841e56 Bug 1842987 Remove dom.forms.enterkeyhint r=emilio,geckoview-reviewers,m_kato
Differential Revision: https://phabricator.services.mozilla.com/D184620
2023-08-14 13:52:35 +00:00
Cathy Lu
281bdec55b Bug 1848008 - Update requestAnalysis and requestRecommendations to be on any thread r=geckoview-reviewers,owlish
Differential Revision: https://phabricator.services.mozilla.com/D185842
2023-08-11 15:56:12 +00:00
Olivia Hall
117e2d7067 Bug 1840658 - Add Exposure Event for PDF Toolbar Experiment r=geckoview-reviewers,calixte,owlish,tthibaud
Connects the new ExperimentDelegate to the GeckoViewPdfjsParent for
getting Nimbus features and sending exposure events. Sends an exposure
event when the PDF is loaded.

Differential Revision: https://phabricator.services.mozilla.com/D184858
2023-08-11 15:30:10 +00:00
Olivia Hall
713fd4f612 Bug 1845824 - ExperimentDelegate GeckoSessionHandler r=geckoview-reviewers,tthibaud,jonalmeida,owlish
This patch adds a an ExperimentDelegate GeckoSessionHandler, a JS
Experiment Delegate Parent/Child, and a way to get/set the Experiment
Delegate on the session.

Differential Revision: https://phabricator.services.mozilla.com/D184841
2023-08-11 15:30:10 +00:00
Butkovits Atila
b3caf29870 Backed out changeset ea215735bd48 (bug 1848008) for causing lint failures. CLOSED TREE 2023-08-10 20:21:38 +03:00
Cathy Lu
3a7b1f1d24 Bug 1848008 - Update requestAnalysis and requestRecommendations to be on any thread r=geckoview-reviewers,owlish
Differential Revision: https://phabricator.services.mozilla.com/D185842
2023-08-10 16:19:10 +00:00
Titouan Thibaud
a4af1bbab9 Bug 1847059: Add missing providerName to FedCM Account and Provider entities in GeckoSession r=geckoview-reviewers,amejiamarmol
Differential Revision: https://phabricator.services.mozilla.com/D185431
2023-08-10 14:14:58 +00:00
Makoto Kato
28b0434e12 Bug 1847502 - Remove unnecessary step for Windows workstation. r=geckoview-reviewers,ohall
JDK is installed by `./mach bootstrap` now.

Differential Revision: https://phabricator.services.mozilla.com/D185528
2023-08-10 06:52:30 +00:00
Rob Wu
8ed242dc97 Bug 1847608 - Set dom.ipc.keepProcessesAlive.extension=1 on Android r=willdurand,nika,geckoview-reviewers,amejiamarmol
Extensions commonly have a background script. On desktop, these are
often long-lived, but we cannot guarantee that on Android. Therefore
we want to encourage the adoption of Event pages by extensions, which
are resilient by design against unexpected terminations.

When extensions adopt event pages, it is much more likely for the
extension process to not be hosting any content compared to now.
As mentioned in the bug (bug 1847608), "graceful" process termination is
misinterpreted as a process crash. To avoid this issue, we set
dom.ipc.keepProcessesAlive.extension=1. This stops Gecko from
terminating the extension process. This also reduces the overhead of
resuming a suspended (background) extension page.

Note that this only covers "graceful" termination by Gecko.
Android-triggered force-kills and OOM are not prevented and should still
be accounted for.

Differential Revision: https://phabricator.services.mozilla.com/D185588
2023-08-09 21:02:22 +00:00
Titouan Thibaud
83fc31ea3c Bug 1840082 - Create a Test for validating the nsIIdentityCredentialPromptService.showPolicyPrompt is handled in GeckoView r=geckoview-reviewers,amejiamarmol
Differential Revision: https://phabricator.services.mozilla.com/D185813
2023-08-09 18:35:20 +00:00
Cathy Lu
21d25d94e4 Bug 1847835 - Update shopping to add more null checks and update tests r=geckoview-reviewers,owlish
Differential Revision: https://phabricator.services.mozilla.com/D185714
2023-08-09 17:26:59 +00:00
Paul Adenot
fa478cfce0 Bug 1823953 - Create libgkcodecs, move libvorbis and libogg to it. r=firefox-build-system-reviewers,geckoview-reviewers,glandium,owlish
We need to use libvorbis both from libavcodec and libxul during a transition
period while re-architecturing things, so this moves libvorbis and libogg (a
dependency) to a separate shared lib, linked when needed.

Differential Revision: https://phabricator.services.mozilla.com/D173458
2023-08-08 12:12:39 +00:00
Cosmin Sabou
f62220b2a5 Backed out changeset 94222fe4a101 (bug 1847059) for causing gv-junit failures on fedCMProviderPromptTest. CLOSED TREE 2023-08-07 18:43:27 +03:00
Olivia Hall
c562764160 Bug 1809422 - Android Unable to Print/Save PDF r=geckoview-reviewers,calu
The canonical browsing context is not available if the current window/tab
is not focused for printing or saving as a PDF.

This patch adds a call to `setFocused` before creating a Gecko PDF to
ensure the canonical browsing context can be used for generating a PDF
to save or print.

Differential Revision: https://phabricator.services.mozilla.com/D185311
2023-08-07 14:36:06 +00:00
Titouan Thibaud
833273fded Bug 1847059: Add missing providerName to FedCM Account and Provider entities in GeckoSession r=geckoview-reviewers,amejiamarmol
Differential Revision: https://phabricator.services.mozilla.com/D185431
2023-08-07 13:30:07 +00:00
Rob Wu
fa16c4b837 Bug 1847262 - Remove obsolete comment about ugly code formatting r=geckoview-reviewers,calu DONTBUILD
Differential Revision: https://phabricator.services.mozilla.com/D185448
2023-08-04 16:29:32 +00:00
William Durand
4c4f2d4f13 Bug 1847173 - Add new GeckoRuntimeSettings for the add-on manager web API. r=amejiamarmol,geckoview-reviewers
Differential Revision: https://phabricator.services.mozilla.com/D185396
2023-08-04 14:58:45 +00:00
William Durand
6689d9efd3 Bug 1845749 - Introduce a specific install.error for incompatible add-ons. r=rpl,geckoview-reviewers,amejiamarmol
Differential Revision: https://phabricator.services.mozilla.com/D184801
2023-08-04 08:11:14 +00:00
Gregory Pappas
defc00a2b0 Bug 1846646 - Remove more prefs which don't do anything in GeckoView r=geckoview-reviewers,calu
Differential Revision: https://phabricator.services.mozilla.com/D185114
2023-08-03 23:20:38 +00:00
William Durand
7bf910442f Bug 1822640 - Disable the abuse report feature on mobile. r=rpl,geckoview-reviewers,amejiamarmol
Depends on D179968

Differential Revision: https://phabricator.services.mozilla.com/D185277
2023-08-03 18:38:02 +00:00
Cathy Lu
bec83a817f Bug 1840690 - Expose requestRecommendations to GV r=geckoview-reviewers,ohall,jonalmeida,calu
Differential Revision: https://phabricator.services.mozilla.com/D184768
2023-08-03 18:25:07 +00:00
William Durand
d369e3071c Bug 1822640 - Expose mozAddonManager on Android. r=rpl,amejiamarmol,geckoview-reviewers,owlish
This patch exposes the add-on manager web API behind a static pref
instead of a build flag. The pref allows embedders to expose the API to
the usual list of allowed domains (AMO only, except for testing).

Differential Revision: https://phabricator.services.mozilla.com/D179968
2023-08-03 18:16:48 +00:00
Jon Coppeard
8a19f7c395 Bug 1837944 - Part 2: Remove the option to use a smaller size for GC chunks r=sfink,geckoview-reviewers,owlish
This was added in the B2G days to help with lower spec devices which had less
memory. Today's Android devices have much more memory available.

Depends on D184687

Differential Revision: https://phabricator.services.mozilla.com/D184688
2023-08-03 08:03:18 +00:00
owlishDeveloper
2d9c0d60d0 Bug 1842637 - Expose isProductURL and requestAnalysis in GeckoView r=geckoview-reviewers,ohall
Differential Revision: https://phabricator.services.mozilla.com/D184046
2023-08-02 16:22:46 +00:00
Gregory Pappas
8a35d5cf5f Bug 1845311 - [Part 2] Use ChromeUtils.defineLazyGetter in more places r=arai,webcompat-reviewers,necko-reviewers,extension-reviewers,settings-reviewers,application-update-reviewers,credential-management-reviewers,devtools-reviewers,fxview-reviewers,sync-reviewers,anti-tracking-reviewers,tabbrowser-reviewers,bytesized,twisniewski,sgalich,mak,kershaw,sclements,pbz,robwu,geckoview-reviewers,amejiamarmol
Differential Revision: https://phabricator.services.mozilla.com/D184623
2023-08-01 23:01:02 +00:00
Cristian Tuns
5d6b51256b Backed out 57 changesets (bug 1839389, bug 1840869, bug 1840399, bug 1840402, bug 1823953, bug 1828912, bug 1826382, bug 1837160, bug 1839391, bug 1833654) for causing build bustages in ogg_<something> CLOSED TREE
Backed out changeset 61356e1447e3 (bug 1823953)
Backed out changeset 85785505b6d6 (bug 1823953)
Backed out changeset 46a61cbfe8a8 (bug 1833654)
Backed out changeset 83e3de80337b (bug 1833654)
Backed out changeset 1a10c12874ac (bug 1840399)
Backed out changeset 6b087145b67f (bug 1833654)
Backed out changeset b9ac857ad43f (bug 1840399)
Backed out changeset 4b841e8dd033 (bug 1823953)
Backed out changeset 650e35803834 (bug 1823953)
Backed out changeset c11b58ac0709 (bug 1823953)
Backed out changeset c0249c90bc31 (bug 1823953)
Backed out changeset 8929288d5aec (bug 1823953)
Backed out changeset 828792b886bd (bug 1823953)
Backed out changeset 873f1d4a8875 (bug 1840869)
Backed out changeset a25abd05302c (bug 1823953)
Backed out changeset d4b1eb442c36 (bug 1840399)
Backed out changeset c25509d72a96 (bug 1840399)
Backed out changeset 0f72a0626a28 (bug 1840402)
Backed out changeset 82e7574364ce (bug 1840399)
Backed out changeset 93073105f063 (bug 1840399)
Backed out changeset 56ec8e3405e9 (bug 1840399)
Backed out changeset ff15dad37ab8 (bug 1840399)
Backed out changeset 0655ebd61eda (bug 1840399)
Backed out changeset 7bca1ae06c7d (bug 1828912)
Backed out changeset 8a5a849cfe5f (bug 1828912)
Backed out changeset 3d8422a2038a (bug 1828912)
Backed out changeset f08ee5de9370 (bug 1823953)
Backed out changeset a4eb210620ff (bug 1823953)
Backed out changeset aa8914cd55be (bug 1839391)
Backed out changeset 3ea1f43e4024 (bug 1823953)
Backed out changeset 3efe02ffa1c8 (bug 1826382)
Backed out changeset 81c4553ec23d (bug 1839391)
Backed out changeset 130894e4a781 (bug 1839391)
Backed out changeset 9a0247b0fc85 (bug 1839391)
Backed out changeset 11a923064382 (bug 1839391)
Backed out changeset 98ffb66160c3 (bug 1837160)
Backed out changeset a80dda9a220a (bug 1837160)
Backed out changeset 251b4ef97a2b (bug 1837160)
Backed out changeset 7372632eb32f (bug 1837160)
Backed out changeset c5d54bc3ee26 (bug 1839389)
Backed out changeset b232ec1bbc2d (bug 1833654)
Backed out changeset fc7ba125c2fe (bug 1833654)
Backed out changeset 8a47f6882e61 (bug 1823953)
Backed out changeset e29810541b53 (bug 1828912)
Backed out changeset bcf10730c8c9 (bug 1828912)
Backed out changeset 8df8290b6c33 (bug 1826382)
Backed out changeset 2811d12803cf (bug 1826382)
Backed out changeset 3fc718561ec9 (bug 1826382)
Backed out changeset 7827183776e1 (bug 1823953)
Backed out changeset a3eb5f228d9a (bug 1826382)
Backed out changeset 3113ad2e0987 (bug 1823953)
Backed out changeset 4b1dc01525af (bug 1823953)
Backed out changeset f7f4a7585ceb (bug 1823953)
Backed out changeset 93042f1becec (bug 1823953)
Backed out changeset b9ca30a0a066 (bug 1823953)
Backed out changeset 1000c4a6a92a (bug 1823953)
Backed out changeset 05dc13775fd6 (bug 1823953)
2023-08-01 09:37:39 -04:00
Paul Adenot
3cc8cb3732 Bug 1823953 - Create libgkcodecs, move libvorbis and libogg to it. r=firefox-build-system-reviewers,geckoview-reviewers,glandium,owlish DONTBUILD
We need to use libvorbis both from libavcodec and libxul during a transition
period while re-architecturing things, so this moves libvorbis and libogg (a
dependency) to a separate shared lib, linked when needed.

Differential Revision: https://phabricator.services.mozilla.com/D173458
2023-08-01 12:41:03 +00:00
William Durand
a9922065ca Bug 1845745 - Introduce a specific install.error for blocklisted add-ons. r=rpl,geckoview-reviewers,robwu,zmckenney
Differential Revision: https://phabricator.services.mozilla.com/D184741
2023-08-01 10:40:37 +00:00
Calixte
e77f0449bb Bug 1842685 - Use window.print when printing a pdf in Geckoview r=geckoview-reviewers,ohall
Differential Revision: https://phabricator.services.mozilla.com/D184811
2023-07-31 18:05:41 +00:00
Olivia Hall
91eaf8a22f Bug 1843592 - Setup Experiment Delegate on GeckoView Runtime r=geckoview-reviewers,jonalmeida,owlish
This patch adds a interface for an experiment delegate. An embedder
can set this delegate to allow GeckoView to retrieve and send experiment
information.

Differential Revision: https://phabricator.services.mozilla.com/D184033
2023-07-31 16:47:48 +00:00
Narcis Beleuzu
d2a6ec10c4 Backed out changeset 805b1cd53210 (bug 1842685) for PDF related junit failures. CLOSED TREE 2023-07-31 14:58:02 +03:00
Calixte
ae67c7ae69 Bug 1842685 - Use window.print when printing a pdf in Geckoview r=geckoview-reviewers,ohall
Differential Revision: https://phabricator.services.mozilla.com/D184811
2023-07-31 10:37:00 +00:00
William Durand
8196f35844 Bug 1844004 - Only set ERROR_USER_CANCELED when the cancellation originated from the user. r=geckoview-reviewers,robwu,owlish
Differential Revision: https://phabricator.services.mozilla.com/D184478
2023-07-28 08:09:01 +00:00
Dave Townsend
60c7c71e2d Bug 1842620: Add overviews of the main applications to the docs. r=Gijs,geckoview-reviewers,owlish,bgrins
Differential Revision: https://phabricator.services.mozilla.com/D183173
2023-07-26 18:22:32 +00:00
az
1ad6db6118 Bug 1844622 - Catch and ignore runtime exception during media codec query on Android if MediaCodecInfo cannot be retrieved. r=jolin,geckoview-reviewers,owlish
Differential Revision: https://phabricator.services.mozilla.com/D184274
2023-07-26 16:56:03 +00:00
Gregory Pappas
3eac12bbd7 Bug 1845311 - Use ChromeUtils.defineLazyGetter in more places r=arai,webdriver-reviewers,geckoview-reviewers,extension-reviewers,application-update-reviewers,credential-management-reviewers,devtools-reviewers,fxview-reviewers,anti-tracking-reviewers,sessionstore-reviewers,pbz,joschmidt,robwu,issammani,bytesized,owlish,dao
Differential Revision: https://phabricator.services.mozilla.com/D184481
2023-07-26 16:28:11 +00:00
Logan Rosen
b47c5a6453 Bug 1510962 - remove unnecessary 'final' declaration r=geckoview-reviewers,m_kato
Differential Revision: https://phabricator.services.mozilla.com/D184063
2023-07-26 02:43:38 +00:00
Olivia Hall
8ef90197a3 Bug 1844875 - EventCallback on a Null Reference r=geckoview-reviewers,calixte,owlish
Added null checking for `callback` on `GeckoView:SavePdf` and
`GeckoView:GetNimbusFeature` due to possibly causing a
`NullPointerException` when trying to `sendError` on a null
`EventCallback`.

Differential Revision: https://phabricator.services.mozilla.com/D184404
2023-07-26 01:15:09 +00:00
Kagami Sascha Rosylight
d97b1ea4f6 Bug 1844802 - Restore links to GeckoView Contributor Guide r=firefox-source-docs-reviewers,sylvestre,geckoview-reviewers,m_kato DONTBUILD
D150200 broke this when changing the title and missed it, probably because breaking links only emits warnings instead of errors.

Differential Revision: https://phabricator.services.mozilla.com/D184245
2023-07-24 12:28:49 +00:00
Kagami Sascha Rosylight
e22bb87a8b Bug 1844652 - Part 2: Enable dom.serviceWorkers.enabled in StaticPrefList r=dom-worker-reviewers,geckoview-reviewers,smaug,m_kato
Depends on D184149

Differential Revision: https://phabricator.services.mozilla.com/D184151
2023-07-24 03:01:42 +00:00
Kagami Sascha Rosylight
0b1f1cda2f Bug 1844652 - Part 1: Enable dom.push.enabled in StaticPrefList r=dom-worker-reviewers,geckoview-reviewers,smaug,m_kato
Differential Revision: https://phabricator.services.mozilla.com/D184149
2023-07-24 03:01:41 +00:00
Kagami Sascha Rosylight
d2a61d9c63 Bug 1844838 - Use default python3 outside MozillaBuild on Windows r=m_kato,geckoview-reviewers
The current method fails when Mach is called outside MozillaBuild (https://firefox-source-docs.mozilla.org/mach/windows-usage-outside-mozillabuild.html), as `./mach environment` called inside gradle uses different Python and causes conflict in `~/.mozbuild`.

Differential Revision: https://phabricator.services.mozilla.com/D184255
2023-07-24 03:01:03 +00:00
Rob Wu
96cadc1658 Bug 1723520 - Don't close non-browser tabs upon extension unloads r=willdurand,extension-reviewers,geckoview-reviewers,zmckenney
... and unskip tests that were broken for this reason. These tests
follow the following pattern:

1. ExtensionTestUtils.loadContentPage(<moz-extension:-URL here>);
2. extension.unload();
3. contentPage.close();  after step 2, triggers error from the bug.

Differential Revision: https://phabricator.services.mozilla.com/D184106
2023-07-21 22:18:03 +00:00
Rob Wu
f01c794870 Bug 1728542 - Add null check to getBrowserData in ext-android.js r=willdurand,geckoview-reviewers,extension-reviewers,zmckenney
Differential Revision: https://phabricator.services.mozilla.com/D184105
2023-07-21 22:17:58 +00:00
Alex Jakobi
ed1dbb5332 Bug 1806218 - Fix faulty overscroll directions in evaluated touch actions. r=dlrobertson,geckoview-reviewers,owlish
Differential Revision: https://phabricator.services.mozilla.com/D181884
2023-07-17 21:17:48 +00:00
Iulian Moraru
99419d74bd Backed out changeset b5fec4580148 (bug 1806218) for causing gtest failures. 2023-07-12 23:56:20 +03:00
Alex Jakobi
eb3b46f143 Bug 1806218 - Fix faulty overscroll directions in evaluated touch actions. r=dlrobertson,geckoview-reviewers,owlish
Differential Revision: https://phabricator.services.mozilla.com/D181884
2023-07-12 14:45:17 +00:00
Makoto Kato
13e4a80a6b Bug 1839582 - Support image paste. r=geckoview-reviewers,owlish
Actually, we support plain text and HTML for copy & paste format.

This adds image type for paste from clipboard.

To support copy image, Android requires content provider. It will
require something delegation to implement content provider in GeckoView.
So this doesn't include it.

Differential Revision: https://phabricator.services.mozilla.com/D181839
2023-07-11 23:52:39 +00:00
Emilio Cobos Álvarez
0f6484893c Bug 1842608 - Move Android's accessiblecaret SVG's to layout/style/res. r=TYLin,geckoview-reviewers,owlish
We need these to be contentaccessible. Let's make sure they use the same
set-up as desktop's images.

Differential Revision: https://phabricator.services.mozilla.com/D183293
2023-07-11 18:53:32 +00:00
Kershaw Chang
deb3b1c51e Bug 1839054 - Enable QPACK on Android, r=necko-reviewers,geckoview-reviewers,jesup,amejiamarmol
Differential Revision: https://phabricator.services.mozilla.com/D182707
2023-07-11 08:54:41 +00:00
Makoto Kato
234a615953 Bug 1842545 - Convert remained JSM to ESM. r=geckoview-reviewers,amejiamarmol
Also, AndroidLog.sys.mjs still has unnecessary CommonJS support although this
support is gone by bug 1773390.

Differential Revision: https://phabricator.services.mozilla.com/D183111
2023-07-11 02:14:00 +00:00
Titouan Thibaud
c21884e60c Bug 1838048 - Create a Test for validating the nsIIdentityCredentialPromptService.showAccountPrompt is handled in GeckoView r=geckoview-reviewers,amejiamarmol
Differential Revision: https://phabricator.services.mozilla.com/D182579
2023-07-10 08:45:24 +00:00
Gregory Pappas
037a599e9a Bug 1842423 - Turn on full-screen-api.enabled in StaticPrefs r=edgar,geckoview-reviewers,m_kato
Differential Revision: https://phabricator.services.mozilla.com/D183084
2023-07-10 07:56:20 +00:00
Gregory Pappas
7b94561094 Bug 1842424 - Remove unused dom.phonenumber.* prefs r=geckoview-reviewers,m_kato
Differential Revision: https://phabricator.services.mozilla.com/D183085
2023-07-09 16:37:02 +00:00
Makoto Kato
9c6893e72e Bug 1841492 - Convert GeckoViewTestUtils.jsm to ESM. r=webdriver-reviewers,geckoview-reviewers,whimboo,calu
Differential Revision: https://phabricator.services.mozilla.com/D182655
2023-07-09 16:11:39 +00:00
Makoto Kato
e9b8c73771 Bug 1837126 - Disable org.mozilla.geckoview.test.AccessibilityTest#testClipboard on opt build. r=geckoview-reviewers,calu
I mistake previous. We should disable testClipboard test on opt build
as temporary due to frequency failures until this is fixed.

Differential Revision: https://phabricator.services.mozilla.com/D182470
2023-07-07 06:10:49 +00:00
Gregory Pappas
9007e8c855 Bug 1800770 - Enable Storage Access API everywhere r=pbz,geckoview-reviewers,m_kato
Differential Revision: https://phabricator.services.mozilla.com/D182869
2023-07-07 04:39:43 +00:00
Makoto Kato
0266d92dba Bug 1841498 - Convert BrowserUsageTelemetry.jsm to ESM. r=geckoview-reviewers,calu
Bug 1834831 forgot converting mobile version since
`Document::AutomaticStorageAccessPermissionCanBeGranted` uses this module.

Differential Revision: https://phabricator.services.mozilla.com/D182661
2023-07-06 01:04:51 +00:00
Cosmin Sabou
1bc0231943 Backed out changeset b2154b397ef7 (bug 1838048) for geckoview failures on onSelectIdentityCredentialAccount. 2023-07-05 20:20:17 +03:00
Titouan Thibaud
023fd55a9d Bug 1838048 - Create a Test for validating the nsIIdentityCredentialPromptService.showAccountPrompt is handled in GeckoView r=geckoview-reviewers,amejiamarmol
Differential Revision: https://phabricator.services.mozilla.com/D182579
2023-07-05 15:55:58 +00:00
Gregory Pappas
dd79948377 Bug 1773094 - Remove security.alternate_certificate_error_page pref r=keeler,geckoview-reviewers,m_kato
Differential Revision: https://phabricator.services.mozilla.com/D182262
2023-07-04 11:26:24 +00:00
Hiroyuki Ikezoe
7118a0eee6 Bug 1839964 - Call waitForRoundTrip() to make sure evaluatePromiseJS has set up the given JS. r=botond,geckoview-reviewers,m_kato
There's a race in between a call of `evaluatePromiseJS` and a call of
`flushApzRepaints` which is similar to bug 1743857. If the given JS for the
`evaluatePromiseJS` call returns a Promise and if the call site doesn't wait for
the Promise, we can't ensure the given JS has set up in the content.

Unforutnately there's no good way to avoid the race, adding `waitForRoundTrip`
seems to work.

Differential Revision: https://phabricator.services.mozilla.com/D182439
2023-07-04 06:32:05 +00:00
Hiroyuki Ikezoe
3d156124fd Bug 1839964 - Use promiseAllPaintsDone rather than waiting for the first-contentful-paint. r=botond,geckoview-reviewers,m_kato
Just like what we did in bug 1678895, for APZ tests using
`promiseAllPaintsDone` makes the tests more robust.

Differential Revision: https://phabricator.services.mozilla.com/D182438
2023-07-04 06:32:05 +00:00
Titouan Thibaud
790913d462 Bug 1836772 - Adding tests on FedCM ProviderPrompt API r=amejiamarmol,geckoview-reviewers,ohall
Co-authored-by: Arturo Mejia <arturomejiamarmol@gmail.com>

Differential Revision: https://phabricator.services.mozilla.com/D182007
2023-06-27 20:01:40 +00:00
iorgamgabriel
a4840acba1 Bug 1550206 - Move the CrashHandler class into org.mozilla.geckoview r=geckoview-reviewers,owlish,m_kato
Differential Revision: https://phabricator.services.mozilla.com/D179550
2023-06-27 14:01:10 +00:00
Arturo Mejia
82275f835e Bug 1836358 - Add support for nsIIdentityCredentialPromptService.showPolicyPrompt in GeckoView. r=geckoview-reviewers,tthibaud,owlish
Differential Revision: https://phabricator.services.mozilla.com/D180729
2023-06-27 00:05:49 +00:00
Titouan Thibaud
da1cb4f75d Bug 1836363 - Add Changelog entry for PromptInstanceDelegate.onSelectIdentityCredentialAccount r=geckoview-reviewers,amejiamarmol
Differential Revision: https://phabricator.services.mozilla.com/D181895
2023-06-26 13:27:05 +00:00
Sandor Molnar
80c9edafd5 Bug 1829615 - Disable org.mozilla.geckoview.test.SelectionActionDelegateTest#compareClientRect on fission for frequent failures. r=intermittent-reviewers,geckoview-reviewers,ahal,owlish
Differential Revision: https://phabricator.services.mozilla.com/D181341
2023-06-24 02:37:16 +00:00
Nazım Can Altınova
dde20574dc Bug 1812452 - Increase the min profiler buffer limit to 128MiB r=florian,geckoview-reviewers,m_kato
Differential Revision: https://phabricator.services.mozilla.com/D181654
2023-06-23 09:17:43 +00:00
Makoto Kato
73d5b58b22 Bug 1839151 - Convert Web extensions test assets to ESM. r=geckoview-reviewers,ohall
Differential Revision: https://phabricator.services.mozilla.com/D181367
2023-06-23 07:14:40 +00:00
Olivia Hall
8dd8561c12 Bug 1839456 - GeckoView Setup Print Optimization r=geckoview-reviewers,amejiamarmol
This patch updates the GeckoViewPrintDocumentAdapter to make the PDF
file required for printing in the background.

Differential Revision: https://phabricator.services.mozilla.com/D181572
2023-06-22 21:12:55 +00:00
Gregory Pappas
4b964d39ba Bug 1814905 - Implement action.getUserSettings r=robwu,geckoview-reviewers
Differential Revision: https://phabricator.services.mozilla.com/D169102
2023-06-22 15:22:19 +00:00
Rob Wu
762fa78438 Bug 1811608 - Set inputHandling in browser/pageAction.onClicked on Android +tests r=extension-reviewers,amejiamarmol,geckoview-reviewers,willdurand
Set `inputHandling: true` in the onClicked event of the
action/browserAction and pageAction APIs, and add tests.

Besides the usual coverage for the feature here, this patch also
introduces the only Android test for the `page_action.show_matches`
manifest key and the `pageAction.isShown` API. These APIs were already
covered by desktop-specific tests in browser/, but had zero test
coverage on Android. Since toolkit mochitests are run on desktop and
Android, this provides better cross-browser coverage.

Differential Revision: https://phabricator.services.mozilla.com/D181012
2023-06-22 13:19:29 +00:00
Hiroyuki Ikezoe
4f568eaa04 Bug 1719855 - Add two flags to differentiate a state that it's ready to be handled in APZ but not yet ready to inform the handled result to GeckoView. r=geckoview-reviewers,botond,calu
Depends on D176481

Differential Revision: https://phabricator.services.mozilla.com/D176727
2023-06-22 03:01:44 +00:00
Natalia Csoregi
16231c2992 Bug 1837126 - Disable org.mozilla.geckoview.test.AccessibilityTest#testClipboard for having an extremely high failure rate. r=geckoview-reviewers,m_kato
Differential Revision: https://phabricator.services.mozilla.com/D181040
2023-06-21 10:26:55 +00:00
Gregory Pappas
fb28cc97e2 Bug 1809094 - Implement tab.autoDiscardable property r=robwu,geckoview-reviewers,extension-reviewers,Gijs,owlish,tabbrowser-reviewers,dao
Differential Revision: https://phabricator.services.mozilla.com/D166440
2023-06-21 07:50:17 +00:00