whitelisting for file:// URI subpaths?

Bug reports and enhancement requests
Post Reply
User avatar
royce
Posts: 2
Joined: Thu Aug 09, 2012 7:20 am

whitelisting for file:// URI subpaths?

Post by royce »

In NoScript 2.5, attempts to add file:// URIs with specific paths are truncated to just "file://".

Would there be any value in allowing users to whitelist specific paths, without having to whitelist all file:// URIs?
Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.1 (KHTML, like Gecko) Chrome/21.0.1180.57 Safari/537.1
dhouwn
Bug Buster
Posts: 968
Joined: Thu Mar 19, 2009 12:51 pm

Re: whitelisting for file:// URI subpaths?

Post by dhouwn »

AFAIK, a limitation of the the browser.
Mozilla/5.0 (Windows NT 6.1; WOW64; rv:16.0) Gecko/16.0 Firefox/16.0
User avatar
Giorgio Maone
Site Admin
Posts: 9527
Joined: Wed Mar 18, 2009 11:22 pm
Location: Palermo - Italy
Contact:

Re: whitelisting for file:// URI subpaths?

Post by Giorgio Maone »

No, sorry.
Mozilla/5.0 (Windows NT 6.1; WOW64; rv:14.0) Gecko/20100101 Firefox/14.0.1
User avatar
royce
Posts: 2
Joined: Thu Aug 09, 2012 7:20 am

Re: whitelisting for file:// URI subpaths?

Post by royce »

Is this a fundamental design constraint of the browser, something that would simply not provide any benefit, or something that would simply need to be looked into by the Firefox team and might have benefit? I'm unsure of which of these is what is meant by "No, sorry." :-)

EDIT: To clarify, it seems from the FAQ that browser add-ons and other tools that require whitelisting of file:// URIs (Trillian, ScrapBook, Ubiquity, Google Toolbar) are a common FAQ topic for NoScript. Zotero also has this issue; see http://forums.zotero.org/discussion/147 ... g-together. It seems to me that if there is a more elegant way to handle this, or a way to guide add-on developers towards using resource: URIs instead, that this would reduce noise and improve security.
Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.1 (KHTML, like Gecko) Chrome/21.0.1180.57 Safari/537.1
User avatar
Giorgio Maone
Site Admin
Posts: 9527
Joined: Wed Mar 18, 2009 11:22 pm
Location: Palermo - Italy
Contact:

Re: whitelisting for file:// URI subpaths?

Post by Giorgio Maone »

royce wrote:Is this a fundamental design constraint of the browser
This one. From the ScriptSecurityManager's perspective, all the file:// URIs share the same principal (i.e. are deemed having the same identity, security wise) except that a certain file cannot access data from a resource in a different directory which is not descendant of the current one.
Mozilla/5.0 (Windows NT 6.1; WOW64; rv:14.0) Gecko/20100101 Firefox/14.0.1
Post Reply