Last Comment Bug 184722 - macromedia.com - FSCommands not working with OBJECT tags
: macromedia.com - FSCommands not working with OBJECT tags
Status: RESOLVED INCOMPLETE
[PL2:NA][plugin], efu
: top100, top500
Product: Tech Evangelism Graveyard
Classification: Graveyard
Component: English US (show other bugs)
: unspecified
: All All
: P2 normal
: ---
Assigned To: english-us
:
Mentors:
http://www.macromedia.com/support/fla...
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2002-12-10 14:12 PST by Peter Lubczynski
Modified: 2015-04-19 23:39 PDT (History)
9 users (show)
See Also:
QA Whiteboard:
Iteration: ---
Points: ---


Attachments
testcase (1.31 KB, text/html)
2002-12-10 14:13 PST, Peter Lubczynski
no flags Details
old patch (wip) (1.47 KB, patch)
2003-02-11 10:51 PST, Peter Lubczynski
no flags Details | Diff | Review

Description Peter Lubczynski 2002-12-10 14:12:48 PST
You'll need Flash 6 with scriptability to test this bug. You can install the
version that comes with Netscape 7 by clicking here:
ftp://ftp.netscape.com/pub/netscape7/english/7.0/windows/win32/ewc9e/flash.xpi

This is from bug 183512. I'm having problems using FSCommands with the OBJECT
tag. Here are the two problems I am seeing:

1. Plugin does not seem to call into browser at all if the 'ID' attribute is
used instead of 'NAME'. If I add a 'NAME' attribute, at least I see the plugin
trying to call into the browser through GetURL.

2. If the call is made, the plugin uses the document.embeds[] array to attempt
to access its DOM node. However, this array only contains EMBED tags, not
OBJECTs, so the Javascript URL Flash uses to hook up 2-way scripting fails:

JavaScript error:
javascript: function jsScriptObject(obj) { this.wrappedJSObject = obj; }
jsScriptObject.prototype = { evaluate : function(expression) { return new
jsScriptObject(eval(expression)); } }; 
FAILS w/ OBJECT --->  var plugin = document.embeds['send_to_flash']; 
plugin.SetWindow(new jsScriptObject(window),1134180267); 
---->line 1: plugin has no properties



So I think Flash may need to be changed to use the more standards compliant
'getElementById' to access the DOM. However, we may be able to take a shot at
fixing this on our end. Here's the idea for the hack:

1. On OBJECT tags for Flash that have an ID attribute but not NAME, dynamically
copy the ID's value to a new NAME entry in the array of attributes/parameters we
pass the plugin in NPP_New.

2. We could add OBJECT tags tags to the document.embeds[] array such that the
script above would succeeded in getting the plugin. 
cc:ing jst for DOM impact on this change.
Comment 1 Peter Lubczynski 2002-12-10 14:13:27 PST
Created attachment 108931 [details]
testcase
Comment 2 rubydoo123 2002-12-11 11:44:00 PST
sooner rather than later
Comment 3 rubydoo123 2002-12-12 15:41:04 PST
reassign
Comment 4 Peter Lubczynski 2003-01-31 10:41:14 PST
--->evang
Comment 5 Peter Lubczynski 2003-02-11 10:51:21 PST
Created attachment 114118 [details] [diff] [review]
old patch (wip)
Comment 6 Bob Clary [:bc:] 2003-05-30 20:34:54 PDT
-> evang500
Comment 7 Nick Bebout 2003-06-12 19:58:15 PDT
SPAM: New Components
Comment 8 Josh Santangelo 2003-07-22 15:29:59 PDT
Not sure what the status on this is, but in Moz 1.3, fscommands seemed to work
fine, but in 1.4 final, this error is coming up:

Error: plugin.SetWindow is not a function
Source File: javascript: function jsScriptObject(obj) { this.wrappedJSObject =
obj; } jsScriptObject.prototype = { evaluate : function(expression) { return new
jsScriptObject(eval(expression)); } }; var plugin = document.embeds['topnav'];
plugin.SetWindow(new jsScriptObject(window),2063466735);
Line: 1
Comment 9 Bob Clary [:bc:] 2004-04-24 20:14:46 PDT
This is still an issue with Shockwave Flash 7.0 r19
Comment 10 Marcia Knous [:marcia - use ni] 2005-01-14 15:16:19 PST
evang bug triage. Confirming bc's comment 9. Using FF 1.0 I get this in the JS
console: 
Error: window.document.get_var.SetVariable is not a function
Source File:
http://www.macromedia.com/support/flash/ts/documents/flash_to_flash_comm/flash_to_flash.htm
Line: 13

Marking for f/u
Comment 11 Chris Lawson (gone) 2011-02-02 15:18:22 PST
INCOMPLETE due to lack of activity since the end of 2009.

If someone is willing to investigate the issues raised in this bug to determine whether they still exist, *and* work with the site in question to fix any existing issues, please feel free to re-open and assign to yourself.

Sorry for the bugspam; filter on "NO MORE PRE-2010 TE BUGS" to remove.

Note You need to log in before you can comment on or make changes to this bug.