13
edits
Rudisherry (talk | contribs) |
Rudisherry (talk | contribs) |
||
Line 31: | Line 31: | ||
= Specification = | = Specification = | ||
One new error value is added for return values for the following existing | One new error value is added for return values for the following existing routine. That error value indicates that the plugin requests the browser to act like the plugin doesn't exist at that time. | ||
Return Value: | Return Value: | ||
* <code>NPERR_PLUGIN_OPT_OUT</code> (value to be determined): returning this value | * <code>NPERR_PLUGIN_OPT_OUT</code> (value to be determined): returning this value means the browser should act as if the mime type is unhandled and exhibit its default behavior in that case, as if the plugin wasn't installed. | ||
Procedures: | Procedures: | ||
* <code>NP_Initialize</code>: The plugin returns <code> | * <code>NP_Initialize</code>: The plugin returns <code>NPERR_PLUGIN_OPT_OUT</code> when the it detects a permanent context (like architecture, or unsupported browser). It is expected that the browser should then always act as if the plugin didn't exist. The browser may remember this and never call the plugin again, or it may call <code>NP_Initialize</code> every time a resource with the appropriate mime type(s) is loaded. In that case the intention of this specification is that the plugin will return the same error code each time. | ||
= Compatibility = | = Compatibility = | ||
Since both these routines can return errors currently, there shouldn't be any check necessary to see if the browser handles this specific error in the right way. The plugin should expect that any browser that does not support this specific error will behave as they currently do on errors (which for the most part is showing either a blank area or a "plugin failure" message). | Since both these routines can return errors currently, there shouldn't be any check necessary to see if the browser handles this specific error in the right way. The plugin should expect that any browser that does not support this specific error will behave as they currently do on errors (which for the most part is showing either a blank area or a "plugin failure" message). |
edits