Bad plugin example code on mozilla.org

VERIFIED FIXED

Status

Documentation
Web Developer
VERIFIED FIXED
16 years ago
15 years ago

People

(Reporter: Jeff Price, Assigned: av (gone))

Tracking

Details

(URL)

(Reporter)

Description

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

Comment 1

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

16 years ago
->av. Andrei, I'd be happy to update this doc if you tell me where to go with it.
Assignee: oeschger → av
(Assignee)

Comment 3

16 years ago
Corrected.
Status: NEW → RESOLVED
Last Resolved: 16 years ago
Resolution: --- → FIXED

Comment 4

15 years ago
AV corrected the issue, marking verified
Status: RESOLVED → VERIFIED
You need to log in before you can comment on or make changes to this bug.