On 23/05/2013 03:31, Josh Matthews wrote:
> You haven't given any details that are required to determine whether a
> null context is safe or not. Here's a good way to think about it: can
> this saveURI call be invoked on a URL that is related to content that
> the user is viewing? If so, can that happen for content in a private
> window? If so, null is definitely unsafe - it will cause the URI that is
> saved to be stored in the persistent cache, exposing the user's private
> behaviour and bypassing the protection of private browsing.
>
> If you can obtain a Window object related to the URI being saved (such
> as the owning window of a link element, for example), you can obtain a
> privacy context with PrivateBrowsingUtils.privacyContextFromWindow(win)
> (
http://mxr.mozilla.org/mozilla-central/source/toolkit/modules/PrivateBrowsingUtils.jsm#23).
> If you describe the source of your URI in more detail, I can provide
> better information.
>
> Cheers,
> Josh
Hi,
Thanks for the fast reply, and apologies for my late one (I had a
problem with my news client and did not see it).
I don't think it would be possible for saveURI in this case to interfere
with privacy browsing. It is being used to save a rasterized SVG that
the user created with the application.
As a standalone application[1], the user is not interacting with
webpages or the browser interface at all.
Best regards,
Michael
[1]:
http://pencil.evolus.vn/