selenium_tor 2.3.1 → 2.4.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (155) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +12 -0
  3. data/README.md +1 -0
  4. data/lib/tor/driver.rb +9 -1
  5. data/lib/tor/libxul_checksums.yml +40 -0
  6. data/lib/tor/options.rb +4 -2
  7. data/lib/tor/torrc.rb +10 -2
  8. data/lib/tor/version.rb +1 -1
  9. metadata +2 -148
  10. data/fonts/000_README.txt +0 -6
  11. data/fonts/Arimo-Bold.ttf +0 -0
  12. data/fonts/Arimo-BoldItalic.ttf +0 -0
  13. data/fonts/Arimo-Italic.ttf +0 -0
  14. data/fonts/Arimo-Regular.ttf +0 -0
  15. data/fonts/Cousine-Bold.ttf +0 -0
  16. data/fonts/Cousine-BoldItalic.ttf +0 -0
  17. data/fonts/Cousine-Italic.ttf +0 -0
  18. data/fonts/Cousine-Regular.ttf +0 -0
  19. data/fonts/NotoColorEmoji.ttf +0 -0
  20. data/fonts/NotoNaskhArabic-Regular.ttf +0 -0
  21. data/fonts/NotoSansAdlam-Regular.ttf +0 -0
  22. data/fonts/NotoSansArmenian-Regular.ttf +0 -0
  23. data/fonts/NotoSansBalinese-Regular.ttf +0 -0
  24. data/fonts/NotoSansBamum-Regular.ttf +0 -0
  25. data/fonts/NotoSansBassaVah-Regular.ttf +0 -0
  26. data/fonts/NotoSansBatak-Regular.ttf +0 -0
  27. data/fonts/NotoSansBengali-Regular.ttf +0 -0
  28. data/fonts/NotoSansBuginese-Regular.ttf +0 -0
  29. data/fonts/NotoSansBuhid-Regular.ttf +0 -0
  30. data/fonts/NotoSansCanadianAboriginal-Regular.ttf +0 -0
  31. data/fonts/NotoSansChakma-Regular.ttf +0 -0
  32. data/fonts/NotoSansCham-Regular.ttf +0 -0
  33. data/fonts/NotoSansCherokee-Regular.ttf +0 -0
  34. data/fonts/NotoSansCoptic-Regular.ttf +0 -0
  35. data/fonts/NotoSansDeseret-Regular.ttf +0 -0
  36. data/fonts/NotoSansDevanagari-Regular.ttf +0 -0
  37. data/fonts/NotoSansElbasan-Regular.ttf +0 -0
  38. data/fonts/NotoSansEthiopic-Regular.ttf +0 -0
  39. data/fonts/NotoSansGeorgian-Regular.ttf +0 -0
  40. data/fonts/NotoSansGrantha-Regular.ttf +0 -0
  41. data/fonts/NotoSansGujarati-Regular.ttf +0 -0
  42. data/fonts/NotoSansGunjalaGondi-Regular.ttf +0 -0
  43. data/fonts/NotoSansGurmukhi-Regular.ttf +0 -0
  44. data/fonts/NotoSansHanifiRohingya-Regular.ttf +0 -0
  45. data/fonts/NotoSansHanunoo-Regular.ttf +0 -0
  46. data/fonts/NotoSansHebrew-Regular.ttf +0 -0
  47. data/fonts/NotoSansJP-Regular.otf +0 -0
  48. data/fonts/NotoSansJavanese-Regular.ttf +0 -0
  49. data/fonts/NotoSansKR-Regular.otf +0 -0
  50. data/fonts/NotoSansKannada-Regular.ttf +0 -0
  51. data/fonts/NotoSansKayahLi-Regular.ttf +0 -0
  52. data/fonts/NotoSansKhmer-Regular.ttf +0 -0
  53. data/fonts/NotoSansKhojki-Regular.ttf +0 -0
  54. data/fonts/NotoSansKhudawadi-Regular.ttf +0 -0
  55. data/fonts/NotoSansLao-Regular.ttf +0 -0
  56. data/fonts/NotoSansLepcha-Regular.ttf +0 -0
  57. data/fonts/NotoSansLimbu-Regular.ttf +0 -0
  58. data/fonts/NotoSansLisu-Regular.ttf +0 -0
  59. data/fonts/NotoSansMahajani-Regular.ttf +0 -0
  60. data/fonts/NotoSansMalayalam-Regular.ttf +0 -0
  61. data/fonts/NotoSansMandaic-Regular.ttf +0 -0
  62. data/fonts/NotoSansMasaramGondi-Regular.ttf +0 -0
  63. data/fonts/NotoSansMedefaidrin-Regular.ttf +0 -0
  64. data/fonts/NotoSansMeeteiMayek-Regular.ttf +0 -0
  65. data/fonts/NotoSansMendeKikakui-Regular.ttf +0 -0
  66. data/fonts/NotoSansMiao-Regular.ttf +0 -0
  67. data/fonts/NotoSansModi-Regular.ttf +0 -0
  68. data/fonts/NotoSansMongolian-Regular.ttf +0 -0
  69. data/fonts/NotoSansMro-Regular.ttf +0 -0
  70. data/fonts/NotoSansMultani-Regular.ttf +0 -0
  71. data/fonts/NotoSansNKo-Regular.ttf +0 -0
  72. data/fonts/NotoSansNewTaiLue-Regular.ttf +0 -0
  73. data/fonts/NotoSansNewa-Regular.ttf +0 -0
  74. data/fonts/NotoSansOlChiki-Regular.ttf +0 -0
  75. data/fonts/NotoSansOriya-Regular.ttf +0 -0
  76. data/fonts/NotoSansOsage-Regular.ttf +0 -0
  77. data/fonts/NotoSansOsmanya-Regular.ttf +0 -0
  78. data/fonts/NotoSansPahawhHmong-Regular.ttf +0 -0
  79. data/fonts/NotoSansPauCinHau-Regular.ttf +0 -0
  80. data/fonts/NotoSansRejang-Regular.ttf +0 -0
  81. data/fonts/NotoSansRunic-Regular.ttf +0 -0
  82. data/fonts/NotoSansSC-Regular.otf +0 -0
  83. data/fonts/NotoSansSamaritan-Regular.ttf +0 -0
  84. data/fonts/NotoSansSaurashtra-Regular.ttf +0 -0
  85. data/fonts/NotoSansSharada-Regular.ttf +0 -0
  86. data/fonts/NotoSansShavian-Regular.ttf +0 -0
  87. data/fonts/NotoSansSinhala-Regular.ttf +0 -0
  88. data/fonts/NotoSansSoraSompeng-Regular.ttf +0 -0
  89. data/fonts/NotoSansSoyombo-Regular.ttf +0 -0
  90. data/fonts/NotoSansSundanese-Regular.ttf +0 -0
  91. data/fonts/NotoSansSylotiNagri-Regular.ttf +0 -0
  92. data/fonts/NotoSansSymbols-Regular.ttf +0 -0
  93. data/fonts/NotoSansSymbols2-Regular.ttf +0 -0
  94. data/fonts/NotoSansSyriac-Regular.ttf +0 -0
  95. data/fonts/NotoSansTC-Regular.otf +0 -0
  96. data/fonts/NotoSansTagalog-Regular.ttf +0 -0
  97. data/fonts/NotoSansTagbanwa-Regular.ttf +0 -0
  98. data/fonts/NotoSansTaiLe-Regular.ttf +0 -0
  99. data/fonts/NotoSansTaiTham-Regular.ttf +0 -0
  100. data/fonts/NotoSansTaiViet-Regular.ttf +0 -0
  101. data/fonts/NotoSansTakri-Regular.ttf +0 -0
  102. data/fonts/NotoSansTamil-Regular.ttf +0 -0
  103. data/fonts/NotoSansTelugu-Regular.ttf +0 -0
  104. data/fonts/NotoSansThaana-Regular.ttf +0 -0
  105. data/fonts/NotoSansThai-Regular.ttf +0 -0
  106. data/fonts/NotoSansTifinagh-Regular.ttf +0 -0
  107. data/fonts/NotoSansTifinaghAPT-Regular.ttf +0 -0
  108. data/fonts/NotoSansTifinaghAdrar-Regular.ttf +0 -0
  109. data/fonts/NotoSansTifinaghAgrawImazighen-Regular.ttf +0 -0
  110. data/fonts/NotoSansTifinaghAhaggar-Regular.ttf +0 -0
  111. data/fonts/NotoSansTifinaghAir-Regular.ttf +0 -0
  112. data/fonts/NotoSansTifinaghAzawagh-Regular.ttf +0 -0
  113. data/fonts/NotoSansTifinaghGhat-Regular.ttf +0 -0
  114. data/fonts/NotoSansTifinaghHawad-Regular.ttf +0 -0
  115. data/fonts/NotoSansTifinaghRhissaIxa-Regular.ttf +0 -0
  116. data/fonts/NotoSansTifinaghSIL-Regular.ttf +0 -0
  117. data/fonts/NotoSansTifinaghTawellemmet-Regular.ttf +0 -0
  118. data/fonts/NotoSansTirhuta-Regular.ttf +0 -0
  119. data/fonts/NotoSansVai-Regular.ttf +0 -0
  120. data/fonts/NotoSansWancho-Regular.ttf +0 -0
  121. data/fonts/NotoSansWarangCiti-Regular.ttf +0 -0
  122. data/fonts/NotoSansYi-Regular.ttf +0 -0
  123. data/fonts/NotoSansZanabazarSquare-Regular.ttf +0 -0
  124. data/fonts/NotoSerifArmenian-Regular.ttf +0 -0
  125. data/fonts/NotoSerifBalinese-Regular.ttf +0 -0
  126. data/fonts/NotoSerifBengali-Regular.ttf +0 -0
  127. data/fonts/NotoSerifDevanagari-Regular.ttf +0 -0
  128. data/fonts/NotoSerifDogra-Regular.ttf +0 -0
  129. data/fonts/NotoSerifEthiopic-Regular.ttf +0 -0
  130. data/fonts/NotoSerifGeorgian-Regular.ttf +0 -0
  131. data/fonts/NotoSerifGrantha-Regular.ttf +0 -0
  132. data/fonts/NotoSerifGujarati-Regular.ttf +0 -0
  133. data/fonts/NotoSerifGurmukhi-Regular.ttf +0 -0
  134. data/fonts/NotoSerifHebrew-Regular.ttf +0 -0
  135. data/fonts/NotoSerifKannada-Regular.ttf +0 -0
  136. data/fonts/NotoSerifKhmer-Regular.ttf +0 -0
  137. data/fonts/NotoSerifKhojki-Regular.ttf +0 -0
  138. data/fonts/NotoSerifLao-Regular.ttf +0 -0
  139. data/fonts/NotoSerifMalayalam-Regular.ttf +0 -0
  140. data/fonts/NotoSerifMyanmar-Regular.ttf +0 -0
  141. data/fonts/NotoSerifNPHmong-Regular.ttf +0 -0
  142. data/fonts/NotoSerifSinhala-Regular.ttf +0 -0
  143. data/fonts/NotoSerifTamil-Regular.ttf +0 -0
  144. data/fonts/NotoSerifTelugu-Regular.ttf +0 -0
  145. data/fonts/NotoSerifThai-Regular.ttf +0 -0
  146. data/fonts/NotoSerifTibetan-Regular.ttf +0 -0
  147. data/fonts/NotoSerifYezidi-Regular.ttf +0 -0
  148. data/fonts/Pyidaungsu-2.5.3_Regular.ttf +0 -0
  149. data/fonts/STIXTwoMath-Regular.otf +0 -0
  150. data/fonts/Tinos-Bold.ttf +0 -0
  151. data/fonts/Tinos-BoldItalic.ttf +0 -0
  152. data/fonts/Tinos-Italic.ttf +0 -0
  153. data/fonts/Tinos-Regular.ttf +0 -0
  154. data/fonts/TwemojiMozilla.ttf +0 -0
  155. data/fonts/fonts.conf +0 -183
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 23bdb719d2fdf809d3883de2a26b8a7d5c6a19b24541b5eca9f8c8e27585658c
4
- data.tar.gz: 496275f66138dc7a063bccb1f1633153d39576bf39b7f48cecde80fd7fa9ba28
3
+ metadata.gz: 6364e433d9dc6dae22726d13c881c445eecfe34d7ce3deaf6b7a6f018e2e12a5
4
+ data.tar.gz: 6cf4824e8b4b0bb836cfa4ee44be05da6efba6dbe880b91de71e93971234415a
5
5
  SHA512:
6
- metadata.gz: 4534c19f17ec6b0992ca9caf6be59e3f6e5cc69960329a801bffe54a176333bac4aca1a24fba1f323bbec9cb3aefda1f0654d078387625a7c54af55b544e96a8
7
- data.tar.gz: a4b9349a1e842019d6d16aa71293b5ef7355d457f50235a83cecb78064d93cbabb570ac98d42c34c7fd0ddc4dab8b276046284c77ead489817fcccfdaa029430
6
+ metadata.gz: f49bbbcc7edbc15b544d06f1d6d1aadc3dc0a37f2e7210fe6b55a567b8dbc177db450fb6047d62a57560e024750b81907ac4581a35264688a81e60d195b82ae8
7
+ data.tar.gz: e0e76fc9a1b113221cc735f2b0b785e9d6a062d42bc7938d1303d0161c5950a5efe253cf27f3c94004a71301d152e2cfd80c21117322d162cada0e6fbdedd3a9
data/CHANGELOG.md CHANGED
@@ -1,5 +1,17 @@
1
1
  ## master (unreleased)
2
2
 
3
+ ## [2.4.1] - 2026-03-12
4
+
5
+ * add Tor::TBB_TOR_GEOIP_DIR const for changed tor geoip files location in 16.0a4 (see tor-browser-build bug 40892)
6
+
7
+ ## [2.4.0] - 2026-02-26
8
+
9
+ * remove unecessary fonts directory
10
+
11
+ ### Bug fixes
12
+
13
+ * Fix fonts fingerprint leak in 16.0a3 [#22](https://gitlab.com/matzfan/selenium-tor/-/issues/22)
14
+
3
15
  ## [2.3.1] - 2025-11-13
4
16
 
5
17
  * update fonts directory for Tor Browser 15.0.1
data/README.md CHANGED
@@ -133,6 +133,7 @@ Tor = Selenium::WebDriver::Tor
133
133
  Tor::TBB_DIR # path to the TBB root directory
134
134
  Tor::TBB_BROWSER_DIR # path to the 'Browser' directory in the above
135
135
  Tor::TBB_BINARY_PATH # path to the firefox binary
136
+ Tor::TBB_TOR_GEOIP_DIR # path to the geoip files directory in 16.0a4+
136
137
  Tor::TBB_TOR_BINARY_PATH # path to the bundled tor binary
137
138
  Tor::TBB_PROFILE_DIR # path to the default profile directory
138
139
  Tor::TBB_EXTENSIONS_DIR # path to the 'extensions' directory in the above
data/lib/tor/driver.rb CHANGED
@@ -38,7 +38,7 @@ module Selenium
38
38
  @options = options || Options.new # fix for issue #11, 'tis a puzzlement
39
39
  @options.add_argument '-remote-allow-system-access' # FF 138+
40
40
  add_torrc_path_to_options
41
- @instance = DriverDelegate.new(options: @options, **)
41
+ @instance = while_in_tbb_browser_directory { DriverDelegate.new(options: @options, **) } # fixes #22
42
42
  install_extensions @instance
43
43
  pid = create_tor_process_and_start_tor(@options.tor_opts)
44
44
  @instance.pref[PREF_SOCKS_PORT] = socks_port(pid)
@@ -74,6 +74,14 @@ module Selenium
74
74
 
75
75
  private
76
76
 
77
+ def while_in_tbb_browser_directory
78
+ cwd = FileUtils.pwd
79
+ FileUtils.cd Selenium::WebDriver::Tor::TBB_BROWSER_DIR # avoids font fingerprint leaks
80
+ yield
81
+ ensure
82
+ FileUtils.cd cwd
83
+ end
84
+
77
85
  def add_torrc_path_to_options
78
86
  @options.prefs[PREF_TORRC_PATH] = File.join(@data_dir, TORRC)
79
87
  end
@@ -1,4 +1,44 @@
1
1
  ---
2
+ 16.0a4:
3
+ unpatched_libxul: 432205c32f39e9d78c2b525d4f8158cb1489bef85f9fdad6961b9c7493cb9a3a
4
+ patched_libxul: 61ee89195b06b6ed01581cf34a23bc324da3817ea703f8ad57f984664888c579
5
+ patch_checksum: 6d3b0755bee95bbfc8d3e4164699fd8e76c10807c67e5f23ea370e47cc50577c
6
+ 16.0a3:
7
+ unpatched_libxul: a187365b3f57776ea04a4bba4b23f51fe43f2900d87d2569ddfcf7fe4685fbda
8
+ patched_libxul: 9d485988ce3ad967f31a9a71025fcdf155ded283733455290a45991c19e869a1
9
+ patch_checksum: 1ac139fea9f3c2c67881bd7e26e9fb003c24fd208d54a2a213e40649add946bb
10
+ 16.0a2:
11
+ unpatched_libxul: 0dc16fd77c7aaac9f6d134cea5564e8243de36783973f4da760dd3560691cb0d
12
+ patched_libxul: a878adb5121b2bb2b2374f83c3b6fca74bf65fc6cbd7deab642a8059df72cc05
13
+ patch_checksum: 3f9199978ace876785179353950a46a6bc7ae4d27df077f89ccedfea0978fbe6
14
+ 16.0a1:
15
+ unpatched_libxul: 031bb945f33ab3c735c5a83005a73c0969eaff5c354e3d84aed2d7d39d0e05e1
16
+ patched_libxul: 7b87200bb0a406f8d4c0660413aab05b61eb539e7596082b8f4c78d083b072a1
17
+ patch_checksum: 6315196938fa4c3bae59b300426f2dac1141fb075c19fcdbebd656d0c3452dd5
18
+ 15.0.7:
19
+ unpatched_libxul: 46c9b9c8882645386a3ca9714f6abc09198fbd1ae233509cb658ebc6b689e444
20
+ patched_libxul: b1770187f513bd6bfb8a86fbd4617b1de142c43529f350e9ba79ac52216b4e5a
21
+ patch_checksum: 7728f963d584554c88d62ff8089b0b16d8c3069caeeb57ec7eff6ab166667f61
22
+ 15.0.6:
23
+ unpatched_libxul: 9dbfd27b2c88604ba04ea8c92683df34027b3392ef2171480da72b533c793614
24
+ patched_libxul: 82bfea6a5de59f9947e512a534229c2d1aee4d83fbe46638a4071f8d7512e65a
25
+ patch_checksum: 01e91f4e261f74351447a11533f5631ffef728118a411d3c8ba21c0c1a13e498
26
+ 15.0.5:
27
+ unpatched_libxul: 87104495fdf3e0299af0700545858a9c052c4374bf0bfcf46ee6abf066b65571
28
+ patched_libxul: c1261174d8acc26d78d12e16f73f0400ce40eb3910651c9858eee62a95268b72
29
+ patch_checksum: b0c4712a27ba8a14b4097080cc00cf1354e7fcafe180b1731597464ced781116
30
+ 15.0.4:
31
+ unpatched_libxul: 8a5feff13dead97c95f72feea58d59dc5739d17af87d4aaeaed89464d1c73c2e
32
+ patched_libxul: 4a1052cbbb934d7e4427bd8455d854ae8fc08d8fc34df55810023455d993a4ce
33
+ patch_checksum: c00b5829dee7e24996b0dd8a68867b8efd251b5f75ce263a044ff23d91608851
34
+ 15.0.3:
35
+ unpatched_libxul: c5f7d577b12012f1ff1fad8e02d99354b736f9bfba63ff8006f12b88c6e8a70f
36
+ patched_libxul: 26c521e23f1323f72f3526aa699782d88fca795cff72cd0380baf1e91be55a87
37
+ patch_checksum: ee3262639c6e12ce82a7f23a4f3b794656ae93f46538ced232b42ddbf16266fd
38
+ 15.0.2:
39
+ unpatched_libxul: 68e908562fd551d0801818de8a266ab4a39e67a20724443f8811bc400177be6a
40
+ patched_libxul: 8d332f6ca8c8008f3ca2ac77424253771152336677c050aa738ff4903c2e9672
41
+ patch_checksum: d877cb97c96eb41acbde29fd37fb53c83cfbb9e9ceaaf9da707c7c7da977f35e
2
42
  15.0.1:
3
43
  unpatched_libxul: b2f51b7b3757ae122de10c11764588abd24e92106efcf0f2ca413f7fcbe57b0f
4
44
  patched_libxul: f3eff899dc46a98bb8b0604c517f8078327ca8f01c18da578c492419fbc7caab
data/lib/tor/options.rb CHANGED
@@ -15,6 +15,7 @@ module Selenium
15
15
  Tor::TBB_BROWSER_DIR = File.join Tor::TBB_DIR, 'Browser'
16
16
  Tor::TBB_LIBXUL = File.join Tor::TBB_BROWSER_DIR, 'libxul.so'
17
17
  Tor::TBB_BINARY_PATH = File.join Tor::TBB_BROWSER_DIR, 'firefox'
18
+ Tor::TBB_TOR_GEOIP_DIR = File.join Tor::TBB_BROWSER_DIR, *%w[TorBrowser Tor] # since 16.0a4
18
19
  Tor::TBB_TOR_BINARY_PATH = File.join Tor::TBB_BROWSER_DIR, *%w[TorBrowser Tor tor]
19
20
  Tor::TBB_TOR_DATA_DIR = File.join Tor::TBB_BROWSER_DIR, *%w[TorBrowser Data Tor]
20
21
  Tor::TBB_PROFILE_DIR = File.join Tor::TBB_BROWSER_DIR, *%w[TorBrowser Data Browser profile.default]
@@ -37,9 +38,10 @@ module Selenium
37
38
 
38
39
  def do_start_tor_browser_script_stuff
39
40
  ENV['SESSION_MANAGER'] = nil
40
- ENV['GSETTINGS_BACKEND'] = 'memory'
41
41
  ENV['XAUTHORITY'] = File.join(Dir.home, '.Xauthority') unless ENV.fetch('XAUTHORITY', nil)
42
- FileUtils.rm_rf File.join(Tor::TBB_BROWSER_DIR, *%w[TorBrowser Data fontconfig])
42
+ ENV['BB_ORIGINAL_HOME'] = Dir.home
43
+ ENV['GSETTINGS_BACKEND'] = 'memory'
44
+ ENV['__GL_SHADER_DISK_CACHE'] = '0'
43
45
  end
44
46
  end
45
47
  end
data/lib/tor/torrc.rb CHANGED
@@ -11,6 +11,8 @@ module Selenium
11
11
  FIXED_CONFIG_KEYS = %w[DataDirectory GeoIPFile GeoIPv6File SocksPort].freeze
12
12
  INVALID_OPTION_REGEX = %r{\[warn\] Failed to parse/validate config: (.*).$}
13
13
 
14
+ GEOIP_LOCATION_CHANGE_VER = Gem::Version.new '16.0a4'
15
+
14
16
  attr_reader :path
15
17
 
16
18
  def initialize(data_dir)
@@ -43,11 +45,17 @@ module Selenium
43
45
  end
44
46
 
45
47
  def geoip_file
46
- File.join(TBB_TOR_DATA_DIR, 'geoip')
48
+ # DEPRECATE after 16 stable
49
+ return File.join(TBB_TOR_DATA_DIR, 'geoip') if Gem::Version.new(Tor::TBB_VERSION) < GEOIP_LOCATION_CHANGE_VER
50
+
51
+ File.join(TBB_TOR_GEOIP_DIR, 'geoip')
47
52
  end
48
53
 
49
54
  def geoip6_file
50
- File.join(TBB_TOR_DATA_DIR, 'geoip6')
55
+ # DEPRECATE after 16 stable
56
+ return File.join(TBB_TOR_DATA_DIR, 'geoip6') if Gem::Version.new(Tor::TBB_VERSION) < GEOIP_LOCATION_CHANGE_VER
57
+
58
+ File.join(TBB_TOR_GEOIP_DIR, 'geoip6')
51
59
  end
52
60
 
53
61
  def validate_torrc_options(hash)
data/lib/tor/version.rb CHANGED
@@ -3,7 +3,7 @@
3
3
  module Selenium
4
4
  module WebDriver
5
5
  module Tor
6
- VERSION = '2.3.1'
6
+ VERSION = '2.4.1'
7
7
  end
8
8
  end
9
9
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: selenium_tor
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.3.1
4
+ version: 2.4.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - MatzFan
@@ -50,152 +50,6 @@ files:
50
50
  - LICENSE.txt
51
51
  - README.md
52
52
  - Rakefile
53
- - fonts/000_README.txt
54
- - fonts/Arimo-Bold.ttf
55
- - fonts/Arimo-BoldItalic.ttf
56
- - fonts/Arimo-Italic.ttf
57
- - fonts/Arimo-Regular.ttf
58
- - fonts/Cousine-Bold.ttf
59
- - fonts/Cousine-BoldItalic.ttf
60
- - fonts/Cousine-Italic.ttf
61
- - fonts/Cousine-Regular.ttf
62
- - fonts/NotoColorEmoji.ttf
63
- - fonts/NotoNaskhArabic-Regular.ttf
64
- - fonts/NotoSansAdlam-Regular.ttf
65
- - fonts/NotoSansArmenian-Regular.ttf
66
- - fonts/NotoSansBalinese-Regular.ttf
67
- - fonts/NotoSansBamum-Regular.ttf
68
- - fonts/NotoSansBassaVah-Regular.ttf
69
- - fonts/NotoSansBatak-Regular.ttf
70
- - fonts/NotoSansBengali-Regular.ttf
71
- - fonts/NotoSansBuginese-Regular.ttf
72
- - fonts/NotoSansBuhid-Regular.ttf
73
- - fonts/NotoSansCanadianAboriginal-Regular.ttf
74
- - fonts/NotoSansChakma-Regular.ttf
75
- - fonts/NotoSansCham-Regular.ttf
76
- - fonts/NotoSansCherokee-Regular.ttf
77
- - fonts/NotoSansCoptic-Regular.ttf
78
- - fonts/NotoSansDeseret-Regular.ttf
79
- - fonts/NotoSansDevanagari-Regular.ttf
80
- - fonts/NotoSansElbasan-Regular.ttf
81
- - fonts/NotoSansEthiopic-Regular.ttf
82
- - fonts/NotoSansGeorgian-Regular.ttf
83
- - fonts/NotoSansGrantha-Regular.ttf
84
- - fonts/NotoSansGujarati-Regular.ttf
85
- - fonts/NotoSansGunjalaGondi-Regular.ttf
86
- - fonts/NotoSansGurmukhi-Regular.ttf
87
- - fonts/NotoSansHanifiRohingya-Regular.ttf
88
- - fonts/NotoSansHanunoo-Regular.ttf
89
- - fonts/NotoSansHebrew-Regular.ttf
90
- - fonts/NotoSansJP-Regular.otf
91
- - fonts/NotoSansJavanese-Regular.ttf
92
- - fonts/NotoSansKR-Regular.otf
93
- - fonts/NotoSansKannada-Regular.ttf
94
- - fonts/NotoSansKayahLi-Regular.ttf
95
- - fonts/NotoSansKhmer-Regular.ttf
96
- - fonts/NotoSansKhojki-Regular.ttf
97
- - fonts/NotoSansKhudawadi-Regular.ttf
98
- - fonts/NotoSansLao-Regular.ttf
99
- - fonts/NotoSansLepcha-Regular.ttf
100
- - fonts/NotoSansLimbu-Regular.ttf
101
- - fonts/NotoSansLisu-Regular.ttf
102
- - fonts/NotoSansMahajani-Regular.ttf
103
- - fonts/NotoSansMalayalam-Regular.ttf
104
- - fonts/NotoSansMandaic-Regular.ttf
105
- - fonts/NotoSansMasaramGondi-Regular.ttf
106
- - fonts/NotoSansMedefaidrin-Regular.ttf
107
- - fonts/NotoSansMeeteiMayek-Regular.ttf
108
- - fonts/NotoSansMendeKikakui-Regular.ttf
109
- - fonts/NotoSansMiao-Regular.ttf
110
- - fonts/NotoSansModi-Regular.ttf
111
- - fonts/NotoSansMongolian-Regular.ttf
112
- - fonts/NotoSansMro-Regular.ttf
113
- - fonts/NotoSansMultani-Regular.ttf
114
- - fonts/NotoSansNKo-Regular.ttf
115
- - fonts/NotoSansNewTaiLue-Regular.ttf
116
- - fonts/NotoSansNewa-Regular.ttf
117
- - fonts/NotoSansOlChiki-Regular.ttf
118
- - fonts/NotoSansOriya-Regular.ttf
119
- - fonts/NotoSansOsage-Regular.ttf
120
- - fonts/NotoSansOsmanya-Regular.ttf
121
- - fonts/NotoSansPahawhHmong-Regular.ttf
122
- - fonts/NotoSansPauCinHau-Regular.ttf
123
- - fonts/NotoSansRejang-Regular.ttf
124
- - fonts/NotoSansRunic-Regular.ttf
125
- - fonts/NotoSansSC-Regular.otf
126
- - fonts/NotoSansSamaritan-Regular.ttf
127
- - fonts/NotoSansSaurashtra-Regular.ttf
128
- - fonts/NotoSansSharada-Regular.ttf
129
- - fonts/NotoSansShavian-Regular.ttf
130
- - fonts/NotoSansSinhala-Regular.ttf
131
- - fonts/NotoSansSoraSompeng-Regular.ttf
132
- - fonts/NotoSansSoyombo-Regular.ttf
133
- - fonts/NotoSansSundanese-Regular.ttf
134
- - fonts/NotoSansSylotiNagri-Regular.ttf
135
- - fonts/NotoSansSymbols-Regular.ttf
136
- - fonts/NotoSansSymbols2-Regular.ttf
137
- - fonts/NotoSansSyriac-Regular.ttf
138
- - fonts/NotoSansTC-Regular.otf
139
- - fonts/NotoSansTagalog-Regular.ttf
140
- - fonts/NotoSansTagbanwa-Regular.ttf
141
- - fonts/NotoSansTaiLe-Regular.ttf
142
- - fonts/NotoSansTaiTham-Regular.ttf
143
- - fonts/NotoSansTaiViet-Regular.ttf
144
- - fonts/NotoSansTakri-Regular.ttf
145
- - fonts/NotoSansTamil-Regular.ttf
146
- - fonts/NotoSansTelugu-Regular.ttf
147
- - fonts/NotoSansThaana-Regular.ttf
148
- - fonts/NotoSansThai-Regular.ttf
149
- - fonts/NotoSansTifinagh-Regular.ttf
150
- - fonts/NotoSansTifinaghAPT-Regular.ttf
151
- - fonts/NotoSansTifinaghAdrar-Regular.ttf
152
- - fonts/NotoSansTifinaghAgrawImazighen-Regular.ttf
153
- - fonts/NotoSansTifinaghAhaggar-Regular.ttf
154
- - fonts/NotoSansTifinaghAir-Regular.ttf
155
- - fonts/NotoSansTifinaghAzawagh-Regular.ttf
156
- - fonts/NotoSansTifinaghGhat-Regular.ttf
157
- - fonts/NotoSansTifinaghHawad-Regular.ttf
158
- - fonts/NotoSansTifinaghRhissaIxa-Regular.ttf
159
- - fonts/NotoSansTifinaghSIL-Regular.ttf
160
- - fonts/NotoSansTifinaghTawellemmet-Regular.ttf
161
- - fonts/NotoSansTirhuta-Regular.ttf
162
- - fonts/NotoSansVai-Regular.ttf
163
- - fonts/NotoSansWancho-Regular.ttf
164
- - fonts/NotoSansWarangCiti-Regular.ttf
165
- - fonts/NotoSansYi-Regular.ttf
166
- - fonts/NotoSansZanabazarSquare-Regular.ttf
167
- - fonts/NotoSerifArmenian-Regular.ttf
168
- - fonts/NotoSerifBalinese-Regular.ttf
169
- - fonts/NotoSerifBengali-Regular.ttf
170
- - fonts/NotoSerifDevanagari-Regular.ttf
171
- - fonts/NotoSerifDogra-Regular.ttf
172
- - fonts/NotoSerifEthiopic-Regular.ttf
173
- - fonts/NotoSerifGeorgian-Regular.ttf
174
- - fonts/NotoSerifGrantha-Regular.ttf
175
- - fonts/NotoSerifGujarati-Regular.ttf
176
- - fonts/NotoSerifGurmukhi-Regular.ttf
177
- - fonts/NotoSerifHebrew-Regular.ttf
178
- - fonts/NotoSerifKannada-Regular.ttf
179
- - fonts/NotoSerifKhmer-Regular.ttf
180
- - fonts/NotoSerifKhojki-Regular.ttf
181
- - fonts/NotoSerifLao-Regular.ttf
182
- - fonts/NotoSerifMalayalam-Regular.ttf
183
- - fonts/NotoSerifMyanmar-Regular.ttf
184
- - fonts/NotoSerifNPHmong-Regular.ttf
185
- - fonts/NotoSerifSinhala-Regular.ttf
186
- - fonts/NotoSerifTamil-Regular.ttf
187
- - fonts/NotoSerifTelugu-Regular.ttf
188
- - fonts/NotoSerifThai-Regular.ttf
189
- - fonts/NotoSerifTibetan-Regular.ttf
190
- - fonts/NotoSerifYezidi-Regular.ttf
191
- - fonts/Pyidaungsu-2.5.3_Regular.ttf
192
- - fonts/STIXTwoMath-Regular.otf
193
- - fonts/Tinos-Bold.ttf
194
- - fonts/Tinos-BoldItalic.ttf
195
- - fonts/Tinos-Italic.ttf
196
- - fonts/Tinos-Regular.ttf
197
- - fonts/TwemojiMozilla.ttf
198
- - fonts/fonts.conf
199
53
  - lib/driver.rb
200
54
  - lib/firefox_js_helpers.rb
201
55
  - lib/firefox_prefs.rb
@@ -235,7 +89,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
235
89
  - !ruby/object:Gem::Version
236
90
  version: '0'
237
91
  requirements: []
238
- rubygems_version: 3.7.0.dev
92
+ rubygems_version: 4.0.6
239
93
  specification_version: 4
240
94
  summary: Selenium extension for Tor Browser
241
95
  test_files: []
data/fonts/000_README.txt DELETED
@@ -1,6 +0,0 @@
1
- DO NOT MODIFY THE CONTENTS OF THIS DIRECTORY
2
-
3
- Any adjustment to bundled fonts will result in an altered fingerprint. Font
4
- fingerprinting is more than just detecting what fonts you have, it also includes
5
- font fallbacks and characters (Unicode code points) and any change in those can
6
- be measured.
data/fonts/Arimo-Bold.ttf DELETED
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
data/fonts/Tinos-Bold.ttf DELETED
Binary file
Binary file
Binary file
Binary file
Binary file
data/fonts/fonts.conf DELETED
@@ -1,183 +0,0 @@
1
- <?xml version="1.0"?>
2
- <!DOCTYPE fontconfig SYSTEM "fonts.dtd">
3
- <!--
4
- **DO NOT EDIT THIS FILE!**
5
- This file sets Tor Browser's bundled fonts as the only available system fonts
6
- and standardizes rendering settings.
7
- Any changes might deanonymize you, or expose you to fingerprinting vectors.
8
- -->
9
- <!--
10
- Derived from fonts.conf.in of Fontconfig.
11
-
12
- Copyright © 2000,2001,2002,2003,2004,2006,2007 Keith Packard
13
- Copyright © 2005 Patrick Lam
14
- Copyright © 2009 Roozbeh Pournader
15
- Copyright © 2008,2009 Red Hat, Inc.
16
- Copyright © 2008 Danilo Šegan
17
- Copyright © 2012 Google, Inc.
18
-
19
-
20
- Permission to use, copy, modify, distribute, and sell this software and its
21
- documentation for any purpose is hereby granted without fee, provided that
22
- the above copyright notice appear in all copies and that both that
23
- copyright notice and this permission notice appear in supporting
24
- documentation, and that the name of the author(s) not be used in
25
- advertising or publicity pertaining to distribution of the software without
26
- specific, written prior permission. The authors make no
27
- representations about the suitability of this software for any purpose. It
28
- is provided "as is" without express or implied warranty.
29
-
30
- THE AUTHOR(S) DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE,
31
- INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS, IN NO
32
- EVENT SHALL THE AUTHOR(S) BE LIABLE FOR ANY SPECIAL, INDIRECT OR
33
- CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE,
34
- DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER
35
- TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
36
- PERFORMANCE OF THIS SOFTWARE.
37
- -->
38
- <fontconfig>
39
-
40
- <!-- Font directory list -->
41
-
42
- <dir prefix="cwd">fonts</dir>
43
-
44
- <!--
45
- Accept deprecated 'mono' alias, replacing it with 'monospace'
46
- -->
47
- <match target="pattern">
48
- <test qual="any" name="family">
49
- <string>mono</string>
50
- </test>
51
- <edit name="family" mode="assign" binding="same">
52
- <string>monospace</string>
53
- </edit>
54
- </match>
55
-
56
- <!--
57
- Accept alternate 'sans serif' spelling, replacing it with 'sans-serif'
58
- -->
59
- <match target="pattern">
60
- <test qual="any" name="family">
61
- <string>sans serif</string>
62
- </test>
63
- <edit name="family" mode="assign" binding="same">
64
- <string>sans-serif</string>
65
- </edit>
66
- </match>
67
-
68
- <!--
69
- Accept deprecated 'sans' alias, replacing it with 'sans-serif'
70
- -->
71
- <match target="pattern">
72
- <test qual="any" name="family">
73
- <string>sans</string>
74
- </test>
75
- <edit name="family" mode="assign" binding="same">
76
- <string>sans-serif</string>
77
- </edit>
78
- </match>
79
-
80
- <!--
81
- Set our default generic families.
82
- -->
83
- <match target="pattern">
84
- <test qual="any" name="family">
85
- <string>sans-serif</string>
86
- </test>
87
- <edit name="family" mode="assign" binding="same">
88
- <string>Arimo</string>
89
- </edit>
90
- </match>
91
- <match target="pattern">
92
- <test qual="any" name="family">
93
- <string>serif</string>
94
- </test>
95
- <edit name="family" mode="assign" binding="same">
96
- <string>Tinos</string>
97
- </edit>
98
- </match>
99
- <match target="pattern">
100
- <test qual="any" name="family">
101
- <string>monospace</string>
102
- </test>
103
- <edit name="family" mode="assign" binding="same">
104
- <string>Cousine</string>
105
- </edit>
106
- </match>
107
-
108
- <!--
109
- tor-browser#41799, tor-browser-build#41237: Add some aliases for
110
- compatibility.
111
- -->
112
- <match target="pattern">
113
- <test qual="any" name="family">
114
- <string>Arial</string>
115
- </test>
116
- <edit name="family" mode="assign" binding="same">
117
- <string>Arimo</string>
118
- </edit>
119
- </match>
120
- <match target="pattern">
121
- <test qual="any" name="family">
122
- <string>Times New Roman</string>
123
- </test>
124
- <edit name="family" mode="assign" binding="same">
125
- <string>Tinos</string>
126
- </edit>
127
- </match>
128
- <match target="pattern">
129
- <test qual="any" name="family">
130
- <string>Courier New</string>
131
- </test>
132
- <edit name="family" mode="assign" binding="same">
133
- <string>Cousine</string>
134
- </edit>
135
- </match>
136
- <match target="pattern">
137
- <test qual="any" name="family">
138
- <string>Helvetica</string>
139
- </test>
140
- <edit name="family" mode="assign" binding="same">
141
- <string>Arimo</string>
142
- </edit>
143
- </match>
144
- <match target="pattern">
145
- <test qual="any" name="family">
146
- <string>Times</string>
147
- </test>
148
- <edit name="family" mode="assign" binding="same">
149
- <string>Tinos</string>
150
- </edit>
151
- </match>
152
- <match target="pattern">
153
- <test qual="any" name="family">
154
- <string>Courier</string>
155
- </test>
156
- <edit name="family" mode="assign" binding="same">
157
- <string>Cousine</string>
158
- </edit>
159
- </match>
160
-
161
- <!-- Font cache directory list -->
162
-
163
- <cachedir prefix="xdg">fontconfig</cachedir>
164
-
165
- <config>
166
- <!--
167
- Rescan configuration every 30 seconds when FcFontSetList is called
168
- -->
169
- <rescan>
170
- <int>30</int>
171
- </rescan>
172
- </config>
173
-
174
- <!-- Standardize rendering settings. -->
175
- <match target="pattern">
176
- <edit name="antialias" mode="assign"><bool>true</bool></edit>
177
- <edit name="autohint" mode="assign"><bool>false</bool></edit>
178
- <edit name="hinting" mode="assign"><bool>true</bool></edit>
179
- <edit name="hintstyle" mode="assign"><const>hintfull</const></edit>
180
- <edit name="lcdfilter" mode="assign"><const>lcddefault</const></edit>
181
- <edit name="rgba" mode="assign"><const>none</const></edit>
182
- </match>
183
- </fontconfig>