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

[tor-commits] [Git][tpo/applications/tor-browser][tor-browser-102.12.0esr-13.0-1] 2 commits: fixup! Bug 27476: Implement about:torconnect captive portal within Tor Browser



Title: GitLab

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

Commits:

  • 7fc2a294
    by Henry Wilkes at 2023-06-13T08:25:26+02:00
    fixup! Bug 27476: Implement about:torconnect captive portal within Tor Browser
    
    Bug 41826 - Tweak tor connect status styling in titlebar and connection
    preferences.
    
  • 45cbbcf8
    by Henry Wilkes at 2023-06-13T08:25:41+02:00
    fixup! Bug 31286: Implementation of bridge, proxy, and firewall settings in about:preferences#connection
    
    Bug 41826 - Tweak tor connect status styling in titlebar and connection
    preferences.
    

7 changed files:

Changes:

  • browser/base/content/navigator-toolbox.inc.xhtml
    ... ... @@ -94,8 +94,7 @@
    94 94
           <hbox class="private-browsing-indicator"/>
    
    95 95
     
    
    96 96
           <html:div id="tor-connect-titlebar-status" role="status">
    
    97
    -        <html:img id="tor-connect-titlebar-status-icon"
    
    98
    -                  alt=""
    
    97
    +        <html:img alt=""
    
    99 98
                       src="">"chrome://browser/content/torconnect/tor-not-connected-to-connected-animated.svg" />
    
    100 99
             <html:span id="tor-connect-titlebar-status-label"></html:span>
    
    101 100
           </html:div>
    

  • browser/components/torconnect/content/aboutTorConnect.css
    ... ... @@ -70,8 +70,9 @@ input[type="checkbox"]:focus, select:focus {
    70 70
       display: inline list-item;
    
    71 71
       height: 16px;
    
    72 72
       list-style-position: inside;
    
    73
    +  -moz-context-properties: fill, stroke;
    
    73 74
       fill: currentColor;
    
    74
    -  -moz-context-properties: fill;
    
    75
    +  stroke: currentColor;
    
    75 76
     }
    
    76 77
     
    
    77 78
     .breadcrumb-item.active {
    
    ... ... @@ -315,6 +316,7 @@ body {
    315 316
       -moz-context-properties: stroke, fill, fill-opacity;
    
    316 317
       fill-opacity: var(--onion-opacity);
    
    317 318
       fill: var(--onion-color);
    
    319
    +  stroke: var(--onion-color);
    
    318 320
     }
    
    319 321
     
    
    320 322
     .title.offline {
    

  • browser/components/torconnect/content/tor-connect-broken.svg
    ... ... @@ -7,5 +7,5 @@
    7 7
       <path d="M10.5086 11.2146L11.3423 12.0483C10.8375 12.4651 10.2534 12.7892 9.616 12.9947V11.744C9.93702 11.6057 10.2367 11.4271 10.5086 11.2146Z" fill="context-fill" fill-opacity="context-fill-opacity" />
    
    8 8
       <path d="M4.78492 5.49092L3.95137 4.65737C3.20058 5.56555 2.74933 6.73033 2.74933 8C2.74933 10.336 4.27467 12.3147 6.384 12.9947V11.744C4.936 11.12 3.92267 9.67733 3.92267 8C3.92267 7.05341 4.24455 6.18259 4.78492 5.49092Z" fill="context-fill" fill-opacity="context-fill-opacity" />
    
    9 9
       <path d="M7.16918 7.8752L8.12478 8.83079C8.08406 8.83686 8.04238 8.84 7.99997 8.84C7.53605 8.84 7.15997 8.46392 7.15997 8C7.15997 7.95759 7.16312 7.91592 7.16918 7.8752Z" fill="context-fill" fill-opacity="context-fill-opacity" />
    
    10
    -  <path d="M1.15533 1.85684L14.0906 14.7921C14.3511 15.0527 14.3511 15.4751 14.0906 15.7357L14.0906 15.7357C13.83 15.9963 13.4075 15.9963 13.1469 15.7357L0.211679 2.8005C-0.048903 2.53992 -0.0489032 2.11743 0.211682 1.85684C0.472265 1.59626 0.894753 1.59626 1.15533 1.85684Z" fill="context-fill" fill-opacity="context-fill-opacity" />
    
    10
    +  <path d="M1.15533 1.85684L14.0906 14.7921C14.3511 15.0527 14.3511 15.4751 14.0906 15.7357L14.0906 15.7357C13.83 15.9963 13.4075 15.9963 13.1469 15.7357L0.211679 2.8005C-0.048903 2.53992 -0.0489032 2.11743 0.211682 1.85684C0.472265 1.59626 0.894753 1.59626 1.15533 1.85684Z" fill="context-stroke" fill-opacity="context-fill-opacity" />
    
    11 11
     </svg>

  • browser/components/torconnect/content/tor-not-connected-to-connected-animated.svg
    1 1
     <svg width="176" height="16" viewBox="0 0 176 16" xmlns="http://www.w3.org/2000/svg">
    
    2
    -  <path d="M 3.32745,2.13475 C 4.60904,1.11241 6.23317,0.50133 8,0.50133 c 4.1414,0 7.4987,3.35732 7.4987,7.49867 0,1.7671 -0.6111,3.3911 -1.6335,4.6725 L 13.0315,11.8388 C 13.8448,10.7747 14.328,9.4444 14.328,8 14.328,4.504 11.496,1.67199 8,1.67199 c -1.4438,0 -2.77436,0.48303 -3.83895,1.29636 z" fill="context-fill" />
    
    3
    -  <path d="M 6.56042,5.36771 7.44805,6.25534 C 7.6222,6.20033 7.80763,6.17067 8,6.17067 c 1.0107,0 1.8294,0.81867 1.8294,1.82933 0,0.1924 -0.0297,0.3779 -0.0847,0.552 l 0.8877,0.8877 C 10.8667,9.0122 11,8.5216 11,8 11,6.34399 9.656,5 8,5 7.47846,5 6.98784,5.13332 6.56042,5.36771 Z" fill="context-fill" />
    
    4
    -  <path d="M 12.2609,11.0682 C 12.8837,10.2055 13.2507,9.1457 13.2507,8 c 0,-2.89867 -2.352,-5.25067 -5.25073,-5.25067 -1.14511,0 -2.20491,0.36706 -3.06809,0.98988 l 0.84285,0.84286 c 0.6397,-0.41709 1.40395,-0.6594 2.22524,-0.6594 2.25333,0 4.07733,1.82399 4.07733,4.07733 0,0.8206 -0.2425,1.585 -0.6598,2.2248 z" fill="context-fill" />
    
    5
    -  <path fill-rule="evenodd" d="M 14.0906,14.7921 1.15536,1.85684 c -0.26058,-0.26058 -0.68307,-0.26058 -0.94365,0 -0.26059,0.26059 -0.26059,0.68308 -1e-5,0.94366 L 1.56286,4.15166 C 0.88882,5.2767 0.50135,6.59311 0.50135,8 c 0,3.5867 2.51734,6.584 5.88267,7.3227 0.352,0.0773 0.70932,0.1306 1.07733,0.1546 v -5.4272 l 1.07735,1.0774 v 4.3498 C 8.9067,15.4533 9.264,15.4 9.616,15.3227 c 0.7992,-0.1755 1.5506,-0.4783 2.2318,-0.8861 l 1.2991,1.2991 c 0.2606,0.2606 0.6831,0.2606 0.9437,0 0.2606,-0.2606 0.2606,-0.683 0,-0.9436 z m -3.1017,-1.2144 -0.804,-0.804 c -0.1841,0.0843 -0.374,0.1582 -0.5689,0.221 v -0.7899 1.9125 c 0.4826,-0.1267 0.9427,-0.309 1.3729,-0.5396 z M 5.02472,7.6135 4.12828,6.71707 C 3.99487,7.1204 3.92268,7.5517 3.92268,8 c 0,1.6773 1.01333,3.12 2.46133,3.744 v 1.2507 C 4.27468,12.3147 2.74934,10.336 2.74934,8 c 0,-0.78002 0.17031,-1.52045 0.47575,-2.18611 L 2.42112,5.00992 C 1.94312,5.90024 1.67202,6.91834 1.67202,8 c 0,2.9387 2,5.4053 4.712,6.1173 V 10.528 C 5.55202,9.9947 5.00002,9.0613 5.00002,8 c 0,-0.1309 0.0084,-0.2599 0.0247,-0.3865 z" fill="context-fill" />
    
    2
    +  <!-- First frame, same as tor-connect-broken.svg -->
    
    3
    +  <path d="M3.32745 2.13476C4.60904 1.11242 6.23317 0.501331 8 0.501331C12.1414 0.501331 15.4987 3.85866 15.4987 8C15.4987 9.76709 14.8876 11.3911 13.8652 12.6725L13.0315 11.8388C13.8448 10.7747 14.328 9.44438 14.328 8C14.328 4.50401 11.496 1.672 8 1.672C6.5562 1.672 5.22564 2.15503 4.16105 2.96836L3.32745 2.13476Z" fill="context-fill" />
    
    4
    +  <path d="M2.35636 3.06235C1.20135 4.38144 0.501343 6.10899 0.501343 8C0.501343 11.5867 3.01868 14.584 6.38401 15.3227C6.73601 15.4 7.09333 15.4533 7.46134 15.4773V9.74933C6.71467 9.52 6.17068 8.82401 6.17068 8C6.17068 7.67615 6.25474 7.37202 6.40223 7.10822L5.55539 6.26138C5.20574 6.75196 5.00001 7.3521 5.00001 8C5.00001 9.06133 5.55201 9.99466 6.38401 10.528V14.1173C3.67201 13.4053 1.67201 10.9387 1.67201 8C1.67201 6.43179 2.24187 4.99718 3.18588 3.89187L2.35636 3.06235Z" fill="context-fill" />
    
    5
    +  <path d="M6.56041 5.36771L7.44804 6.25534C7.62219 6.20033 7.80762 6.17067 8.00001 6.17067C9.01067 6.17067 9.82934 6.98934 9.82934 8C9.82934 8.19242 9.79968 8.37785 9.7447 8.552L10.6324 9.43967C10.8667 9.01221 11 8.52156 11 8C11 6.34399 9.65601 5 8.00001 5C7.47845 5 6.98783 5.13332 6.56041 5.36771Z" fill="context-fill" />
    
    6
    +  <path d="M9.73889 10.4449L8.89214 9.59813C8.78095 9.66036 8.6626 9.71127 8.53868 9.74933V15.4773C8.90668 15.4533 9.26401 15.4 9.61601 15.3227C10.8695 15.0475 12.0054 14.459 12.9374 13.6434L12.1076 12.8136C11.396 13.4207 10.5481 13.8726 9.61601 14.1173V10.528C9.65768 10.5013 9.69865 10.4736 9.73889 10.4449Z" fill="context-fill" />
    
    7
    +  <path d="M12.2609 11.0682C12.8837 10.2055 13.2507 9.14573 13.2507 8C13.2507 5.10133 10.8987 2.74933 7.99999 2.74933C6.85488 2.74933 5.79508 3.11639 4.9319 3.73921L5.77475 4.58207C6.41445 4.16498 7.1787 3.92267 7.99999 3.92267C10.2533 3.92267 12.0773 5.74666 12.0773 8C12.0773 8.82056 11.8348 9.58497 11.4175 10.2248L12.2609 11.0682Z" fill="context-fill" />
    
    8
    +  <path d="M10.5086 11.2146L11.3423 12.0483C10.8375 12.4651 10.2534 12.7892 9.616 12.9947V11.744C9.93702 11.6057 10.2367 11.4271 10.5086 11.2146Z" fill="context-fill" />
    
    9
    +  <path d="M4.78492 5.49092L3.95137 4.65737C3.20058 5.56555 2.74933 6.73033 2.74933 8C2.74933 10.336 4.27467 12.3147 6.384 12.9947V11.744C4.936 11.12 3.92267 9.67733 3.92267 8C3.92267 7.05341 4.24455 6.18259 4.78492 5.49092Z" fill="context-fill" />
    
    10
    +  <path d="M7.16918 7.8752L8.12478 8.83079C8.08406 8.83686 8.04238 8.84 7.99997 8.84C7.53605 8.84 7.15997 8.46392 7.15997 8C7.15997 7.95759 7.16312 7.91592 7.16918 7.8752Z" fill="context-fill" />
    
    11
    +  <path d="M1.15533 1.85684L14.0906 14.7921C14.3511 15.0527 14.3511 15.4751 14.0906 15.7357L14.0906 15.7357C13.83 15.9963 13.4075 15.9963 13.1469 15.7357L0.211679 2.8005C-0.048903 2.53992 -0.0489032 2.11743 0.211682 1.85684C0.472265 1.59626 0.894753 1.59626 1.15533 1.85684Z" fill="context-stroke" />
    
    12
    +  <!-- End of first frame. -->
    
    6 13
       <path d="m 26.5604,5.36771 0.8877,0.88763 C 27.6222,6.20033 27.8076,6.17067 28,6.17067 c 1.0107,0 1.8294,0.81867 1.8294,1.82933 0,0.1924 -0.0297,0.3779 -0.0847,0.552 l 0.8877,0.8877 C 30.8667,9.0122 31,8.5216 31,8 31,6.34399 29.656,5 28,5 27.4785,5 26.9878,5.13332 26.5604,5.36771 Z" fill="context-fill" />
    
    7 14
       <path d="M 32.2609,11.0682 C 32.8837,10.2055 33.2507,9.1457 33.2507,8 33.2507,5.10133 30.8987,2.74933 28,2.74933 c -1.1451,0 -2.2049,0.36706 -3.0681,0.98988 l 0.8428,0.84286 c 0.6397,-0.41709 1.404,-0.6594 2.2253,-0.6594 2.2533,0 4.0773,1.82399 4.0773,4.07733 0,0.8206 -0.2425,1.585 -0.6598,2.2248 z" fill="context-fill" />
    
    8 15
       <path fill-rule="evenodd" d="M 25.1667,1.05506 C 26.0409,0.69808 26.9975,0.50133 28,0.50133 c 4.1414,0 7.4987,3.35732 7.4987,7.49867 0,1.7671 -0.6111,3.3911 -1.6335,4.6725 L 33.0315,11.8388 C 33.8448,10.7747 34.328,9.4444 34.328,8 34.328,4.504 31.496,1.67199 28,1.67199 c -1.4438,0 -2.7744,0.48303 -3.8389,1.29636 L 24.1597,2.96703 c -0.3568,0.27263 -0.6838,0.58239 -0.9752,0.9235 l 0.0014,0.00134 C 22.2419,4.99718 21.672,6.43179 21.672,8 c 0,1.7592 0.7167,3.3492 1.8739,4.4949 0.473,0.4681 1.0196,0.862 1.6208,1.1628 0.385,0.1928 0.7924,0.3481 1.2173,0.4596 V 10.528 C 25.552,9.9947 25,9.0613 25,8 25,7.8685 25.0085,7.7389 25.0249,7.6118 L 24.1287,6.71563 C 23.995,7.11937 23.9227,7.5512 23.9227,8 c 0,1.6773 1.0133,3.12 2.4613,3.744 v 1.2507 C 24.2747,12.3147 22.7493,10.336 22.7493,8 c 0,-0.78053 0.1706,-1.52142 0.4764,-2.18742 L 22.8632,5.45009 c -0.2597,-0.2597 -0.2597,-0.68075 0,-0.94045 0.2597,-0.2597 0.6808,-0.2597 0.9405,0 L 34.0943,14.8002 c 0.2597,0.2597 0.2597,0.6808 0,0.9405 -0.2597,0.2597 -0.6808,0.2597 -0.9405,0 L 31.849,14.4359 c -0.6815,0.4082 -1.4333,0.7112 -2.233,0.8868 -0.352,0.0773 -0.7093,0.1306 -1.0773,0.1546 v -4.3518 l -1.0774,-1.0773 v 5.4291 C 27.0933,15.4533 26.736,15.4 26.384,15.3227 24.9758,15.0136 23.7161,14.309 22.7272,13.3313 21.3519,11.9723 20.5,10.0852 20.5,7.9987 20.5,4.85935 22.4292,2.17055 25.1667,1.05319 Z M 29.616,14.1173 v -1.9144 0.7918 c 0.1953,-0.063 0.3857,-0.1371 0.5702,-0.2216 l 0.804,0.804 c -0.4306,0.2309 -0.8911,0.4134 -1.3742,0.5402 z" fill="context-fill" />
    

  • browser/components/torconnect/content/torConnectTitlebarStatus.css
    ... ... @@ -10,9 +10,10 @@
    10 10
       white-space: nowrap;
    
    11 11
     }
    
    12 12
     
    
    13
    -#tor-connect-titlebar-status-icon {
    
    14
    -  -moz-context-properties: fill;
    
    13
    +#tor-connect-titlebar-status img {
    
    14
    +  -moz-context-properties: fill, stroke;
    
    15 15
       fill: currentColor;
    
    16
    +  stroke: currentColor;
    
    16 17
       width: 16px;
    
    17 18
       height: 16px;
    
    18 19
       object-fit: none;
    
    ... ... @@ -24,28 +25,31 @@
    24 25
       object-position: var(--tor-not-connected-offset);
    
    25 26
     }
    
    26 27
     
    
    27
    -#tor-connect-titlebar-status-icon.tor-connect-status-potentially-blocked:not(
    
    28
    -  .tor-connect-status-connected
    
    29
    -) {
    
    30
    -  fill: #c50042;
    
    28
    +#tor-connect-titlebar-status.tor-connect-status-potentially-blocked img {
    
    29
    +  /* NOTE: context-stroke is only used for the first "frame" for the slash. When
    
    30
    +   * we assign the potentially-blocked class, we do *not* expect to be connected
    
    31
    +   * at the same time, so we only expect this first frame to be visible in this
    
    32
    +   * state. */
    
    33
    +  stroke: #c50042;
    
    31 34
     }
    
    32 35
     
    
    33 36
     @media (prefers-color-scheme: dark) {
    
    34
    -  #tor-connect-titlebar-status-icon.tor-connect-status-potentially-blocked:not(
    
    35
    -    .tor-connect-status-connected
    
    36
    -  ){
    
    37
    -    fill: #ff9aa2;
    
    37
    +  #tor-connect-titlebar-status.tor-connect-status-potentially-blocked img {
    
    38
    +    stroke: #ff9aa2;
    
    38 39
       }
    
    39 40
     }
    
    40 41
     
    
    41
    -#tor-connect-titlebar-status-icon.tor-connect-status-connected {
    
    42
    -  fill: var(--purple-60);
    
    42
    +#tor-connect-titlebar-status.tor-connect-status-connected img {
    
    43 43
       object-position: var(--tor-connected-offset);
    
    44 44
     }
    
    45 45
     
    
    46
    +#tor-connect-titlebar-status.tor-connect-status-connected {
    
    47
    +  color: var(--purple-60);
    
    48
    +}
    
    49
    +
    
    46 50
     @media (prefers-color-scheme: dark) {
    
    47
    -  #tor-connect-titlebar-status-icon.tor-connect-status-connected {
    
    48
    -    fill: var(--purple-30);
    
    51
    +  #tor-connect-titlebar-status.tor-connect-status-connected {
    
    52
    +    color: var(--purple-30);
    
    49 53
       }
    
    50 54
     }
    
    51 55
     
    
    ... ... @@ -60,8 +64,11 @@
    60 64
     }
    
    61 65
     
    
    62 66
     @media (prefers-reduced-motion: no-preference) {
    
    63
    -  #tor-connect-titlebar-status-icon.tor-connect-status-connected {
    
    64
    -    transition: fill 1000ms;
    
    67
    +  #tor-connect-titlebar-status.tor-connect-status-connected {
    
    68
    +    transition: color 1000ms;
    
    69
    +  }
    
    70
    +
    
    71
    +  #tor-connect-titlebar-status.tor-connect-status-connected img {
    
    65 72
         animation-name: onion-not-connected-to-connected;
    
    66 73
         animation-delay: 200ms;
    
    67 74
         animation-fill-mode: both;
    

  • browser/components/torconnect/content/torConnectTitlebarStatus.js
    ... ... @@ -16,12 +16,6 @@ var gTorConnectTitlebarStatus = {
    16 16
        * @type {Element}
    
    17 17
        */
    
    18 18
       label: null,
    
    19
    -  /**
    
    20
    -   * The status icon.
    
    21
    -   *
    
    22
    -   * @type {Element}
    
    23
    -   */
    
    24
    -  icon: null,
    
    25 19
     
    
    26 20
       /**
    
    27 21
        * Initialize the component.
    
    ... ... @@ -34,7 +28,6 @@ var gTorConnectTitlebarStatus = {
    34 28
         this._strings = TorStrings.torConnect;
    
    35 29
     
    
    36 30
         this.node = document.getElementById("tor-connect-titlebar-status");
    
    37
    -    this.icon = document.getElementById("tor-connect-titlebar-status-icon");
    
    38 31
         this.label = document.getElementById("tor-connect-titlebar-status-label");
    
    39 32
         // The title also acts as an accessible name for the role="status".
    
    40 33
         this.node.setAttribute("title", this._strings.titlebarStatusName);
    
    ... ... @@ -91,8 +84,8 @@ var gTorConnectTitlebarStatus = {
    91 84
             break;
    
    92 85
         }
    
    93 86
         this.label.textContent = this._strings[textId];
    
    94
    -    this.icon.classList.toggle("tor-connect-status-connected", connected);
    
    95
    -    this.icon.classList.toggle(
    
    87
    +    this.node.classList.toggle("tor-connect-status-connected", connected);
    
    88
    +    this.node.classList.toggle(
    
    96 89
           "tor-connect-status-potentially-blocked",
    
    97 90
           potentiallyBlocked
    
    98 91
         );
    

  • browser/components/torpreferences/content/torPreferences.css
    ... ... @@ -32,8 +32,9 @@ html:dir(rtl) input[type="checkbox"].toggle-button::before {
    32 32
       width: 18px;
    
    33 33
       height: 18px;
    
    34 34
       margin-inline-end: 8px;
    
    35
    -  -moz-context-properties: fill;
    
    36
    -  fill: var(--in-content-text-color);
    
    35
    +  -moz-context-properties: fill, stroke;
    
    36
    +  fill: currentColor;
    
    37
    +  stroke: currentColor;
    
    37 38
     }
    
    38 39
     
    
    39 40
     #torPreferences-status-internet .torPreferences-status-icon {
    
    ... ... @@ -59,23 +60,16 @@ html:dir(rtl) input[type="checkbox"].toggle-button::before {
    59 60
     
    
    60 61
     #torPreferences-status-tor-connect.connected .torPreferences-status-icon {
    
    61 62
       list-style-image: url("chrome://browser/content/torconnect/tor-connect.svg");
    
    62
    -  fill: var(--purple-60);
    
    63
    -}
    
    64
    -
    
    65
    -@media (prefers-color-scheme: dark) {
    
    66
    -  #torPreferences-status-tor-connect.connected .torPreferences-status-icon {
    
    67
    -    fill: var(--purple-30);
    
    68
    -  }
    
    69 63
     }
    
    70 64
     
    
    71 65
     #torPreferences-status-tor-connect.blocked .torPreferences-status-icon {
    
    72 66
       /* Same as .tor-connect-status-potentially-blocked. */
    
    73
    -  fill: #c50042;
    
    67
    +  stroke: #c50042;
    
    74 68
     }
    
    75 69
     
    
    76 70
     @media (prefers-color-scheme: dark) {
    
    77 71
       #torPreferences-status-tor-connect.blocked .torPreferences-status-icon {
    
    78
    -    fill: #ff9aa2;
    
    72
    +    stroke: #ff9aa2;
    
    79 73
       }
    
    80 74
     }
    
    81 75
     
    

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