Closed Bug 199122 Opened 23 years ago Closed 23 years ago

IDispatch logic should not depend on order of properties

Categories

(Core :: XPConnect, defect, P1)

x86
Windows XP
defect

Tracking

()

VERIFIED FIXED
mozilla1.4alpha

People

(Reporter: dbradley, Assigned: dbradley)

References

Details

Attachments

(2 files)

The IDispatch logic should not depend on the order that a property getter/setter methods occur during enumerating the interface.
Blocks: 190852
Status: NEW → ASSIGNED
Priority: -- → P1
Target Milestone: --- → mozilla1.4beta
Moving back, will seek an a= when reviewed. IDispatch only changes, very low risk.
Target Milestone: mozilla1.4beta → mozilla1.4alpha
Attached file Test control
This is a test control with an odd IDL interface. The interface contains parameterized parameters, and setters and getters which are seperated rather than being defined together.
*** Bug 199600 has been marked as a duplicate of this bug. ***
This patch actually addresses two problems. One is the property order. The other is the parameterized property problem. The patch in bug 198668 had the test for IsRetVal backwards, should be !IsRetVal. (Adam double check that but it seems to be correct now). This was what was breaking in bug 199600. There were two spots that needed to be fixed. One is the allocation of the XPCDispInterface, as it needs to know how many unique entries there will be. The other was the one filling out the actual member information. I also took the liberty of cleaning up a few warnings. I took out the commented out XPCDispParams::GetParamRef since it's not used.
Attachment #118994 - Flags: superreview?(alecf)
Attachment #118994 - Flags: review?(adamlock)
Comment on attachment 118994 [details] [diff] [review] Addresses the property method order issue It looks okay in general (incl the parameterized fix). Have you had a chance to run it over the sample control I provided? I just want to be sure that the setter/getter order doesn't mean the getter funcdesc gets put in mFuncDesc by mistake (i.e. via SetTypeInfo call). If so r=adamlock
Attachment #118994 - Flags: review?(adamlock) → review+
Yes, it's working just fine.
Comment on attachment 118994 [details] [diff] [review] Addresses the property method order issue sr=alecf nice liberal use of comments! :)
Comment on attachment 118994 [details] [diff] [review] Addresses the property method order issue sr=alecf nice liberal use of comments! :)
Attachment #118994 - Flags: superreview?(alecf) → superreview+
Fix checked in
Status: ASSIGNED → RESOLVED
Closed: 23 years ago
Resolution: --- → FIXED
Checkin verified -
Status: RESOLVED → VERIFIED
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: