Commit Graph

37045 Commits

Author SHA1 Message Date
Tom Marble
d70780c99c Bug 1850545 - convert .ini manifests to .toml: batch 3 chrome.ini (bis) r=jmaher,geckoview-reviewers,extension-reviewers,credential-management-reviewers,devtools-reviewers,fxview-reviewers,places-reviewers,profiler-reviewers,m_kato,mak,mtigley
Differential Revision: https://phabricator.services.mozilla.com/D187597
2023-09-13 18:28:32 +00:00
Masatoshi Kimura
11c3a07046 Bug 1852881 - Stop using MockRegistrar in browser_setDefaultPDFHandler.js. r=nalexander
Differential Revision: https://phabricator.services.mozilla.com/D188075
2023-09-13 18:22:24 +00:00
Greg Tatum
bb9ce57e07 Bug 1852982 - Fix the logic for autotranslate language to not trust the stored values; r=nordzilla
Differential Revision: https://phabricator.services.mozilla.com/D188096
2023-09-13 17:20:26 +00:00
Fred Chasen
54259db2c3 Bug 1851609 - Add Analyze and Analysis Status Product APIs. r=shopping-reviewers,jhirsch
- Adds the API endpoint and schema for analyze and analysis status.
- Adds `requestCreateAnalysis` and `requestAnalysisCreationStatus` methods for products.
- Updated `pollForAnalysisCompleted` to poll the analysis status api instead of analysis.
- Polling now has an initial wait of 30s and will poll every 1s after that for 3 more minutes when analyze status is pending.
- Polling will skip the wait and check every 1s (for 3 minutes) if analysis is already in progress.
- Removed exponential backoff as the new api gives updated progress with the status, so better to get it consistently.
- Removed links to external analysis triggers.
- Update ShoppingSidebarChild `updateContent` to check if there is an analysis in progress and if so wait for it to finish before requesting the analysis.

NOTE: Now that `pollForAnalysisCompleted` has a status api to poll, it returns a status result. The analysis data will now need to be requested with `requestAnalysis` after the polling has finished.

Differential Revision: https://phabricator.services.mozilla.com/D187818
2023-09-13 16:27:18 +00:00
Niklas Baumgardner
405bcf3442 Bug 1852319 - Disable ad fetch if ad pref is disabled. r=shopping-reviewers,jhirsch,kpatenio
Differential Revision: https://phabricator.services.mozilla.com/D187925
2023-09-13 14:00:11 +00:00
Marco Bonardo
e8db79b5ea Bug 1846781 - Use recalc_frecency for updating origins frecency instead of triggers. r=daisuke
Until now we updated origins frecency using direct SQL triggers.
While that guaranteed good performance, it also had some downsides:
 * replacing the algorithms is complicate, the current system only works
   with a straight sum of page frecencies. We are planning to experiment with
   different algorithms in the future.
 * it requires using multiple temp tables and DELETE triggers, that is error
   prone for consumers, that may forget to DELETE from the temp tables, and thus
   break data coherency.
 * there's not much atomicity, since the origins update must be triggered apart
   and a crash would lose some of the changes

This patch is changing the behavior to be closer to the recalc_frecency one that
is already used for pages.
When a page is added, visited, or removed, recalc_frecency of its origin is set
to 1. Later frecency of invalidated origins will be recalculated in chunks.
While this is surely less efficient than the existing system, it solves the
problems presented above.
A threshold is recalculated at each chunk, and stored in the moz_meta table.
This patch continues using the old STATS in the moz_meta table, to allow for
easier downgrades. Once a new threshold will be introduced we'll be able to
stop updating those.

The after delete temp table is maintained because there's no more efficient way
to remove orphan origins promptly. Thus, after a removal from moz_places,
consumers MUST still DELETE from the temp table to cleanup orphan origins.
This also introduces a delayed removal of orphan origins when their frecency
becomes 0.

