Commit Graph

31746 Commits

Author SHA1 Message Date
Mike Kaply
f63f640b03 Bug 1520913 - Allow password manager exceptions in policy. r=mstriemer,fluent-reviewers,flod,preferences-reviewers,Gijs
Differential Revision: https://phabricator.services.mozilla.com/D142886
2022-04-14 19:41:32 +00:00
Scott
c73ace9e0b Bug 1764799 - Save to Pocket panel dark mode border fix. r=gvn
Differential Revision: https://phabricator.services.mozilla.com/D143742
2022-04-14 18:42:55 +00:00
Paul Zuehlcke
8348f10f2b Bug 1741597 - Revert cookie behavior to initial default value when dFPI rollout pref is set to false. r=timhuang
Differential Revision: https://phabricator.services.mozilla.com/D131348
2022-04-14 16:32:34 +00:00
Ben Hearsum
01076318eb Bug 1763573: temporarily disable Windows 7 taskbar pinning to determine whether or not it's causing crashes r=mhowell
Differential Revision: https://phabricator.services.mozilla.com/D143719
2022-04-14 16:26:34 +00:00
Meg Viar
5da74d3213 Bug 1764330 - The QR code from the "PB_FOCUS_PROMO" modal wrongly redirects to the "Firefox Klar" app even if the region is set to "US" and a Firefox en-US locale build is used r=pdahiya
Differential Revision: https://phabricator.services.mozilla.com/D143724
2022-04-14 16:09:34 +00:00
gliu20
39abe7b5e3 Bug 1731889 - Remove the 'visibility' property instead of setting it to 'visible' so a11y tools don't read these when their parent is hidden. r=morgan,jaws
Differential Revision: https://phabricator.services.mozilla.com/D126527
2022-04-14 15:02:56 +00:00
Marco Bonardo
2a7d907e61 Bug 1764275 - Add faviconDataUrl and imagePageUrl to Snapshot Groups. r=daleharvey
Add faviconDataUrl and imagePageUrl to each Snapshot Group so the companion can
directly use these instead of a polyfill for faviconImage and url.

Also change favicon service APIs to respect mDefaultIconURIPreferredSize instead
of always returning the largest icon. This allows to use those APIs more easily
from jsm modules without having to pass around window handles.

Differential Revision: https://phabricator.services.mozilla.com/D143462
2022-04-14 13:10:54 +00:00
Molnar Sandor
37741f92c5 Backed out changeset 40580eaf2289 (bug 1741597) for causing mochitest failures in browser_contentblocking_standard_tcp_toggle. CLOSED TREE 2022-04-14 14:18:08 +03:00
Paul Zuehlcke
d566205e63 Bug 1741597 - Revert cookie behavior to initial default value when dFPI rollout pref is set to false. r=timhuang
Differential Revision: https://phabricator.services.mozilla.com/D131348
2022-04-14 10:13:23 +00:00
Ed Lee
076d73d31f Bug 1764535 - The “about:welcome” page is broken on Firefox AR locale if the Central Kurdish OS language is set r=gregtatum
Differential Revision: https://phabricator.services.mozilla.com/D143646
2022-04-14 00:44:46 +00:00
Gavin Suntop
39538c35e2 Bug 1759895 - Wire up new STP dark theme r=thecount
Differential Revision: https://phabricator.services.mozilla.com/D143617
2022-04-14 00:14:49 +00:00
Drew Willcoxon
32e1ef3b0c Bug 1761059 - Part 2: Record an engagement telemetry event for quick suggest results. r=daisuke
This adds a new "engagement" telemetry event for quick suggest results. The
event's object can be the following values:

* "block": The user dismissed ("blocked") the suggestion.
* "click": The user picked the suggestion.
* "help": The user picked the suggestion's help button.
* "impression_only": The user picked some other row.

For this particular bug, we're interested in recording blocks, but there's no
reason not to generalize that idea into an engagement event like this that
records all types of interactions.

Depends on D143254

Differential Revision: https://phabricator.services.mozilla.com/D143331
2022-04-13 21:12:11 +00:00
Drew Willcoxon
60b4d22484 Bug 1761059 - Part 1: Add telemetry scalars for Suggest suggestion blocking. r=daisuke
This does several things:

* Add new scalars for blocked suggestions
* Record the impression custom telemetry ping when a suggestion is blocked
* Remove the code that gets the index of the quick suggest result when the
  engagement telemetry is recorded. We can replace all that with simply
  `result.rowIndex`, but we need to store the result we last added in a property
  to do that, so I replaced `_addedResultInLastQuery` with
  `_resultFromLastQuery`
* Modify the urlbar engagement telemetry event code by adding the following
  `selType` values: "quicksuggest", "block". We can use the `selType` in the
  quick suggest engagement telemetry code to determine whether the block button
  or the main part of the row was clicked.

Depends on D143246

Differential Revision: https://phabricator.services.mozilla.com/D143254
2022-04-13 21:12:10 +00:00
Drew Willcoxon
25265384ed Bug 1761055 - Implement support for blocking usual non-best-match Firefox Suggest suggestions. r=daisuke
This revision does the following:

* Add a new Nimbus variable `quickSuggestBlockingEnabled` with a fallback pref
  to show the block button on the usual non-best-match quick suggest rows.
* Previously we supported the block button only on best match rows. This keeps
  that, and it also adds a Nimbus variable `bestMatchBlockingEnabled` for it.
  We only had a pref for it.
* Change the name of the `browser.urlbar.quickSuggest.blockedDigests` pref to
  `browser.urlbar.quicksuggest.blockedDigests` -- i.e., "quicksuggest" should be
  in all lowercase, not camel case, since that's what all quick suggest prefs
  use. We don't need to worry about a pref migration because blocking has never
  been enabled.
* When setting the `browser.urlbar.quicksuggest.blockedDigests` pref, ignore the
  resulting `onPrefChanged()` listener call. I do this by keeping a new
  `_updatingBlockedDigests` property, similar to `_updatingImpressionStats`
  added in D142152.
* Copy the browser_quicksuggest_bestMatch.js test to a new
  browser_quicksuggest_block.js test that is specifically for testing blocking.
  The new test checks both usual quick suggest rows and best matches.

Depends on D142780

Differential Revision: https://phabricator.services.mozilla.com/D143246
2022-04-13 21:12:10 +00:00
Mike Kaply
1f239d1e44 Bug 1711719 - Disable new tab menulist if preference is locked. r=Gijs,preferences-reviewers
Differential Revision: https://phabricator.services.mozilla.com/D143610
2022-04-13 17:56:37 +00:00
Barret Rennie
3384f9c880 Bug 1754220 - Update ASRouter messages when force-enrolling in an experiment r=dmose
Differential Revision: https://phabricator.services.mozilla.com/D142240
2022-04-13 15:56:21 +00:00
Butkovits Atila
0a0a5f66a3 Backed out changeset 543a78ca4fa9 (bug 1747343) for causing mochitest failures at browser_bug676619.js. CLOSED TREE 2022-04-13 03:31:53 +03:00
Shane Hughes
d59826c8a2 Bug 1747343 - Add pref to set default action for new mimetypes. r=Gijs,fluent-reviewers,preferences-reviewers
When downloading a file, we check for existing mime types and construct
a new one if it's unrecognized. Mime types have a flag,
alwaysAskBeforeHandling, that determines whether the unknown content
type dialog should be opened before handling the file. Before bug
1733492, the default value for that flag was simply true. Since the new
downloads flow is intended to avoid unnecessary steps, the default value
was changed to the inverted value of the new downloads panel
improvements pref. This patch adds a new pref that the mime info
constructor will read in configuring the flag's value. If the
improvements pref is not enabled, then the flag will be true, so the UCT
dialog will open. If the improvements pref is enabled, then it'll use
the value of the new pref. Also add a an interface for the pref to the
about:preferences UI, and automatically migrate a false value for
browser.download.improvements_to_download_panel to a true value for this
pref. I'm updating some tangentially related test files since they
happen to be touched slightly by this change. Strictly speaking they
would still work, but if the pref value was somehow changed from the
default they would fail.

