Closed
Bug 764698
Opened 13 years ago
Closed 13 years ago
Fix distinguishability checking for dictionaries
Categories
(Core :: DOM: Core & HTML, defect)
Tracking
()
RESOLVED
FIXED
mozilla16
People
(Reporter: bzbarsky, Assigned: bzbarsky)
References
(Blocks 1 open bug)
Details
Attachments
(1 file, 1 obsolete file)
|
13.66 KB,
patch
|
peterv
:
review+
|
Details | Diff | Splinter Review |
I failed to do this right in bug 742153.
| Assignee | ||
Comment 1•13 years ago
|
||
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)
| Assignee | ||
Comment 2•13 years ago
|
||
Attachment #634275 -
Flags: review?(khuey)
| Assignee | ||
Updated•13 years ago
|
Attachment #633013 -
Attachment is obsolete: true
Attachment #633013 -
Flags: review?(khuey)
| Assignee | ||
Comment 3•13 years ago
|
||
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 4•13 years ago
|
||
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+
| Assignee | ||
Comment 5•13 years ago
|
||
> or isDate()?
Yes, good catch. That column was off the right edge of my browser viewport. ;)
| Assignee | ||
Comment 6•13 years ago
|
||
Flags: in-testsuite+
Whiteboard: [need review]
Target Milestone: --- → mozilla16
Comment 7•13 years ago
|
||
Status: NEW → RESOLVED
Closed: 13 years ago
Resolution: --- → FIXED
Updated•6 years ago
|
Component: DOM → DOM: Core & HTML
You need to log in
before you can comment on or make changes to this bug.
Description
•