tor-browser

The Tor Browser
git clone https://git.dasho.dev/tor-browser.git
Log | Files | Refs | README | LICENSE

HttpTrafficAnalyzer.inc (4817B)


      1 // Type A) Parser blocking script loads will have an mContentPolicyType
      2 //         indicating a script load and a nsIClassOfService::Leader class of service.
      3 // Type B) I couldn’t find a class flag that corresponds to synchronous loads
      4 //         that block the load event, but I think a simple way to determine
      5 //         which ones they are is to examine whether the channel belongs to a
      6 //         load group and do not have a LOAD_BACKGROUND load flag.
      7 //         If that condition holds, then it is blocking the load event of some document.
      8 // Type C) I think a simple way to find channels that don’t block document loads
      9 //         (e.g. XHR and fetch) is to look for those which are in a load group
     10 //         and have a LOAD_BACKGROUND load flag.
     11 
     12 
     13 // Y=0 - all system principal connections.
     14 DEFINE_CATEGORY(N1Sys, 0)
     15 
     16 // Y=1 - all requests/connections/bytes that are first party.
     17 DEFINE_CATEGORY(N1, 1)
     18 
     19 // Y=2 - all requests/connections/bytes that are third party
     20 // but don’t fall into other categories
     21 DEFINE_CATEGORY(N3Oth, 2)
     22 
     23 // Y=3 - all requests/connections/bytes associated with third party loads that
     24 // match the Analytics/Social/Advertising (Basic) Category and have a load of type (A)
     25 DEFINE_CATEGORY(N3BasicLead, 3)
     26 
     27 // Y=4 - all requests/connections/bytes associated with third party loads that
     28 // match the Analytics/Social/Advertising (Basic) Category and have a load of type (B)
     29 DEFINE_CATEGORY(N3BasicBg, 4)
     30 
     31 // Y=5 - all requests/connections/bytes associated with third party loads that
     32 // match the Analytics/Social/Advertising (Basic) Category and have a load of type (C)
     33 DEFINE_CATEGORY(N3BasicOth, 5)
     34 
     35 // Y=6 - all requests/connections/bytes associated with third party loads that
     36 // match the Content Category and have a load of type (A)
     37 DEFINE_CATEGORY(N3ContentLead, 6)
     38 
     39 // Y=7 - all requests/connections/bytes associated with third party loads that
     40 // match the Content Category and have a load of type (B)
     41 DEFINE_CATEGORY(N3ContentBg, 7)
     42 
     43 // Y=8 - all requests/connections/bytes associated with third party loads that
     44 // match the Content Category and have a load of type (C)
     45 DEFINE_CATEGORY(N3ContentOth, 8)
     46 
     47 // Y=9 - all requests/connections/bytes associated with third party loads that
     48 // match the Fingerprinting Category and have a load of type (A)
     49 DEFINE_CATEGORY(N3FpLead, 9)
     50 
     51 // Y=10 - all requests/connections/bytes associated with third party loads that
     52 // match the Fingerprinting Category and have a load of type (B)
     53 DEFINE_CATEGORY(N3FpBg, 10)
     54 
     55 // Y=11 - all requests/connections/bytes associated with third party loads that
     56 // match the Fingerprinting Category and have a load of type (C)
     57 DEFINE_CATEGORY(N3FpOth, 11)
     58 
     59 // Y=12 - private mode system principal connections.
     60 DEFINE_CATEGORY(P1Sys, 12)
     61 
     62 // Y=13 - private mode and all requests/connections/bytes that are first party.
     63 DEFINE_CATEGORY(P1, 13)
     64 
     65 // Y=14 - private mode and all requests/connections/bytes that are third party
     66 // but don’t fall into other categories
     67 DEFINE_CATEGORY(P3Oth, 14)
     68 
     69 // Y=15 - private mode and all requests/connections/bytes associated with
     70 // third party loads that match the Analytics/Social/Advertising (Basic) Category
     71 // and have a load of type (A)
     72 DEFINE_CATEGORY(P3BasicLead, 15)
     73 
     74 // Y=16 - private mode and all requests/connections/bytes associated with
     75 // third party loads that match the Analytics/Social/Advertising (Basic) Category
     76 // and have a load of type (B)
     77 DEFINE_CATEGORY(P3BasicBg, 16)
     78 
     79 // Y=17 - private mode and all requests/connections/bytes associated with
     80 // third party loads that match the Analytics/Social/Advertising (Basic) Category
     81 // and have a load of type (C)
     82 DEFINE_CATEGORY(P3BasicOth, 17)
     83 
     84 // Y=18 - private mode and all requests/connections/bytes associated with
     85 // third party loads that match the Content Category and have a load of type (A)
     86 DEFINE_CATEGORY(P3ContentLead, 18)
     87 
     88 // Y=19 - private mode and all requests/connections/bytes associated with
     89 // third party loads that match the Content Category and have a load of type (B)
     90 DEFINE_CATEGORY(P3ContentBg, 19)
     91 
     92 // Y=20 - private mode and all requests/connections/bytes associated with
     93 // third party loads that match the Content Category and have a load of type (C)
     94 DEFINE_CATEGORY(P3ContentOth, 20)
     95 
     96 // Y=21 - private mode and all requests/connections/bytes associated with
     97 // third party loads that match the Fingerprinting Category and have a load of type (A)
     98 DEFINE_CATEGORY(P3FpLead, 21)
     99 
    100 // Y=22 - private mode and all requests/connections/bytes associated with
    101 // third party loads that match the Fingerprinting Category and have a load of type (B)
    102 DEFINE_CATEGORY(P3FpBg, 22)
    103 
    104 // Y=23 - private mode and all requests/connections/bytes associated with
    105 // third party loads that match the Fingerprinting Category and have a load of type (C)
    106 DEFINE_CATEGORY(P3FpOth, 23)