Closed Bug 919705 Opened 11 years ago Closed 11 years ago

JSImplemented WebIDL interface methods should not be subject to needThisHandling checks

Categories

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

x86_64
Linux
defect
Not set
normal

Tracking

()

RESOLVED FIXED
mozilla27

People

(Reporter: qdot, Assigned: bzbarsky)

Details

Attachments

(1 file)

Methods on JSImplemented WebIDL interfaces will sometimes cause IDL compilation errors due to triggering the needThisHandling property usually reserved for callbacks.
Whiteboard: [need review]
Comment on attachment 808785 [details] [diff] [review]
Don't ever claim that jsImplemented things are single-operation interfaces.

Review of attachment 808785 [details] [diff] [review]:
-----------------------------------------------------------------

::: dom/bindings/parser/WebIDL.py
@@ +812,5 @@
>      def isCallback(self):
>          return self._callback
>  
>      def isSingleOperationInterface(self):
>          assert self.isCallback() or self.isJSImplemented()

Ah, so I guess JS implemented stuff calls this (because it is callback-y), but shouldn't ever return true.  Makes sense.
Attachment #808785 - Flags: review?(continuation) → review+
https://hg.mozilla.org/integration/mozilla-inbound/rev/45cdb4bf98ec
Flags: in-testsuite-
Whiteboard: [need review]
Target Milestone: --- → mozilla27
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: