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

[tor-commits] [Git][tpo/applications/tor-browser][tor-browser-128.3.0esr-14.0-1] Bug 1918009 - Fix the RFP-spoofed User-Agent header. r=tjr



Title: GitLab

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

Commits:

  • c4c73ea4
    by Pier Angelo Vendrame at 2024-10-02T18:31:19+00:00
    Bug 1918009 - Fix the RFP-spoofed User-Agent header. r=tjr
    
    The spoofed value of the HTTP user-agent header is not consistent with
    the value of navigator.userAgent on Windows, and this can lead to
    compatibility issues.
    
    Differential Revision: https://phabricator.services.mozilla.com/D223745

3 changed files:

Changes:

  • browser/components/resistfingerprinting/test/browser/browser_navigator.js
    ... ... @@ -115,11 +115,11 @@ const SPOOFED_UA_NAVIGATOR_OS = {
    115 115
       other: "X11; Linux x86_64",
    
    116 116
     };
    
    117 117
     const SPOOFED_UA_HTTPHEADER_OS = {
    
    118
    -  linux: "Windows NT 10.0",
    
    119
    -  win: "Windows NT 10.0",
    
    120
    -  macosx: "Windows NT 10.0",
    
    118
    +  linux: "Windows NT 10.0; Win64; x64",
    
    119
    +  win: "Windows NT 10.0; Win64; x64",
    
    120
    +  macosx: "Windows NT 10.0; Win64; x64",
    
    121 121
       android: "Android 10; Mobile",
    
    122
    -  other: "Windows NT 10.0",
    
    122
    +  other: "Windows NT 10.0; Win64; x64",
    
    123 123
     };
    
    124 124
     const SPOOFED_HW_CONCURRENCY = 2;
    
    125 125
     
    

  • browser/components/resistfingerprinting/test/browser/browser_navigator_iframes.js
    ... ... @@ -130,11 +130,11 @@ const SPOOFED_UA_NAVIGATOR_OS = {
    130 130
       other: "X11; Linux x86_64",
    
    131 131
     };
    
    132 132
     const SPOOFED_UA_HTTPHEADER_OS = {
    
    133
    -  linux: "Windows NT 10.0",
    
    134
    -  win: "Windows NT 10.0",
    
    135
    -  macosx: "Windows NT 10.0",
    
    133
    +  linux: "Windows NT 10.0; Win64; x64",
    
    134
    +  win: "Windows NT 10.0; Win64; x64",
    
    135
    +  macosx: "Windows NT 10.0; Win64; x64",
    
    136 136
       android: "Android 10; Mobile",
    
    137
    -  other: "Windows NT 10.0",
    
    137
    +  other: "Windows NT 10.0; Win64; x64",
    
    138 138
     };
    
    139 139
     const SPOOFED_HW_CONCURRENCY = 2;
    
    140 140
     
    

  • toolkit/components/resistfingerprinting/nsRFPService.h
    ... ... @@ -63,7 +63,7 @@
    63 63
     #if defined(MOZ_WIDGET_ANDROID)
    
    64 64
     #  define SPOOFED_HTTP_UA_OS "Android 10; Mobile"
    
    65 65
     #else
    
    66
    -#  define SPOOFED_HTTP_UA_OS "Windows NT 10.0"
    
    66
    +#  define SPOOFED_HTTP_UA_OS "Windows NT 10.0; Win64; x64"
    
    67 67
     #endif
    
    68 68
     
    
    69 69
     struct JSContext;
    

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