The nsIPluginInstancePeer2 interface extends the nsIPluginInstancePeer
 interface, providing access to functionality provided by newer browsers.
 All functionality in nsIPluginInstancePeer can be mapped to the 4.X
 plugin API.
[uuid(e7d48c00-e1f1-11d2-8360-fbc8abc4ae7c)]
interface nsIPluginInstancePeer2 : nsIPluginInstancePeer

Attributes

 Get the JavaScript context to this plugin instance.

 @param aJSContext - the resulting JavaScript context
 @result           - NS_OK if this operation was successful
readonly attribute JSContextPtr JSContext
 Get the JavaScript execution thread corresponding to this plugin instance.

 @param aJSThread - the resulting JavaScript thread id
 @result            - NS_OK if this operation was successful
readonly attribute unsigned long JSThread
 Get the JavaScript window object corresponding to this plugin instance.

 @param aJSWindow - the resulting JavaScript window object
 @result          - NS_OK if this operation was successful
readonly attribute JSObjectPtr JSWindow