Re: 'NPP_Destroy' behavior for 'NPSavedData' under Firefox 5.x?

Benjamin Smedberg <[email protected]>
Newsgroups gmane.comp.mozilla.devel.plugins
Message-ID <[email protected]>
On 7/11/2011 5:29 AM, Oleksandr Gavenko (AKA gavenkoa) wrote:
> As state
>
> https://developer.mozilla.org/en/NPP_Destroy
>
> second argument of 'NPP_Destroy' is data to save between plug-in
> instances.
>
> As I does not save any data I write:
Firefox has never implemented 'save', and I don't think any browser has. 
It is underspecified: it was never clear whether the save data was 
per-URI, or per domain, or what, or what the allocation/ownership model 
was for the data. This is why we put a null value for `save`, to 
indicate that it would not actually be used.

>
> So I change code to
>
>     if (!save)
>         *save = NULL;
>
> What is the right solution?
Just don't touch `save`.

--BDS
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.