torified_browsing.feature 9.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172
  1. @product
  2. Feature: Browsing the web using the Tor Browser
  3. As a Tails user
  4. when I browse the web using the Tor Browser
  5. all Internet traffic should flow only through Tor
  6. #11591, #11592
  7. @fragile
  8. Scenario: The Tor Browser cannot access the LAN
  9. Given I have started Tails from DVD and logged in and the network is connected
  10. And a web server is running on the LAN
  11. And I capture all network traffic
  12. When I start the Tor Browser
  13. And the Tor Browser has started and loaded the startup page
  14. And I open a page on the LAN web server in the Tor Browser
  15. Then the Tor Browser shows the "Unable to connect" error
  16. And no traffic was sent to the web server on the LAN
  17. #11592
  18. @check_tor_leaks @fragile
  19. Scenario: The Tor Browser directory is usable
  20. Given I have started Tails from DVD and logged in and the network is connected
  21. Then the amnesiac Tor Browser directory exists
  22. And there is a GNOME bookmark for the amnesiac Tor Browser directory
  23. And the persistent Tor Browser directory does not exist
  24. When I start the Tor Browser
  25. And the Tor Browser has started and loaded the startup page
  26. Then I can save the current page as "index.html" to the default downloads directory
  27. And I can print the current page as "output.pdf" to the default downloads directory
  28. #11592
  29. @check_tor_leaks @fragile
  30. Scenario: Downloading files with the Tor Browser
  31. Given I have started Tails from DVD and logged in and the network is connected
  32. When I start the Tor Browser
  33. Then the Tor Browser has started and loaded the startup page
  34. When I download some file in the Tor Browser
  35. Then I get the browser download dialog
  36. When I save the file to the default Tor Browser download directory
  37. Then the file is saved to the default Tor Browser download directory
  38. #11592
  39. @check_tor_leaks @fragile
  40. Scenario: Playing HTML5 audio
  41. Given I have started Tails from DVD and logged in and the network is connected
  42. When I start the Tor Browser
  43. And the Tor Browser has started and loaded the startup page
  44. And no application is playing audio
  45. And I open the address "http://www.terrillthompson.com/tests/html5-audio.html" in the Tor Browser
  46. And I click the HTML5 play button
  47. And 1 application is playing audio after 10 seconds
  48. @check_tor_leaks @fragile
  49. Scenario: Watching a WebM video
  50. Given I have started Tails from DVD and logged in and the network is connected
  51. When I start the Tor Browser
  52. And the Tor Browser has started and loaded the startup page
  53. And I open the address "https://tails.boum.org/lib/test_suite/test.webm" in the Tor Browser
  54. And I click the blocked video icon
  55. And I see "TorBrowserNoScriptTemporarilyAllowDialog.png" after at most 30 seconds
  56. And I accept to temporarily allow playing this video
  57. Then I see "TorBrowserSampleRemoteWebMVideoFrame.png" after at most 180 seconds
  58. #11592
  59. @fragile
  60. Scenario: I can view a file stored in "~/Tor Browser" but not in ~/.gnupg
  61. Given I have started Tails from DVD and logged in and the network is connected
  62. And I copy "/usr/share/synaptic/html/index.html" to "/home/amnesia/Tor Browser/synaptic.html" as user "amnesia"
  63. And I copy "/usr/share/synaptic/html/index.html" to "/home/amnesia/.gnupg/synaptic.html" as user "amnesia"
  64. And I copy "/usr/share/synaptic/html/index.html" to "/tmp/synaptic.html" as user "amnesia"
  65. Then the file "/home/amnesia/.gnupg/synaptic.html" exists
  66. And the file "/lib/live/mount/overlay/home/amnesia/.gnupg/synaptic.html" exists
  67. And the file "/live/overlay/home/amnesia/.gnupg/synaptic.html" exists
  68. And the file "/tmp/synaptic.html" exists
  69. Given I start monitoring the AppArmor log of "/usr/local/lib/tor-browser/firefox"
  70. When I start the Tor Browser
  71. And the Tor Browser has started and loaded the startup page
  72. And I open the address "file:///home/amnesia/Tor Browser/synaptic.html" in the Tor Browser
  73. Then I see "TorBrowserSynapticManual.png" after at most 5 seconds
  74. And AppArmor has not denied "/usr/local/lib/tor-browser/firefox" from opening "/home/amnesia/Tor Browser/synaptic.html"
  75. Given I restart monitoring the AppArmor log of "/usr/local/lib/tor-browser/firefox"
  76. When I open the address "file:///home/amnesia/.gnupg/synaptic.html" in the Tor Browser
  77. Then I do not see "TorBrowserSynapticManual.png" after at most 5 seconds
  78. And AppArmor has denied "/usr/local/lib/tor-browser/firefox" from opening "/home/amnesia/.gnupg/synaptic.html"
  79. Given I restart monitoring the AppArmor log of "/usr/local/lib/tor-browser/firefox"
  80. When I open the address "file:///lib/live/mount/overlay/home/amnesia/.gnupg/synaptic.html" in the Tor Browser
  81. Then I do not see "TorBrowserSynapticManual.png" after at most 5 seconds
  82. And AppArmor has denied "/usr/local/lib/tor-browser/firefox" from opening "/lib/live/mount/overlay/home/amnesia/.gnupg/synaptic.html"
  83. Given I restart monitoring the AppArmor log of "/usr/local/lib/tor-browser/firefox"
  84. When I open the address "file:///live/overlay/home/amnesia/.gnupg/synaptic.html" in the Tor Browser
  85. Then I do not see "TorBrowserSynapticManual.png" after at most 5 seconds
  86. # Due to our AppArmor aliases, /live/overlay will be treated
  87. # as /lib/live/mount/overlay.
  88. And AppArmor has denied "/usr/local/lib/tor-browser/firefox" from opening "/lib/live/mount/overlay/home/amnesia/.gnupg/synaptic.html"
  89. # We do not get any AppArmor log for when access to files in /tmp is denied
  90. # since we explictly override (commit 51c0060) the rules (from the user-tmp
  91. # abstration) that would otherwise allow it, and we do so with "deny", which
  92. # also specifies "noaudit". We could explicitly specify "audit deny" and
  93. # then have logs, but it could be a problem when we set up desktop
  94. # notifications for AppArmor denials (#9337).
  95. When I open the address "file:///tmp/synaptic.html" in the Tor Browser
  96. Then I do not see "TorBrowserSynapticManual.png" after at most 5 seconds
  97. @doc
  98. Scenario: The "Tails documentation" link on the Desktop works
  99. Given I have started Tails from DVD and logged in and the network is connected
  100. When I double-click on the "Tails documentation" link on the Desktop
  101. Then the Tor Browser has started
  102. And I see "TailsOfflineDocHomepage.png" after at most 10 seconds
  103. Scenario: The Tor Browser uses TBB's shared libraries
  104. Given I have started Tails from DVD and logged in and the network is connected
  105. When I start the Tor Browser
  106. And the Tor Browser has started
  107. Then the Tor Browser uses all expected TBB shared libraries
  108. #11592
  109. @check_tor_leaks @fragile
  110. Scenario: The Tor Browser's "New identity" feature works as expected
  111. Given I have started Tails from DVD and logged in and the network is connected
  112. When I start the Tor Browser
  113. And the Tor Browser has started and loaded the startup page
  114. And I open Tails homepage in the Tor Browser
  115. Then Tails homepage loads in the Tor Browser
  116. When I request a new identity using Torbutton
  117. And I acknowledge Torbutton's New Identity confirmation prompt
  118. Then the Tor Browser loads the startup page
  119. #11592
  120. @fragile
  121. Scenario: The Tor Browser should not have any plugins enabled
  122. Given I have started Tails from DVD and logged in and the network is connected
  123. When I start the Tor Browser
  124. And the Tor Browser has started and loaded the startup page
  125. Then the Tor Browser has no plugins installed
  126. #11592
  127. @fragile
  128. Scenario: The persistent Tor Browser directory is usable
  129. Given I have started Tails without network from a USB drive with a persistent partition enabled and logged in
  130. And the network is plugged
  131. And Tor is ready
  132. And available upgrades have been checked
  133. And all notifications have disappeared
  134. Then the persistent Tor Browser directory exists
  135. And there is a GNOME bookmark for the persistent Tor Browser directory
  136. When I start the Tor Browser
  137. And the Tor Browser has started and loaded the startup page
  138. And I can save the current page as "index.html" to the persistent Tor Browser directory
  139. When I open the address "file:///home/amnesia/Persistent/Tor Browser/index.html" in the Tor Browser
  140. Then I see "TorBrowserSavedStartupPage.png" after at most 10 seconds
  141. And I can print the current page as "output.pdf" to the persistent Tor Browser directory
  142. #11585
  143. @fragile
  144. Scenario: Persistent browser bookmarks
  145. Given I have started Tails without network from a USB drive with a persistent partition enabled and logged in
  146. And all persistence presets are enabled
  147. And all persistent filesystems have safe access rights
  148. And all persistence configuration files have safe access rights
  149. And all persistent directories have safe access rights
  150. And I start the Tor Browser in offline mode
  151. And the Tor Browser has started in offline mode
  152. And I add a bookmark to eff.org in the Tor Browser
  153. And I warm reboot the computer
  154. And the computer reboots Tails
  155. And I enable read-only persistence
  156. And I log in to a new session
  157. And I start the Tor Browser in offline mode
  158. And the Tor Browser has started in offline mode
  159. Then the Tor Browser has a bookmark to eff.org