When users are downloading a file, Tor Browser will display this message:
Tor Browser cannot display this file. You will need to open it with another application.
Some types of files can cause applications to connect to the Internet without using Tor.
To be safe, you should only open downloaded files while offline, or use a Tor Live CD such as Tails
We could iterate with users and improve this message. For example, it is also best to have the title of the dialog be something like "️ Security Alert". Which users can take it more seriously.
I grabbed a quick screenshot of the full UI for reference, but I fully agree – the wording is pretty cumbersome and could use a support link for further explanation.
To be safe, you should only open downloaded files while offline, or use a Tor Live CD such as Tails
This is also advice I think very few people would ultimately follow in 2021 (except for those in high risk scenarios).
Since I was in the neighborhood taking care of some unrelateddialogues, I decided to look into this one too. I discovered that:
In Firefox ESR 102.6.0, Always ask you where to save files and Ask whether to open or save files are both off by default.
In Tor Browser 12.0.1 (based on the same Firefox ESR) both settings are on by default.
This results in Tor Browser users receiving three dialogues in succession when attempting to download a file with Tor Browser's default settings applied, plus the wingpanel for the download itself:
Show screenshots:
That's not great! Also, there isn't a way to toggle the first warning on/off in about:preferences#general > Files and Applications either.
In addition to updating the copy itself, I think we should also consider:
Flipping one or both Firefox prefs off by default, unless we've got a good privacy reason not to.
Merging our warning into either the Open/Save As dialogue, or the Ongoing Downloads wingpanel.
@donuts There is keyboard navigation between the list of downloads (#downloadsListBox) and the button (#downloadsFooterButtons). So having the dialog between them is not going to work with that. Do you want to move it to the top or bottom of the panel instead?
Also, @dan can you CC me for the review because I suspect that this might need some extra "aria" attributes to be accessible.
Top would be preferable please, if it needs to change (so the Show all downloads action can remain the last thing on the wingpanel).
However if we shift it to the top it may be better to replace the "X" with a button to dismiss the warning instead, so the "X" isn't confused as a button to dismiss the entire panel. There's an alternative design featuring a micro button in Figma already you can use @dan :)
ah geez, I hate having my files auto go to ~/Downloads. Buuuut sticking the warning in the downloads drop down does seem nice. Let's plan on doing this after 12.5a4.
So 'Ask whether to open or save file' maps to browser.download.always_ask_before_handling_new_types which seems not defined, but false by default. but i can add it to browser/app/profile/000-tor-browser.js as false.
the "Download an external file type?" warning is part of the tor button code, so I can disable it if we think we might want it later, or alternately remove and delete it. thoughts?
Since it's been superseded by the new warning in the downloads wing panel the old dialog is no longer needed, and I don't see us resurrecting it either. We could still dig it out of the version history if we wanted to anyway :)