Differential Revision: https://phabricator.services.mozilla.com/D143002
2022-04-12 22:32:45 +00:00
Rob Lemley
a23e8b969f Bug 1764092 - Relocate AsanReporter.jsm to /toolkit. r=decoder
Differential Revision: https://phabricator.services.mozilla.com/D143382
2022-04-12 21:27:47 +00:00
Scott
ccbca492aa Bug 1763659 - Save to Pocket panel refresh font size improvements r=gvn
Differential Revision: https://phabricator.services.mozilla.com/D143217
2022-04-12 21:01:55 +00:00
Neil Deakin
2f56ba879f Bug 1759984, always show pdf in applications list even when the internal pdf viewer is disabled, r=Gijs,preferences-reviewers
In addition, if someone has pdf set to open internally but then disables the pdf viewer, an error occurs when trying to view a pdf. Handle this case by just asking what to do.

Differential Revision: https://phabricator.services.mozilla.com/D143313
2022-04-12 16:02:28 +00:00
Meg Viar
f92dddd1cf Bug 1763437 - Show 'Firefox Klar' for English locale in PB Focus Promo r=pdahiya
Differential Revision: https://phabricator.services.mozilla.com/D143082
2022-04-12 15:17:50 +00:00
Mike Kaply
a83f31cc7d Bug 1499095 - Remove engines hidden by policy after restoring defaults. r=Standard8
Differential Revision: https://phabricator.services.mozilla.com/D142888
2022-04-12 14:58:45 +00:00
Paul Zuehlcke
4faa9743bc Bug 1746383 - Set URLBar pageProxyState to invalid for onLocationChange triggered by SessionStore. r=nika,dao
Differential Revision: https://phabricator.services.mozilla.com/D138823
2022-04-12 14:41:06 +00:00
Marian-Vasile Laza
7134707a38 Backed out changeset c43b947f03b0 (bug 1634127) for causing newtab failures. CLOSED TREE 2022-04-12 05:29:27 -07:00
Mathieu Leplatre
0da93ad8ff Bug 1634127 - Download attachments in IndexedDB by default r=necko-reviewers,robwu,dragana
This patch changes the default behaviour of `download()`.

- Previous file-based behaviour was moved to `downloadToDisk()` and `deleteFromDisk()`. Existing consumers were migrated to avoid behaviour change.
- `download()` has now `{useCache: true}` by default, option was dropped, and `deleteCached()` is now `deleteDownloaded()`

Differential Revision: https://phabricator.services.mozilla.com/D141980
2022-04-12 10:50:47 +00:00
Gijs Kruitbosch
1fb46fa941 Bug 1758250 - deal with non-existing url values from session restore so they don't brick other functionality, r=dao
Differential Revision: https://phabricator.services.mozilla.com/D142947
2022-04-12 10:39:03 +00:00
Sam Foster
da60508fa5 Bug 1761787 - Add a shell for the signup flow / synced tabs area of My Firefox. r=Gijs,fluent-reviewers
* Sketch in a page layout and grid to house the tab-pickup region
* Add a tabs-pickup module with custom elements for the deck of cards that is the setup flow
* and a container with placeholder logic to manage the setup flow
* Make myfirefox.js a module, hook up the tabs-pickup element with its controller/manager where we can implement the fxa flow & business logic stuff

Differential Revision: https://phabricator.services.mozilla.com/D142661
2022-04-11 23:18:35 +00:00
Cosmin Sabou
bbda118190 Backed out changeset aa07bcb8d62d (bug 1761787) for causing bc failures on browser_all_files_referenced.js and browser_parsable_script.js. CLOSED TREE 2022-04-11 21:54:15 +03:00
Sam Foster
bbd61943fd Bug 1761787 - Add a shell for the signup flow / synced tabs area of My Firefox. r=Gijs,fluent-reviewers
* Sketch in a page layout and grid to house the tab-pickup region
* Add a tabs-pickup module with custom elements for the deck of cards that is the setup flow
* and a container with placeholder logic to manage the setup flow
* Make myfirefox.js a module, hook up the tabs-pickup element with its controller/manager where we can implement the fxa flow & business logic stuff

Differential Revision: https://phabricator.services.mozilla.com/D142661
2022-04-11 17:53:30 +00:00
Meg Viar
e3ec61e716 Bug 1762471 - For AboutWelcome screens, use screen index rather than setting screen order explicitly in the config r=Mardak
Differential Revision: https://phabricator.services.mozilla.com/D142860
2022-04-11 14:53:38 +00:00
Dave Townsend
125c77cec6 Bug 1761932: Allow overriding the weight of recommendation sources when creating the selector. r=Standard8
Being able to change the source weights allows for selecting different sources depending on the
UI.
This also moves the pref check for whether to use the new recommendations into the selector.

