futpib / policeman

Firefox extention for cross-site requests control (kind of RequestPolicy clone)
https://addons.mozilla.org/en-US/firefox/addon/policeman/
142 stars 11 forks source link

policeman 0.19pre1 prevents loading typed urls from the address bar when a different site is previously loaded #190

Open braveheartleo opened 9 years ago

braveheartleo commented 9 years ago

I'm using Mozilla/5.0 (X11; Linux x86_64; rv:37.0) Gecko/20100101 Firefox/37.0, with policeman-0.19pre1, with existing policeman 0.18.1 settings.

As the title suggests, and as an example: I have google.com loaded in a tab, and on the same tab I wish to go to amazon.com by typing 'amazon.com' in the address bar and pressing enter. But the website doesn't load, and policeman shows it blocked the request as google.com -> amazon.com filed under the Other category.

I had to load a blank tab first before I can successfully go to any site I type in the address bar.

This is an unexpected behavior of policeman because google.com is not loading amazon.com, but I am via the address bar.

Also, the same problem occurs when I type 'google.com' on a blank tab, but then it loads a country-specific domain for it like 'google.com.ph', and policeman blocks this as google.com -> http://www.google.com.ph/?gfe_rd=cr&ei=...

braveheartleo commented 9 years ago

It looks like the rule allow_same_site must be disabled because it interferes with policeman's new redirect blocking capabilities. Upgrading from 0.18.1 to 0,19pre1 did not do this automatically, but I guess policeman should be able to handle this, or encounter the issues I have outlined above.

UPDATE: Further testing shows that while disabling allow_same_site improves the experience of loading sites from the address bar, this is not consistent though, as policeman occassionally blocks the action and treats it as a redirect. Trying the second time around, however, succeeds.