Closed Bug 156840 Opened 22 years ago Closed 22 years ago

Cannot write to custom plugin from javascript

Categories

(Core Graveyard :: Plug-ins, defect)

x86
Windows 2000
defect
Not set
major

Tracking

(Not tracked)

VERIFIED WONTFIX

People

(Reporter: plambert17, Assigned: rubydoo123)

Details

The following example works on NS6.X and NS7.X and MOZ1.1.  In javascript one
way to write "back" to the plugin is to use the following code:

document.frm2.open("text/html");
document.frm2.write("Hello World");
document.frm2.close();

To do this one needs 2 frames in a window.  One holds the javascript, the other
window is written into.  The code above when executed will dynamically write
"Hello World" in the second frame using HTML from javascript in the first frame.

I have attempted to perform the same write to my "custom" plugin with no success
on MOZ1.1 and NS7.X.  This works on NS4.7 using W2K.  I am hoping that this is a
configuration problem and not yet another loss of functionality per new
standards.  The obvious question would be why would "built-in" plugins have this
capability but custom plugins not.

If this is indeed a bug I will send attachments that can reproduce the bug.  I
am using the legacy plugin model.  I have developed other plugins for mimetypes,
such as myDoc.xyz, that get launched by clicking on the doucment.  They work
fine for MOZ1.1.
LiveConnect which was used in 4.x browsers to script plugins from JavaScript is
not supported in Mozilla. To retain scripting functionality the plugin needs to
be changed to adopt XPConnect mechanism. Please refer to the articles we have
mozilla.org/projects/plugins.

If you feel this is not correct resolution please reopen and explain.
Status: UNCONFIRMED → RESOLVED
Closed: 22 years ago
Resolution: --- → WONTFIX
marking verif, pls reopen stating a reason, Thx!
Status: RESOLVED → VERIFIED
Product: Core → Core Graveyard
You need to log in before you can comment on or make changes to this bug.