Commit Graph

44714 Commits

Author SHA1 Message Date
John M. Schanck
69c4362895 Bug 1981587 - expose enterprise policy configurable pref to allow direct attestation. a=RyanVM
Original Revision: https://phabricator.services.mozilla.com/D265375

Differential Revision: https://phabricator.services.mozilla.com/D266840
2025-10-01 00:25:56 +00:00
Ryan VanderMeulen
99c859a252 Revert "Bug 1973189 - Enable context menu for input elements in History and Synced Tabs. a=RyanVM DONTBUILD"
This reverts commit a2c5175274.
2025-09-30 23:58:18 +00:00
Jonathan Sudiaman
a2c5175274 Bug 1973189 - Enable context menu for input elements in History and Synced Tabs. a=RyanVM DONTBUILD
Original Revision: https://phabricator.services.mozilla.com/D263441

Differential Revision: https://phabricator.services.mozilla.com/D266649
2025-09-29 21:01:39 +00:00
Nikki Sharpley
579d6a695e Bug 1989248 - Bookmarks sidebar heading has wrong semantics (generic XUL element, rather than html:h4) a=RyanVM DONTBUILD
Original Revision: https://phabricator.services.mozilla.com/D265706

Differential Revision: https://phabricator.services.mozilla.com/D266660
2025-09-29 20:55:02 +00:00
Fatih Kilic
b848b2b571 Bug 1975753 - Force site specific zoom when RFPTarget::SiteSpecificZoom is active. a=RyanVM DONTBUILD
I wasn't around when RFPTarget::SiteSpecificZoom was implemented, but the current implementation is very confusing.

In Firefox, we have two modes of zoom level. Per tab zoom, and site specific zoom. It is controlled in two (maybe more) places. browser-fullZoom.js and in [CanonicalBrowsingContext.cpp](https://searchfox.org/mozilla-central/rev/ac81a39dfe0663eb40a34c7c36d89e34be29cb20/docshell/base/CanonicalBrowsingContext.cpp#285-289).

Our current implementation disables site specific zoom in `browser-fullZoom.js` by checking the RFP target, but it doesn't modify `CanonicalBrowsingContext.cpp`. So,`CanonicalBrowsingContext` still thinks we are using site specific zoom.

Pre-bug1914149 this method worked because we didn't keep/inherit zoom level across navigations. Post-bug1914149, it no longer works because we keep the zoom level across navigations in `CanonicalBrowsingContext` and let `browser-fullZoom.js` reset to its correct value back.

The issue is caused because `CanonicalBrowsingContext` keeps the previous page's zoom level, but `browser-fullZoom.js` thinks we use tab zoom mode, so it doesn't bother setting the zoom level for the site/page. So, we end up keeping the zoom level.

The solution here I'm suggesting is, doing the opposite of what we are doing in `browser-fullZoom.js`. So, now we should force SiteSpecificZoom with RFP. The reason I'm suggesting this is because within the same site, even acrss tabs, we persist cookies, so fingerprinting isn't much of concern here. We also don't persist zoom levels in private browsing. So, linking normal to PBM isn't a concern either.

So, in summary,
- If you open the same site, in 100 tabs, all of them will get the same zoom level with this patch (just like default normal Firefox)
- If you are in PBM, the zoom level is NOT persisted.
- If you are in normal browsing, the zoom level is persisted, but so are cookies.

Original Revision: https://phabricator.services.mozilla.com/D257497

Differential Revision: https://phabricator.services.mozilla.com/D261948
2025-08-22 01:27:54 +00:00
Rob Wu
3d9b423dd8 Bug 1976773 - Remove mousenter/mouseleave listeners from browser-addons.js a=RyanVM
Original Revision: https://phabricator.services.mozilla.com/D258434

Differential Revision: https://phabricator.services.mozilla.com/D260202
2025-08-20 02:01:40 +00:00
Jeremy Swinarton
520c64e4d9 Bug 1905944: Fix intermittents in browser_tab_preview.js r=sthompson,tabbrowser-reviewers, a=test-only
This patch fixes a number of issues that clear up a few different
intermittents in browser_tab_preview.js.

1. In browser_tab_groups_tab_interactions_telemetry.js, a call to "close
   duplicate tabs" would automatically open the confirmation hint panel.
   If not manually closed, it seems to persist in a half-way open state
   where the `animating` attribute is always `true`. This is now fixed.

2. There is a test somewhere that seems to apply the
   `sidebar.verticalTabs` pref and doesn't turn it off. I would like to
   figure out which test is causing this, but as a last defence I have
   made sure this is always properly set within this test suite.

3. Some tests check that THP is disabled if another panel is open. These
   used to work by opening the `appMenu-popup` menu (the hamburger menu
   in the top right of the browser). The problem with this approach is
   that this panel (and basically every other panel) are very complex
   and are prone to change. This was causing an intermittent failure
   where attempting to close this panel threw an error in console that
   seemed to be specifically related to this panel. I fixed this by
   creating a fake minimal panel that is guaranteed to not change as
   application code changes. (I borrowed this technique from
   https://searchfox.org/mozilla-central/source/browser/base/content/test/popupNotifications/browser_popupNotification_queue.js).

4. There is a suite of tests that checks that THP is disabled in the
   event that a drag operation is performed. The problem is that
   dragging a tab by 100px sometimes detaches the tab and creates a new
   window, breaking the test run. Reducing the drag amount seems to fix
   this.

5. As a last line of defence, I have added a state reset function at the
   start of each test to ensure that all panels are closed and that the
   mouse is not hovering over the tab strip. (The latter was being done at
   the end of some tests already, but this makes sure it is consistently
   applied everywhere.)

Closes bug1898099, bug1905944, bug1933597.

Differential Revision: https://phabricator.services.mozilla.com/D258976
2025-08-05 20:51:35 +00:00
William Wen
0a4544fe76 Bug 1977066 - Change missed "cm" strings to "cryptoTP". a=diannaS
Original Revision: https://phabricator.services.mozilla.com/D257271

Differential Revision: https://phabricator.services.mozilla.com/D259824
2025-08-05 11:49:17 +00:00
Michael Kaply
c95346b790 Bug 1978092 - Policy should set tracking protection prefs on the default branch when locked. a=diannaS
Differential Revision: https://phabricator.services.mozilla.com/D259446
2025-08-04 23:09:18 +00:00
Michael Kaply
a7b853d0e8 Bug 1973827 - Add policy support for screen permission. a=diannaS
Original Revision: https://phabricator.services.mozilla.com/D255334

Differential Revision: https://phabricator.services.mozilla.com/D259879
2025-08-04 23:03:23 +00:00
Thomas Wisniewski
10c77a8f7a Bug 1963764 - make sure Report Broken Site is still hidden appropriately when enterprise DisableFeedbackCommands policy is active (regressed by bug 1952334); r=Gijs, a=dsmith DONTBUILD
Differential Revision: https://phabricator.services.mozilla.com/D258785
2025-07-31 17:21:57 +00:00
Mike Conley
96145a393e Bug 1971702 - Update Opera migrator to account for the Default user profile. a=diannaS
Original Revision: https://phabricator.services.mozilla.com/D254992

Differential Revision: https://phabricator.services.mozilla.com/D259249
2025-07-30 16:56:39 +00:00
Greg Stoll
b48f6f4035 Bug 1972786 - show various DLP agent errors for download operations a=diannaS
Show these errors in the download panel, etc.

Original Revision: https://phabricator.services.mozilla.com/D254295

Differential Revision: https://phabricator.services.mozilla.com/D258587
2025-07-24 20:20:47 +00:00
Greg Stoll
5a1af9a0bb Bug 1973005 - don't open about:blank when double-clicking on blocked download a=diannaS
I looked into using gInitialPages instead of hard-coding "about:blank",
but:
- there's no convenient window or browser here to access gInitialPages
- We hard-code "about:blank" many other places in source, so its
  "specialness" is already pretty well established.

Original Revision: https://phabricator.services.mozilla.com/D254871

Differential Revision: https://phabricator.services.mozilla.com/D258221
2025-07-23 17:33:51 +00:00
Greg Stoll
972e0fdf7c Bug 1972773 - avoid showing "confirm quit" dialog in Content Analysis if we have already cancelled quit a=diannaS
I think there may be some other corner cases (if the user decides to confirm
the quit with a download running we still still show a dialog here), but
that is harder to fix and this is a start.

Original Revision: https://phabricator.services.mozilla.com/D254291

Differential Revision: https://phabricator.services.mozilla.com/D258213
2025-07-23 17:33:29 +00:00
Greg Stoll
0c41490ff1 Bug 1965504 part 7 - add tests for Content Analysis Downloads a=diannaS
There are more things we could test in the future (like clicking
buttons on the Downloads panel to block/unblock for WARN responses) but
this is a good first step.

Original Revision: https://phabricator.services.mozilla.com/D251883

Differential Revision: https://phabricator.services.mozilla.com/D258209
2025-07-23 17:33:18 +00:00
Greg Stoll
ff9022d230 Bug 1965504 part 6 - add pref and enterprise policy for Content Analysis Downloads a=diannaS
Note that for backwards compatibility the pref to do Downloads
analysis is off by default.

Original Revision: https://phabricator.services.mozilla.com/D251882

Differential Revision: https://phabricator.services.mozilla.com/D258208
2025-07-23 17:33:15 +00:00
Greg Stoll
099ed944b9 Bug 1965504 part 5 - integrate Content Analysis into Downloads a=diannaS
The actual call to content analysis is in DownloadCore.sys.mjs's
_checkReputationAndMove() method.

Original Revision: https://phabricator.services.mozilla.com/D251881

Differential Revision: https://phabricator.services.mozilla.com/D258207
2025-07-23 17:33:12 +00:00
Greg Stoll
1b51797326 Bug 1965504 part 4 - don't show the normal Content Analysis dialogs for downloads a=diannaS
One annoying part to this is that for "Save As" downloads on a PDF (for
example), we don't get a valid browsing context. For downloads, the only
thing we need a browsing context for us to get a window so we can show
the "DLP busy" notification, so just use the window that we were
initialized with. In practice I can't tell any difference.

Original Revision: https://phabricator.services.mozilla.com/D251880

Differential Revision: https://phabricator.services.mozilla.com/D258204
2025-07-23 17:33:04 +00:00
Greg Stoll
7ec9c6d8f4 Bug 1965504 part 1 - add Download operation type and rename fileNameForDisplay a=diannaS
We only ever used operationDisplayString to represent a filename,
so go ahead and formalize that.

Original Revision: https://phabricator.services.mozilla.com/D251877

Differential Revision: https://phabricator.services.mozilla.com/D258201
2025-07-23 17:32:55 +00:00
James Teow
5b1655eb9b Bug 1976102 - r=mak,urlbar-reviewers a=RyanVM
Differential Revision: https://phabricator.services.mozilla.com/D257093
2025-07-23 16:10:41 +00:00
Michael Kaply
229a8c121d Bug 1971182 - Add suspected fingerprinters to policy. a=RyanVM
Original Revision: https://phabricator.services.mozilla.com/D253071

Differential Revision: https://phabricator.services.mozilla.com/D257008
2025-07-14 13:27:41 +00:00
Michael Kaply
e8acc1d108 Bug 1877695 - Update tracking protection policy to allow setting strict/standard. a=RyanVM
Differential Revision: https://phabricator.services.mozilla.com/D257033
2025-07-14 13:27:38 +00:00
Michael Kaply
4b75e29a3e Bug 1970492 - Allow additional prefs to be configured via policy. a=RyanVM
Original Revision: https://phabricator.services.mozilla.com/D253069

Differential Revision: https://phabricator.services.mozilla.com/D257009
2025-07-12 13:30:36 +00:00
Michael Kaply
af95c4ca67 Bug 1948934 - Don't show new sidebar in kiosk mode. a=RyanVM
Original Revision: https://phabricator.services.mozilla.com/D254001

Differential Revision: https://phabricator.services.mozilla.com/D257007
2025-07-12 13:30:33 +00:00
Sam Foster
b42b497a1f Bug 1922777 - Retain the last-used sidebar view/command id even when the panel is closed. a=pascalc
Original Revision: https://phabricator.services.mozilla.com/D254261

Differential Revision: https://phabricator.services.mozilla.com/D256867
2025-07-11 08:23:07 +00:00
Michael Kaply
206f5fce02 Bug 1972314 - Mark extensions installed by Extensions policy as admin. a=pascalc
Original Revision: https://phabricator.services.mozilla.com/D253831

Differential Revision: https://phabricator.services.mozilla.com/D256821
2025-07-10 16:37:56 +00:00
Moritz Beier
eb59c44268 Bug 1972631 - Update search config tests for Google Partner Code. r=standard8 a=pascalc
Differential Revision: https://phabricator.services.mozilla.com/D254507
2025-07-10 15:55:32 +00:00
James Teow
3c671a8628 Bug 1970997 - Add origin validation check for persisted search terms - r=urlbar-reviewers,mak a=pascalc
Unable to reproduce the original issue, but adding a safeguard
to ensure search terms only persist when the current URI matches
the origin of the URI used to load the page.

Differential Revision: https://phabricator.services.mozilla.com/D253982
2025-07-09 10:38:06 +00:00
Ed Lee
7f8d24c805 Bug 1975262 - remove hugging chat from chatbot a=pascalc
Hide from the list in onboarding and dropdown.

Original Revision: https://phabricator.services.mozilla.com/D255875

Differential Revision: https://phabricator.services.mozilla.com/D255920
2025-07-03 09:41:46 +00:00
Michael Kaply
669cc2a9df Bug 1973797 - Update Firefox home policies to remove Pocket name. a=pascalc
Original Revision: https://phabricator.services.mozilla.com/D254990

Differential Revision: https://phabricator.services.mozilla.com/D255293
2025-07-02 12:50:41 +00:00
Jason Prickett
2d728f9022 Bug 1974076 - Remove the finish setup message and setup checklist auto-open message a=pascalc
Differential Revision: https://phabricator.services.mozilla.com/D255347
2025-07-02 12:11:54 +00:00
Mark Banner
710e134788 Bug 1971518 - Fix test failures for search tests when run on esr140. a=dmeehan
Original Revision: https://phabricator.services.mozilla.com/D253336

Differential Revision: https://phabricator.services.mozilla.com/D253653
2025-06-14 22:36:06 +00:00
dadaa
b13ef08ef0 Bug 1971544: Include source=urlbar query string parameter in Merino requests for weather r=adw a=dmeehan
Differential Revision: https://phabricator.services.mozilla.com/D253404
2025-06-13 02:18:09 +00:00
Meg Viar
39f4cca70c Bug 1965258 - Clear active infobar when user closes the window the infobar is displayed in before interacting with it a=dmeehan DONTBUILD
Original Revision: https://phabricator.services.mozilla.com/D250465

Differential Revision: https://phabricator.services.mozilla.com/D252856
2025-06-06 19:46:54 +00:00
Dão Gottwald
f982fafede Bug 1964288 - Cannot drag tab to far right of tab bar r=dao,tabbrowser-reviewers, a=dmeehan
The required range for the `animDropElementIndex` is between 0 and `this.ariaFocusableItems.length`, inclusive. That maximum value signifies that all tab strip items (and particularly the last one) need to shift out of the way because the user is dragging something to the end of the tab strip.

When dragging past the last tab strip item, `animDropElementIndex == this.ariaFocusableItems.length` and there is no overlapping element. In that scenario, we fall back to setting `dropElement = this.ariaFocusableItems[oldDropElementIndex]` but there is no such element. The `dropElement` is undefined, which ultimately results in calling `Tabbrowser.moveTabsAfter` and appending the dragged tab(s). That happens to be the right result.

However, if you do a short vertical drag, `dropElement` also does not get set, so whatever you were dragging moves to the end of the tab strip. That was bug 1959350 and we tried to fix it by not moving tabs if `dropElement` wasn't set. https://phabricator.services.mozilla.com/D247339

This had the side effect of not making it possible to drop a tab at the end of the tab strip if you were dragging forward. It was still possible to drag forward to the last position, then drag backward slightly to get the front edge of the tab to overlap the last tab in the tab strip, which would allow dropping into the last position.

I think the main thing that would help is to make sure that `dropElement` is always set for valid moves. When dragging past the last tab and there is no overlap, we can fall back to the last non-moving tab strip item.

I needed to swap around how we derive `dropElement` and `newDropElementIndex`. If we fall back to making `dropElement` the last tab, the existing code will try to use `dropElement.elementIndex` as the `newDropElementIndex`, which means the `animDropElementIndex` can never achieve the maximum value that it needs to show all of the tabs moving over. I made it so that we independently determine the `newDropElementIndex` fallback and the `dropElement` fallback without using `newDropElementIndex`.

After this change, `dropElement` should always be a valid non-moving tab strip item if a move should occur. If `dropElement` is undefined, then it's correct that no move should occur.

Differential Revision: https://phabricator.services.mozilla.com/D249715
2025-06-06 19:00:43 +00:00
Tim Xia
2bedf3f357 Bug 1969482 - key points collapsible header shown even for skipped regions - a=dmeehan DONTBUILD
Original Revision: https://phabricator.services.mozilla.com/D252537

Differential Revision: https://phabricator.services.mozilla.com/D252864
2025-06-06 18:57:42 +00:00
Jason Prickett
490630c460 Bug 1962493 - Land onboarding setup checklist messages for EN a=dmeehan DONTBUILD
Original Revision: https://phabricator.services.mozilla.com/D248458

Differential Revision: https://phabricator.services.mozilla.com/D252876
2025-06-06 18:54:07 +00:00
Tim Xia
84476b636e Bug 1969012 - Additional telemetry for link previews: labs options and about pages - a=dmeehan
- add telemetry "tab" field for start, cardlink, cardClose
- add labsCheckbox event for shift, shift_option, long_press, key_points, link_previews
- add _getTabContextValue to get the filepath for any about: pages
- update optin telemetry
- add metrics
- shift_alt and long_press name normalization
- add key_points (boolean) to card_link
- update test to test against blank
- refactor _getTabContextValue
- add tests for new metric and prefChanged

Original Revision: https://phabricator.services.mozilla.com/D251779

Differential Revision: https://phabricator.services.mozilla.com/D252692
2025-06-05 18:18:00 +00:00
Moritz Beier
bea9b9509e Bug 1970001 - [RTL] "Add search engine" placeholder text appears in reverse. a=dmeehan DONTBUILD
Original Revision: https://phabricator.services.mozilla.com/D252301

Differential Revision: https://phabricator.services.mozilla.com/D252630
2025-06-05 18:15:27 +00:00
Nina Pypchenko
f84b858a66 Bug 1968662, Bug 1968663 - Minor fixes for "Support Firefox" feature on 'about:settings#home' page a=dmeehan
Original Revision: https://phabricator.services.mozilla.com/D252432

Differential Revision: https://phabricator.services.mozilla.com/D252602
2025-06-05 16:49:40 +00:00
Tim Xia
1d28e315f5 Bug 1969032 - Handle two types of onboarding card display - a=dmeehan DONTBUILD
- Update strings
- onboardingHoverLinkMs to 1 sec
- add type to onboarding card telemetry
- check current status of showOnboarding flag before renderOnboardingPanel

Original Revision: https://phabricator.services.mozilla.com/D251639

Differential Revision: https://phabricator.services.mozilla.com/D252521
2025-06-05 16:31:32 +00:00
Dão Gottwald
da226549e3 Bug 1968264 - Look at a theme's accentcolor (if there's no background image) to determine lwtheme-brighttext. a=dmeehan DONTBUILD
Original Revision: https://phabricator.services.mozilla.com/D251015

Differential Revision: https://phabricator.services.mozilla.com/D252457
2025-06-05 12:57:09 +00:00
Ed Lee
298a97a4e9 Bug 1969461 - shift-tab keyboard navigation through links unexpectedly triggers previews a=dmeehan
Treat tab as typing to ignore with rest of recent typing heuristics. Also catch other unexpected typing and clicks.

Original Revision: https://phabricator.services.mozilla.com/D251891

Differential Revision: https://phabricator.services.mozilla.com/D252419
2025-06-05 11:57:38 +00:00
Ed Lee
c89bcc4e0d Bug 1970208 - update mistral icon a=dmeehan DONTBUILD
Use new icon from mistral for lechat

Original Revision: https://phabricator.services.mozilla.com/D252383

Differential Revision: https://phabricator.services.mozilla.com/D252493
2025-06-05 11:53:58 +00:00
Michael Kaply
d926600e5a Bug 1969333 - Add support for deprecating polices and deprecate Pocket. a=dmeehan DONTBUILD
Original Revision: https://phabricator.services.mozilla.com/D251893

Differential Revision: https://phabricator.services.mozilla.com/D252404
2025-06-05 11:51:53 +00:00
Beth Rennie
d60dd5612e Bug 1969336 - Remove NimbusEnrollments entries when profiles are deleted a=dmeehan
Original Revision: https://phabricator.services.mozilla.com/D251729

Differential Revision: https://phabricator.services.mozilla.com/D252509
2025-06-05 11:45:08 +00:00
Drew Willcoxon
d18377f312 Bug 1969810 - Follow-up test fix. a=RyanVM 2025-06-03 23:09:37 +00:00
Drew Willcoxon
06769a50ba Bug 1969810 - Land Firefox 140-only fix for localized weather suggestions. r=daisuke a=RyanVM
Please see the bug for context. This patch is intended for uplifting directly to
140/beta without landing on 141/m-c. It depends on bug 1965903 D252024 being
uplifted first.

Depends on D252024

Differential Revision: https://phabricator.services.mozilla.com/D252026
2025-06-03 18:54:22 +00:00
Drew Willcoxon
a1456b42ba Bug 1965903 - Send all admin divisions to Merino for weather suggestions. r=daisuke a=RyanVM
This makes a couple other changes that aren't strictly necessary:

In `makeResult()`, instead of reusing the `suggestion` variable for the Merino
suggestion, use a new `merinoSuggestion` variable. It's less confusing (and
should be better for eventual TypeScript integration?).

In `QuickSuggestTestUtils`, slightly reorganize the geonames RS data so the
order of the properties is consistent with the similar mock data in the Rust
component and geonames uploader Merino job. Also use real geoname IDs.

Differential Revision: https://phabricator.services.mozilla.com/D252024
2025-06-03 16:00:01 +00:00