Differential Revision: https://phabricator.services.mozilla.com/D143029
2022-04-10 18:19:31 +00:00
Dave Townsend
dcec8b5427 Bug 1761932: Add source scores together when a snapshot is recommended by more than one source. r=Standard8
Differential Revision: https://phabricator.services.mozilla.com/D142793
2022-04-10 18:19:31 +00:00
Dave Townsend
83bb77c9da Bug 1761932: Call recommendation sources in parallel and apply source-specific weights. r=Standard8
There are some non-final pieces here that will be improved in the next patch but
this makes most of the changes to how we generate and combine recommendations.

It does not yet sum the source specific scores instead still using the highest
so the same scores show up in tests. The next patch will change the calculation.

Differential Revision: https://phabricator.services.mozilla.com/D142792
2022-04-10 18:19:30 +00:00
Dave Townsend
8100a45337 Bug 1761932: Expose snapshot recommendation sources as a map. r=Standard8
Exposes and calls recommendation sources in a consistent manner passing the full
selection context to them.

Differential Revision: https://phabricator.services.mozilla.com/D142791
2022-04-10 18:19:30 +00:00
Dave Townsend
a241b13d7a Bug 1761932: Move more of the filtering and scoring related work to SnapshotScorer. r=Standard8
The work to filter and select recommendations is somewhat split between
SnapshotSelector and SnapshotScorer right now which can be a little confusing.
This simplifies things a little and makes it a bit more efficient by saying that
the selector is responsible for getting the snapshots from the sources and then
the scorer is reponsible for all the filtering and scoring. They share the
SelectionContext object which tells both what to select.

Differential Revision: https://phabricator.services.mozilla.com/D142790
2022-04-10 18:19:29 +00:00
Shane Caraveo
8a81b8a988 Bug 1762394 menu startupCache persistence r=robwu
Add a StartupCache for menus so they are recreated when extensions use event pages.

Differential Revision: https://phabricator.services.mozilla.com/D139789
2022-04-07 22:26:19 +00:00
Emily McMinn
b92444a2a1 Bug 1762433 - Fixes for Windows HCM r=mviar
Fixes for these points from the a11y review of Private Browsing:


   -the download button should have a border (color: ButtonText) when it is hovered so the text itself doesn’t bleed into the background

   -the border on the close button should use ButtonText

   -the google play and app store buttons in the dialog seem to be images, and the images already have borders so adding the button border like we’d normally makes it look fuzzy/visually indistinct. Ideally I’d remove the border from the image and rely on the CSS styling to add the (dynamic) border back in, but we could also remove the border in HCM since this content wont be adaptive anyway (and I think having the additional border here is actually harming the UX)

Differential Revision: https://phabricator.services.mozilla.com/D143092
2022-04-07 21:01:06 +00:00
Meg Viar
ca80b2c7d1 Bug 1763470 - Accessibility updates for FX100 upgrade dialog r=Mardak
Differential Revision: https://phabricator.services.mozilla.com/D143182
2022-04-07 19:22:30 +00:00
Marco Bonardo
ed8f45e575 Bug 1763577 - MR2-426 - Implement initial snapshots expiration. r=mossop
Differential Revision: https://phabricator.services.mozilla.com/D143144
2022-04-07 19:01:23 +00:00
Ed Lee
538afba29e Bug 1763486 - Improve heart animation image asset for dark mode r=mviar
Differential Revision: https://phabricator.services.mozilla.com/D143106
2022-04-07 19:00:10 +00:00
Mike Kaply
a96831c59b Bug 1762972 - Don't use head.js in standalone tests. r=mstriemer
Differential Revision: https://phabricator.services.mozilla.com/D142960
2022-04-07 18:46:32 +00:00
Meg Viar
c02cdd5903 Bug 1762477 - Add test coverage for resetMessageState in ASRouter.jsm r=dmose
Differential Revision: https://phabricator.services.mozilla.com/D142890
2022-04-07 18:26:13 +00:00
Drew Willcoxon
a62f2b582f Bug 1761058 - Implement telemetry for Suggest suggestion frequency capping. r=daisuke
This adds a new "impression_cap" telemetry event with several things recorded in
the `extra` object. Please see the updated documentation and Events.yaml for
details.

