[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]

[tor-commits] [Git][tpo/applications/tor-browser][base-browser-115.2.0esr-13.0-1] 2 commits: Bug 42027: Base Browser migration procedures.



Title: GitLab

Pier Angelo Vendrame pushed to branch base-browser-115.2.0esr-13.0-1 at The Tor Project / Applications / Tor Browser

Commits:

  • f96d5aae
    by Pier Angelo Vendrame at 2023-08-22T18:51:06+02:00
    Bug 42027: Base Browser migration procedures.
    
    This commit implmenents the the Base Browser's version of _migrateUI.
    
  • fc9ab629
    by Pier Angelo Vendrame at 2023-08-22T18:51:09+02:00
    Bug 41739: Remove "Website appearance" from about:preferences.
    
    It is ignored because of RFP and it is confusing for users.
    

2 changed files:

Changes:

  • browser/components/BrowserGlue.sys.mjs
    ... ... @@ -1211,6 +1211,9 @@ BrowserGlue.prototype = {
    1211 1211
         // handle any UI migration
    
    1212 1212
         this._migrateUI();
    
    1213 1213
     
    
    1214
    +    // Base Browser-specific version of _migrateUI.
    
    1215
    +    this._migrateUIBB();
    
    1216
    +
    
    1214 1217
         // Clear possibly auto enabled enterprise_roots prefs (see bug 40166)
    
    1215 1218
         if (
    
    1216 1219
           !Services.prefs.getBoolPref(
    
    ... ... @@ -4283,6 +4286,25 @@ BrowserGlue.prototype = {
    4283 4286
         Services.prefs.setIntPref("browser.migration.version", UI_VERSION);
    
    4284 4287
       },
    
    4285 4288
     
    
    4289
    +  _migrateUIBB() {
    
    4290
    +    // Version 1: 13.0a3. Reset layout.css.prefers-color-scheme.content-override
    
    4291
    +    //            for tor-browser#41739.
    
    4292
    +    const MIGRATION_VERSION = 1;
    
    4293
    +    const MIGRATION_PREF = "basebrowser.migration.version";
    
    4294
    +    // We do not care whether this is a new or old profile, since in version 1
    
    4295
    +    // we just quickly clear a user preference, which should not do anything to
    
    4296
    +    // new profiles.
    
    4297
    +    // Shall we ever raise the version number and have a watershed, we can add
    
    4298
    +    // a check easily (any version > 0 will be an old profile).
    
    4299
    +    const currentVersion = Services.prefs.getIntPref(MIGRATION_PREF, 0);
    
    4300
    +    if (currentVersion < 1) {
    
    4301
    +      Services.prefs.clearUserPref(
    
    4302
    +        "layout.css.prefers-color-scheme.content-override"
    
    4303
    +      );
    
    4304
    +    }
    
    4305
    +    Services.prefs.setIntPref(MIGRATION_PREF, MIGRATION_VERSION);
    
    4306
    +  },
    
    4307
    +
    
    4286 4308
       async _showUpgradeDialog() {
    
    4287 4309
         const data = await lazy.OnboardingMessageProvider.getUpgradeMessage();
    
    4288 4310
         const { gBrowser } = lazy.BrowserWindowTracker.getTopWindow();
    

  • browser/components/preferences/main.inc.xhtml
    ... ... @@ -138,7 +138,7 @@
    138 138
     </hbox>
    
    139 139
     
    
    140 140
     <!-- Website appearance -->
    
    141
    -<groupbox id="webAppearanceGroup" data-category="paneGeneral" hidden="true">
    
    141
    +<groupbox id="webAppearanceGroup" data-category="paneGeneral" hidden="true" data-hidden-from-search="true">
    
    142 142
       <html:h2 data-l10n-id="preferences-web-appearance-header"/>
    
    143 143
       <html:div id="webAppearanceSettings">
    
    144 144
         <description data-l10n-id="preferences-web-appearance-description"/>
    

  • _______________________________________________
    tor-commits mailing list
    tor-commits@xxxxxxxxxxxxxxxxxxxx
    https://lists.torproject.org/cgi-bin/mailman/listinfo/tor-commits