Differential Revision: https://phabricator.services.mozilla.com/D186070
2023-09-13 13:58:30 +00:00
Kelly Cochrane
439792e3b2 Bug 1833658 - Add Telemetry for Recent Browsing r=fxview-reviewers,jsudiaman,sclements
Differential Revision: https://phabricator.services.mozilla.com/D187676
2023-09-13 13:06:50 +00:00
Masatoshi Kimura
d8eea9e97a Bug 1850631 - Call nsIDefaultAgent directly to set default. r=nrishel,nalexander
Differential Revision: https://phabricator.services.mozilla.com/D187853
2023-09-13 03:18:46 +00:00
Narcis Beleuzu
a5326397df Backed out changeset c74fb301e2f4 (bug 1851609) for bc failures on browser_shopping_integration.js . CLOSED TREE 2023-09-13 04:51:24 +03:00
Sam Foster
433827d58e Bug 1851867 - Updated the sidebar icons in fxview-next to better center them. r=fxview-reviewers,kcochrane
Differential Revision: https://phabricator.services.mozilla.com/D188050
2023-09-12 23:22:19 +00:00
Stephanie Cunnane
35dd9d1a50 Bug 1847794 - Ensure the Search component's browser mochitests and XPCShell tests use add_setup correctly. r=search-reviewers,daleharvey
Differential Revision: https://phabricator.services.mozilla.com/D187935
2023-09-12 22:41:40 +00:00
Perry McManis
7fa9e8a074 Bug 1849236 - Send a shopping component displayed Event r=jhirsch,TravisLong
Differential Revision: https://phabricator.services.mozilla.com/D186500
2023-09-12 20:00:05 +00:00
Fred Chasen
0c7ab5b51d Bug 1851609 - Add Analyze and Analysis Status Product APIs. r=shopping-reviewers,jhirsch
- Adds the API endpoint and schema for analyze and analysis status.
- Adds `requestCreateAnalysis` and `requestAnalysisCreationStatus` methods for products.
- Updated `pollForAnalysisCompleted` to poll the analysis status api instead of analysis.
- Polling now has an initial wait of 30s and will poll every 1s after that for 3 more minutes when analyze status is pending.
- Polling will skip the wait and check every 1s (for 3 minutes) if analysis is already in progress.
- Removed exponential backoff as the new api gives updated progress with the status, so better to get it consistently.
- Removed links to external analysis triggers.
- Update ShoppingSidebarChild `updateContent` to check if there is an analysis in progress and if so wait for it to finish before requesting the analysis.

NOTE: Now that `pollForAnalysisCompleted` has a status api to poll, it returns a status result. The analysis data will now need to be requested with `requestAnalysis` after the polling has finished.

Differential Revision: https://phabricator.services.mozilla.com/D187818
2023-09-12 18:55:31 +00:00
Narcis Beleuzu
6da7cb47ae Backed out changeset e2f01ea9db72 (bug 1848815) for bc failure on browser_aboutCertError_mitm.js 2023-09-12 22:16:18 +03:00
Molly Howell
ac135e9358 Bug 1852151 - Add a policy equivalent to DisableFirefoxAccounts but without being called Firefox. r=mkaply,fluent-reviewers,flod
Differential Revision: https://phabricator.services.mozilla.com/D187726
2023-09-12 18:14:08 +00:00
Molly Howell
a841a4d732 Bug 1848815 - Add a user-facing setting to enable enterprise roots import, and enable it by default. r=keeler,settings-reviewers,fluent-reviewers,desktop-theme-reviewers,flod,Itiel,Gijs
Differential Revision: https://phabricator.services.mozilla.com/D186236
2023-09-12 17:15:09 +00:00
Masatoshi Kimura
7f31abe035 Bug 1852412 - Convert set user choice error types to nsresult. r=nrishel
Differential Revision: https://phabricator.services.mozilla.com/D187849
2023-09-12 03:26:52 +00:00
Shane Hughes
d959e72d8f Bug 1852597 - Fix chrome panel feature callout color scheme. r=jprickett
Differential Revision: https://phabricator.services.mozilla.com/D187923
2023-09-11 21:41:38 +00:00
Katherine Patenio
e1668993ea Bug 1852285 - display analysis explainer card in all sidebar states. r=shopping-reviewers,jhirsch
Differential Revision: https://phabricator.services.mozilla.com/D187939
2023-09-11 21:38:06 +00:00
Fred Chasen
ec6b2af4db Bug 1852099 - Check for product id equality on UpdateProductURL. r=Gijs,shopping-reviewers
When a new url is passed in a `ShoppingSidebar:UpdateProductURL` message to a sidebar that already has a product assigned, this will check that the parsed product id of the new url is different than the previous product id before requesting a new analysis.

This should prevent reloading the data for the same product unnecessarily, for instance when only query params have changed.

