Commit Graph

64 Commits

Author SHA1 Message Date
Mike Hommey
1b562adf6d Bug 1922437 - Rename nsIAndroid* classes to nsIGeckoView*. r=geckoview-reviewers,nika,frontend-codestyle-reviewers,owlish
Differential Revision: https://phabricator.services.mozilla.com/D224429
2024-10-03 22:21:51 +00:00
William Durand
dd9a8b5d90 Bug 1917852 - Add preliminary support for add-on soft-blocking in GeckoView. r=owlish,geckoview-reviewers,amejiamarmol
Differential Revision: https://phabricator.services.mozilla.com/D223701
2024-10-03 09:32:05 +00:00
Arturo Mejia
5a52a5e04e Bug 1914244 - Move the allow in private browsing checkbox to the web extension permissions prompt. r=willdurand,zmckenney,geckoview-reviewers,owlish,android-reviewers
Differential Revision: https://phabricator.services.mozilla.com/D219839
2024-10-03 02:40:56 +00:00
Sandor Molnar
ecfcb1bdd0 Backed out changeset 6558b07ffff2 (bug 1914244) for causing toolchain failures CLOSED TREE 2024-10-03 01:53:23 +03:00
Arturo Mejia
b210c87c25 Bug 1914244 - Move the allow in private browsing checkbox to the web extension permissions prompt. r=willdurand,zmckenney,geckoview-reviewers,owlish,android-reviewers
Differential Revision: https://phabricator.services.mozilla.com/D219839
2024-10-02 20:32:43 +00:00
Stanca Serban
eba68bcef1 Backed out changeset 8e4f5f72b094 (bug 1914244) for causing toolchains bustages in WebExtensionPromptFeature.kt. CLOSED TREE 2024-10-02 18:32:11 +03:00
Arturo Mejia
91ec927c57 Bug 1914244 - Move the allow in private browsing checkbox to the web extension permissions prompt. r=willdurand,zmckenney,geckoview-reviewers,owlish,android-reviewers
Differential Revision: https://phabricator.services.mozilla.com/D219839
2024-10-02 13:14:33 +00:00
Cathy Lu
1417af1485 Bug 1917273 - Add GeckoSession API to get web compat info from toolkit r=geckoview-reviewers,tthibaud,ohall
Differential Revision: https://phabricator.services.mozilla.com/D222683
2024-10-01 14:01:58 +00:00
Paul Zuehlcke
0a22c3156a Bug 1921207 - PushNotificationsCleaner support for OriginAttributesPattern. r=anti-tracking-reviewers,geckoview-reviewers,saschanaz,owlish,timhuang
Differential Revision: https://phabricator.services.mozilla.com/D221336
2024-09-30 12:33:06 +00:00
Paul Zuehlcke
f4f2d3bae7 Bug 1915419 - Extend deleteDataFromSite to support OriginAttributesPattern filtering. r=anti-tracking-reviewers,timhuang
Differential Revision: https://phabricator.services.mozilla.com/D220606
2024-09-24 09:17:56 +00:00
Paul Zuehlcke
599addcc5d Bug 1915419 - Refactor deleteDataFromBaseDomain to deleteDataFromSite. r=anti-tracking-reviewers,geckoview-reviewers,owlish,timhuang
- Renames deleteDataFromBaseDomain to deleteDataFromSite.
 - Cleans up terminology for (schemeless site) to better align with standards.
 - deleteDataFromSite requires a schemeless site to be passed in. We will no longer
   implicitly convert the host to a site.
 - Removes the host fallback for SiteDataManager and ForgetAboutSite. The new schemeless site
   helper Services.eTLD.getSchemelessSiteFromHost accounts for this.

Differential Revision: https://phabricator.services.mozilla.com/D220605
2024-09-24 09:17:55 +00:00
Norisz Fay
ed87104874 Backed out 6 changesets (bug 1915419) for causing xpcshell failures on test_bounce_tracking_protection.js
Backed out changeset 65896495cce9 (bug 1915419)
Backed out changeset 042d3bc01bdb (bug 1915419)
Backed out changeset 8185b8989a78 (bug 1915419)
Backed out changeset ec3186533ad3 (bug 1915419)
Backed out changeset 0507ac7bb539 (bug 1915419)
Backed out changeset dfde58cea10c (bug 1915419)
2024-09-20 20:50:27 +03:00
Paul Zuehlcke
ad88d3127b Bug 1915419 - Extend deleteDataFromSite to support OriginAttributesPattern filtering. r=anti-tracking-reviewers,timhuang
Differential Revision: https://phabricator.services.mozilla.com/D220606
2024-09-20 15:46:36 +00:00
Paul Zuehlcke
1b68b5cb25 Bug 1915419 - Refactor deleteDataFromBaseDomain to deleteDataFromSite. r=anti-tracking-reviewers,geckoview-reviewers,owlish,timhuang
- Renames deleteDataFromBaseDomain to deleteDataFromSite.
 - Cleans up terminology for (schemeless site) to better align with standards.
 - deleteDataFromSite requires a schemeless site to be passed in. We will no longer
   implicitly convert the host to a site.
 - Removes the host fallback for SiteDataManager and ForgetAboutSite. The new schemeless site
   helper Services.eTLD.getSchemelessSiteFromHost accounts for this.

Differential Revision: https://phabricator.services.mozilla.com/D220605
2024-09-20 15:46:35 +00:00
Butkovits Atila
d779b4bd81 Backed out 12 changesets (bug 1915419) for causing failures at test_bouncetracking_purge.js. CLOSED TREE
Backed out changeset e5c32a502e0f (bug 1915419)
Backed out changeset 8cbcbb25fc99 (bug 1915419)
Backed out changeset 947379a2f167 (bug 1915419)
Backed out changeset 4cfe3a954ade (bug 1915419)
Backed out changeset 94fba1a2786b (bug 1915419)
Backed out changeset 477b4f7c2760 (bug 1915419)
Backed out changeset ed6c8d9d39d4 (bug 1915419)
Backed out changeset e534c390101c (bug 1915419)
Backed out changeset bc3fe74a8b03 (bug 1915419)
Backed out changeset afefdce605f9 (bug 1915419)
Backed out changeset e58887b90d39 (bug 1915419)
Backed out changeset 114298b7b855 (bug 1915419)
2024-09-18 17:49:45 +03:00
Paul Zuehlcke
295ae95b7c Bug 1915419 - Extend deleteDataFromSite to support OriginAttributesPattern filtering. r=anti-tracking-reviewers,timhuang
Differential Revision: https://phabricator.services.mozilla.com/D220606
2024-09-18 12:50:37 +00:00
Paul Zuehlcke
50221d0ada Bug 1915419 - Refactor deleteDataFromBaseDomain to deleteDataFromSite. r=anti-tracking-reviewers,geckoview-reviewers,owlish,timhuang
- Renames deleteDataFromBaseDomain to deleteDataFromSite.
 - Cleans up terminology for (schemeless site) to better align with standards.
 - deleteDataFromSite requires a schemeless site to be passed in. We will no longer
   implicitly convert the host to a site.
 - Removes the host fallback for SiteDataManager and ForgetAboutSite. The new schemeless site
   helper Services.eTLD.getSchemelessSiteFromHost accounts for this.

Differential Revision: https://phabricator.services.mozilla.com/D220605
2024-09-18 12:50:36 +00:00
Norisz Fay
d2360aaab4 Backed out 12 changesets (bug 1915419) for causing clearDataFromBaseDomain related gv-junit failures CLOSED TREE
Backed out changeset 6baf34e653ef (bug 1915419)
Backed out changeset 3015863afd5d (bug 1915419)
Backed out changeset 90558f317a75 (bug 1915419)
Backed out changeset 5f07cb9268dd (bug 1915419)
Backed out changeset aedba16d4af7 (bug 1915419)
Backed out changeset d9a2d5c2ba53 (bug 1915419)
Backed out changeset 4a250c451004 (bug 1915419)
Backed out changeset c6da2e632da6 (bug 1915419)
Backed out changeset 9256540ed21a (bug 1915419)
Backed out changeset 7621d766d6a4 (bug 1915419)
Backed out changeset 16d6589ba330 (bug 1915419)
Backed out changeset b3eebd764439 (bug 1915419)
2024-09-16 18:29:55 +03:00
Emilio Cobos Álvarez
5e05eb6892 Bug 1918659 - Remove nsIClearDataService.CLEAR_SESSION_HISTORY. r=smaug,pbz,sessionstore-reviewers,sfoster
Other than in one test, we don't use it separate from CLEAR_HISTORY.

They are two different bits because in the past one bit could only have
one cleaner associated to it, but that is no longer an issue.

Differential Revision: https://phabricator.services.mozilla.com/D222107
2024-09-16 14:12:21 +00:00
Paul Zuehlcke
b5ef9be728 Bug 1915419 - Refactor deleteDataFromBaseDomain to deleteDataFromSite. r=anti-tracking-reviewers,geckoview-reviewers,owlish,timhuang
- Renames deleteDataFromBaseDomain to deleteDataFromSite.
 - Cleans up terminology for (schemeless site) to better align with standards.
 - deleteDataFromSite requires a schemeless site to be passed in. We will no longer
   implicitly convert the host to a site.
 - Removes the host fallback for SiteDataManager and ForgetAboutSite. The new schemeless site
   helper Services.eTLD.getSchemelessSiteFromHost accounts for this.

Differential Revision: https://phabricator.services.mozilla.com/D220605
2024-09-16 13:25:27 +00:00
isaacylee
cfa004f3c1 Bug 1558149 - Use 'loadFlags' instead of 'flags' for flags eventually passed to 'loadURI' or 'fixupAndLoadURIString' r=Gijs,geckoview-reviewers,tabbrowser-reviewers,dao,owlish
Differential Revision: https://phabricator.services.mozilla.com/D216324
2024-08-31 22:00:59 +00:00
Adam Vandolder
ac5cc9867a Bug 1734181 - Part 4: Add tests for the backbutton intervention behaviour. r=jjaschke,peterv,dom-core,geckoview-reviewers,extension-reviewers,robwu,owlish
Differential Revision: https://phabricator.services.mozilla.com/D216828
2024-08-24 19:43:32 +00:00
Gijs Kruitbosch
3b619083de Bug 1822975 - clean up places that manually enable broader async stacks which is now the default in tests, r=devtools-reviewers,firefox-desktop-core-reviewers ,geckoview-reviewers,mconley,ohall
Differential Revision: https://phabricator.services.mozilla.com/D215204
2024-08-22 14:48:07 +00:00
Rob Wu
0033303e1f Bug 1903780 - Support directory names again in downloads.download r=geckoview-reviewers,NeilDeakin,m_kato
Differential Revision: https://phabricator.services.mozilla.com/D218719
2024-08-20 18:53:21 +00:00
Tomislav Jovanovic
a3b99394bc Bug 1911476 - Fix nsIScriptError initialization r=geckoview-reviewers,emilio,m_kato
This was regressed/missed in bug 1910698, cought by ts check in
extensions code, and I also fixed a couple other places.

Differential Revision: https://phabricator.services.mozilla.com/D218504
2024-08-07 02:01:58 +00:00
Narcis Beleuzu
9993b702de Backed out 3 changesets (bug 1911476) for Doc failure on ExtensionContent.sys . CLOSED TREE
Backed out changeset 7b9ecfe3dbd7 (bug 1911476)
Backed out changeset 572021f43119 (bug 1911476)
Backed out changeset 902189c3c03b (bug 1911476)
2024-08-07 01:12:26 +03:00
Tomislav Jovanovic
f6f2b6d475 Bug 1911476 - Fix nsIScriptError initialization r=geckoview-reviewers,emilio,m_kato
This was regressed/missed in bug 1910698, cought by ts check in
extensions code, and I also fixed a couple other places.

Differential Revision: https://phabricator.services.mozilla.com/D218504
2024-08-06 18:42:18 +00:00
Sandor Molnar
e70e53269d Backed out 2 changesets (bug 1911476) for causing lint failures. CLOSED TREE
Backed out changeset eee5138f20ee (bug 1911476)
Backed out changeset 3edca655aeef (bug 1911476)
2024-08-06 19:06:47 +03:00
Tomislav Jovanovic
6962e95844 Bug 1911476 - Fix nsIScriptError initialization r=geckoview-reviewers,emilio,m_kato
This was regressed/missed in bug 1910698, cought by ts check in
extensions code, and I also fixed a couple other places.

Depends on D218503

Differential Revision: https://phabricator.services.mozilla.com/D218504
2024-08-06 15:04:43 +00:00
Makoto Kato
c0ff87ca94 Bug 1879701 - Show action menu when contextmenu is dispatched by mouse. r=geckoview-reviewers,calu
When contextmenu event is fired by mouse and the selection of active element
isn't collapsed, we should show action menu instead of context menu.

Actually, action menu depends on accessible caret event, so I emulate this
event to handle action menu. Also, focus or selection for active element is
changed, action menu should be dismissed.

Desktop's Gecko uses some JavaScript modules for handling context menu, so
we also use it.

Differential Revision: https://phabricator.services.mozilla.com/D217823
2024-08-06 09:24:16 +00:00
Beth Rennie
12c5d6ee5a Bug 1906892 - Update my email in telemetry configuration r=chumphreys
Differential Revision: https://phabricator.services.mozilla.com/D216454
2024-07-12 19:42:46 +00:00
Alexandra Borovova
d80d8b1d81 Bug 1902264 - Add a method to get a prompt id to GeckoView. r=geckoview-reviewers,owlish
Differential Revision: https://phabricator.services.mozilla.com/D216003
2024-07-10 07:40:24 +00:00
Tooru Fujisawa
5903c49a48 Bug 1081542 - Part 1: Add nsIBrowserDOMWindow.OPEN_NEWTAB_FOREGROUND. r=smaug,geckoview-reviewers,Gijs,amejiamarmol,tabbrowser-reviewers,dao
Given meta/ctrl key should use browser.tabs.loadInBackground pref instead of
browser.tabs.loadDivertedInBackground pref, the existing
nsIBrowserDOMWindow.OPEN_NEWTAB behavior doesn't match the requirement.

Add dedicate flag for "open in foreground tab" to make it controllable from
nsWindowWatcher::IsWindowOpenLocationModified.

Differential Revision: https://phabricator.services.mozilla.com/D201929
2024-07-10 06:16:52 +00:00
Henri Sivonen
41b363d50d Bug 1889536 - Migrate IDNA handling to ICU4X. r=necko-reviewers,geckoview-reviewers,credential-management-reviewers,home-newtab-reviewers,valentin,owlish,dimi,thecount,supply-chain-reviewers
Differential Revision: https://phabricator.services.mozilla.com/D206579
2024-07-09 11:26:43 +00:00
Tamas Szentpeteri
c1ca326517 Backed out 2 changesets (bug 1889536) for causing bpnu bustages on nsIDNService.cpp. CLOSED TREE
Backed out changeset 87d0e483dd8c (bug 1889536)
Backed out changeset c3d6429d8a59 (bug 1889536)
2024-07-09 14:08:25 +03:00
Dimi
e2ab6bd055 Bug 1898745 - P8. Update GeckoView to adopt the new formautofill architecture. r=geckoview-reviewers,m_kato
The patch includes the following changes:

1. Implements a workaround for a test failure (Bug 1905040). This issue occurs because,
   in the current architecture, the child process calls markAsAutoCompletableField regardless of
   whether the field is in a valid section.
2. `profile` is now stored in `fillMessageData`. Accordingly, updates where we use `profile` in
   `GeckoViewAutocomplete.sys.mjs`.
3. Autofill is triggered from the parent process, so the autofillFields API is called directly
   instead of sending a `FormAutofill:FillForm` message to the child process.

Differential Revision: https://phabricator.services.mozilla.com/D215078
2024-07-09 10:34:25 +00:00
Henri Sivonen
057d6de297 Bug 1889536 - Migrate IDNA handling to ICU4X. r=necko-reviewers,geckoview-reviewers,credential-management-reviewers,home-newtab-reviewers,valentin,owlish,dimi,thecount,supply-chain-reviewers
Differential Revision: https://phabricator.services.mozilla.com/D206579
2024-07-09 09:50:38 +00:00
Stanca Serban
990261cbe4 Backed out changeset 94a2d660b4c5 (bug 1822975) for causing browser_net_accessibility related devtools failures. CLOSED TREE 2024-07-03 00:05:37 +03:00
Gijs Kruitbosch
408b20bb30 Bug 1822975 - clean up places that manually enable broader async stacks which is now the default in tests, r=devtools-reviewers,firefox-desktop-core-reviewers ,geckoview-reviewers,mconley,ohall
Differential Revision: https://phabricator.services.mozilla.com/D215204
2024-07-02 19:44:29 +00:00
ohall-m
c80d9e2d27 Bug 1905684 - Fix Android Translations Download Screen r=geckoview-reviewers,calu
On non-supported translation language locales, the translations download screen
should behave like the pivot locale, because the pivot language is the fallback.

However, GeckoView is sending an "English" language packet in the non-supported
translation case. It should not send an English language model, because it is
inoperable and implicit in this case as the fallback.

