Commit Graph

31585 Commits

Author SHA1 Message Date
Marco Castelluccio
c7fd01be29 Bug 1790816 - Reformat mobile/ with isort. r=geckoview-reviewers,m_kato DONTBUILD
# ignore-this-changeset

Differential Revision: https://phabricator.services.mozilla.com/D162647
2022-11-22 11:04:55 +00:00
Jamie Nicol
16ceeff184 Bug 1801526 - Use AtomicInteger for GeckoSurfaceTexture handle counter. r=geckoview-reviewers,calu
Currently we use a `static volatile int` as a monotonically
incrementing counter from which we calculate handles for
GeckoSurfaceTextures. During a previous patch, the code which reads
and increments this counter was moved out of a synchronized block,
meaning it can potentially race. We are now seeing crashes due to
attempting to allocate different GeckoSurfaceTextures with the same
handle, and this could be the cause.

To fix this, we replace the counter with an AtomicInt, which has an
atomic getAndIncrement() function.

Differential Revision: https://phabricator.services.mozilla.com/D162556
2022-11-22 08:32:31 +00:00
Mike Hommey
f5b95abfc2 Bug 1801738 - Use --enable-project instead of --enable-application. r=firefox-build-system-reviewers,geckoview-reviewers,calu,ahochheiden
--enable-application is the historic flag, and --enable-project was
added to handle the non-application things we build, while encompassing
the meaning of --enable-application. --enable-project has been preferred
for a while and we should reflect that more consistently in mozconfigs,
documentation, etc.

Differential Revision: https://phabricator.services.mozilla.com/D162625
2022-11-22 02:09:26 +00:00
Noemi Erli
3bfc64d7f6 Backed out changeset 5bc25dc3e767 (bug 1772920) for causing geckoview failures 2022-11-22 03:01:21 +02:00
Barret Rennie
eb486fcef9 Bug 1772920 - Port osfile.jsm usage to IOUtils in mobile/android/ r=geckoview-reviewers,extension-reviewers,m_kato,robwu
Differential Revision: https://phabricator.services.mozilla.com/D159954
2022-11-21 23:55:36 +00:00
Noemi Erli
2b650e3eb4 Backed out changeset bfcfccd2e100 (bug 1797581) for causing geckoview failures CLOSED TREE 2022-11-21 23:58:12 +02:00
Arturo Mejia
f03d247e91 Bug 1797581 - Add API support for ignoring sites for cookie banner handling in GV r=geckoview-reviewers,owlish,calu
Differential Revision: https://phabricator.services.mozilla.com/D161741
2022-11-21 21:06:33 +00:00
Makoto Kato
6ea7dfc3db Bug 1785759 - Part 2. Make BasicSelecitonDelegate fission compatible. r=geckoview-reviewers,calu
`SelectionActionDelegate.Selection.clientRect` isn't fission compatible. It is
better to use screen coordinate for selection data, instead of client
coordinate since it has no easy way to calculate client coordinate with
fission.

If we can have `screenRect`, `mTempMatrix` and `mTempRect` are unnecessary, so
we should be marked as deprecated too.

Differential Revision: https://phabricator.services.mozilla.com/D161416
2022-11-21 10:40:40 +00:00
trickypr
80078e3ba1 Bug 1510561 - Part 16: Apply plugin:mozilla/valid-jsdoc to toolkit/components/extensions. r=geckoview-reviewers,extension-reviewers,zombie,owlish
Differential Revision: https://phabricator.services.mozilla.com/D161391
2022-11-19 11:41:48 +00:00
Makoto Kato
1756e8266e Bug 1740799 - Format Kotlin code using ktlint. r=geckoview-reviewers,owlish,linter-reviewers,sylvestre
Android-component and Fenix use ktlint, so mozilla-central should use same
tools via spotless.

This is from https://phabricator.services.mozilla.com/D131018

Differential Revision: https://phabricator.services.mozilla.com/D161557
2022-11-18 00:55:03 +00:00
Makoto Kato
3f99c2ac51 Bug 1740799 - Format our Kolitin code. r=geckoview-reviewers,owlish
Add ktlint-disable comment then reformat Kotlin code.

```shell
sed -i  -e 's/^\(import .*\.\*\)/\1 \/\/ ktlint-disable no-wildcard-imports/g'
```

Differential Revision: https://phabricator.services.mozilla.com/D161556
2022-11-18 00:55:02 +00:00
Makoto Kato
83eed21a09 Bug 1800419 - Convert GeckoViewActor*.jsm to ESM. r=geckoview-reviewers,owlish
Differential Revision: https://phabricator.services.mozilla.com/D161992
2022-11-16 11:29:08 +00:00
ohall-m
65762f4777 Bug 1788734 - Geolocation Intermittent Failures r=owlish,geckoview-reviewers
This patch updates how the mock geolocation provider works. The geolocation test provider now mocks the in-built Android GPS and Network providers. It also now includes an option to continually post locations, like a true location provider would.

