Commit Graph

193 Commits

Author SHA1 Message Date
Gijs Kruitbosch
f98d159338 Bug 1756919 - remove unnecessary default permissions, r=pbz
Differential Revision: https://phabricator.services.mozilla.com/D188964
2023-09-28 11:09:24 +00:00
Cosmin Sabou
c41ccf8e9b Backed out changeset 173ccd415d33 (bug 1756919) for causing xpcshell failures on test_browserGlue_migration_resetDefaults.js. CLOSED TREE 2023-09-27 18:58:59 +03:00
Paul Zuehlcke
d0719457c9 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-27 15:14:36 +00:00
Gijs Kruitbosch
98b4a2234f Bug 1756919 - remove unnecessary default permissions, r=pbz
Differential Revision: https://phabricator.services.mozilla.com/D188964
2023-09-27 15:13:42 +00:00
Sandor Molnar
a389d668fb 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
f7fb5eeb2a 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
c20c018e69 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
b026880f58 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
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
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
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
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
Stanca Serban
418d95a3d2 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
06fd8ea8f7 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
e5ec99d984 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
1b54f3e87f 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
33d9cca202 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
65d67de2e9 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
31bfd3c81e 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
c773cf2a7d 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
4d0f7b7e73 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
5ed82064a1 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
157e8cf894 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
f360e2b138 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
398c181b1a 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
f40283efaf 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
8464bcdbb9 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
945cff3a90 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
2a8d2a4397 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
e9950eccfd 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
51b2d1bafb 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
7bfd0c2540 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
7ebd1ba5ee 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
72bf8c2b4e 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
efe4a853dc 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
4ffcebbd37 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
28bbc53bbf 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
4b4a4c7d04 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
606ebaa93d 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
ce9d8a5dad 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
f826f1b621 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
333197cd22 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
fdca51c6f2 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
1bfa3c24e2 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
ed6f3ad811 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
f05b94c652 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
d759f51203 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
9dcf68ac4d 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
2a94685f31 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