Commit graph

189 commits

Author SHA1 Message Date
Sandor Molnar
47da40cec7 Backed out 4 changesets (bug 1853698, bug 1853763, bug 1846498) for causing mochitest failures on browser_privatebrowsing_resetPBM.js & browser_1089591_still_customizable_after_reset CLOSED TREE
Backed out changeset 15945b5a02c7 (bug 1853698)
Backed out changeset b396820a7a46 (bug 1853763)
Backed out changeset 535f72d66f52 (bug 1846498)
Backed out changeset 439c5b41701a (bug 1846498)
2023-09-26 16:53:51 +03:00
Paul Zuehlcke
e578297fd3 Bug 1846498 - Add a restart PBM session button and panel for private windows. r=desktop-theme-reviewers,mconley,dao
Differential Revision: https://phabricator.services.mozilla.com/D187223
2023-09-26 09:20:24 +00:00
Sam Foster
8165b4bf88 Bug 1845796 - Rework the flow in ScreenshotsUtils to make exit an explicit outcome rather than a side-effect. r=niklas
* Add a UIPhases / getUIPhase to figure out where we are in the flow, and get the UI into the right state
* Refactor to get rid of a bunch of implicit side-effects:
  - Separate out getting the panel from creating it
  - closePanel only closes the buttons panel
  - Add a closeOverlay so we do that and only that when needed
* When the preview dialog closes, we expect to exit unless exitOnPreviewClose was set false
* Keep some state for each browser using a weakmap so we can better handle re-entry (and later, re-focusing)

Differential Revision: https://phabricator.services.mozilla.com/D185379
2023-09-19 00:14:27 +00:00
James Teow
d1761aed79 Bug 1850000 - Add listener and in-memory storage of Search Categorization collection - r=Standard8,leplatrem
Differential Revision: https://phabricator.services.mozilla.com/D186805
2023-09-18 13:42:53 +00:00
Marco Bonardo
e9ffac0820 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
Daisuke Akatsuka
8e9e77f019 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
Katherine Patenio
b36ef42eb3 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
Ed Lee
8d7229e6f4 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
5736aa0cd2 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
Stanca Serban
daf17befd7 Backed out 2 changesets (bug 1846786) for causing mochitests failures in browser_aboutwelcome_fxa_signin_flow.js. CLOSED TREE
Backed out changeset 347f22f85c41 (bug 1846786)
Backed out changeset 6f141c7b5736 (bug 1846786)
2023-09-07 23:04:38 +03:00
Ed Lee
68a5d57068 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-07 18:25:04 +00:00
Tim Huang
04ee22eb32 Bug 1841104 - Add fingerprinting protection to ETP Strict. r=pbz,settings-reviewers,mconley
Differential Revision: https://phabricator.services.mozilla.com/D187383
2023-09-07 12:11:18 +00:00
Perry McManis
22f5b88cde Bug 1848870 - Instrument Shopping ReAnalysis Click r=TravisLong,Gijs
Differential Revision: https://phabricator.services.mozilla.com/D186559
2023-08-28 18:47:09 +00:00
Cristian Tuns
d594da4841 Backed out 2 changesets (bug 1848870, bug 1849382) for causing bc failures in browser_ui_telemetry.js CLOSED TREE
Backed out changeset 463e81fd4899 (bug 1849382)
Backed out changeset cb32356f7b5c (bug 1848870)
2023-08-28 13:46:16 -04:00
Perry McManis
f08e3a286c Bug 1848870 - Instrument Shopping ReAnalysis Click r=TravisLong,Gijs
Differential Revision: https://phabricator.services.mozilla.com/D186559
2023-08-28 12:52:21 +00:00
Travis Long
1230c4d6d6 Bug 1847994 - Move Glean metric configuration to its own Nimbus feature.r=chutten
Differential Revision: https://phabricator.services.mozilla.com/D186337
2023-08-17 05:49:44 +00:00
Katherine Patenio
4a50822d0f Bug 1846838 - create analysis in-progress message-bar. r=shopping-reviewers,fluent-reviewers,flod,niklas
Differential Revision: https://phabricator.services.mozilla.com/D185228
2023-08-14 20:20:29 +00:00
Shane Hughes
058e34df6e Bug 1843461 - Set up Shopping Sidebar messaging JSActor. r=jhirsch,Gijs,omc-reviewers,Mardak
Differential Revision: https://phabricator.services.mozilla.com/D184956
2023-08-12 05:06:56 +00:00
Marco Bonardo
d85fcf97d3 Bug 1847765 - Remove some old UI Migrations from BrowserGlue. r=dao
Remove UI migrations up to Firefox 72, that was a watershed version.

Differential Revision: https://phabricator.services.mozilla.com/D185673
2023-08-09 08:42:54 +00:00
Jared Hirsch
164dc80e2c Bug 1846812 - Create ShoppingUtils to handle shopping-related tasks at app startup and app shutdown. r=Gijs
Differential Revision: https://phabricator.services.mozilla.com/D185206
2023-08-03 13:55:41 +00:00
Chris H-C
b942d1b485 Bug 1839426 - If FOG shutdown happens before init, enforce init r=janerik
To ensure Glean is always shut down, the FOG service must be initialized.
To ensure the FOG service is initialized, we cannot rely on BrowserGlue's
_scheduleStartupIdleTasks, since that isn't guaranteed to be called in short,
busy sessions.
So we rely on BrowserGlue's quit-application-granted listener
(which is before AppShutdownConfirmed, which is before XPCOMShutdown) so long
as BrowserGlue was ever init'd.

(We'd rely on __dispose instead, which runs around AppShutdown/profile-before-change,
but init'ing services that late sometimes prompts OOMs in xpchsell)

(This is important for catching early data in short, busy sessions.
In most cases this code shouldn't run)

Differential Revision: https://phabricator.services.mozilla.com/D181541
2023-07-31 15:32:34 +00:00
Punam Dahiya
0d2b9f2426 Bug 1839764 - Create Opt-in Messaging Surface r=Gijs
Differential Revision: https://phabricator.services.mozilla.com/D183176
2023-07-28 20:07:03 +00:00
Gijs Kruitbosch
88c70e7340 Bug 1844665 - use about: page for shopping to ensure process mechanics make sense, r=jhirsch,nika
Differential Revision: https://phabricator.services.mozilla.com/D184744
2023-07-27 21:09:28 +00:00
Niklas Baumgardner
9ab7b37e1c Bug 1844171 - Refactor screenshots component. r=sfoster
Differential Revision: https://phabricator.services.mozilla.com/D183313
2023-07-27 16:15:02 +00:00
Sebastian Hengst
92e3e4e7e5 Backed out 2 changesets (bug 1844171) for causing mochitest failures on browser_quickactions.js. Complete backout. CLOSED TREE
Backed out changeset 2989a10ac4e6 (bug 1844171)
Backed out changeset 9bc360cfb992 (bug 1844171)
2023-07-26 21:24:18 +02:00
Harshit Sohaney
678a768900 Bug 1839240 - Removed hardcoded uitour permissions and added a migration script to reset defaults. r=pbz,Mardak
Differential Revision: https://phabricator.services.mozilla.com/D182921
2023-07-26 17:57:44 +00:00
Gregory Pappas
3eac12bbd7 Bug 1845311 - Use ChromeUtils.defineLazyGetter in more places r=arai,webdriver-reviewers,geckoview-reviewers,extension-reviewers,application-update-reviewers,credential-management-reviewers,devtools-reviewers,fxview-reviewers,anti-tracking-reviewers,sessionstore-reviewers,pbz,joschmidt,robwu,issammani,bytesized,owlish,dao
Differential Revision: https://phabricator.services.mozilla.com/D184481
2023-07-26 16:28:11 +00:00
Niklas Baumgardner
4b0d1b06cc Bug 1844171 - Refactor screenshots component. r=sfoster
Differential Revision: https://phabricator.services.mozilla.com/D183313
2023-07-26 15:37:45 +00:00
Jared Hirsch
ba24b03ab2 Bug 1840518 - Disable shopping experience if users opt out via settings r=shopping-reviewers,Gijs
Differential Revision: https://phabricator.services.mozilla.com/D184252
2023-07-26 15:33:40 +00:00
Jared Hirsch
0f7255dfcb Bug 1840847 - Switch shopping sidebar to use Actors for product URL messaging. r=Gijs
Also closes bug 1844101 and bug 1844097.

Differential Revision: https://phabricator.services.mozilla.com/D184048
2023-07-25 13:29:58 +00:00
Malte Juergens
31665cb4bb Bug 1757297: Only work with http scheme for HTTPS-Only exceptions r=freddyb,settings-reviewers,Gijs
- Update the HTTPS-Only dropdown in the site identity pane to always set exceptions for the http version of the current origin.
- Add new parameter `forcedHTTP` to `gPermissionManager`, in order to only allow origins with a http scheme to be added in the HTTPS-Only section of the settings. This means when a https URL is added as an exeption, it will automatically be converted into a http one.
- Add a migration to convert all existing HTTPS-Only exceptions with a https scheme to a http scheme.
- Update `browser_https_only_exceptions.js` and `browser_identityPopup_HttpsOnlyMode.js` to account for this new behaviour.

Differential Revision: https://phabricator.services.mozilla.com/D182761
2023-07-24 13:31:19 +00:00
Natalia Csoregi
48aa16e3fb Backed out changeset 59fa356e72f6 (bug 1839426) for causing failures on /test_backgroundtask_experiments.js. CLOSED TREE 2023-07-17 20:29:06 +03:00
Chris H-C
3035e424b2 Bug 1839426 - If FOG shutdown happens before init, enforce init r=janerik
To ensure Glean is always shut down, the FOG service must be initialized.
To ensure the FOG service is initialized, we cannot rely on BrowserGlue's
_scheduleStartupIdleTasks, since that isn't guaranteed to be called in short,
busy sessions.
So we rely on BrowserGlue's quit-application-granted listener
(which is before AppShutdownConfirmed, which is before XPCOMShutdown) so long
as BrowserGlue was ever init'd.

(We'd rely on __dispose instead, which runs around AppShutdown/profile-before-change,
but init'ing services that late sometimes prompts OOMs in xpchsell)

(This is important for catching early data in short, busy sessions.
In most cases this code shouldn't run)

Differential Revision: https://phabricator.services.mozilla.com/D181541
2023-07-17 15:08:36 +00:00
Nipun Shukla
6a282805c6 Bug 1797806 - Implemented startup registry check for DisablePrivateBrowsing while EnterprisePolicies are uninitialized r=bhearsum,nalexander,mkaply
Differential Revision: https://phabricator.services.mozilla.com/D181667
2023-06-28 21:04:37 +00:00
Greg Tatum
c18ddeaa00 Bug 1817084 - Remove old translations code; r=settings-reviewers,fluent-reviewers,nordzilla,mconley,flod
Differential Revision: https://phabricator.services.mozilla.com/D181700
2023-06-23 13:36:13 +00:00
Mark Banner
d016a2bcdc Bug 1839388 - Convert distribution.js to an ES module. r=mkaply
Differential Revision: https://phabricator.services.mozilla.com/D181578
2023-06-22 07:22:13 +00:00
Katherine Patenio
130ce23c4c Bug 1834831 - update imports of browser/modules JSMs r=webdriver-reviewers,perftest-reviewers,zeid,extension-reviewers,settings-reviewers,pip-reviewers,credential-management-reviewers,devtools-reviewers,fxview-reviewers,sessionstore-reviewers,tabbrowser-reviewers,whimboo,mhowell,sgalich,robwu,sparky,Standard8,mconley,dao,sclements
Differential Revision: https://phabricator.services.mozilla.com/D179169
2023-06-19 18:44:48 +00:00
Cristian Tuns
110cfccc1f Backed out 2 changesets (bug 1834831) for causing node failures with checkBundles CLOSED TREE
Backed out changeset 58b351a155c8 (bug 1834831)
Backed out changeset 1acbb5231d14 (bug 1834831)
2023-06-19 13:22:35 -04:00
Katherine Patenio
a73f6ec769 Bug 1834831 - update imports of browser/modules JSMs r=webdriver-reviewers,perftest-reviewers,zeid,extension-reviewers,settings-reviewers,pip-reviewers,credential-management-reviewers,devtools-reviewers,fxview-reviewers,sessionstore-reviewers,tabbrowser-reviewers,whimboo,mhowell,sgalich,robwu,sparky,Standard8,mconley,dao,sclements
Differential Revision: https://phabricator.services.mozilla.com/D179169
2023-06-19 16:46:18 +00:00
James Teh
1e0dafb66e Bug 1570560: Remove message and disabling of content accessibility for very old JAWS versions. r=nlapre
Differential Revision: https://phabricator.services.mozilla.com/D180778
2023-06-19 04:24:08 +00:00
Mike Conley
3b07efff39 Bug 1838056 - Make sure to load MigrationUtils in BrowserGlue. r=niklas
Bug 1823537 moved the registration of the MigrationWizard JSWindowActor pair
into MigrationUtils from BrowserGlue. This makes it so that the wizard can
be used properly in the scenario where BrowserGlue hasn't yet had a chance
to run (which is the case when we're showing the migration wizard on startup).

This, however, means that the actors aren't being registered unless MigrationUtils
is loaded, which is no longer the case having moved the registration outside of
BrowserGlue.

This means that the embedded migration wizard in about:welcome (and the spotlight
experience in bug 1837051) will not work until that module loads and the
registration occurs.

Differential Revision: https://phabricator.services.mozilla.com/D180725
2023-06-13 19:12:09 +00:00
Stanca Serban
adafbf830d Backed out changeset 90a2e5f4b324 (bug 1838056) for causing mochitests failures in browser_startup.js. CLOSED TREE 2023-06-13 20:52:46 +03:00
Mike Conley
71e99492c3 Bug 1838056 - Make sure to load MigrationUtils in BrowserGlue. r=niklas
Bug 1823537 moved the registration of the MigrationWizard JSWindowActor pair
into MigrationUtils from BrowserGlue. This makes it so that the wizard can
be used properly in the scenario where BrowserGlue hasn't yet had a chance
to run (which is the case when we're showing the migration wizard on startup).

This, however, means that the actors aren't being registered unless MigrationUtils
is loaded, which is no longer the case having moved the registration outside of
BrowserGlue.

This means that the embedded migration wizard in about:welcome (and the spotlight
experience in bug 1837051) will not work until that module loads and the
registration occurs.

Differential Revision: https://phabricator.services.mozilla.com/D180725
2023-06-13 16:46:13 +00:00
Karandeep
7cb8d5c951 Bug 1643887 - Move handling of search engine one-off hidden from preferences into the search settings. r=Standard8
Differential Revision: https://phabricator.services.mozilla.com/D180229
2023-06-12 18:03:52 +00:00
Mike Conley
cffc131623 Bug 1823537 - Use new migration wizard for startup and profile reset migrations. r=kpatenio,Gijs,fluent-reviewers,flod
Differential Revision: https://phabricator.services.mozilla.com/D180230
2023-06-09 17:39:51 +00:00
Gregory Pappas
fcc5b10abb Bug 1836027 - Remove browser.download.improvements_to_download_panel migrations r=Gijs
Differential Revision: https://phabricator.services.mozilla.com/D180290
2023-06-08 15:41:15 +00:00
Mark Banner
6725448902 Bug 1834176 - Convert consumers of NetUtil.jsm to import the ES module directly. r=arai,webdriver-reviewers,perftest-reviewers,valentin,extension-reviewers,devtools-reviewers,sync-reviewers,cookie-reviewers,robwu,afinder,whimboo
Differential Revision: https://phabricator.services.mozilla.com/D178589
2023-06-07 08:42:36 +00:00
Alexandre Lissy
25a528496c Bug 1432719 - Notify user on speechd errors r=eeejay,fluent-reviewers,flod
Differential Revision: https://phabricator.services.mozilla.com/D176532
2023-06-06 06:28:14 +00:00
Iulian Moraru
17b7804de7 Backed out changeset 4720a9935e8e (bug 1432719) as per dev's request. CLOSED TREE 2023-06-05 15:52:52 +03:00
Alexandre Lissy
8afed64ccc Bug 1432719 - Notify user on speechd errors r=eeejay,fluent-reviewers,flod
Differential Revision: https://phabricator.services.mozilla.com/D176532
2023-06-05 11:32:39 +00:00