morgan pushed to branch tor-browser-128.4.0esr-14.5-1 at The Tor Project / Applications / Tor Browser

Commits:

2 changed files:

Changes:

  • browser/components/abouttor/content/aboutTor.css
    ... ... @@ -122,7 +122,7 @@ body:not(.show-tor-check) #tor-check {
    122 122
       border-color: var(--in-content-box-border-color);
    
    123 123
     }
    
    124 124
     
    
    125
    -#search-form.search-input-focus-visible {
    
    125
    +#search-form:has(#search-input:focus-visible) {
    
    126 126
       outline: var(--focus-outline);
    
    127 127
     }
    
    128 128
     
    
    ... ... @@ -209,13 +209,13 @@ body:not(.show-tor-check) #tor-check {
    209 209
         border-color: transparent;
    
    210 210
       }
    
    211 211
     
    
    212
    -  #search-form.search-input-focus-visible {
    
    212
    +  #search-form:has(#search-input:focus-visible) {
    
    213 213
         /* Use a light-themed inner-border to contrast with the dark-themed
    
    214 214
          * focus outline. */
    
    215 215
         border-color: var(--tor-focus-outline-color-light);
    
    216 216
       }
    
    217 217
     
    
    218
    -  #search-form.onionized-search:not(.search-input-focus-visible) {
    
    218
    +  #search-form.onionized-search:has(#search-input:not(:focus-visible)) {
    
    219 219
         box-shadow: 0 4px 40px #9400ff66, 0 4px 16px #9400ff33;
    
    220 220
       }
    
    221 221
     
    

  • browser/components/abouttor/content/aboutTor.js
    ... ... @@ -52,18 +52,6 @@ const SearchWidget = {
    52 52
           },
    
    53 53
           { capture: true }
    
    54 54
         );
    
    55
    -
    
    56
    -    // Focus styling on form.
    
    57
    -    const searchInput = document.getElementById("search-input");
    
    58
    -    const updateInputFocus = () => {
    
    59
    -      this.searchForm.classList.toggle(
    
    60
    -        "search-input-focus-visible",
    
    61
    -        searchInput.matches(":focus-visible")
    
    62
    -      );
    
    63
    -    };
    
    64
    -    updateInputFocus();
    
    65
    -    searchInput.addEventListener("focus", updateInputFocus);
    
    66
    -    searchInput.addEventListener("blur", updateInputFocus);
    
    67 55
       },
    
    68 56
     
    
    69 57
       _updateOnionize() {