Why is the screenshot tool disabled in Abrowser?
Before I started using Trisquel I greatly enjoyed [the screenshot tool][1] in Firefox. It allowed me to easily get a picture of only a small area of the page without needing to crop it in GIMP, as well as allowing me to take a screenshot of entire pages without scrolling and manually stitching multiple screenshots together.
I notice that this feature is missing (disabled) in Abrowser. Specifically, it is disabled by setting a preference in [settings.js][2]. I am very curious as to why this is. I find the feature very useful, and don't see any downsides to keeping it enabled. To my knowledge it doesn't infringe on user freedoms.
Does anyone know why screenshots are disabled? This [other forum topic][3] asked the same, but never got any response.
In the meanwhile, I have manually enabled screenshots in the configuration.
[1]: https://support.mozilla.org/en-US/kb/take-screenshots-firefox
[2]: https://gitlab.trisquel.org/trisquel/package-helpers/-/blob/b39bb0765a29deaa4a6e2172fcdc8883e0079061/helpers/DATA/firefox/settings.js#L239
[3]: https://trisquel.info/en/forum/few-things-abrowser-should-be-fixed
Ignacio Agulló responded to this post via email, which unfortunately seems to have created a [separate forum topic][1]. I will respond to them here, in hopes that further discussion will occur in a single place.
> It is weird for Libre Software to enable this behaviour by default.
> My guess is that that default setting is inherited from Firefox.
I highly doubt this is the case, given that Firefox [promotes this feature on their website][2]. Digging further into the settings.js, I found that it was [disabled by Ruben Rodriguez in 2017][3].
Firefox [mentions data collection][4] on their page, so perhaps this was why it was removed? I can only speculate. I'm not sure if Ruben has the capacity to read all new posts in the forums, but I hope someone knowledgeable on the historical development of Trisquel can shed some light on this eventually.
> I don't really know the reason for this kind of restraint [...]. I can only guess. The legal concerns of taking screenshots could be:
>
> * Care for Privacy. When you access social networks with private content, you get access to photos that are not intended for public redistribution.
> * Care for Copyright. Media corporations have been for decades turning our electronic devices into media kiosks able to reproduce content but unable to keep a copy of it - streaming replaced video downloading, and surely they would be glad to prevent photo downloading too. If you access Instagram with Abrowser, you'll find that saving images is disabled.
>
> My bet is on the second one. [...]
I don't find either of these arguments compelling. Although I agree that corporations would like to prevent us from doing anything other than consuming media, they have not come as far as achieving a blanket block of screenshots. Desktop operating systems, especially Trisquel, are not locked down like mobile operating systems are. Blocking screenshots in Abrowser does nothing to prevent content sharing; the user can just take a screenshot using the OS!
A side note: Instagram tries to prevent saving image in all browsers, not just Abrowser/Firefox. They do this by placing an empty HTML element in front of the image, so that when you right click on where the image is the browser thinks you're clicking on an element that isn't an image. This is easily circumvented by inspecting the page source to see the code for the image element.
> I don't know it either, but I am familiar with this kind of restraint. The same happens with Privacy Browser for Android.
My only experience with something similar was in Firefox for Android. In private browsing tabs (and *only* those) screenshots were disabled. I assume the rationale was to avoid accidentally leaking what you were doing in private browsing, say if someone grabs your phone and takes a screenshot. Or if you simply take a screenshot and forget to delete it afterwards. Photo library syncing would also mean that these screenshots could leak to third parties even if your device isn't directly compromised.
But I don't think this rationale is why it's disabled in Trisquel, because Trisquel isn't billed as a privacy OS and Abrowser is its default browser (opposed to privacy-focused browsers such as Tor).
[1]: https://trisquel.info/en/forum/re-why-screenshot-tool-disabled-abrowser
[2]: https://support.mozilla.org/en-US/kb/take-screenshots-firefox
[3]: https://gitlab.trisquel.org/trisquel/package-helpers/-/commit/f759433dfc90187a9a295ae574415e49a0b1c116
[4]: https://support.mozilla.org/en-US/kb/take-screenshots-firefox#w_what-data-does-firefox-screenshots-collect
> But I don't think this rationale is why it's disabled in Trisquel, because Trisquel isn't billed as a privacy OS and Abrowser is its default browser (opposed to privacy-focused browsers such as Tor).
Telemetry, and other data gathering is disabled by default, as Trisquel doesn't manage nor sends it.
You are free to enable this and some other disabled features in about:config.
Telemetry, and other data gathering is disabled by default, as Trisquel doesn't manage nor sends it.
Does Firefox's screenshot feature send anything on the network?!
Is the rationale to disable screenshots (in 2017) that they send telemetry, or that they were able to be uploaded and this is considered "other data gathering"?
I read Firefox source code for the first time today, specifically code for screenshots, and [the file I looked at][1] uses Services.telemetry.recordEvent (defined [here][2]). I didn't trace this all the way to where data would be sent to Mozilla (got tired after an hour), but I assume that this is controlled by the "Abrowser Data Collection and Use" preference which cannot be enabled. In other words, telemetry gathered from screenshots wouldn't be sent anyways.
I am aware of my ability to enable this. But I believe that this change negatively affects Trisquel's usability, and I don't know the reason for it (yet). I only learned that I _could_ enable it from the other forum topic mentioned in the first post, which I discovered because I remembered using the feature previously in Firefox. The vast majority of users will be ignorant of this.
[1]: https://hg.mozilla.org/mozilla-central/file/f28defeeb4ece0ed49c44b31bc1f86482f6dc9a2/browser/components/screenshots/ScreenshotsUtils.sys.mjs
[2]: https://hg.mozilla.org/mozilla-central/file/11b3d438788a84aecc7e53efdda19bb0814e13be/toolkit/components/telemetry/core/Telemetry.cpp#l1603

