torified_browsing.feature 8.29 KB
Newer Older
1
@product
2
Feature: Browsing the web using the Tor Browser
Tails developers's avatar
Tails developers committed
3
  As a Tails user
4
  when I browse the web using the Tor Browser
Tails developers's avatar
Tails developers committed
5
  all Internet traffic should flow only through Tor
6

7
  #11591, #11592
8
  @fragile
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
anonym's avatar
anonym committed
12
    And I capture all network traffic
13
    When I start the Tor Browser
14
    And the Tor Browser loads the startup page
anonym's avatar
anonym committed
15
    And I open a page on the LAN web server in the Tor Browser
anonym's avatar
anonym committed
16
    Then the Tor Browser shows the "Unable to connect" error
anonym's avatar
anonym committed
17
    And no traffic was sent to the web server on the LAN
18

19
20
  #11592
  @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
24
25
    Then the amnesiac Tor Browser directory exists
    And there is a GNOME bookmark for the amnesiac Tor Browser directory
    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
30

31
  #11592
32
33
34
35
  @check_tor_leaks @fragile
  Scenario: Downloading files with the Tor Browser
    Given I have started Tails from DVD and logged in and the network is connected
    When I start the Tor Browser
36
    Then the Tor Browser loads the startup page
37
38
39
40
41
    When I download some file in the Tor Browser
    Then I get the browser download dialog
    When I save the file to the default Tor Browser download directory
    Then the file is saved to the default Tor Browser download directory

42
  #11592
43
  @check_tor_leaks @fragile
44
  Scenario: Playing HTML5 audio
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
49
50
51
52
    And no application is playing audio
    And I open the address "http://www.terrillthompson.com/tests/html5-audio.html" in the Tor Browser
    And I click the HTML5 play button
    And 1 application is playing audio after 10 seconds

53
54
  #10442
  @check_tor_leaks @fragile
55
56
57
  Scenario: Watching a WebM video
    Given I have started Tails from DVD and logged in and the network is connected
    When I start the Tor Browser
58
    And the Tor Browser loads the startup page
59
60
61
    And I open the address "https://tails.boum.org/lib/test_suite/test.webm" in the Tor Browser
    Then I see "TorBrowserSampleRemoteWebMVideoFrame.png" after at most 180 seconds

62
63
  #11592
  @fragile
64
  Scenario: I can view a file stored in "~/Tor Browser" but not in ~/.gnupg
65
    Given I have started Tails from DVD and logged in and the network is connected
anonym's avatar
anonym committed
66
    And I copy "/usr/share/synaptic/html/index.html" to "/home/amnesia/Tor Browser/synaptic.html" as user "amnesia"
67
    And I copy "/usr/share/synaptic/html/index.html" to "/home/amnesia/.gnupg/synaptic.html" as user "amnesia"
68
    And I copy "/usr/share/synaptic/html/index.html" to "/tmp/synaptic.html" as user "amnesia"
69
70
71
    Then the file "/home/amnesia/.gnupg/synaptic.html" exists
    And the file "/lib/live/mount/overlay/home/amnesia/.gnupg/synaptic.html" exists
    And the file "/live/overlay/home/amnesia/.gnupg/synaptic.html" exists
72
    And the file "/tmp/synaptic.html" exists
73
    Given I start monitoring the AppArmor log of "torbrowser_firefox"
anonym's avatar
anonym committed
74
    When I start the Tor Browser
75
    And the Tor Browser loads the startup page
anonym's avatar
anonym committed
76
    And I open the address "file:///home/amnesia/Tor Browser/synaptic.html" in the Tor Browser
77
    Then I see "TorBrowserSynapticManual.png" after at most 5 seconds
78
79
    And AppArmor has not denied "torbrowser_firefox" from opening "/home/amnesia/Tor Browser/synaptic.html"
    Given I restart monitoring the AppArmor log of "torbrowser_firefox"
80
    When I open the address "file:///home/amnesia/.gnupg/synaptic.html" in the Tor Browser
81
    Then I do not see "TorBrowserSynapticManual.png" after at most 5 seconds
82
83
    And AppArmor has denied "torbrowser_firefox" from opening "/home/amnesia/.gnupg/synaptic.html"
    Given I restart monitoring the AppArmor log of "torbrowser_firefox"
