Commit Graph

40146 Commits

Author SHA1 Message Date
Mike Conley
02de0e2758 Bug 1902020 - Fix a math error in calculating binary blob content length when it divides evenly by chunk size. r=backup-reviewers,fchasen
Differential Revision: https://phabricator.services.mozilla.com/D213481
2024-06-21 14:07:28 +00:00
Mike Conley
86e875c137 Bug 1901132 - Use the ArchiveEncryptor and ArchiveDecryptor to encrypt and decrypt backup archives. r=backup-reviewers,fchasen
Differential Revision: https://phabricator.services.mozilla.com/D213046
2024-06-21 14:07:27 +00:00
Mike Conley
4916692def Bug 1900892 - Part 3: Add ArchiveEncryptor and ArchiveDecryptor. r=djackson,backup-reviewers,kpatenio
These classes allow us to encrypt and decrypt chunks of a backup archive
if encryption is enabled.

Differential Revision: https://phabricator.services.mozilla.com/D212861
2024-06-21 14:07:27 +00:00
Mike Conley
9520e97295 Bug 1900892 - Part 2: Define a ArchiveJSONBlock schema for the JSON block in a backup archive. r=backup-reviewers,fchasen
Since the ArchiveJSONBlock uses a $ref to reference the metadata in the
BackupManifest schema, we have to change the JSON validation mechanism
we're using to one that supports $ref's.

Differential Revision: https://phabricator.services.mozilla.com/D212860
2024-06-21 14:07:26 +00:00
Mike Conley
c43f563dc7 Bug 1900892 - Part 1: Factor out computeBackupKeys to ArchiveUtils. r=djackson,backup-reviewers,kpatenio
Factoring this out, as computing these keys is something that we need to do both
when generating the ArchiveEncryptionState, as well as when performing a
decryption.

This also renames "authKey" and "encKey" in ArchiveEncryptionState to use
"backupAuthKey" and "backupEncKey", as these are more in-line with what the
encryption design document uses (and because there are "authKeys" and "encKeys"
that will be used by the encryption mechanism that are distinct from the
backupAuthKey and backupEncKey).

Differential Revision: https://phabricator.services.mozilla.com/D212858
2024-06-21 14:07:25 +00:00
Nikki Sharpley
72b2fd0ee7 Bug 1892957 - Add sidebar position settings to the Customize Sidebar menu r=sidebar-reviewers,fluent-reviewers,desktop-theme-reviewers,sessionstore-reviewers,kcochrane,sfoster
Differential Revision: https://phabricator.services.mozilla.com/D213591
2024-06-21 14:00:00 +00:00
Max Christian Pohle
3aaab52159 Bug 1900839 - mailto: Replace site specific settings with permission manager, r=pbz
Differential Revision: https://phabricator.services.mozilla.com/D213507
2024-06-21 11:25:55 +00:00
Cristian Tuns
b502d39756 Merge mozilla-central to autoland on a CLOSED TREE 2024-06-21 06:22:44 -04: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
Drew Willcoxon
a452c2bc8f Bug 1895110 - Add a profileBeforeChange shutdown blocker to interrupt the Rust Suggest store. r=daisuke
This adds a `profileBeforeChange` async shutdown blocker that interrupts the
Suggest store. It calls `interrupt(InterruptKind.READ_WRITE)` so that both
ingests and queries are interrupted. The new `interrupt()` API is defined in
suggest.udl here:

https://searchfox.org/mozilla-central/rev/b11735b86bb4d416c918e2b2413456561beff50c/third_party/rust/suggest/src/suggest.udl#149-153

`InterruptKind` is defined in the generated UniFFI JS bindings here:

https://searchfox.org/mozilla-central/rev/b11735b86bb4d416c918e2b2413456561beff50c/toolkit/components/uniffi-bindgen-gecko-js/components/generated/RustSuggest.sys.mjs#1115-1119

This also modifies the one existing `interrupt()` call (when queries are
canceled) to pass `InterruptKind.READ`. According to the `interrupt()` doc,
passing nothing is deprecated.

I simplified the first task in test_rust_ingest.js. Now that Rust is enabled by
default, there's no need to test a first run where Rust starts out disabled but
then becomes enabled. Now the task only tests disabling it and then re-enabling
it. This also means Rust is enabled for the rest of the test, which makes the
test easier to work with.

Depends on D203824

Differential Revision: https://phabricator.services.mozilla.com/D214180
2024-06-21 06:44:02 +00:00
Meg Viar
31443a332f Bug 1903771 - Remove empty test file in aboutwelcome tests r=omc-reviewers,aminomancer
Remove empty test file

Differential Revision: https://phabricator.services.mozilla.com/D214389
2024-06-21 02:02:36 +00:00
Daisuke Akatsuka
c445b155af Bug 1903160: Change default Sponsored and non-Sponsored suggested index to display at the top r=adw
Differential Revision: https://phabricator.services.mozilla.com/D214069
2024-06-20 23:25:59 +00:00
Daisuke Akatsuka
4daafc7c27 Bug 1903160: Introduce pocketSuggestionIndex Nimbus variable r=adw
Differential Revision: https://phabricator.services.mozilla.com/D214068
2024-06-20 23:25:58 +00:00
Ed Lee
065d8e7574 Bug 1895433 - Add chat providers to show in preferences with links and menu r=tarek
Not quite adding providers but start with hidden localhost that can test functionality.

Differential Revision: https://phabricator.services.mozilla.com/D214355
2024-06-20 23:15:52 +00:00
Lina Butler
4259d07cde Bug 1880183 - Adopt the SuggestStoreBuilder API. r=adw,bdk
The Suggest Rust component currently stores the SQLite database in the
"local profile" directory, since it doesn't contain any user data.

Now that the component supports remembering dismissed suggestions,
we'll want to store the database in the "profile" directory instead,
since it'll contain persistent user data.

This commit prepares us for that future by specifying the profile
directory as the data path when we build the store. This commit also
adopts the `SuggestStoreBuilder#remoteSettings{Server, BucketName}()`
APIs.

Depends on D201774

Differential Revision: https://phabricator.services.mozilla.com/D203824
2024-06-20 23:01:42 +00:00
Moritz Beier
e1ae506f34 Bug 1903608 - Pressing enter on search bar settings icon does not open settings. r=dao,search-reviewers,Standard8
Differential Revision: https://phabricator.services.mozilla.com/D214287
2024-06-20 20:47:18 +00:00
Gregory Pappas
b056712c14 Bug 1583716 - Support zooming in DevTools extension panels r=extension-reviewers,devtools-reviewers,robwu,ochameau
Differential Revision: https://phabricator.services.mozilla.com/D214206
2024-06-20 18:33:08 +00:00
Erik Nordin
1b26f70ce0 Bug 1903838 - Fix change-to-language telemetry edge case r=translations-reviewers,gregtatum
Fixes an edge case in the SelectTranslationsPanel where,
on Windows and Linux, if both the from-language and to-language
are changed via keyboard before triggering re-translation, then
only the change-from-language event is logged to telemetry.

Differential Revision: https://phabricator.services.mozilla.com/D214419
2024-06-20 17:49:19 +00:00
Yazan Al Macki
d5b1a493c3 Bug 1902323 - Ensure mimetype info is passed when creating new blobs in order to correctly render application provided search engine icons if they are svg based. r=Standard8
Differential Revision: https://phabricator.services.mozilla.com/D213671
2024-06-20 15:55:42 +00:00
DJ
9126f12555 Bug 1878038 - show entire viewport in tab preview. r=emilio,tabbrowser-reviewers,mconley
Differential Revision: https://phabricator.services.mozilla.com/D212709
2024-06-20 15:47:57 +00:00
Mark Banner
a3a8ab8731 Bug 1897142 - Update Search Config tests. r=mkaply
Differential Revision: https://phabricator.services.mozilla.com/D211926
2024-06-20 15:45:09 +00:00
Niklas Baumgardner
f2c879884a Bug 1888871 - Hide shopping sidebar splitter when hiding shopping sidebar. r=jhirsch
Differential Revision: https://phabricator.services.mozilla.com/D214030
2024-06-20 15:39:31 +00:00
scottdowne
cdb725440a Bug 1896677 - Home and newtab weather widget fetch retry r=home-newtab-reviewers,nbarrett
Differential Revision: https://phabricator.services.mozilla.com/D214314
2024-06-20 15:12:48 +00: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
scottdowne
5977993543 Bug 1902109 - Home and newtab wallpapers v2 fixing lint rule for fluent dom r=home-newtab-reviewers,frontend-codestyle-reviewers,nbarrett
Differential Revision: https://phabricator.services.mozilla.com/D214290
2024-06-20 14:50:54 +00:00
Ed Lee
fc90887ba7 Bug 1902449 - Rework chat to support contextual prompts and non-contextmenu entry points r=tarek
Refactor building chat menu from prefs and context passing. Reuse message targeting for optional contextual filtering of prompts.

Differential Revision: https://phabricator.services.mozilla.com/D214332
2024-06-20 14:39:24 +00:00
Nikki Sharpley
77be78d994 Bug 1896987 - Fix browser_sidebar_context_menu.js intermittent r=sidebar-reviewers,kcochrane
Differential Revision: https://phabricator.services.mozilla.com/D213807
2024-06-20 14:39:00 +00:00
Nathan Barrett
6ba0bd3ff6 Bug 1903123 - Update default temp unit based on locale r=home-newtab-reviewers,thecount
Differential Revision: https://phabricator.services.mozilla.com/D214109
2024-06-20 14:08:27 +00:00
Stanca Serban
030d3afa61 Backed out 2 changesets (bug 1897142) for causing xpcshell failures in test_UrlbarSearchUtils.js. CLOSED TREE
Backed out changeset e986137d0387
Backed out changeset ffeb79eca5db (bug 1897142)
2024-06-20 17:05:48 +03:00
Mark Banner
a56fd5df74 Bug 1897142 - Update Search Config tests. r=mkaply
Differential Revision: https://phabricator.services.mozilla.com/D211926
2024-06-20 12:15:40 +00:00
Marco Bonardo
44b8489d02 Bug 1876513 - Address bar should not prefix URIs that will be handled by schemeless HTTPS-First. r=daleharvey
When the address bar adds a non typed protocol, don't show the urifixup added
protocol to the user, as https-first may upgrade it, and the whole experience
could be confusing for the user.

Differential Revision: https://phabricator.services.mozilla.com/D213443
2024-06-20 09:02:15 +00:00
Ed Lee
9d2c22566f Bug 1903443 - Support providers that accept prompts via headers r=tarek
Allow optional header configuration for providers to decide how to pass the prompt.

Differential Revision: https://phabricator.services.mozilla.com/D214243
2024-06-20 04:51:46 +00:00
Hanna Jones
f26d450f6e Bug 1901264 - update settings search to work for all moz- prefixed custom elements r=reusable-components-reviewers,settings-reviewers,mstriemer
This patch:

* adds some simple logic to settings search that should prevent us from having to manually allow searching in every moz- prefixed custom element
* cleans up the existing settings search logic slightly for improved readability
* expands the tests to check searching for text in the shadow DOM of additional moz- prefixed custom elements

Differential Revision: https://phabricator.services.mozilla.com/D214141
2024-06-19 21:58:14 +00:00
Shane Hughes
259507acf6 Bug 1861248 - Overhaul ASRouter admin and remove its dependency on newtab. r=omc-reviewers,emcminn
For starters, replace all newtab styles and functions. Since we're
removing these styles, I conformed the asrouter admin to the reusable
components team's design tokens. So, it now uses global system page
styles. This is a pretty general overhaul since there are so many styles
to replace. In addition to the style changes, I've added a new Filters
UI and moved the groups table to the General tab. This allows us to
remove the Message Groups tab since that functionality is now rolled
into the Filters UI. The same with the Private Browsing tab: when you
hit Show on a pb_newtab message, it will open a PB window and override
the message. And you can filter by template now, so you can view only PB
messages on the General tab. I also fixed spellchecking. Instead of
spellchecking, which only works for natural languages, we just validate
that the text is valid JSON. If it's not valid, we show a red border on
the textarea. That way messages won't just mysteriously fail to show. I
also moved a few elements around to conserve space. Now, everything
should be able to fit on the screen of a default window size of 1500px.
Finally, I removed some old cruft that was left over from when the admin
interface was part of the newtab page.

Differential Revision: https://phabricator.services.mozilla.com/D213865
2024-06-19 19:45:03 +00:00
Shane Hughes
17ca553f9d Bug 1899030 - Part 5: Remove miscellaneous unused asrouter code from newtab. r=mconley,omc-reviewers,frontend-codestyle-reviewers,pdahiya
Also update nimbus rollout message provider.

Differential Revision: https://phabricator.services.mozilla.com/D211673
2024-06-19 19:45:02 +00:00
Shane Hughes
93a3b7524c Bug 1899030 - Part 4: Remove unused ASRouterButton import in newtab. r=omc-reviewers,home-newtab-reviewers,nbarrett,pdahiya
Differential Revision: https://phabricator.services.mozilla.com/D211672
2024-06-19 19:45:02 +00:00
Shane Hughes
dff800f3a4 Bug 1899030 - Part 3: Define the onboarding provider pref outside of newtab. r=mconley,omc-reviewers,home-newtab-reviewers,negin,pdahiya,thecount
Differential Revision: https://phabricator.services.mozilla.com/D211671
2024-06-19 19:45:02 +00:00
Shane Hughes
ec1f215c37 Bug 1899030 - Part 2: Move remote-text component to asrouter. r=mconley,omc-reviewers,home-newtab-reviewers,negin,pdahiya,thecount
Differential Revision: https://phabricator.services.mozilla.com/D211670
2024-06-19 19:45:01 +00:00
Shane Hughes
e458f3a38a Bug 1899030 - Part 1: Remove ASRouterUserEvent from Actions.mjs. r=mconley,omc-reviewers,home-newtab-reviewers,negin,firefox-desktop-core-reviewers ,pdahiya,thecount
Also remove unused action types and the unused ASRouter reducer.

