In XHTML content, the embedded NS Plugin <object></object> is NOT automatically instantiated by invoking NPP_GetValue(NPPVpluginScriptableNPObject) and hence, the object is not scriptable. The NS plugin code has implementation for NPPVpluginScriptableNPObject. Notes: ------- The same object, when embedded in a HTML content is automatically instantiated by invoking NPP_GetValue(NPPVpluginScriptableNPObject) and hence becomes scriptable object. This bug is observed on WebKit-r37990 and below nightly versions with Gtk build and by running GtkLauncher.
Created attachment 24795 [details] plugin .so file & test content files Find the NS Plugin .so file attached. Also, attached are two test files, 1) HTML & 2) XHTML to test scriptability. The XHTML file, as the bug says, doesn't recognize the 'media' object and throws error: @20: ReferenceError: Can't find variable: media Whereas , the HTML content can resolve the 'media' object. and the NPP_GetValue (NPPVpluginScriptableNPObject) implementation of the plugin prints: Plugin:Creating Scriptable object. (( mediaobjectplugin.c, 525 )) Hope the information will be helpful.
Support for plugins was removed in https://trac.webkit.org/changeset/265753/webkit.
<rdar://problem/96050074>