Closed Bug 861880 Opened 11 years ago Closed 11 years ago

Move TreeColumns to WebIDL

Categories

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

defect
Not set
normal

Tracking

()

RESOLVED FIXED
mozilla23

People

(Reporter: Ms2ger, Assigned: Ms2ger)

References

(Blocks 1 open bug)

Details

Attachments

(1 file)

Attached patch Patch v1Splinter Review
      No description provided.
Attachment #737497 - Flags: review?(bzbarsky)
Comment on attachment 737497 [details] [diff] [review]
Patch v1

>+addExternalIface('MozTreeBoxObject', nativeType='nsITreeBoxObject')

I think this needs notflattened=True

>+interface TreeColumns {

[NoInterfaceObject], please.  I'm surprised this didn't fail the "list of interfaces we're exposing on the global" test.. or does that not catch webidl things?

> NS_INTERFACE_MAP_BEGIN(nsTreeColumns)

NS_INTERFACE_MAP_BEGIN_CYCLE_COLLECTION

r=me with those issues fixed.

Fwiw, if you put the WebIDL methods _after_ the XPCOM ones in the .cpp, I bet your diff would have been smaller...
Attachment #737497 - Flags: review?(bzbarsky) → review+
(In reply to Boris Zbarsky (:bz) from comment #1)
> >+interface TreeColumns {
> 
> [NoInterfaceObject], please.  I'm surprised this didn't fail the "list of
> interfaces we're exposing on the global" test.. or does that not catch
> webidl things?

Sure does. But the test whitelists TreeColumns.
IIRC because TreeColumns has been exposed to global scope for ages.
Huh.  Why?  It's not nsIDOMTreeColumns....  Is it just because it had classinfo?
IIRC yes. It uses DOMClassInfo and that ends up putting it to global scope.
(don't recall how that happens..)
Hmm.  I guess we use it on the RHS of instanceof too.  :(

Check this in as-is, I guess.  :(
https://hg.mozilla.org/mozilla-central/rev/0d50cb959c46
Status: ASSIGNED → RESOLVED
Closed: 11 years ago
Flags: in-testsuite?
Resolution: --- → FIXED
Target Milestone: --- → mozilla23
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: