https-everywhere icon indicating copy to clipboard operation
https-everywhere copied to clipboard

Firefox - turning on Block all HTTP request in incognito mode.

Open direwolfie opened this issue 11 years ago • 2 comments

Hi! I am running Firefox 40.0 on Ubuntu 14.04 x64. When I turn on "Block all HTTP requests" in the private window (aka incognito mode) it will enable it in the normal browsing mode, but will not turn the icon red or place a tick mark in the HTTPS-everywhere menu. Hence not showing that Block all HTTP mode is enabled. It can be reversed by enabling the "Block all HTTP requests" in normal browsing mode or turning on the private browsing window and reversing the setting. This is very confusing when all http sites refuse to open. Specially since there is no notification that the sites are being blocked by an add-on (like in chrome). Also, there is the same issue with Show Counter feature.

Hopefully this helps.

direwolfie avatar Aug 21 '15 12:08 direwolfie

This is not an answer but rather an initial observation: In the current master, the toolbar button and its label is identified and manipulated through the use of document.getElementById. In the case where one has only two open windows, the toolbar button in the 'other' window can be accessed through window.opener.document.getElementById. That is, one can use that to manipulate both buttons at once. To see how it works, try having the counter label active on both buttons and use the following to manipulate the two labels:

rsa = document.getElementById("rsapplied");
rsb = window.opener.document.getElementById("rsapplied");
rsa.value = 10;
rsb.value = 60;

Using this trick for detection is clearly a terrible hack though, and it does not appear to extend to the case where there are strictly more than two windows open. This is similar to, but disjoint from, the problems that https://github.com/fuglede/https-everywhere/commit/4d1da58f8163246a5a79220411b2972b1f5d6522 fixed for #2009.

It would be better to somehow call the UI update methods for all windows at once on change.

fuglede avatar Aug 21 '15 18:08 fuglede

Verified as fixed in the WebExtension version.

gloomy-ghost avatar Sep 01 '17 11:09 gloomy-ghost