Note that xpc_qsThrowMethodFailed/xpc_qsThrowGetterSetterFailed don't work with the new bindings.
authorMs2ger <ms2ger@gmail.com>
Tue, 07 Feb 2012 18:50:33 +0100
changeset 86008 f4bceb2b77d09375702a92df644f88de7db39f5a
parent 86007 2f87237e2de8036d5a84035392943e321b0ae152
child 86009 27a9e44e1fbb77d18953364d76f4881a401da8b9
push id89
push userMs2ger@gmail.com
push dateTue, 07 Feb 2012 17:50:40 +0000
milestone13.0a1
Note that xpc_qsThrowMethodFailed/xpc_qsThrowGetterSetterFailed don't work with the new bindings.
dom/bindings/Codegen.py
--- a/dom/bindings/Codegen.py
+++ b/dom/bindings/Codegen.py
@@ -509,28 +509,30 @@ class PerSignatureCall():
         return (self.unwrap_arguments() + self.generate_call() +
                 self.wrap_return_value())
 
 class PerSignatureMethodCall(PerSignatureCall):
     def __init__(self, returnType, arguments, nativeMethodName):
         PerSignatureCall.__init__(self, returnType, arguments, nativeMethodName)
     def getErrorReport(self):
         return """
+    // XXX This does not actually work. It requires an XPConnect object.
     return xpc_qsThrowMethodFailed(cx, rv, vp);"""
 
 class GetterSetterCall(PerSignatureCall):
     def __init__(self, returnType, arguments, nativeMethodName):
         PerSignatureCall.__init__(self, returnType, arguments, nativeMethodName)
     def getErrorReport(self):
         return """
     if (js::IsWrapper(obj)) {
       // Unwrap the security wrappers, because that's what
       // xpc_qsThrowGetterSetterFailed expects to see.
       obj = XPCWrapper::Unwrap(cx, obj, false);
     }
+    // XXX This does not actually work. It requires an XPConnect object.
     return xpc_qsThrowGetterSetterFailed(cx, rv, obj, id);"""
 
 class GetterCall(GetterSetterCall):
     def __init__(self, returnType, nativeMethodName):
         GetterSetterCall.__init__(self, returnType, [], nativeMethodName)
 
 class SetterCall(GetterSetterCall):
     def __init__(self, argType, nativeMethodName):