Closed
Bug 1175513
Opened 9 years ago
Closed 9 years ago
Cleanup nsXPCWrappedJSClass::CallMethod a bit.
Categories
(Core :: XPConnect, defect)
Core
XPConnect
Tracking
()
RESOLVED
FIXED
mozilla41
Tracking | Status | |
---|---|---|
firefox41 | --- | fixed |
People
(Reporter: Ms2ger, Assigned: Ms2ger)
Details
Attachments
(3 files)
(deleted),
patch
|
bholley
:
review+
|
Details | Diff | Splinter Review |
(deleted),
patch
|
bholley
:
review+
|
Details | Diff | Splinter Review |
(deleted),
patch
|
bholley
:
review+
|
Details | Diff | Splinter Review |
No description provided.
Assignee | ||
Comment 1•9 years ago
|
||
Attachment #8623662 -
Flags: review?(bobbyholley)
Assignee | ||
Comment 2•9 years ago
|
||
Attachment #8623663 -
Flags: review?(bobbyholley)
Assignee | ||
Comment 3•9 years ago
|
||
Attachment #8623674 -
Flags: review?(bobbyholley)
Updated•9 years ago
|
Attachment #8623662 -
Flags: review?(bobbyholley) → review+
Comment 4•9 years ago
|
||
Comment on attachment 8623663 [details] [diff] [review]
Factor out nsXPCWrappedJSClass::CleanupOutparams
Review of attachment 8623663 [details] [diff] [review]:
-----------------------------------------------------------------
::: js/xpconnect/src/XPCWrappedJSClass.cpp
@@ +727,5 @@
> + void* p;
> + if (!(p = nativeParams[i].val.p))
> + continue;
> +
> + if (!inOutOnly || param.IsIn()) {
Is there actually a reason for the difference in behavior with inOutOnly? I'm fine to keep it, but please comment as to the reason why we need it, or that it's cargo cult.
@@ +1194,5 @@
> readyToDoTheCall = true;
>
> pre_call_clean_up:
> // clean up any 'out' params handed in
> + CleanupOutparams(cx, methodIndex, info, nativeParams, true, paramCount);
Can you add |/* inOutOnly = */|, here and below?
Attachment #8623663 -
Flags: review?(bobbyholley) → review+
Updated•9 years ago
|
Attachment #8623674 -
Flags: review?(bobbyholley) → review+
Comment 6•9 years ago
|
||
https://hg.mozilla.org/mozilla-central/rev/ea5b6a488b42
https://hg.mozilla.org/mozilla-central/rev/45e57f3e386b
https://hg.mozilla.org/mozilla-central/rev/a560e8f99991
Status: NEW → RESOLVED
Closed: 9 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla41
You need to log in
before you can comment on or make changes to this bug.
Description
•