Closed
Bug 257191
Opened 20 years ago
Closed 20 years ago
Add NPN_InvokeDefault(), and rename NPN_Call() to NPN_Invoke() for consistency with other parts of the API
Categories
(Core Graveyard :: Plug-ins, defect)
Core Graveyard
Plug-ins
Tracking
(Not tracked)
RESOLVED
FIXED
People
(Reporter: jst, Assigned: jst)
References
Details
(Keywords: fixed-aviary1.0, fixed1.7.5)
Attachments
(2 files)
26.46 KB,
patch
|
Details | Diff | Splinter Review | |
26.67 KB,
patch
|
brendan
:
review+
brendan
:
superreview+
asa
:
approval-aviary+
|
Details | Diff | Splinter Review |
Per discussion in the plugin group, we decided to add an NPN_InvokeDefault()
method to the npruntime API, and while we're at it, we're renaming NPN_Call() to
NPN_Invoke() for the name to be consistent with the NPClass invoke hook, and
with the new method.
And while I was at it, I fixed a bug with getting properties exposed by plugins
when the plugin is accessed through the DOM.
Patch coming up.
Assignee | ||
Comment 1•20 years ago
|
||
Assignee | ||
Updated•20 years ago
|
Attachment #157204 -
Flags: superreview?(brendan)
Attachment #157204 -
Flags: review?(brendan)
Assignee | ||
Comment 2•20 years ago
|
||
*** Bug 254280 has been marked as a duplicate of this bug. ***
Assignee | ||
Comment 3•20 years ago
|
||
Comment 4•20 years ago
|
||
Comment on attachment 157214 [details] [diff] [review]
Pass the right 'this' parameter to JS_CallFunctionValue() in nsHTMLExternalObjSH::Call()
Nit: hanging indent off by 3:
+ ok = ::JS_DefineElement(cx, obj, JSVAL_TO_INT(id), JSVAL_VOID, nsnull,
+ nsnull, JSPROP_ENUMERATE);
Note for the plugin spec: we need to say what |this| binds to in JS, how it
follows the usual |this|-binding rules. It could be that others make the
default method's |this| always be the callable object itself, or some other
"bound object" instead of what's determined by the usual JS rules. Gotta get
agreement.
r+sr=brendan@mozilla.org.
/be
Attachment #157214 -
Flags: superreview+
Attachment #157214 -
Flags: review+
Comment 6•20 years ago
|
||
Comment on attachment 157214 [details] [diff] [review]
Pass the right 'this' parameter to JS_CallFunctionValue() in nsHTMLExternalObjSH::Call()
a=asa for aviary checkin.
Attachment #157214 -
Flags: approval-aviary+
Assignee | ||
Comment 7•20 years ago
|
||
Fixed on the aviary branch as well.
Assignee | ||
Updated•20 years ago
|
Attachment #157204 -
Flags: superreview?(brendan)
Attachment #157204 -
Flags: review?(brendan)
Assignee | ||
Updated•20 years ago
|
Keywords: fixed1.7.5
Updated•2 years ago
|
Product: Core → Core Graveyard
You need to log in
before you can comment on or make changes to this bug.
Description
•