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

[tor-commits] [Git][tpo/applications/tor-browser][base-browser-102.12.0esr-12.5-1] fixup! Bug 32308: use direct browser sizing for letterboxing.



Title: GitLab

ma1 pushed to branch base-browser-102.12.0esr-12.5-1 at The Tor Project / Applications / Tor Browser

Commits:

  • c8ea1c20
    by hackademix at 2023-06-12T10:30:29+02:00
    fixup! Bug 32308: use direct browser sizing for letterboxing.
    

1 changed file:

Changes:

  • toolkit/components/resistfingerprinting/RFPHelper.jsm
    ... ... @@ -51,7 +51,7 @@ function forEachWindow(callback) {
    51 51
     
    
    52 52
     
    
    53 53
     async function windowResizeHandler(aEvent) {
    
    54
    -  if (RFPHelper.letterboxingEnabled) {
    
    54
    +  if (RFPHelper.letterboxingEnabled || !RFPHelper.rfpEnabled) {
    
    55 55
         return;
    
    56 56
       }
    
    57 57
       if (Services.prefs.getIntPref(kPrefResizeWarnings) <= 0) {
    
    ... ... @@ -250,7 +250,9 @@ class _RFPHelper {
    250 250
       }
    
    251 251
     
    
    252 252
       _handleResistFingerprintingChanged() {
    
    253
    -    if (Services.prefs.getBoolPref(kPrefResistFingerprinting)) {
    
    253
    +    if (
    
    254
    +      (this.rfpEnabled = Services.prefs.getBoolPref(kPrefResistFingerprinting))
    
    255
    +    ) {
    
    254 256
           this._addRFPObservers();
    
    255 257
           Services.ww.registerNotification(this);
    
    256 258
           forEachWindow(win => this._attachWindow(win));
    
    ... ... @@ -397,7 +399,9 @@ class _RFPHelper {
    397 399
           kPrefLetterboxing,
    
    398 400
           false
    
    399 401
         );
    
    400
    -    forEachWindow(win => this._updateSizeForTabsInWindow(win));
    
    402
    +    if (this.rfpEnabled) {
    
    403
    +      forEachWindow(win => this._updateSizeForTabsInWindow(win));
    
    404
    +    }
    
    401 405
       }
    
    402 406
     
    
    403 407
       // The function to parse the dimension set from the pref value. The pref value
    

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