Differential Revision: https://phabricator.services.mozilla.com/D161793
2022-11-15 15:01:11 +00:00
Makoto Kato
a83c653bc8 Bug 1798617 - GeckoAppShell.isTablet returns correct value. r=geckoview-reviewers,owlish
Since `GeckoLoader.getLoadDiagnostics` is never called, `HardwareUtils` isn't
initialized. It means that `GeckoAppShell.isTablet` always return false.

So `HardwareUtils` should be initialized.

Also, a lot of codes in `HardwareUtils` and `GeckoLoader.getLoadDiagnostics`
are unused, so let's clean up.

Differential Revision: https://phabricator.services.mozilla.com/D161006
2022-11-15 07:41:52 +00:00
Ryan VanderMeulen
aa58e663c1 Backed out changeset 216ebef85b80 (bug 1791878) for causing bug 1799002. 2022-11-10 22:59:42 -05:00
Cathy Lu
100388cb7a Bug 1777506 - Provide a GeckoSession API to check if the session has any form data r=geckoview-reviewers,jonalmeida
Design Doc: https://docs.google.com/document/d/1rvxdfzBMu_I_qC6OY-9Rpex2kdWHGCefp1QIR2AYXl4/edit?usp=sharing

GeckoView provides an API containsFormData(), where the parent process queries the child process for any existing session form data using SessionStoreUtils and returns a GeckoResult<Boolean> whether or not there is form data.

Differential Revision: https://phabricator.services.mozilla.com/D161709
2022-11-10 16:23:17 +00:00
Makoto Kato
b330c6558e Bug 1799379 - Update bug components for GeckoView. r=geckoview-reviewers,calu
There is no Core: Widget - Android now, so we should update bug component of
widget/android. Also, I add GVE for GVE path.

Differential Revision: https://phabricator.services.mozilla.com/D161413
2022-11-08 01:07:43 +00:00
Emilio Cobos Álvarez
75f4e85d71 Bug 1799535 - Clean-up autoplay prefs. r=alwu,geckoview-reviewers,calu
Differential Revision: https://phabricator.services.mozilla.com/D161518
2022-11-07 23:13:44 +00:00
Mark Banner
18753bfe42 Bug 1798212 - Convert consumers of downloads code to ES modules. r=mak,geckoview-reviewers,extension-reviewers,settings-reviewers,credential-management-reviewers,sgalich,mconley,m_kato
Differential Revision: https://phabricator.services.mozilla.com/D161013
2022-11-07 17:56:10 +00:00
Nick Alexander
e5289052b2 Bug 1792258 - Post: Make it easier to test (Android) multi-locale packages. r=geckoview-reviewers,m_kato
This commit updates the outdated documentation for producing multi-locale
packages, and also arranges for Android multi-locale packages to produce a
GeckoViewExample binary that has `libs` and `assets/omni.ja`.  Together, these
greatly ease multi-locale testing.

Differential Revision: https://phabricator.services.mozilla.com/D160705
2022-11-03 21:36:26 +00:00
Nick Alexander
b5e9cea02a Bug 1792258 - Package mobile/android/aboutConfig.ftl. r=geckoview-reviewers,m_kato
This commit does two things.  First, it fixes a packaging error caused
by various `relativesrcdir` directives impacting the `**/*.ftl` block
by lifting that block earlier; second, it patches the target JAR in
later blocks.

Differential Revision: https://phabricator.services.mozilla.com/D160704
2022-11-03 21:36:25 +00:00
Arturo Mejia
74b761feb0 Bug 1798402 - Improve GeckoView Save to PDF error reporting r=ohall,jonalmeida
Differential Revision: https://phabricator.services.mozilla.com/D160854
2022-11-02 23:40:15 +00:00
Sandor Molnar
f1c485027f Backed out 2 changesets (bug 1798363) for causing android mochitest failures in dom/serviceworkers/test/test_https_origin_after_redirect_cached.html CLOSED TREE
Backed out changeset 2b6cf2df8e21 (bug 1798363)
Backed out changeset fe72217f6916 (bug 1798363)
2022-11-03 00:41:43 +02:00
Mugurell
ba8c53f59e Bug 1798363 - Have DFPI as the default cookie policy in GeckoView-Example. r=geckoview-reviewers,jonalmeida
Differential Revision: https://phabricator.services.mozilla.com/D160830
2022-11-02 20:53:04 +00:00
Mugurell
b6b08f7b66 Bug 1798363 - Have DFPI as the default cookie policy in GeckoView. r=geckoview-reviewers,jonalmeida
Differential Revision: https://phabricator.services.mozilla.com/D160829
2022-11-02 20:53:04 +00:00
Makoto Kato
1b99d3294e Bug 1797472 - Convert Messaging.jsm to ESM. r=geckoview-reviewers,owlish
Differential Revision: https://phabricator.services.mozilla.com/D160349
2022-11-02 14:31:59 +00:00
Arturo Mejia
3307fe95de Bug 1788720 - Expose private browsing flag in StorageController.getPermissions r=geckoview-reviewers,jonalmeida
Differential Revision: https://phabricator.services.mozilla.com/D160424
2022-11-02 13:20:13 +00:00
ohall-m
3b204056d6 Bug 1771343 - GeckoView Android API 33 (Android 13) r=geckoview-reviewers,jgraham,jnicol,nalexander,jonalmeida
Updating GeckoView from Android API level 31 to API 33 for target and compile.

