Closed
Bug 4592
Opened 26 years ago
Closed 26 years ago
Can not access the length of plugins array.
Categories
(Core :: DOM: Core & HTML, defect, P3)
Core
DOM: Core & HTML
Tracking
()
VERIFIED
FIXED
M5
People
(Reporter: desale, Assigned: desale)
References
Details
Can not access the length of plugins array. Providing information to simulate the problem. Product: Seamonkey.[apprunner as well as viewer] Build Date: 03/31/99 Platform: PC [Windows-95] Steps to Reproduce: 1] Please copy the code I'm providing. Save as HTML file. 2] Open this HTML file in apprunner as well as viewer. 3] You will see one button called "Check Plugins Array Length". Click this button. Expected Results: After clicking button "Check Plugins Array Length", Result text Box should reflect the actual length of the plugins array. Actual Results: Result Text Box does not show anything. Code: <html> <head> <title>Plugins array length test</title> </head> <script> <!-- function report(text) { var value=document.workform.result.value; var msg= value+ " " +text; document.workform.result.value=msg; } //--> </script> <body > <form name="workform" > <input type="button" value="Check Plugins Array Length" name="Reset2" onClick="report(window.navigator.plugins.length)"><br> Result Text Box<INPUT TYPE=text NAME="result" SIZE=80> <input type="reset" value="Reset"> </form> </body> </html>
Updated•26 years ago
|
Assignee: vidur → beard
Target Milestone: M5
Comment 1•26 years ago
|
||
The plugins array has not yet been implemented. Patrick, this was originally on your plate. We need to work out whether you can still do it.
Updated•26 years ago
|
Status: NEW → ASSIGNED
Comment 5•26 years ago
|
||
So, first we need to add a line like the following to mozilla/dom/public/idl/ base/Navigator.idl: readonly attribute HTMLCollection plugins; And then nsIDOMNavigator will have a GetPlugins() method which one of us can implement in NavigatorImpl (in mozilla/dom/src/base/nsGlobalWindow.h/.cpp). Vidur, would you make the .idl changes, and regenerate the interfaces for us? We'll take it from there.
Updated•26 years ago
|
OS: Windows 95 → All
Hardware: PC → All
Comment 6•26 years ago
|
||
Changed to all platforms/OS, also is this component correctly assigned? Isn't it really Netscape DOM specific? I guess DOM level 0 is the closest component we have.
Updated•26 years ago
|
Assignee: beard → desale
Status: ASSIGNED → NEW
Comment 7•26 years ago
|
||
Fixed, please test.
Assignee | ||
Updated•26 years ago
|
Status: NEW → RESOLVED
Closed: 26 years ago
Resolution: --- → FIXED
Assignee | ||
Updated•26 years ago
|
Status: RESOLVED → VERIFIED
Assignee | ||
Comment 8•26 years ago
|
||
Tested bug, everything seems working fine.
Assignee | ||
Comment 9•26 years ago
|
||
Verified.
You need to log in
before you can comment on or make changes to this bug.
Description
•