NPAPI Questions: Difference between revisions

More questions: NPRuntime
No edit summary
(More questions: NPRuntime)
 
Line 14: Line 14:


; npruntime.h seems to suggest that an NPClass' invalidate method is only called by the runtime, yet we seem to have code that handles the plugin calling it on browser-provided objects. What's the deal?
; npruntime.h seems to suggest that an NPClass' invalidate method is only called by the runtime, yet we seem to have code that handles the plugin calling it on browser-provided objects. What's the deal?
; May NPClass.setProperty be null? What is the expected behavior? Will the host throw an exception if webpage code attempts to set a property, or will it set a custom propery?
; May NPClass.invokeDefault be null?
; May NPClass.invoke be null? What is the expected behavior? Will attempting to call pluginobject.somefunction() fall back to calling .getProperty and .invokeDefault in sequence?
; Will the plugin host modify the NPClass structure passed in to NPN_CreateObject (e.g. to provide default behavior for null class pointers)? If not, can this be made a const NPClass*?
Confirmed users, Bureaucrats and Sysops emeriti
1,217

edits