In a variation to the Local Links theme:
Is there any way NoScript could help to allow a script to get a full local file path?
We would like to write an internal web page on our local intranet server as a database frontend. It should include a button opening a file browser so one can choose a local file (in fact on a Samba share on that same intranet server), returning its full path like S:/path/to/doc.pdf (not the file or its contents itself). This path is to be entered into the database and then to be displayed in the web page as a clickable local link to that file.
The linking already works thanks to NoScript's LocalLink feature, but I can't see an easy way to get the path through the browser.
IE can allow returning the path for its trusted zone, but FF hasn't that zone concept and we don't use IE.
I am aware that FF intentionally hides the path for good security reasons, returning only the filename — https://bugzilla.mozilla.org/show_bug.cgi?id=143220. Signed scripts once could do that, but were difficult and are deprecated https://developer.mozilla.org/en-US/doc ... gning_Code. The only way seems to be using/writing an extension… NoScript? Or is there already such an extension I didn't find?
Thanks, Hans
Allowing a script to get a full local file path?
Allowing a script to get a full local file path?
Mozilla/5.0 (X11; Linux i686; rv:42.0) Gecko/20100101 Firefox/42.0
Re: Allowing a script to get a full local file path?
Hmm...NoScript isn't really about this. You're trying to grant a page more privileges than it would have by default, which is not what NoScript does.
If you have development capability, it probably wouldn't be a huge amount of work to write your own extension.
If you have development capability, it probably wouldn't be a huge amount of work to write your own extension.
======
Thrawn
------------
Religion is not the opium of the masses. Daily life is the opium of the masses.
True religion, which dares to acknowledge death and challenge the way we live, is an attempt to wake up.
Thrawn
------------
Religion is not the opium of the masses. Daily life is the opium of the masses.
True religion, which dares to acknowledge death and challenge the way we live, is an attempt to wake up.
Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:42.0) Gecko/20100101 Firefox/42.0