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

32151 Коммитов

Автор SHA1 Сообщение Дата
Cathy Lu 715feb96f9 Bug 1866112 - Expose shopping status progress field in GV r=geckoview-reviewers,amejiamarmol,owlish
Differential Revision: https://phabricator.services.mozilla.com/D194819
2023-11-29 03:55:52 +00:00
Norisz Fay a12ebbd1a2 Backed out changeset 0179fa4a38ea (bug 1864652) for causing globalPrivacyControl related failures CLOSED TREE 2023-11-29 04:38:28 +02:00
mcarare 5ae1fc18fa Bug 1864652 - Expose settings for Global Privacy Control. r=geckoview-reviewers,ohall,amejiamarmol
Differential Revision: https://phabricator.services.mozilla.com/D194734
2023-11-28 22:47:34 +00:00
Norisz Fay be3e190621 Backed out changeset f56003f45cc6 (bug 1830909) for causing bc failures on browser_selectpopup_colors.js CLOSED TREE 2023-11-28 22:00:22 +02:00
CanadaHonk a1eb267c1e Bug 1830909 - Implement <hr> in <select> r=hsivonen,emilio,geckoview-reviewers,desktop-theme-reviewers,Jamie,owlish
Updated HTML parser to allow <hr> in <select>.

Updated internal toolkit UI for <select> dropdown to create
menuseperators for hrs.

Updated WPT expectations:
 - HTML5Lib WebKit parsing for it now passes 100%

Also includes Android support, but Fenix does not support separators
in the menus used (single/multiple) yet so they are not rendered.

Differential Revision: https://phabricator.services.mozilla.com/D189065
2023-11-28 16:01:36 +00:00
Edgar Chen fd9072b080 Bug 1866994 - Handle clipboard contextmenu in parent process; r=geckoview-reviewers,extension-reviewers,webidl,win-reviewers,saschanaz,robwu,nika,Gijs,m_kato,emilio
This patch makes the clipboard context menu trigger from the parent process rather
than the content process. A new method, `confirmUserPaste`, is added on `nsIPromptService`
to trigger frontend UI.

The behavior of handling multiple requests should remain unchanged, new tests are
added to ensure that.

Differential Revision: https://phabricator.services.mozilla.com/D190405
2023-11-28 15:38:01 +00:00
Greg Tatum 24775179e6 Bug 1863335 - Make the simd detection synchronous; r=nordzilla,geckoview-reviewers,owlish,translations-reviewers
Differential Revision: https://phabricator.services.mozilla.com/D192701
2023-11-27 18:02:17 +00:00
Cathy Lu 42dbc59908 Bug 1858945 - Expose API to report when shopping product is back in stock for GeckoView r=owlish,geckoview-reviewers,ohall
Differential Revision: https://phabricator.services.mozilla.com/D194245
2023-11-27 17:41:45 +00:00
Olivia Hall 5d8242406a Bug 1846074 - Remove deprecated `onGetNimbusFeature` in 122 r=geckoview-reviewers,owlish
Removed `onGetNimbusFeature` from the session. Please use
`ExperimentDelegate.onGetExperimentFeature` for the same functionality.

Differential Revision: https://phabricator.services.mozilla.com/D194424
2023-11-27 14:49:05 +00:00
Sylvestre Ledru 82bc783c85 no bug - docs: remove references to non existing docs r=geckoview-reviewers,owlish
Depends on D194633

Differential Revision: https://phabricator.services.mozilla.com/D194634
2023-11-24 20:25:56 +00:00
Joel Maher 9d203b1d46 Bug 1859893 - batch 15 - migrate xpcshell.ini -> .toml. r=aryx,geckoview-reviewers,extension-reviewers,valentin,cookie-reviewers,pbz,owlish,robwu
Differential Revision: https://phabricator.services.mozilla.com/D194384
2023-11-24 14:41:35 +00:00
Jonathan Watt 90bd3e3cec Bug 1865995 p5. Rename GetContentViewerSize to match nsIDocumentViewer's new name. r=emilio,geckoview-reviewers,owlish
Includes the methods on:
 - nsIDOMWindowUtils
 - nsLayoutUtils
 - MVMContext