84
    When I open the address "file:///lib/live/mount/overlay/home/amnesia/.gnupg/synaptic.html" in the Tor Browser
85
    Then I do not see "TorBrowserSynapticManual.png" after at most 5 seconds
86
87
    And AppArmor has denied "torbrowser_firefox" from opening "/lib/live/mount/overlay/home/amnesia/.gnupg/synaptic.html"
    Given I restart monitoring the AppArmor log of "torbrowser_firefox"
88
    When I open the address "file:///live/overlay/home/amnesia/.gnupg/synaptic.html" in the Tor Browser
89
    Then I do not see "TorBrowserSynapticManual.png" after at most 5 seconds
anonym's avatar
anonym committed
90
91
    # Due to our AppArmor aliases, /live/overlay will be treated
    # as /lib/live/mount/overlay.
92
    And AppArmor has denied "torbrowser_firefox" from opening "/lib/live/mount/overlay/home/amnesia/.gnupg/synaptic.html"
intrigeri's avatar
intrigeri committed
93
    # We do not get any AppArmor log for when access to files in /tmp is denied
94
95
96
97
98
    # since we explictly override (commit 51c0060) the rules (from the user-tmp
    # abstration) that would otherwise allow it, and we do so with "deny", which
    # also specifies "noaudit". We could explicitly specify "audit deny" and
    # then have logs, but it could be a problem when we set up desktop
    # notifications for AppArmor denials (#9337).
99
    When I open the address "file:///tmp/synaptic.html" in the Tor Browser
100
    Then I do not see "TorBrowserSynapticManual.png" after at most 5 seconds
101

102
  Scenario: The Tor Browser uses TBB's shared libraries
103
    Given I have started Tails from DVD and logged in and the network is connected
104
105
106
    When I start the Tor Browser
    Then the Tor Browser uses all expected TBB shared libraries

107
  #11592
108
  @check_tor_leaks @fragile
109
  Scenario: The Tor Browser's "New identity" feature works as expected
110
    Given I have started Tails from DVD and logged in and the network is connected
111
    When I start the Tor Browser
112
    And the Tor Browser loads the startup page
113
114
    And I open Tails homepage in the Tor Browser
    Then Tails homepage loads in the Tor Browser
115
116
117
118
    When I request a new identity using Torbutton
    And I acknowledge Torbutton's New Identity confirmation prompt
    Then the Tor Browser loads the startup page

119
120
  #11592
  @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 loads the startup page
125
    Then the Tor Browser has no plugins installed
126

127
  #11592, #15336
bertagaz's avatar
bertagaz committed
128
  @fragile
129
  Scenario: The persistent Tor Browser directory is usable
130
    Given I have started Tails without network from a USB drive with a persistent partition enabled and logged in
131
132
133
134
135
136
137
    And the network is plugged
    And Tor is ready
    And available upgrades have been checked
    And all notifications have disappeared
    Then the persistent Tor Browser directory exists
    And there is a GNOME bookmark for the persistent Tor Browser directory
    When I start the Tor Browser
138
    And I open the address "https://tails.boum.org/about" in the Tor Browser
139
    And "Tails - About" has loaded in the Tor Browser
140
    And I can save the current page as "index.html" to the persistent Tor Browser directory
141
142
    And I close the Tor Browser
    When I start the Tor Browser
intrigeri's avatar
intrigeri committed
143
    And I open the address "file:///home/amnesia/Persistent/Tor Browser/index.html" in the Tor Browser
144
    Then "Tails - About" has loaded in the Tor Browser
145
    And I can print the current page as "output.pdf" to the persistent Tor Browser directory
146

147
  #11585
148
  @fragile
149
  Scenario: Persistent browser bookmarks
150
    Given I have started Tails without network from a USB drive with a persistent partition enabled and logged in
151
152
153
154
    And all persistence presets are enabled
    And all persistent filesystems have safe access rights
    And all persistence configuration files have safe access rights
    And all persistent directories have safe access rights
155
    When I start the Tor Browser in offline mode
156
157
158
    And I add a bookmark to eff.org in the Tor Browser
    And I warm reboot the computer
    And the computer reboots Tails
159
    And I enable persistence
160
161
162
    And I log in to a new session
    And I start the Tor Browser in offline mode
    Then the Tor Browser has a bookmark to eff.org