Differential Revision: https://phabricator.services.mozilla.com/D211669
2024-06-19 19:45:01 +00:00
Mike Conley
9df9057031 Bug 1889123 - Add tests for the client association ping. r=markh,chutten
Differential Revision: https://phabricator.services.mozilla.com/D214114
2024-06-19 18:42:19 +00:00
Mark Striemer
cabc85f076 Bug 1900126 - Update sidebar settings fonts/spacing r=reusable-components-reviewers,sidebar-reviewers,nsharpley,hjones
Differential Revision: https://phabricator.services.mozilla.com/D213330
2024-06-19 18:37:37 +00:00
Mark Striemer
fb377d8a08 Bug 1897529 - Part 2: Use moz-fieldset/moz-checkbox in Customize sidebar r=sidebar-reviewers,fluent-reviewers,reusable-components-reviewers,flod,nsharpley,hjones
Differential Revision: https://phabricator.services.mozilla.com/D213328
2024-06-19 18:37:37 +00:00
Mark Striemer
0ff35eb22d Bug 1901336 - Support generating data-l10n-attrs based on reactive property definition in MozLitElement r=reusable-components-reviewers,hjones
Differential Revision: https://phabricator.services.mozilla.com/D213329
2024-06-19 18:37:36 +00:00
kpatenio
d52799a404 Bug 1893301 - Build confirmation dialog element for removing encryption password from backup. r=backup-reviewers,firefox-desktop-core-reviewers ,fluent-reviewers,mconley
This patch adds a new dialog for disabling a backup's password protection.

Steps to test this feature:
1. First ensure that the following prefs are enabled: browser.backup.enabled and browser.backup.preferences.ui.enabled
2. Then ensure that the existing backup for the current profile has encryption enabled (should have enc-state.json)
3. Else, access the debug page (chrome://browser/content/backup/debug.html) to enable encryption
4. Once encryption is enabled, the sensitive data checkbox should be checked in about:settings / about:preferences
5. Clicking the checked checkbox should now show the new dialog for removing password protection
6. If the dialog is confirmed, the checkbox should be unchecked in both the settings/preferences page and the debug page

Other notes:
- If the checkbox is *not* checked, nothing will happen. This is because the dialog for enabling password protection is not yet implemented
- Added tests and Storybook entries as well

Figma: https://www.figma.com/design/vNbX4c0ws0L1qr0mxpKvsW/Fx-Backup?node-id=147-4568&t=9NNUojWMeOLwe3rD-0

Differential Revision: https://phabricator.services.mozilla.com/D213171
2024-06-19 17:36:01 +00:00
Ed Lee
d068fce0da Bug 1895494 - Support more generic handling of custom experimental preferences logic r=tarek,settings-reviewers
Switch from direct import to observer now that GenAI has an init.

Differential Revision: https://phabricator.services.mozilla.com/D214216
2024-06-19 17:01:12 +00:00
Ed Lee
e16e2c3f1c Bug 1903444 - Detect provider change to auto-open sidebar r=tarek,firefox-desktop-core-reviewers
Add startup init to detect pref changes.

Differential Revision: https://phabricator.services.mozilla.com/D214207
2024-06-19 17:01:12 +00:00
Dale Harvey
1a82c7fb16 Bug 1903364 - Add check for scotchBonnet pref when enabling SearchModeSwitcher. r=daisuke
Differential Revision: https://phabricator.services.mozilla.com/D214154
2024-06-19 11:58:30 +00:00
Marco Bonardo
c33e249b2b Bug 1892934 - Domain highlighting doesn't work when detaching tabs. r=jteow
There's a timing issue where sometimes formatting happens too early on new
windows opening, so we await for the next RAF to happen.
Note there's already a test in browser_UrlbarInput_formatValue_detachedTab.js
covering this, and it's indeed failing intermittently, this may fix it.

The patch also avoids trimming when active mixed content may show a strikeout
https protocol. This is an uncommon state anyway because we block active mixed
content, and in the future we'll rely on the insecure label.

Differential Revision: https://phabricator.services.mozilla.com/D212906
2024-06-19 11:17:27 +00:00
Otto Länd
3f777c11b7 Bug 1902315: apply code formatting via Lando
# ignore-this-changeset
2024-06-19 07:50:26 +00:00
Emilio Cobos Álvarez
f16ff34d47 Bug 1902315 - Remove CHROME_WINDOW_{LOWERED,RAISED}. r=arai,extension-reviewers,sessionstore-reviewers,dao,zombie
These did nothing at the OS level on most OSes (see previous patch), and
were only used on tests, so just remove them.

Note that these were different from the alwaysontop feature, which
remains and is used for stuff like picture-in-picture.

Differential Revision: https://phabricator.services.mozilla.com/D214091
2024-06-19 07:47:37 +00:00