Differential Revision: https://phabricator.services.mozilla.com/D194339
2023-11-23 21:35:20 +00:00
Alex Jakobi 91a6e5b8ff Bug 1560024 - Use sticky axis locking on mobile. r=botond,geckoview-reviewers,owlish
Differential Revision: https://phabricator.services.mozilla.com/D194430
2023-11-23 18:40:55 +00:00
Cathy Lu 65ceaadd8e Bug 1845760 - Mock Shopping analysis and recommendations for automated testing r=geckoview-reviewers,owlish
Differential Revision: https://phabricator.services.mozilla.com/D193961
2023-11-20 20:46:16 +00:00
Harrison Oglesby 3bfe7cca3a Bug 1856634 - Add email tracking blocker to GeckoView. r=geckoview-reviewers,owlish,boek
Added Email Tracker Blocking to `Strict` blocking mode which will be consumed by Fenix in their new Total Private Browsing Mode.  Added `Pref`s for `privacy.trackingprotection.emailtracking.enabled` and `urlclassifier.features.emailtracking.blocklistTables`.
Added test in `ContentBlockingControllerTest` for testing "privacy.trackingprotection.emailtracking.enabled" setting in `ContentBlocking`.
Also added a generic method for anti-tracking to list pref in ContentBlocking.java.

Differential Revision: https://phabricator.services.mozilla.com/D192379
2023-11-16 22:50:56 +00:00
Nicolas Guichard 57827d524c Bug 1490144 - Add Java and Kotlin code indexing using semanticdb compiler plugins r=nalexander,asuth,emilio,geckoview-reviewers,owlish
When the Mozsearch plugin is enabled and when we compile the android
target, this uses the semanticdb-javac and semanticdb-kotlinc compiler
plugins to generate semanticdb files during the compilation process.

In order to index all files, all files need to be compiled at least
once, so this adds a `mach android compile-all` command to ensure that,
otherwise some examples and AndroidTests were not necessarily compiled.
Note that the AndroidTests do not have a release configuration so will
not be indexed when we build in release mode. The existing searchfox
mozconfigs are all set to debug so this should not be an issue.

To build the android-gradle-dependencies toolchain, all dependencies
must be accessible from the root build.gradle, so this also adds a flag
--download-all-gradle-dependencies to ignore conditional dependency
uses in gradle code.

Differential Revision: https://phabricator.services.mozilla.com/D192925
2023-11-16 16:27:24 +00:00
Cathy Lu e1c9b7aee6 Bug 1845760 - Update onProductUrl automated testing r=geckoview-reviewers,owlish
Differential Revision: https://phabricator.services.mozilla.com/D192270
2023-11-15 21:06:45 +00:00
Olivia Hall efb4b2e02e Bug 1854248 - GeckoView Translation Preferences r=geckoview-reviewers,owlish,amejiamarmol,translations-reviewers
This bug adds a GV API to control setting translation preferences including:
* Get/Set Language Preferences (Runtime)
* Get/Set Site Preferences (Session)
* Get/Set Popup Offer Preferences (Runtime)

Setting the language preference was streamlined for the API to correspond to always, offer, and never.

Differential Revision: https://phabricator.services.mozilla.com/D193252
2023-11-15 14:24:59 +00:00
Makoto Kato 56ec5a298a Bug 1855530 - Use origin actor to send DOMFullscreen message. r=geckoview-reviewers,owlish
Actually, we use `GeckoViewContent.sendToAllChildren` to send full screen
message to child.

According to bug 1505916, we should use request origin actor instead.

Differential Revision: https://phabricator.services.mozilla.com/D193610
2023-11-15 01:54:23 +00:00
Cathy Lu c44d9f70e1 Bug 1859967 - Expose notEnoughReviews field for Shopping Review Analysis r=geckoview-reviewers,owlish,ohall
Differential Revision: https://phabricator.services.mozilla.com/D191668
2023-11-14 21:07:15 +00:00
owlishDeveloper b48d3f61f5 Bug 1673952 - Remove navigation from crashContentMultipleSessions test r=geckoview-reviewers,boek
In Fission, when this particular navigation happens, we switch process. It's an expected Fission behavior. However, because we switch process, we can no longer test if multiple sessions sharing the same process receive the onCrash or onKill calls. Originally, the navigation was added to the test to get rid of a race condition, when the first tab would crash while the second was still initializing. That is no longer a danger for this test as it has evolved and now we have lots of things happening between initializing the second session and crashing the first one. So to fix the test, I am removing the navigation to make sure the tab stays in the same content process.

