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

Commits:

2 changed files:

Changes:

  • browser/components/abouttor/AboutTorChild.sys.mjs
    ... ... @@ -2,19 +2,6 @@
    2 2
      * Actor child class for the about:tor page.
    
    3 3
      */
    
    4 4
     export class AboutTorChild extends JSWindowActorChild {
    
    5
    -  actorCreated() {
    
    6
    -    if (this.contentWindow.matchMedia("not (prefers-contrast)").matches) {
    
    7
    -      // When prefers-contrast is not set, the page only has one style because
    
    8
    -      // we always set a dark background and a light <form>.
    
    9
    -      // We force prefers-color-scheme to be light, regardless of the user's
    
    10
    -      // settings so that we inherit the "light" theme styling from
    
    11
    -      // in-content/common.css for the <form> element. In particular, we want
    
    12
    -      // the light styling for the <input> and <moz-toggle> elements, which are
    
    13
    -      // on a light background.
    
    14
    -      this.browsingContext.prefersColorSchemeOverride = "light";
    
    15
    -    }
    
    16
    -  }
    
    17
    -
    
    18 5
       handleEvent(event) {
    
    19 6
         switch (event.type) {
    
    20 7
           case "DOMContentLoaded":
    

  • browser/components/abouttor/content/aboutTor.css
    ... ... @@ -180,15 +180,17 @@ body:not(.show-tor-check) #tor-check {
    180 180
     
    
    181 181
       body > :not(#search-form) {
    
    182 182
         /* Same as --in-content-page-color when "prefers-color-scheme: dark" */
    
    183
    -    --in-content-page-color: #fbfbfe;
    
    184
    -    --in-content-text-color: #fbfbfe;
    
    185
    -    color: var(--in-content-text-color);
    
    183
    +    color: var(--color-gray-05);
    
    186 184
         --link-color: var(--tor-link-color-dark);
    
    187 185
         --link-color-hover: var(--tor-link-color-hover-dark);
    
    188 186
         --link-color-active: var(--tor-link-color-active-dark);
    
    189 187
       }
    
    190 188
     
    
    191 189
       #search-form {
    
    190
    +    /* Use light color for background and moz-toggle shadow root. */
    
    191
    +    color-scheme: light;
    
    192
    +    /* Same as --in-content-page-color when "prefers-color-scheme: light" */
    
    193
    +    color: var(--color-gray-100);
    
    192 194
         border-color: transparent;
    
    193 195
       }
    
    194 196