Differential Revision: https://phabricator.services.mozilla.com/D187703
2023-09-11 20:50:01 +00:00
mcheang
e7026d618a Bug 1688019 - Dedupe google redirect links results. r=mak
Differential Revision: https://phabricator.services.mozilla.com/D186578
2023-09-11 19:32:49 +00:00
Emily McMinn
09577d4a75 Bug 1850432 - Update brand name in shopping sidebar onboarding strings r=fluent-reviewers,flod
Differential Revision: https://phabricator.services.mozilla.com/D187802
2023-09-11 19:18:52 +00:00
Niklas Baumgardner
c82946c04b Bug 1848042 - Show content as focused in shopping sidebar. r=kpatenio
Differential Revision: https://phabricator.services.mozilla.com/D187473
2023-09-11 18:41:43 +00:00
Emily McMinn
efbdad2cde Bug 1852150 - Remove margin:inline from shopping sidebar buttons r=omc-reviewers,aminomancer
Differential Revision: https://phabricator.services.mozilla.com/D187723
2023-09-11 17:59:39 +00:00
Cieara Meador
ba0f272343 Bug 1847102 - PBM styling updates r=mhowell,desktop-theme-reviewers,dao
Differential Revision: https://phabricator.services.mozilla.com/D186185
2023-09-11 17:31:55 +00:00
Drew Willcoxon
264faae46f Bug 1852354 - Invalidate the result menu command cache on "Show less frequently" for addon and Pocket suggestions. r=daisuke
It isn't possible to manually test this right now until we set a cap in the
remote settings config (bug 1852353), but the automated tests cover it.

Depends on D187830

Differential Revision: https://phabricator.services.mozilla.com/D187835
2023-09-11 17:04:09 +00:00
Drew Willcoxon
657f813e79 Bug 1852300 - Make dismissal acknowledgments go through UrlbarController.removeResult(). r=dao
The problem is that showing the dismissal acknowledgment tip does not remove the
result from the query context, so when the view later opens and reuses the
cached query context, it still has the dismissed result in it.

At first I thought I should modify `UrlbarView.acknowledgeDismissal()` so it
either invalidates the context cache or removes the result from the cached
context, but I saw that dismissals without the acknowledgment tip do not have
this problem. That's because they go through `UrlbarController.removeResult()`,
which removes the result from the context and then notifies the view.

The real problem is that I implemented dismissal acknowledgments wrong. They
should start by going through `UrlbarController.removeResult()` too.

This patch updates all callers of `acknowledgeDismissal()` so they call
`removeResult()` instead. To signal that an acknowledgment should be shown, they
first set a `result.acknowledgeDismissalL10n` property. When the view is
notified that a result was removed, it shows the tip if this property is
present.