Differential Revision: https://phabricator.services.mozilla.com/D193578
2023-11-14 18:31:12 +00:00
Luca Greco 21e012f7e5 Bug 1859585 - Fix build errors on building GeckoView messaging_example and port_message_example. r=willdurand,owlish,amejiamarmol
Differential Revision: https://phabricator.services.mozilla.com/D193326
2023-11-14 16:16:30 +00:00
Luca Greco 7614729e16 Bug 1859585 - Update GeckoView changelog and docs to mention changes to expectated behaviors on calls to WebExtensionController.install. r=willdurand,owlish,amejiamarmol
Depends on D193085

Differential Revision: https://phabricator.services.mozilla.com/D193325
2023-11-14 16:16:30 +00:00
Calixte a9aa9a186f Bug 1815739 - Add a protocol handler for content uris in GV r=geckoview-reviewers,owlish,tthibaud,necko-reviewers,kershaw
On Android, contents are shared in using uris with a content scheme, hence this patch
adds a new protocol handler for 'content://', a new type of input stream in order to read
them and a new type of channel.

Differential Revision: https://phabricator.services.mozilla.com/D174782
2023-11-14 14:48:03 +00:00
Jamie Nicol db81b78ea6 Bug 1864153 - Add some more information to exception thrown in GeckoServiceChildProcess.onCreate. r=geckoview-reviewers,owlish
It's not entire obvious in bug 1820027 which process is actually
crashing. There is a discrepancy between the "Process Type" and
"Android_ProcessName" fields in the crash reports. This patch adds the
service class name to the exception to make it more obvious, as well
as a bit more information about the previous state of the process.

Differential Revision: https://phabricator.services.mozilla.com/D193294
2023-11-14 08:16:53 +00:00
Cathy Lu 77454b62a0 Bug 1860897 - Change shopping attribution source event and use new static sendAttributionEvent r=geckoview-reviewers,owlish
Differential Revision: https://phabricator.services.mozilla.com/D193459
2023-11-13 20:39:49 +00:00
owlishDeveloper 48833f3a86 Bug 1673956 - Enable parentCrash test in geckoview r=geckoview-reviewers,amejiamarmol
Differential Revision: https://phabricator.services.mozilla.com/D193457
2023-11-13 19:51:29 +00:00
Norisz Fay d1dd23ca43 Backed out changeset a9c17170dc67 (bug 1837601) for causing android related bustages CLOSED TREE 2023-11-13 21:12:22 +02:00
Roger Yang 993fb86752 Bug 1837601 - Indicate if location change was requested by user. r=owlish,amejiamarmol
Differential Revision: https://phabricator.services.mozilla.com/D193211
2023-11-13 18:28:56 +00:00
Butkovits Atila d657654430 Backed out changeset d9e5f946ca16 (bug 1673956) for causing lint failures at ParentCrashTest.kt. CLOSED TREE 2023-11-13 20:28:03 +02:00
owlishDeveloper df75c3f1b8 Bug 1673956 - Enable parentCrash test in geckoview r=geckoview-reviewers,amejiamarmol
Differential Revision: https://phabricator.services.mozilla.com/D193457
2023-11-13 18:11:17 +00:00
Stanca Serban c3f330e9fb Backed out changeset 22970015ff0c (bug 1815739) for saveAContentPdfDocument related junit failures. CLOSED TREE 2023-11-13 19:51:04 +02:00
Calixte 1add9d4c13 Bug 1815739 - Add a protocol handler for content uris in GV r=geckoview-reviewers,owlish,tthibaud,necko-reviewers,kershaw
On Android, contents are shared in using uris with a content scheme, hence this patch
adds a new protocol handler for 'content://', a new type of input stream in order to read
them and a new type of channel.

Differential Revision: https://phabricator.services.mozilla.com/D174782
2023-11-13 16:27:20 +00:00
Luca Greco e50cebc869 Bug 1859585 - Add a new onReady delegated method to the GeckoView AddonManagerDelegate. r=amejiamarmol,willdurand,owlish
This patch includes the following changes:

- A new AddonManagerDelegate.onReady delegated method: this new delegated method is expected to be called when an extension
  has been started.
  On the firefox-android's android-components side (in particular the components providing the building blocks used by the
  Fenix AddonManager UI) are meant to be using this new delegated method to make sure that the resolved optionsPageUrl will
  be stored in the installedExtension map kept on the android-components side (by the WebExtensionSupport class to be precise),
  as a side-effect of that the settings button in the addon detail view is expected to become visible after having
  installed a new extension from AMO (as it was already the case for addons installed from the recommended set directly from
  the Fenix Addon Manager).

- Removes the implicit await on the extension to be ready from the underlying logic handling on the Gecko side the calls to
  the WebExtensionController.install method (which before these changes was the hack meant to make sure the settings button
  would be visible after installing an addon from the Fenix AddonManager UI).

- Replaces the previous test case asserting that the optionsPageUrl was going to be available right after having installed
  the extension (which was working only thanks to the implicit await described right above) with a test case covering the
  new expected behavior.

NOTE: To fully fix the issue tracked by this bugzilla ticket, this change has to be complemented with some more changes on the
firefox-android github repo side, in particular the once included in this draft patch:
- 630e305adb/firefox-android--01-androidcomponents-changes.patch

Differential Revision: https://phabricator.services.mozilla.com/D193085
2023-11-10 16:19:41 +00:00
Tim Huang fbe26a81ec Bug 1854940 - Part 2: Add a CookieBannerCleaner to ClearDataService. r=pbz,geckoview-reviewers,anti-tracking-reviewers,amejiamarmol
The patch add a CookieBannerExceptionCleaner and a
CookieBannerExecutedRecordCleaner to ClearDataService. The cleaners
clear the cookie banner handling data. We will also clear the executed
record when cleaning cookies or dom storage so that the cookie banner
handling will run again after cleaning.

Differential Revision: https://phabricator.services.mozilla.com/D190764
2023-11-09 08:29:16 +00:00
Makoto Kato 3a390d5ba7 Bug 1673954 - Part 2. Use HTTPS to avoid https-first redirection. r=geckoview-reviewers,calu
When landing previous fix, redirectLoadIframe's failure rate is
incremented. I think this is same as bug 1735786.

Differential Revision: https://phabricator.services.mozilla.com/D193035
2023-11-09 08:15:07 +00:00
Makoto Kato 39371c8ecf Bug 1673954 - Part 1. onLoadError shouldn't return null if using test-support extension APIs. r=geckoview-reviewers,owlish
GeckoView can hook error page by `NavigationDelegate.onLoadError`. But
when this delegation returns `null`, test-support Web extensions won't
be loaded correctly.

A content script of Web extensions is loaded when first document element
is inserted. But when `onLoadError` returns null, there is no document
element. So content script won't be loaded on this situation.

If not fission, content script is already loaded. But if fission, content
script may not be loaded if switching process by loading new URL.

So we should return non-null string if we use `evaluateJS`.

Also, `document.reloadWithHttpsOnlyException` may causes that the document
will be unloaded immediately before native message isn't handled. So I
add a workaround to retry it.

Differential Revision: https://phabricator.services.mozilla.com/D189217
2023-11-09 08:15:07 +00:00
Makoto Kato cafeef4d11 Bug 1863694 - Part 1. Run ./mach lint -l file-whitespace --fix. r=geckoview-reviewers,sylvestre,calu
Differential Revision: https://phabricator.services.mozilla.com/D193044
2023-11-09 05:44:35 +00:00
Stanca Serban 582e249d86 Backed out 4 changesets (bug 1854940) for causing multiple failures.
Backed out changeset 2d264402493e (bug 1854940)
Backed out changeset 144b76e6db22 (bug 1854940)
Backed out changeset 5a9e45504f32 (bug 1854940)
Backed out changeset c8c7ec382574 (bug 1854940)
2023-11-08 14:20:06 +02:00
Tim Huang eb8001816d Bug 1854940 - Part 2: Add a CookieBannerCleaner to ClearDataService. r=pbz,geckoview-reviewers,anti-tracking-reviewers,amejiamarmol
The patch add a CookieBannerExceptionCleaner and a
CookieBannerExecutedRecordCleaner to ClearDataService. The cleaners
clear the cookie banner handling data. We will also clear the executed
record when cleaning cookies or dom storage so that the cookie banner
handling will run again after cleaning.