Differential Revision: https://phabricator.services.mozilla.com/D215391
2024-07-01 17:42:37 +00:00
ohall-m
5dd1d3b8be Bug 1900148 - Part 1: Update GV to Respond to Pivot Languages Appropriately r=geckoview-reviewers,owlish
When translating to a language not English, the translation runs through a pivot language.
For example, when translating a page from Spanish to German, Spanish to English and
English to German are downloaded.

Before this patch, the pivot language was always accounted for in the download size.
However, once the pivot is downloaded, then it doesn't need to be accounted for in other models.

This patch updates to only counts the pivot, if the pivot is not downloaded. Once the pivot is downloaded,
then the size is not counted in the model size.

Differential Revision: https://phabricator.services.mozilla.com/D214637
2024-06-27 20:18:13 +00:00
Jan-Niklas Jaeschke
914d043b7d Bug 1901064, part 1 - Preserve user activation when Fission is disabled. r=edgar,dom-core,tabbrowser-reviewers,mak,geckoview-reviewers,ohall
The code path that was used for loading a document
with fission disabled did not take user activation into account.
This made almost all WPTs for Text Fragments fail,
since they depend on this flag to decide if
a text directive is allowed to be scrolled to.

This patch makes sure that the user activation is
also available for code paths that run through
`CanonicalBrowsingContext::FixupAndLoadURIString()`
to load a document.

This is done by adding a flag `hasValidUserGestureActivation`
to the `nsIOpenWindowInfo`, which carries it through
the JS stack for loading a document.

Differential Revision: https://phabricator.services.mozilla.com/D213401
2024-06-26 14:24:35 +00:00
ohall-m
d2f54baa3b Bug 1904370 - GeckoViewTranslations Sending Translation Type r=nordzilla,geckoview-reviewers,owlish
Before this patch, GeckoViewTranslations was sending `undefined` to
`translate` for the parameter `reportAsAutoTranslate`. This was
causing `NULL` in the extra on the packet, instead of the expected value.

Differential Revision: https://phabricator.services.mozilla.com/D214769
2024-06-25 16:40:24 +00:00
Sebastian Hengst
e43a62744c Backed out 2 changesets (bug 1901064) for blocking the backout of bug 1888756
Backed out changeset 0e582d262ca8 (bug 1901064)
Backed out changeset 992a876144a0 (bug 1901064)
2024-06-21 12:07:33 +02:00
Jan-Niklas Jaeschke
245ec27b92 Bug 1901064, part 1 - Preserve user activation when Fission is disabled. r=edgar,dom-core,tabbrowser-reviewers,mak,geckoview-reviewers,ohall
The code path that was used for loading a document
with fission disabled did not take user activation into account.
This made almost all WPTs for Text Fragments fail,
since they depend on this flag to decide if
a text directive is allowed to be scrolled to.

This patch makes sure that the user activation is
also available for code paths that run through
`CanonicalBrowsingContext::FixupAndLoadURIString()`
to load a document.

This is done by adding a flag `hasValidUserGestureActivation`
to the `nsIOpenWindowInfo`, which carries it through
the JS stack for loading a document.

Differential Revision: https://phabricator.services.mozilla.com/D213401
2024-06-20 15:00:31 +00:00
Henrik Skupin
1436f7e37c Bug 1824220 - [geckoview] Return promptType in details for DOMModalDialogClosed event. r=ohall,geckoview-reviewers
Differential Revision: https://phabricator.services.mozilla.com/D213213
2024-06-18 09:14:58 +00:00
alexandra.virvara
2f5658161a Bug 1895440: add new UX for strong password generator feature r=boek,android-reviewers,delphine,geckoview-reviewers,007
Differential Revision: https://phabricator.services.mozilla.com/D211003
2024-06-18 05:47:20 +00:00
Rob Wu
0de29386c0 Bug 1898498 - downloads.download - transform % to _ r=willdurand,geckoview-reviewers,m_kato
Differential Revision: https://phabricator.services.mozilla.com/D213846
2024-06-17 16:43:32 +00:00
Luca Greco
a7f5318305 Bug 1899772 - Assert backgroundState in test extension wrapper terminateBackground method. r=robwu
Differential Revision: https://phabricator.services.mozilla.com/D213593
2024-06-13 19:46:30 +00:00
jackyzy823
1816378b99 Bug 1833534 - Limit the length of title/alt/textContent in ContextElemet. r=geckoview-reviewers,m_kato
Differential Revision: https://phabricator.services.mozilla.com/D212350
2024-06-12 14:26:54 +00:00