Differential Revision: https://phabricator.services.mozilla.com/D187830
2023-09-11 17:04:09 +00:00
Sam Foster
711bc55b71 Bug 1850758 - Hide the firefoxview buttons/entrypoints when in permanent private browsing. r=sclements,desktop-theme-reviewers,fxview-reviewers,dao
Differential Revision: https://phabricator.services.mozilla.com/D187738
2023-09-11 16:27:13 +00:00
Cosmin Sabou
48d662a20a Merge mozilla-central to autoland. CLOSED TREE 2023-09-11 18:43:11 +03:00
Perry McManis
e837d2be96 Bug 1849344 - Update shopping settings test to reflect process particularities r=chutten,Gijs
Differential Revision: https://phabricator.services.mozilla.com/D186865
2023-09-11 13:45:58 +00:00
Cosmin Sabou
ba8a89ba9e Backed out 9 changesets (bug 1839918) for causing a top crash as in Bug 1852357. a=backout
Backed out changeset 1c438df525c7 (bug 1839918)
Backed out changeset 6e3d7fdfda3f (bug 1839918)
Backed out changeset 087b27593538 (bug 1839918)
Backed out changeset 302d12c12083 (bug 1839918)
Backed out changeset 750e0796c1ad (bug 1839918)
Backed out changeset 3949d9b400d4 (bug 1839918)
Backed out changeset 707021ebfd23 (bug 1839918)
Backed out changeset fa9a6af80526 (bug 1839918)
Backed out changeset 5aa3b2f1b5ec (bug 1839918)
2023-09-11 16:42:08 +03:00
negin
1cb292b852 Bug 1847284 - [Survey] Implement a way to render aboutwelcome's steps indicator above action buttons in the dom r=omc-reviewers,emcminn
Differential Revision: https://phabricator.services.mozilla.com/D187290
2023-09-11 13:09:40 +00:00
stransky
6bff0f416f Bug 1852503 [Linux] Fall back to dbus_gmain_set_up_connection() handler r=emilio,necko-reviewers,valentin
Differential Revision: https://phabricator.services.mozilla.com/D187875
2023-09-11 10:22:54 +00:00
Marco Bonardo
e655b38918 Bug 1852079 - Remove unused options from nsINavHistoryQuery and nsINavHistoryQueryOptions. r=daisuke,places-reviewers
Differential Revision: https://phabricator.services.mozilla.com/D187759
2023-09-11 10:14:59 +00:00
Dale Harvey
5a7c657497 Bug 1852371 - Add a timeout to screenshot test. r=daisuke
Differential Revision: https://phabricator.services.mozilla.com/D187858
2023-09-10 22:34:53 +00:00
Daisuke Akatsuka
f21d94cded Bug 1850902: Remove browser.fixup.alternate.enabled pref and its code path r=jteow,mak
Differential Revision: https://phabricator.services.mozilla.com/D187237
2023-09-10 22:33:27 +00:00
Masatoshi Kimura
25336440d8 Bug 1851596 - await _handleWDBAResult. r=nalexander
Differential Revision: https://phabricator.services.mozilla.com/D187845
2023-09-10 06:44:06 +00:00
Norisz Fay
5d9b700de0 Backed out changeset df18c9cb1487 (bug 1851596) for causing mochitest failure on browser_setDefaultBrowser.js CLOSED TREE 2023-09-10 03:04:19 +03:00
Masatoshi Kimura
625a5be1dc Bug 1851596 - await _handleWDBAResult. r=nalexander
Differential Revision: https://phabricator.services.mozilla.com/D187845
2023-09-09 23:15:51 +00:00
Dale Harvey
ee71091537 Bug 1852280 - Ensure QuickActions are enabled in test. r=daisuke
Differential Revision: https://phabricator.services.mozilla.com/D187817
2023-09-08 22:37:27 +00:00
Katherine Patenio
82e953e9b8 Bug 1850602 - Add spinner to in-progress-analysis shopping-message-bar r=shopping-reviewers,reusable-components-reviewers,desktop-theme-reviewers,amy,mstriemer
Differential Revision: https://phabricator.services.mozilla.com/D187139
2023-09-08 21:16:13 +00:00
Tom Schuster
f26c47e1d3 Bug 1845940 - Call RecomputeResistFingerprinting in Document::SetPrincipals. r=emilio
Differential Revision: https://phabricator.services.mozilla.com/D184943
2023-09-08 19:24:44 +00:00
Perry McManis
3aa5619a91 Bug 1851675 - Send a shopping component back-in-stock clicked Event r=TravisLong,jhirsch
Differential Revision: https://phabricator.services.mozilla.com/D187504
2023-09-08 18:53:23 +00:00
Katherine Patenio
bb1c34d29d Bug 1848396 - call availability report API when report back-in-stock button is selected r=shopping-reviewers,Gijs
Differential Revision: https://phabricator.services.mozilla.com/D187308
2023-09-08 18:53:23 +00:00
Katherine Patenio
098e92ee16 Bug 1846519 - create unsupported product shopping-message-bar r=shopping-reviewers,fluent-reviewers,Gijs,flod
Differential Revision: https://phabricator.services.mozilla.com/D187295
2023-09-08 18:41:19 +00:00
Punam Dahiya
93c947d0cf Bug 1846786 - Add microsurvey in shopping sidebar r=pdahiya
Depends on D187004

Differential Revision: https://phabricator.services.mozilla.com/D187325
2023-09-08 17:25:07 +00:00
Ed Lee
60516b4bcf Bug 1846786 - Rework onboarding and shopping container interaction to support survey r=pdahiya,shopping-reviewers,Gijs
Have onboarding.mjs wait for AboutWelcomeShoppingChild to indicate when to render with Update event handled directly.

Differential Revision: https://phabricator.services.mozilla.com/D187004
2023-09-08 17:25:07 +00:00
Gijs Kruitbosch
97007df73d Bug 1846787 - let shopping code ride the train (disabled by default), r=jhirsch
Differential Revision: https://phabricator.services.mozilla.com/D187779
2023-09-08 17:04:40 +00:00
Iulian Moraru
1b7635f607 Backed out changeset f65d71f51234 (bug 1848815) for causing xpcshell assertion failures on nsNSSComponent.cpp. CLOSED TREE 2023-09-08 19:22:18 +03:00
Molly Howell
cca6b1534e Bug 1848815 - Add a user-facing setting to enable enterprise roots import, and enable it by default. r=keeler,settings-reviewers,fluent-reviewers,desktop-theme-reviewers,flod,Itiel,Gijs
Differential Revision: https://phabricator.services.mozilla.com/D186236
2023-09-08 15:07:16 +00:00