Cannot write to custom plugin from javascript

VERIFIED WONTFIX

Status

()

Core
Plug-ins
--
major
VERIFIED WONTFIX
16 years ago
16 years ago

People

(Reporter: plambert17, Assigned: rubydoo123)

Tracking

Trunk
x86
Windows 2000
Points:
---

Firefox Tracking Flags

(Not tracked)

Details

(Reporter)

Description

16 years ago
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.

Comment 1

16 years ago
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
Last Resolved: 16 years ago
Resolution: --- → WONTFIX

Comment 2

16 years ago
marking verif, pls reopen stating a reason, Thx!
Status: RESOLVED → VERIFIED
You need to log in before you can comment on or make changes to this bug.