2 Feature: Browsing the web using the Unsafe Browser
4 when I browse the web using the Unsafe Browser
5 I should have direct access to the web
7 Scenario: The Unsafe Browser can be disabled
8 Given I have started Tails from DVD without network and stopped at Tails Greeter's login screen
9 And I disable the Unsafe Browser
10 And I log in to a new session
11 And the network is plugged
12 And all notifications have disappeared
13 When I try to start the Unsafe Browser
14 Then the Unsafe Browser complains that it is disabled
16 Scenario: The Unsafe Browser can access the LAN
17 Given I have started Tails from DVD and logged in and the network is connected
18 And a web server is running on the LAN
19 When I successfully start the Unsafe Browser
20 And I open a page on the LAN web server in the Unsafe Browser
21 Then the Unsafe Browser displays the LAN web server hello message
24 Scenario: Starting the Unsafe Browser works as it should
25 Given I have started Tails from DVD and logged in and the network is connected
26 When I successfully start the Unsafe Browser
27 Then the Unsafe Browser runs as the expected user
28 And the Unsafe Browser has a red theme
29 And the Unsafe Browser shows a warning as its start page
30 And the Unsafe Browser has no add-ons enabled
31 And the Unsafe Browser has no bookmarks
32 And the Unsafe Browser uses all expected TBB shared libraries
34 Scenario: The Unsafe Browser can load a web page from the Internet
35 Given I have started Tails from DVD and logged in and the network is connected
36 When I successfully start the Unsafe Browser
37 When I open the Tails homepage in the Unsafe Browser
38 Then the Tails homepage loads in the Unsafe Browser
39 And the Unsafe Browser has sent packets out to the Internet
42 Scenario: Closing the Unsafe Browser shows a stop notification and properly tears down the chroot
43 Given I have started Tails from DVD and logged in and the network is connected
44 When I successfully start the Unsafe Browser
45 And I close the Unsafe Browser
46 Then I see the "Shutting down the Unsafe Browser..." notification after at most 60 seconds
47 And the Unsafe Browser chroot is torn down
50 Scenario: Starting a second instance of the Unsafe Browser results in an error message being shown
51 Given I have started Tails from DVD and logged in and the network is connected
52 When I successfully start the Unsafe Browser
53 # Wait for whatever facility the GNOME Activities Overview uses to
54 # learn about which applications are running to "settle". Without
55 # this sleep, it is confused and it's impossible to start a new
56 # instance (it will just switch to the one we already started).
58 And I try to start the Unsafe Browser
59 Then I see a warning about another instance already running
61 Scenario: The Unsafe Browser is not allowed to use a local proxy
62 Given I have started Tails from DVD and logged in and the network is connected
63 When I configure the Unsafe Browser to use a local proxy
64 And I successfully start the Unsafe Browser
65 And I open the Tails homepage in the Unsafe Browser
66 Then I see "BrowserProxyRefused.png" after at most 60 seconds
68 @not_release_blocker @check_tor_leaks
69 Scenario: The Unsafe Browser only makes user-initiated non-Torified connections
70 Given I have started Tails from DVD and logged in and the network is connected
71 And I capture all network traffic
72 And I configure the Unsafe Browser to check for updates more frequently
73 But checking for updates is disabled in the Unsafe Browser's configuration
74 When I successfully start the Unsafe Browser
75 And I wait 120 seconds
76 Then the Unsafe Browser has not sent packets out to the Internet
79 Scenario: The Unsafe Browser cannot be started when I am offline
80 Given I have started Tails from DVD and logged in and the network is connected
81 And the network is unplugged
82 # NetworkManager apparently needs some time to notice that the connection is now off
84 When I try to start the Unsafe Browser
85 Then I am told I cannot start the Unsafe Browser when I am offline