2 Feature: Browsing the web using the Tor Browser
4 when I browse the web using the Tor Browser
5 all Internet traffic should flow only through Tor
9 Scenario: The Tor Browser cannot access the LAN
10 Given I have started Tails from DVD and logged in and the network is connected
11 And a web server is running on the LAN
12 And I capture all network traffic
13 When I start the Tor Browser
14 And the Tor Browser loads the startup page
15 And I open a page on the LAN web server in the Tor Browser
16 Then the Tor Browser shows the "Unable to connect" error
17 And no traffic was sent to the web server on the LAN
20 @check_tor_leaks @fragile
21 Scenario: The Tor Browser directory is usable
22 Given I have started Tails from DVD and logged in and the network is connected
23 Then the amnesiac Tor Browser directory exists
24 And there is a GNOME bookmark for the amnesiac Tor Browser directory
25 And the persistent Tor Browser directory does not exist
26 When I start the Tor Browser
27 And the Tor Browser loads the startup page
28 Then I can save the current page as "index.html" to the default downloads directory
29 And I can print the current page as "output.pdf" to the default downloads directory
32 @check_tor_leaks @fragile
33 Scenario: Downloading files with the Tor Browser
34 Given I have started Tails from DVD and logged in and the network is connected
35 When I start the Tor Browser
36 Then the Tor Browser loads the startup page
37 When I download some file in the Tor Browser
38 Then I get the browser download dialog
39 When I save the file to the default Tor Browser download directory
40 Then the file is saved to the default Tor Browser download directory
43 @check_tor_leaks @fragile
44 Scenario: Playing an Ogg audio track
45 Given I have started Tails from DVD and logged in and the network is connected
46 When I start the Tor Browser
47 And the Tor Browser loads the startup page
48 Then I can listen to an Ogg audio track in Tor Browser
51 @check_tor_leaks @fragile
52 Scenario: Watching a WebM video
53 Given I have started Tails from DVD and logged in and the network is connected
54 When I start the Tor Browser
55 And the Tor Browser loads the startup page
56 Then I can watch a WebM video in Tor Browser
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 "torbrowser_firefox"
70 When I start the Tor Browser
71 And the Tor Browser loads 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 "torbrowser_firefox" from opening "/home/amnesia/Tor Browser/synaptic.html"
75 Given I restart monitoring the AppArmor log of "torbrowser_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 "torbrowser_firefox" from opening "/home/amnesia/.gnupg/synaptic.html"
79 Given I restart monitoring the AppArmor log of "torbrowser_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 "torbrowser_firefox" from opening "/lib/live/mount/overlay/home/amnesia/.gnupg/synaptic.html"
83 Given I restart monitoring the AppArmor log of "torbrowser_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 "torbrowser_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
98 Scenario: The Tor Browser uses TBB's shared libraries
99 Given I have started Tails from DVD and logged in and the network is connected
100 When I start the Tor Browser
101 Then the Tor Browser uses all expected TBB shared libraries
104 @check_tor_leaks @fragile
105 Scenario: The Tor Browser's "New identity" feature works as expected
106 Given I have started Tails from DVD and logged in and the network is connected
107 When I start the Tor Browser
108 And the Tor Browser loads the startup page
109 And I open Tails homepage in the Tor Browser
110 Then the Tor Browser loads the Tails homepage
111 When I request a new identity using Torbutton
112 And I acknowledge Torbutton's New Identity confirmation prompt
113 Then the Tor Browser loads the startup page
117 Scenario: The Tor Browser should not have any plugins enabled
118 Given I have started Tails from DVD and logged in and the network is connected
119 When I start the Tor Browser
120 And the Tor Browser loads the startup page
121 Then the Tor Browser has no plugins installed
125 Scenario: The persistent Tor Browser directory is usable
126 Given I have started Tails without network from a USB drive with a persistent partition enabled and logged in
127 And the network is plugged
129 And available upgrades have been checked
130 And all notifications have disappeared
131 Then the persistent Tor Browser directory exists
132 And there is a GNOME bookmark for the persistent Tor Browser directory
133 When I start the Tor Browser
134 And I open the address "https://tails.boum.org/about" in the Tor Browser
135 And "Tails - About" has loaded in the Tor Browser
136 Then I can save the current page as "index.html" to the persistent Tor Browser directory
137 When I close the Tor Browser
138 And I start the Tor Browser
139 And I open the address "file:///home/amnesia/Persistent/Tor Browser/index.html" in the Tor Browser
140 Then "Tails - About" has loaded in the Tor Browser
141 And I can print the current page as "output.pdf" to the persistent Tor Browser directory
145 Scenario: Persistent browser bookmarks
146 Given I have started Tails without network from a USB drive with a persistent partition enabled and logged in
147 And all persistence presets are enabled
148 And all persistent filesystems have safe access rights
149 And all persistence configuration files have safe access rights
150 And all persistent directories have safe access rights
151 When I start the Tor Browser 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 persistence
156 And I log in to a new session
157 And I start the Tor Browser in offline mode
158 Then the Tor Browser has a bookmark to eff.org