This is another big patch but like D142152 most of it is the test.

Depends on D142152

Differential Revision: https://phabricator.services.mozilla.com/D142780
2022-04-07 17:37:06 +00:00
Drew Willcoxon
84ad0ab1aa Bug 1761052 - Implement remotely configurable frequency capping for Suggest suggestions. r=daisuke,nanj
This implements Suggest impression frequency capping. Capping is performed
separately for sponsored and non-sponsored suggestions. Capping is not
per-suggestion; it's per type of suggestion, either sponsored or non-sponsored.
Capping can be enabled separately for each type. It's disabled by default for
both types with Nimbus variables for each.

Caps are specified in the quick suggest config in remote settings. There are two
kinds of caps: interval and lifetime. Multiple overlapping caps are supported,
for example a per-hour cap, a per-day cap, and a lifetime cap.

The user's impression stats are kept locally and stored in a pref. A "stats
object" corresponding to each cap interval is kept. Each stats object keeps
track of its corresponding cap's interval, the date at which the current
interval period started, and the impression count during the current interval
period. (For the lifetime cap, the interval in the stats object is Infinity.)

Each time a suggestion impression is recorded, the counters in all the
suggestion type's stats objects are incremented. Once a counter for any stats
object is reached, we stop showing that type of suggestion.

When the interval of a stats object has elapsed, its counter is reset. In this
revision, we check for elapsed intervals each time a suggestion is shown. In the
future when we add telemetry in bug 1761058, we will need to record telemetry
events for intervals where caps were not hit, so we may need to do this check
more often (for example near the beginning of `startQuery()`) or even do it on a
repeating timer.

There's some slightly complicated logic for handling changes in the cap config
since it's likely to change over time as we experiment with it (see
`_validateImpressionStats()`).

This revision also makes a few minor improvements unrelated to the bug.

Differential Revision: https://phabricator.services.mozilla.com/D142152
2022-04-07 17:37:05 +00:00
Tim Giles
bbe804d30a Bug 1763618 - Add overflow to login intro illustration so that layout will shrink accordingly when zoomed in. r=sgalich
Differential Revision: https://phabricator.services.mozilla.com/D143194
2022-04-07 17:24:09 +00:00
Barret Rennie
352961fbb0 Bug 1761652 - Fail to write session file more gracefully if we started in permanent private browsing r=Gijs
Differential Revision: https://phabricator.services.mozilla.com/D143103
2022-04-07 15:25:29 +00:00
Scott
4b607629d4 Bug 1753304 - Save to Pocket panels Set initial heights and widths for both sets of panels r=gvn
Differential Revision: https://phabricator.services.mozilla.com/D143071
2022-04-07 15:15:25 +00:00
Punam Dahiya
c34f55fcf7 Bug 1751093 - Clean up Cloud Storage API and its usage in about:preferences r=preferences-reviewers,Gijs
Differential Revision: https://phabricator.services.mozilla.com/D137248
2022-04-07 10:17:13 +00:00
Chris Peterson
aa1fb91e2b Bug 1763310 - Report ARM64 Windows 11+ as "x86_64" (and continue to report Windows 10 as "x86"). r=hsivonen,necko-reviewers,dragana
Windows 11+ supports x86_64 emulation, but Windows 10 only supports x86 emulation.

Advantages of reporting ARM64 Windows 11+ as x86_64:

* Sites that offer software downloads will know that the client is capable of running x86_64 software.

* Reduced fingerprinting entropy because ARM64 Windows 11+ users' UA string will match the UA string of the ~80% of Windows Firefox users running x86_64 instead of the ~20% running x86.

* Some sites disable features for 32-bit clients, such as Google Meet requiring 64-bit to use wasm visual effects:

https://github.com/WICG/ua-client-hints/issues/217#issuecomment-878537336

https://support.google.com/meet/answer/10058482?expand_all_zippies=true#requirements&zippy=%2Cwhy-cant-i-use-the-change-background-option%2Crequirements-to-apply-visual-effects-on-computer

The browser_navigator.js test is not actually run on ARM64 Windows in automation, but these test changes would make the test pass on ARM64 Windows 10 and 11 if this test ever is run.

Differential Revision: https://phabricator.services.mozilla.com/D143010
2022-04-07 01:43:20 +00:00