<div dir="ltr"><br><div class="gmail_extra"><br><div class="gmail_quote">On Sat, Sep 12, 2015 at 9:28 AM, Sławomir Lach <span dir="ltr"><<a href="mailto:slawek@lach.art.pl" target="_blank">slawek@lach.art.pl</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">Hi Mozilla Team!<br>
<br>
look997<<a href="mailto:look997@gmail.com">look997@gmail.com</a>> had an idea(and I research the same idea<br>
too, but two weeks before today) to enchance security of Firefox.<br>
<br>
The idea is about possibility to mark data as private. I have added<br>
is_private field to JSObject class and set in some function this<br>
attribute to false, because setting it to true by default would be too<br>
restrictive. The idea is to check value of this attribute in some<br>
function, like Ajax related and show popup if data should be send, but<br>
only, when data is private. The same popup should appear if web<br>
application ask to change value of this field, but that's to take<br>
better care about it. I must also admit, that any private data have<br>
list of sources. Source would be a pointer to string representing<br>
source, like "Camera", etc. When new private data is created, there's<br>
union of sources from two operands to be populated it source's list. So<br>
any use of private date would create private data and user will always<br>
know source of data, not matter what application does with this data.<br></blockquote><div><br></div><div>This reminds me of Perl's "taint" mode: <a href="http://perldoc.perl.org/perlsec.html#Taint-mode">http://perldoc.perl.org/perlsec.html#Taint-mode</a>. Perl's taint mode is rather different: it's not intended to prevent untrusted (and potentially malicious) code from acting badly.<br><br>Perl hackers with more context, please enlighten us: is Perl's taint mode considered successful?<br></div><div><br></div><div>Nick<br></div></div></div></div>