Differential Revision: https://phabricator.services.mozilla.com/D159764
2022-11-02 10:53:33 +00:00
Cristian Tuns
4d37cf70f1 Backed out 19 changesets (bug 1541508) for causing xpcshell failures on test_notHeadlessByDefault.js CLOSED TREE
Backed out changeset 08476fa2bc27 (bug 1541508)
Backed out changeset 0bf7514845db (bug 1541508)
Backed out changeset aa612a5e9ef7 (bug 1541508)
Backed out changeset 6bb9360473f7 (bug 1541508)
Backed out changeset b3d8e92f50c2 (bug 1541508)
Backed out changeset fa40dded133e (bug 1541508)
Backed out changeset 2e7db4aa8d4f (bug 1541508)
Backed out changeset 6098e2eb62ea (bug 1541508)
Backed out changeset 2c599ee639c4 (bug 1541508)
Backed out changeset 7d44f6e2644c (bug 1541508)
Backed out changeset c1279c3d674c (bug 1541508)
Backed out changeset 8bd08a62a590 (bug 1541508)
Backed out changeset 740010cb005c (bug 1541508)
Backed out changeset 0bfc7dd85c62 (bug 1541508)
Backed out changeset c4374a351356 (bug 1541508)
Backed out changeset 44ccfeca7364 (bug 1541508)
Backed out changeset e944e706a523 (bug 1541508)
Backed out changeset 2c59d66f43e4 (bug 1541508)
Backed out changeset a1896eacb6f1 (bug 1541508)
2022-11-01 22:38:52 -04:00
Barret Rennie
c5f4e61691 Bug 1541508 - Use Services.env in mobile/ r=geckoview-reviewers,m_kato
Differential Revision: https://phabricator.services.mozilla.com/D160142
2022-11-02 02:08:56 +00:00
Cristian Tuns
47601caf13 Backed out changeset 6d8714cc305a (bug 1788720) for causing geckoview failures on clickNotificationParceled CLOSED TREE 2022-11-01 14:00:27 -04:00
Arturo Mejia
b2bb2aa95a Bug 1788720 - Expose private browsing flag in StorageController.getPermissions r=geckoview-reviewers,jonalmeida
Differential Revision: https://phabricator.services.mozilla.com/D160424
2022-11-01 16:49:12 +00:00
Oliver Dunk
b7782d615a Bug 1755763 - Update browserAction.openPopup API r=geckoview-reviewers,robwu,owlish
To align with other browsers, the user gesture requirement has
been removed and there is now an optional first argument which
can be used to provide a windowId.

Differential Revision: https://phabricator.services.mozilla.com/D139796
2022-10-31 15:22:41 +00:00
Mark Banner
a2123f2d55 Bug 1798058 - Convert consumers of toolkit/modules/sessionstore/ to ES modules. r=daleharvey,geckoview-reviewers,owlish
Differential Revision: https://phabricator.services.mozilla.com/D160682
2022-10-31 15:15:34 +00:00
Makoto Kato
164e8abdd6 Bug 1797670 - Fix broken CHANGELOG.md links by bug 1790724. r=geckoview-reviewers,owlish
Differential Revision: https://phabricator.services.mozilla.com/D160445
2022-10-31 01:00:16 +00:00
Cosmin Sabou
76db5a7d62 Backed out changeset c7074f4cf73c (bug 1788720) for causing geckoview failures on PermissionDelegateTest. CLOSED TREE 2022-10-28 22:03:56 +03:00
Arturo Mejia
fd35bab7a0 Bug 1788720 - Expose private browsing flag in StorageController.getPermissions r=geckoview-reviewers,jonalmeida
Differential Revision: https://phabricator.services.mozilla.com/D160424
2022-10-28 14:00:45 +00:00
Arturo Mejia
d47465946b Bug 1795954 - Implement the Initial Onboarding Feature in GeckoView Example app r=geckoview-reviewers,ohall,amejiamarmol
Differential Revision: https://phabricator.services.mozilla.com/D159632
2022-10-28 13:48:00 +00:00
William Durand
47ec599a1c Bug 1797050 - Part 5 - Use browser_specific_settings instead of applications in android test extensions. r=owlish
We want to encourage extension developers to use `browser_specific_settings` instead of `applications`,
which will be unsupported in Manifest Version 3+. This patch makes sure test extensions won't cause any
issues in the future.