Differential Revision: https://phabricator.services.mozilla.com/D190764
2023-11-08 11:04:46 +00:00
Sandor Molnar ae081ec358 Backed out changeset 36cd4787833a (bug 1724089) for causing xpc failures on docshell/test/unit/test_subframe_stop_after_parent_error.js CLOSED TREE 2023-11-08 03:04:53 +02:00
Gregory Pappas 2eec0c40d8 Bug 1724089 - Remove browser.tabs.remote.autostart pref r=webdriver-reviewers,perftest-reviewers,geckoview-reviewers,jgraham,extension-reviewers,mossop,sparky,robwu,owlish
Differential Revision: https://phabricator.services.mozilla.com/D192136
2023-11-07 21:44:01 +00:00
Botond Ballo 26c27b7632 Bug 1849407 - Treat a touch-cancel before the first touch-move as a preventDefault(). r=hiro,geckoview-reviewers,owlish
Depends on D186063

Differential Revision: https://phabricator.services.mozilla.com/D186064
2023-11-07 20:15:36 +00:00
owlishDeveloper 6605daacde Bug 1849060 - Use non-html links for error pages in tests r=geckoview-reviewers,zmckenney
Differential Revision: https://phabricator.services.mozilla.com/D192520
2023-11-07 20:12:27 +00:00
Sergey Galich 1b10d39234 Bug 1862410 - Removing unused LoginReputation service and updating link to Chromium's safe browsing protobuf r=dimi,webdriver-reviewers,perftest-reviewers,devtools-reviewers,geckoview-reviewers,jonalmeida,owlish
Differential Revision: https://phabricator.services.mozilla.com/D192464
2023-11-06 19:13:09 +00:00
Olivia Hall 1886b3e702 Bug 1853469 - GeckoView Mock Remote Settings for Automated Testing r=geckoview-reviewers,owlish,calu
This bug mocks the required information that is not available in
automation due to remote settings not being available.

This patch includes a way to mock a translations offer or the conditions
of an expected translation. Additionally, it will send synthetic data
on some endpoints when `browser.translations.geckoview.enableAllTestMocks` is
set and in automation.

Differential Revision: https://phabricator.services.mozilla.com/D192397
2023-11-06 15:42:05 +00:00
Logan Rosen 9c63e4079d Bug 1719925 - fix inverted boolean in GeckoSystemStateListener.shutdown() r=geckoview-reviewers,m_kato
Differential Revision: https://phabricator.services.mozilla.com/D191149
2023-11-06 10:17:46 +00:00
Logan Rosen 261d0d70d9 Bug 1510966 - address 'Unnecessary modifier' warnings r=geckoview-reviewers,calu
Differential Revision: https://phabricator.services.mozilla.com/D191007
2023-11-06 09:52:47 +00:00
Greg Tatum 6f0792f9f3 Bug 1815339 - Flip the assertion for the GeckoView translation test; r=geckoview-reviewers,ohall
Differential Revision: https://phabricator.services.mozilla.com/D192594
2023-11-05 17:08:56 +00:00
Natalia Csoregi dded349c76 Backed out 16 changesets (bug 1815339) for causing failures due to inaccessible property in translationsPanel.js CLOSED TREE
Backed out changeset aa6076096d4f (bug 1815339)
Backed out changeset 2b43242b9ac6 (bug 1815339)
Backed out changeset c6b8752fc6c1 (bug 1815339)
Backed out changeset d5b3306f5004 (bug 1815339)
Backed out changeset 32f9bd1e59af (bug 1815339)
Backed out changeset 7f25bbb7965d (bug 1815339)
Backed out changeset cc8bdfa7de33 (bug 1815339)
Backed out changeset 387c7d2a6d34 (bug 1815339)
Backed out changeset 5b7fe4f10722 (bug 1815339)
Backed out changeset 8647f0b94a36 (bug 1815339)
Backed out changeset 3dd6516f8ab0 (bug 1815339)
Backed out changeset a1e7b04a1698 (bug 1815339)
Backed out changeset dfac8173ef17 (bug 1815339)
Backed out changeset 7f71156528dd (bug 1815339)
Backed out changeset ae5c1a15133d (bug 1815339)
Backed out changeset bbd08ae456bc (bug 1815339)
2023-11-05 01:58:14 +02:00