Bug 21996 - Scriptable NS Plugin object NOT instantiated when embedded in XHTML content.
Summary: Scriptable NS Plugin object NOT instantiated when embedded in XHTML content.
Status: RESOLVED CONFIGURATION CHANGED
Alias: None
Product: WebKit
Classification: Unclassified
Component: Plug-ins (show other bugs)
Version: 528+ (Nightly build)
Hardware: PC Linux
: P2 Major
Assignee: Nobody
URL:
Keywords: InRadar
Depends on:
Blocks:
 
Reported: 2008-10-31 02:20 PDT by Raghu
Modified: 2022-06-28 03:33 PDT (History)
3 users (show)

See Also:


Attachments
plugin .so file & test content files (37.24 KB, application/x-gzip)
2008-10-31 03:14 PDT, Raghu
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Raghu 2008-10-31 02:20:35 PDT
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.
Comment 1 Raghu 2008-10-31 03:14:30 PDT
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.
Comment 2 Martin Robinson 2022-06-28 03:32:59 PDT
Support for plugins was removed in https://trac.webkit.org/changeset/265753/webkit.
Comment 3 Radar WebKit Bug Importer 2022-06-28 03:33:14 PDT
<rdar://problem/96050074>