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

[tor-commits] [Git][tpo/applications/mullvad-browser][mullvad-browser-115.3.1esr-13.0-1] fixup! Bug 32308: use direct browser sizing for letterboxing. Bug 30556: align...



Title: GitLab

ma1 pushed to branch mullvad-browser-115.3.1esr-13.0-1 at The Tor Project / Applications / Mullvad Browser

Commits:

  • 453cd063
    by hackademix at 2023-10-09T20:49:46+02:00
    fixup! Bug 32308: use direct browser sizing for letterboxing. Bug 30556: align letterboxing with 200x100 new win width stepping
    
    Bug 41259: Do not interfere with devtools responsive mode sizing.
    

2 changed files:

Changes:

  • browser/base/content/browser.css
    ... ... @@ -140,7 +140,7 @@ body {
    140 140
       Never modify the following selector without synchronizing
    
    141 141
       LETTERBOX_CSS_SELECTOR in RFPHelper.jsm!
    
    142 142
     **/
    
    143
    -.letterboxing .browserStack:not(.exclude-letterboxing) > browser {
    
    143
    +.letterboxing .browserContainer:not(.responsive-mode) > .browserStack:not(.exclude-letterboxing) > browser {
    
    144 144
       /* width & height to be dynamically set by RFPHelper.jsm */
    
    145 145
       outline: 1px solid var(--chrome-content-separator-color);
    
    146 146
     }
    
    ... ... @@ -149,7 +149,7 @@ body {
    149 149
       outline: initial;
    
    150 150
     }
    
    151 151
     
    
    152
    -:root:not([inDOMFullscreen]) .letterboxing.letterboxing-ready .browserStack:not(.exclude-letterboxing) {
    
    152
    +:root:not([inDOMFullscreen]) .letterboxing.letterboxing-ready .browserContainer:not(.responsive-mode) > .browserStack:not(.exclude-letterboxing) {
    
    153 153
       place-content: start center;
    
    154 154
     }
    
    155 155
     
    

  • toolkit/components/resistfingerprinting/RFPHelper.sys.mjs
    ... ... @@ -437,7 +437,7 @@ class _RFPHelper {
    437 437
           // preemptively in order to beat race conditions on tab/window creation
    
    438 438
           const LETTERBOX_CSS_URL = "chrome://browser/content/browser.css";
    
    439 439
           const LETTERBOX_CSS_SELECTOR =
    
    440
    -        ".letterboxing .browserStack:not(.exclude-letterboxing) > browser";
    
    440
    +        ".letterboxing .browserContainer:not(.responsive-mode) > .browserStack:not(.exclude-letterboxing) > browser";
    
    441 441
           for (let ss of document.styleSheets) {
    
    442 442
             if (ss.href !== LETTERBOX_CSS_URL) {
    
    443 443
               continue;
    
    ... ... @@ -557,8 +557,8 @@ class _RFPHelper {
    557 557
     
    
    558 558
         const roundDimensions = (aWidth, aHeight) => {
    
    559 559
           const r = (aWidth, aHeight) => ({
    
    560
    -        width: `${aWidth}px`,
    
    561
    -        height: `${aHeight}px`,
    
    560
    +        width: `var(--rdm-width, ${aWidth}px)`,
    
    561
    +        height: `var(--rdm-height, ${aHeight}px)`,
    
    562 562
           });
    
    563 563
     
    
    564 564
           let result;
    

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