Closed Bug 677329 Opened 13 years ago Closed 11 years ago

Implement WebIDL array types

Categories

(Core :: XPCOM, defect)

defect
Not set
normal

Tracking

()

RESOLVED WONTFIX

People

(Reporter: ted, Unassigned)

References

()

Details

Attachments

(1 file, 1 obsolete file)

These would be useful. I'd like to use them. Once we kill off the C implementation of xpidl this won't be too hard.
This patch adds the necessary parsing changes to xpidl.py to handle WebIDL array types. I also added a small test suite for the parser. It's nowhere near comprehensive, but it tests around the areas I was changing, so it made me feel better.

This isn't actually useful yet, as it needs to be hooked up to header.py and the patch that hasn't been finished yet for bug 458936. We'll want to handle Array types by synthesizing an additional length parameter, presumably. (Unless we want to go crazy and make xptcall handle nsTArray or something neat like that.)
Depends on: 458936
I split the tests off into their own patch.
Depends on: 677671
On top of the patch from the other bug. We might not actually want to take this. khuey and I have been talking, and we may fork the xpidl.py parser to make a webidl.py parser, so as not to intermingle all the legacy xpidl crap in with WebIDL.
Attachment #551530 - Attachment is obsolete: true
(In reply to Ted Mielczarek [:ted, :luser] from comment #3)
> Created attachment 551877 [details] [diff] [review]
> Support WebIDL array types in xpidl.py parser
> 
> On top of the patch from the other bug. We might not actually want to take
> this. khuey and I have been talking, and we may fork the xpidl.py parser to
> make a webidl.py parser, so as not to intermingle all the legacy xpidl crap
> in with WebIDL.

That sounds like a decent idea.
Assignee: ted.mielczarek → nobody
Is there a timeline for the WebIDL parser?
We totally have a separate WebIDL parser now, so use that.
Status: NEW → RESOLVED
Closed: 11 years ago
Resolution: --- → WONTFIX
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: