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

[tor-commits] [Git][tpo/applications/tor-browser][tor-browser-128.2.0esr-14.0-1] 2 commits: fixup! Bug 40925: Implemented the Security Level component



Title: GitLab

Pier Angelo Vendrame pushed to branch tor-browser-128.2.0esr-14.0-1 at The Tor Project / Applications / Tor Browser

Commits:

  • 4c041d5b
    by Pier Angelo Vendrame at 2024-09-11T09:03:32+02:00
    fixup! Bug 40925: Implemented the Security Level component
    
    Bug 42149: Do not change HTTPS-Only settings in the security level
    anymore.
    
    That preference does not really belong to the security level.
    
  • f5f0ab07
    by Pier Angelo Vendrame at 2024-09-11T09:23:10+02:00
    fixup! Bug 42027: Base Browser migration procedures.
    
    Bug 42149: Clear user values for
    https_only_mode_send_http_background_request since we do not change it
    with the security level anymore.
    

2 changed files:

Changes:

  • browser/components/BrowserGlue.sys.mjs
    ... ... @@ -4812,8 +4812,11 @@ BrowserGlue.prototype = {
    4812 4812
       _migrateUIBB() {
    
    4813 4813
         // Version 1: 13.0a3. Reset layout.css.prefers-color-scheme.content-override
    
    4814 4814
         //            for tor-browser#41739.
    
    4815
    -    // Version 2: Reset the privacy tracking headers preferences since the UI
    
    4816
    -    //            is hidden. tor-browser#42777.
    
    4815
    +    // Version 2: 14.0a5:Reset the privacy tracking headers preferences since
    
    4816
    +    //            the UI is hidden. tor-browser#42777.
    
    4817
    +    //            Also, do not set
    
    4818
    +    //            dom.security.https_only_mode_send_http_background_request in
    
    4819
    +    //            the security level anymore (tor-browser#42149).
    
    4817 4820
         const MIGRATION_VERSION = 2;
    
    4818 4821
         const MIGRATION_PREF = "basebrowser.migration.version";
    
    4819 4822
         // We do not care whether this is a new or old profile, since in version 1
    
    ... ... @@ -4836,11 +4839,11 @@ BrowserGlue.prototype = {
    4836 4839
             // The last two preferences have no corresponding UI, but are related.
    
    4837 4840
             "privacy.globalprivacycontrol.functionality.enabled",
    
    4838 4841
             "privacy.globalprivacycontrol.pbmode.enabled",
    
    4842
    +        "dom.security.https_only_mode_send_http_background_request",
    
    4839 4843
           ]) {
    
    4840 4844
             Services.prefs.clearUserPref(prefName);
    
    4841 4845
           }
    
    4842 4846
         }
    
    4843
    -
    
    4844 4847
         Services.prefs.setIntPref(MIGRATION_PREF, MIGRATION_VERSION);
    
    4845 4848
       },
    
    4846 4849
     
    

  • toolkit/components/securitylevel/SecurityLevel.sys.mjs
    ... ... @@ -256,17 +256,16 @@ var initializeNoScriptControl = () => {
    256 256
     /* eslint-disable */
    
    257 257
     // prettier-ignore
    
    258 258
     const kSecuritySettings = {
    
    259
    -  // Preference name :                                          [0, 1-high 2-m    3-m    4-low]
    
    260
    -  "_javascript_.options.ion" :                                    [,  false, false, false, true ],
    
    261
    -  "_javascript_.options.baselinejit" :                            [,  false, false, false, true ],
    
    262
    -  "_javascript_.options.native_regexp" :                          [,  false, false, false, true ],
    
    263
    -  "mathml.disabled" :                                           [,  true,  true,  true,  false],
    
    264
    -  "gfx.font_rendering.graphite.enabled" :                       [,  false, false, false, true ],
    
    265
    -  "gfx.font_rendering.opentype_svg.enabled" :                   [,  false, false, false, true ],
    
    266
    -  "svg.disabled" :                                              [,  true,  false, false, false],
    
    267
    -  "_javascript_.options.asmjs" :                                  [,  false, false, false, true ],
    
    268
    -  "_javascript_.options.wasm" :                                   [,  false, false, false, true ],
    
    269
    -  "dom.security.https_only_mode_send_http_background_request" : [,  false, false, false, true ],
    
    259
    +  // Preference name:                        [0, 1-high 2-m    3-m    4-low]
    
    260
    +  "_javascript_.options.ion":                  [,  false, false, false, true ],
    
    261
    +  "_javascript_.options.baselinejit":          [,  false, false, false, true ],
    
    262
    +  "_javascript_.options.native_regexp":        [,  false, false, false, true ],
    
    263
    +  "mathml.disabled":                         [,  true,  true,  true,  false],
    
    264
    +  "gfx.font_rendering.graphite.enabled":     [,  false, false, false, true ],
    
    265
    +  "gfx.font_rendering.opentype_svg.enabled": [,  false, false, false, true ],
    
    266
    +  "svg.disabled":                            [,  true,  false, false, false],
    
    267
    +  "_javascript_.options.asmjs":                [,  false, false, false, true ],
    
    268
    +  "_javascript_.options.wasm":                 [,  false, false, false, true ],
    
    270 269
     };
    
    271 270
     /* eslint-enable */
    
    272 271
     
    

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