Differential Revision: https://phabricator.services.mozilla.com/D160541
2022-10-28 09:53:10 +00:00
William Durand
64e8f3272d Bug 1797050 - Part 3 - Use browser_specific_settings instead of applications in existing WebExt tests. r=rpl,geckoview-reviewers,extension-reviewers,owlish
We want to encourage extension developers to use `browser_specific_settings` instead of `applications`,
which will be unsupported in Manifest Version 3+. This patch prepares the introduction of a new warning
(that is usually converted into an error in the test environment).

Differential Revision: https://phabricator.services.mozilla.com/D160059
2022-10-28 09:53:09 +00:00
Marian-Vasile Laza
a0fe811cf3 Backed out changeset 9cda62240050 (bug 1788720) for causing linting failures. CLOSED TREE 2022-10-27 01:49:08 +03:00
Arturo Mejia
bd826e4068 Bug 1788720 - Expose private browsing flag in StorageController.getPermissions r=geckoview-reviewers,jonalmeida
Differential Revision: https://phabricator.services.mozilla.com/D160424
2022-10-26 21:56:06 +00:00
Mark Banner
9613c19f16 Bug 1795880 - Add an ESLint rule to enforce using static imports where possible. r=arai,geckoview-reviewers,m_kato
Differential Revision: https://phabricator.services.mozilla.com/D160131
2022-10-26 09:37:46 +00:00
Mark Banner
7f3cba09e8 Bug 1795322 - Update toolkit modules references in remaining places. r=mossop,zeid,geckoview-reviewers,calu
Differential Revision: https://phabricator.services.mozilla.com/D160036
2022-10-26 08:06:37 +00:00
Csoregi Natalia
5f9da7b301 Backed out 12 changesets (bug 1795322) for causing multiple failures e.g. test_deletion_request_ping.py. CLOSED TREE
Backed out changeset aba25cbcda51 (bug 1795322)
Backed out changeset a4a35005ada9 (bug 1795322)
Backed out changeset 8e8d790eb0f4 (bug 1795322)
Backed out changeset db8903454bd3 (bug 1795322)
Backed out changeset 60cc71c61cad (bug 1795322)
Backed out changeset bc6a674994ad (bug 1795322)
Backed out changeset 6ac8a611f8c7 (bug 1795322)
Backed out changeset 9fb873ecfb31 (bug 1795322)
Backed out changeset c8a7a40c2a2f (bug 1795322)
Backed out changeset f2c118b6c6ce (bug 1795322)
Backed out changeset 38df43b4a70f (bug 1795322)
Backed out changeset 89aea8373411 (bug 1795322)
2022-10-25 23:47:58 +03:00
Mark Banner
fc7befc08d Bug 1795322 - Update toolkit modules references in remaining places. r=mossop,zeid,geckoview-reviewers,calu
Differential Revision: https://phabricator.services.mozilla.com/D160036
2022-10-25 19:49:28 +00:00
Stanca Serban
f07c2c9783 Backed out changeset adb4eb909fc2 (bug 1755763) for causing mochitests failures on browser_ext_browserAction_click_types.js. CLOSED TREE 2022-10-25 15:53:19 +03:00
Oliver Dunk
5bf4e95eac Bug 1755763 - Update browserAction.openPopup API r=geckoview-reviewers,robwu,owlish
To align with other browsers, the user gesture requirement has
been removed and there is now an optional first argument which
can be used to provide a windowId.

Differential Revision: https://phabricator.services.mozilla.com/D139796
2022-10-25 11:49:42 +00:00
Arturo Mejia
c57bd72f23 Bug 1790724 - Add API to expose Cookie Banner Handling Mode setting r=geckoview-reviewers,jonalmeida,ohall
Differential Revision: https://phabricator.services.mozilla.com/D159774
2022-10-24 18:12:06 +00:00
Csoregi Natalia
b9f1f061b4 Bug 1754570 - Remove test capturePixelsAfterGpuProcessCrash. r=intermittent-reviewers,geckoview-reviewers,MasterWayZ,owlish,jnicol
Differential Revision: https://phabricator.services.mozilla.com/D159274
2022-10-20 18:26:48 +00:00