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
7 Scenario: The Tor Browser cannot access the LAN
8 Given I have started Tails from DVD and logged in and the network is connected
9 And a web server is running on the LAN
10 And I capture all network traffic
11 When I start the Tor Browser
12 And the Tor Browser loads the startup page
13 And I open a page on the LAN web server in the Tor Browser
14 Then the Tor Browser shows the "Unable to connect" error
15 And no traffic was sent to the web server on the LAN
18 Scenario: The Tor Browser directory is usable
19 Given I have started Tails from DVD and logged in and the network is connected
20 Then the amnesiac Tor Browser directory exists
21 And there is a GNOME bookmark for the amnesiac Tor Browser directory
22 And the persistent Tor Browser directory does not exist
23 When I start the Tor Browser
24 And the Tor Browser loads the startup page
25 Then I can save the current page as "index.html" to the default downloads directory
26 And I can print the current page as "output.pdf" to the default downloads directory
29 Scenario: Downloading files with the Tor Browser
30 Given I have started Tails from DVD and logged in and the network is connected
31 When I start the Tor Browser
32 Then the Tor Browser loads the startup page
33 When I download some file in the Tor Browser
34 Then I get the browser download dialog
35 When I save the file to the default Tor Browser download directory
36 Then the file is saved to the default Tor Browser download directory
39 Scenario: Playing an Ogg audio track
40 Given I have started Tails from DVD and logged in and the network is connected
41 When I start the Tor Browser
42 And the Tor Browser loads the startup page
43 Then I can listen to an Ogg audio track in Tor Browser
46 Scenario: Watching a WebM video
47 Given I have started Tails from DVD and logged in and the network is connected
48 When I start the Tor Browser
49 And the Tor Browser loads the startup page
50 Then I can watch a WebM video in Tor Browser
52 Scenario: I can view a file stored in "~/Tor Browser" but not in ~/.gnupg
53 Given I have started Tails from DVD and logged in and the network is connected
54 And I copy "/usr/share/synaptic/html/index.html" to "/home/amnesia/Tor Browser/synaptic.html" as user "amnesia"
55 And I copy "/usr/share/synaptic/html/index.html" to "/home/amnesia/.gnupg/synaptic.html" as user "amnesia"
56 And I copy "/usr/share/synaptic/html/index.html" to "/tmp/synaptic.html" as user "amnesia"
57 Then the file "/home/amnesia/.gnupg/synaptic.html" exists
58 And the file "/lib/live/mount/overlay/rw/home/amnesia/.gnupg/synaptic.html" exists
59 And the file "/live/overlay/rw/home/amnesia/.gnupg/synaptic.html" exists
60 And the file "/tmp/synaptic.html" exists
61 Given I start monitoring the AppArmor log of "torbrowser_firefox"
62 When I start the Tor Browser
63 And the Tor Browser loads the startup page
64 And I open the address "file:///home/amnesia/Tor Browser/synaptic.html" in the Tor Browser
65 Then I see "TorBrowserSynapticManual.png" after at most 5 seconds
66 And AppArmor has not denied "torbrowser_firefox" from opening "/home/amnesia/Tor Browser/synaptic.html"
67 Given I restart monitoring the AppArmor log of "torbrowser_firefox"
68 When I open the address "file:///home/amnesia/.gnupg/synaptic.html" in the Tor Browser
69 Then I do not see "TorBrowserSynapticManual.png" after at most 5 seconds
70 And AppArmor has denied "torbrowser_firefox" from opening "/home/amnesia/.gnupg/synaptic.html"
71 Given I restart monitoring the AppArmor log of "torbrowser_firefox"
72 When I open the address "file:///lib/live/mount/overlay/rw/home/amnesia/.gnupg/synaptic.html" in the Tor Browser
73 Then I do not see "TorBrowserSynapticManual.png" after at most 5 seconds
74 And AppArmor has denied "torbrowser_firefox" from opening "/lib/live/mount/overlay/rw/home/amnesia/.gnupg/synaptic.html"
75 Given I restart monitoring the AppArmor log of "torbrowser_firefox"
76 When I open the address "file:///live/overlay/rw/home/amnesia/.gnupg/synaptic.html" in the Tor Browser
77 Then I do not see "TorBrowserSynapticManual.png" after at most 5 seconds
78 # Due to our AppArmor aliases, /live/overlay will be treated
79 # as /lib/live/mount/overlay.
80 And AppArmor has denied "torbrowser_firefox" from opening "/lib/live/mount/overlay/rw/home/amnesia/.gnupg/synaptic.html"
81 # We do not get any AppArmor log for when access to files in /tmp is denied
82 # since we explictly override (commit 51c0060) the rules (from the user-tmp
83 # abstration) that would otherwise allow it, and we do so with "deny", which
84 # also specifies "noaudit". We could explicitly specify "audit deny" and
85 # then have logs, but it could be a problem when we set up desktop
86 # notifications for AppArmor denials (#9337).
87 When I open the address "file:///tmp/synaptic.html" in the Tor Browser
88 Then I do not see "TorBrowserSynapticManual.png" after at most 5 seconds
90 Scenario: The Tor Browser uses TBB's shared libraries
91 Given I have started Tails from DVD and logged in and the network is connected
92 When I start the Tor Browser
93 Then the Tor Browser uses all expected TBB shared libraries
96 Scenario: The Tor Browser's "New identity" feature works as expected
97 Given I have started Tails from DVD and logged in and the network is connected
98 When I start the Tor Browser
99 And the Tor Browser loads the startup page
100 And I open the Tails homepage in the Tor Browser
101 Then the Tor Browser loads the Tails homepage
102 When I request a new identity using Torbutton
103 And I acknowledge Torbutton's New Identity confirmation prompt
104 Then the Tor Browser loads the startup page
106 Scenario: The Tor Browser should not have any plugins enabled
107 Given I have started Tails from DVD and logged in and the network is connected
108 When I start the Tor Browser
109 And the Tor Browser loads the startup page
110 Then the Tor Browser has no plugins installed
112 Scenario: WebRTC is disabled in Tor Browser
113 Given I have started Tails from DVD and logged in and the network is connected
114 When I start the Tor Browser
115 And the Tor Browser loads the startup page
116 When I open the address "https://net.ipcalf.com/" in the Tor Browser
117 Then Tor Browser displays a 'ifconfig | grep inet | grep -v inet6 | cut -d" " -f2 | tail -n1' heading on the "Network IP Address via ipcalf.com" page
118 When I open the address "https://mozilla.github.io/webrtc-landing/pc_test.html" in the Tor Browser
119 Then Tor Browser displays a "RTCPeerConnection is missing!" heading on the "Simple RTCPeerConnection Video Test" page
123 Scenario: The persistent Tor Browser directory is usable
124 Given I have started Tails without network from a USB drive with a persistent partition enabled and logged in
125 And the network is plugged
127 And available upgrades have been checked
128 And all notifications have disappeared
129 Then the persistent Tor Browser directory exists
130 And there is a GNOME bookmark for the persistent Tor Browser directory
131 When I start the Tor Browser
132 And I open the address "https://tails.boum.org/about" in the Tor Browser
133 And "Tails - How Tails works" has loaded in the Tor Browser
134 Then I can save the current page as "index.html" to the persistent Tor Browser directory
135 And I open the address "file:///home/amnesia/Persistent/Tor Browser/index.html" in the Tor Browser
136 Then "Tails - How Tails works" has loaded in the Tor Browser
137 And I can print the current page as "output.pdf" to the persistent Tor Browser directory
141 Scenario: Persistent browser bookmarks
142 Given I have started Tails without network from a USB drive with a persistent partition enabled and logged in
143 And all persistence presets are enabled
144 And all persistent filesystems have safe access rights
145 And all persistence configuration files have safe access rights
146 And all persistent directories have safe access rights
147 When I start the Tor Browser in offline mode
148 And I add a bookmark to eff.org in the Tor Browser
149 And I cold reboot the computer
150 And the computer reboots Tails
151 And I enable persistence
152 And I log in to a new session
153 And I start the Tor Browser in offline mode
154 Then the Tor Browser has a bookmark to eff.org