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)

defect

Tracking

()

VERIFIED FIXED

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>
Assignee: vidur → beard
Target Milestone: M5
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.
*** Bug 4594 has been marked as a duplicate of this bug. ***
*** Bug 4595 has been marked as a duplicate of this bug. ***
*** Bug 4600 has been marked as a duplicate of this bug. ***
Status: NEW → ASSIGNED
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.
OS: Windows 95 → All
Hardware: PC → All
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.
Assignee: beard → desale
Status: ASSIGNED → NEW
Fixed, please test.
Status: NEW → RESOLVED
Closed: 26 years ago
Resolution: --- → FIXED
Status: RESOLVED → VERIFIED
Tested bug, everything seems working fine.
Verified.
You need to log in before you can comment on or make changes to this bug.