Closed
Bug 150758
Opened 22 years ago
Closed 22 years ago
Bad plugin example code on mozilla.org
Categories
(Documentation Graveyard :: Web Developer, defect)
Tracking
(Not tracked)
VERIFIED
FIXED
People
(Reporter: jprice, Assigned: serhunt)
References
()
Details
From Bugzilla Helper: User-Agent: Mozilla/4.0 (compatible; MSIE 5.5; Windows NT 5.0) BuildID: N/A The example of scripting a plugin on http://www.mozilla.org/docs/scripting- plugins.html is flawed. The example of NPP_GetValue was obviously not taken from running code. Just follow the flow of scriptablePeer, it's declared twice in the method... meaning assignment doesn't happen as it should (scoping issue). Furthermore, the example seems to think instance->pdata holds the instance of nsScriptablePeer created... It is never set. Reproducible: Always Steps to Reproduce: 1.N/A 2. 3. Expected Results: example code should be from a plugin that had actually been run...
Ian, do you want to tackle this? Reassing to av@netscape.com (apparently now responsible for the doc, or at least updated it most recently) if you think this is not within your purview.
Assignee: rudman → oeschger
Comment 2•22 years ago
|
||
->av. Andrei, I'd be happy to update this doc if you tell me where to go with it.
Assignee: oeschger → av
Corrected.
Status: NEW → RESOLVED
Closed: 22 years ago
Resolution: --- → FIXED
You need to log in
before you can comment on or make changes to this bug.
Description
•