Closed Bug 764698 Opened 13 years ago Closed 13 years ago

Fix distinguishability checking for dictionaries

Categories

(Core :: DOM: Core & HTML, defect)

x86
macOS
defect
Not set
normal

Tracking

()

RESOLVED FIXED
mozilla16

People

(Reporter: bzbarsky, Assigned: bzbarsky)

References

(Blocks 1 open bug)

Details

Attachments

(1 file, 1 obsolete file)

I failed to do this right in bug 742153.
While writing this, I discovered that isCallback() is false in IDLWrapperType (which makes sense) but that we had consumers checking isCallback() on types and assuming that would catch callback interfaces. So I added better ways of testing for that and used them throughout.
Attachment #633013 - Flags: review?(khuey)
Attachment #633013 - Attachment is obsolete: true
Attachment #633013 - Flags: review?(khuey)
Comment on attachment 634275 [details] [diff] [review] Fix isDistinguishableFrom for dictionaries to work right. Peter, Kyle is apparently swamped again. Could you take a look? I mostly want this because it cleans up the callback stuff a lot... Kyle did already OK the general idea.
Attachment #634275 - Flags: review?(khuey) → review?(peterv)
Comment on attachment 634275 [details] [diff] [review] Fix isDistinguishableFrom for dictionaries to work right. Review of attachment 634275 [details] [diff] [review]: ----------------------------------------------------------------- ::: dom/bindings/parser/WebIDL.py @@ +1267,5 @@ > if other.isPrimitive() or other.isString() or other.isEnum(): > return True > + if self.isDictionary(): > + return (other.isNonCallbackInterface() or other.isSequence() or > + other.isArray()) or isDate()?
Attachment #634275 - Flags: review?(peterv) → review+
> or isDate()? Yes, good catch. That column was off the right edge of my browser viewport. ;)
Flags: in-testsuite+
Whiteboard: [need review]
Target Milestone: --- → mozilla16
Status: NEW → RESOLVED
Closed: 13 years ago
Resolution: --- → FIXED
Component: DOM → DOM: Core & HTML
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: