Another workaround: set "browser.preferences.inContent" to false in about:config to restore the old Preferences UI that works well, then use (Tools->)Options in the menu (bar).
Kathy and I have concluded that a whitelisting mechanism is needed. The most straightforward solution is to enable SVG when the URI associated with a document has one of the following schemes:
about: chrome: resource:
Doing so will fix this ticket as well as legacy/trac#16607 (moved). The only downside is that chrome: and resource: URIs can be loaded by remote web pages, which means they would be able to trigger execution of SVG code in a limited way. Maybe we should have another ticket to disallow that kind of load, but overall the risk seems acceptable.
Before we proceed with a fix, Kathy and I would like opinions from other people as to whether whitelisting is safe. gk? mikeperry?
We only need to allow the about: scheme for this bug, right? If so, this is fine to me. Generally, I am very hesitant to water down our "High Security" mode. We know that things are breaking in this mode and users ought to do the same. I don't feel the usability in this mode is so bad at the moment that we should jump off the cliff allowing chrome: and resource: (too) and see what happens.
We only need to allow the about: scheme for this bug, right? If so, this is fine to me. Generally, I am very hesitant to water down our "High Security" mode. We know that things are breaking in this mode and users ought to do the same. I don't feel the usability in this mode is so bad at the moment that we should jump off the cliff allowing chrome: and resource: (too) and see what happens.
OK. Whitelisting based on the top-level page turned out to be somewhat messy (for example, some SVG images are loaded as CSS background images, and therefore we need to extract the top document from the channel's load context). We also added some debug printfs because we found them useful for verifying correct behavior. Here is the patch:
Hm... about:tor is not loading for me on Linux anymore and I can't open the hamburger menu nor the browser console with Ctrl + Shift + J. After managing to get the menubar visible trying to open the browser console gives me
Hm... about:tor is not loading for me on Linux anymore and I can't open the hamburger menu nor the browser console with Ctrl + Shift + J.
Strange. Kathy and I did standalone (non-gitian) builds for both Mac OS and Linux64 this morning and did not encounter the problems you found. I just started a gitian-based build to see if that makes a difference (but that build will take a while to complete even though I am only building for Linux).
Hm... about:tor is not loading for me on Linux anymore and I can't open the hamburger menu nor the browser console with Ctrl + Shift + J.
Strange. Kathy and I did standalone (non-gitian) builds for both Mac OS and Linux64 this morning and did not encounter the problems you found. I just started a gitian-based build to see if that makes a difference (but that build will take a while to complete even though I am only building for Linux).
It looked again and these problems seemed to be caused by me not having a recent Torbutton in the profile (for whatever reason). Sorry for the noise. Testing it it looks good.