Confirmed users, Bureaucrats and Sysops emeriti
1,680
edits
No edit summary |
|||
Line 5: | Line 5: | ||
= Contributors = | = Contributors = | ||
* Last modified: December | * Last modified: December 23, 2010 | ||
* Authors: Julian Reschke (greenbytes), Dan Witte (Mozilla), Bernhard Bauer (Chromium), Rajesh Gwalani (Adobe), Josh Aas (Mozilla) | * Authors: Julian Reschke (greenbytes), Dan Witte (Mozilla), Bernhard Bauer (Chromium), Rajesh Gwalani (Adobe), Josh Aas (Mozilla) | ||
Line 52: | Line 52: | ||
#define NPERR_MALFORMED_ORIGIN (NPERR_BASE + 16) | #define NPERR_MALFORMED_ORIGIN (NPERR_BASE + 16) | ||
</pre> | </pre> | ||
For any other type of error the plugin should return <code>NPERR_GENERIC_ERROR</code>. | |||
If site data is in use by an instance of the plugin when <code>NPP_ClearSiteData</code> is called then it is up to the plugin to do the right thing. | If site data is in use by an instance of the plugin when <code>NPP_ClearSiteData</code> is called then it is up to the plugin to do the right thing. | ||
Line 57: | Line 59: | ||
= Open Issues = | = Open Issues = | ||
* Make sure the requirements for parsing the origin argument are not too much of a burden for plugin developers. | |||
* Do we need a method for discovering what site data the plugin has? Mozilla and Apple have expressed a strong desire for this. | * Do we need a method for discovering what site data the plugin has? Mozilla and Apple have expressed a strong desire for this. | ||
* What is the syntax for an IPv6 address in site? As per RFC 3986 "IP-literal" ([http://greenbytes.de/tech/webdav/rfc3986.html#host.ip])? | * What is the syntax for an IPv6 address in site? As per RFC 3986 "IP-literal" ([http://greenbytes.de/tech/webdav/rfc3986.html#host.ip])? | ||
* Suggested that we document what happens when a particular plug-in is keyed by domain, not origin. This way for simplicity purposes the API can handle both models, regardless of how it's keyed. The specific suggestion is that for a plug-in that stores domain-keyed info, that plug-in will just strip the protocol and (optional) port. | * Suggested that we document what happens when a particular plug-in is keyed by domain, not origin. This way for simplicity purposes the API can handle both models, regardless of how it's keyed. The specific suggestion is that for a plug-in that stores domain-keyed info, that plug-in will just strip the protocol and (optional) port. | ||