Bug 419765 - "PyDOM script error, Python cannot handle dom events" (Add handling of the additional version argument) [p=toddw@ActiveState.com (Todd Whiteman) r=mhammond (NPOTB)]
authorreed@reedloden.com
Thu, 28 Feb 2008 21:32:30 -0800
changeset 12427 2774b727a51a4dfec00d9de7d65a1d9b1ee5ccf5
parent 12426 d953ab0ecab8a3ed7a30eb51dd858b8436db35d2
child 12428 48375a18b29f629e83d51a96df0044fa28e7e9ae
push id1
push userroot
push dateTue, 26 Apr 2011 22:38:44 +0000
treeherdermozilla-beta@bfdb6e623a36 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersmhammond
bugs419765
milestone1.9b4pre
Bug 419765 - "PyDOM script error, Python cannot handle dom events" (Add handling of the additional version argument) [p=toddw@ActiveState.com (Todd Whiteman) r=mhammond (NPOTB)]
extensions/python/dom/src/nsPyContext.cpp
--- a/extensions/python/dom/src/nsPyContext.cpp
+++ b/extensions/python/dom/src/nsPyContext.cpp
@@ -490,17 +490,17 @@ nsPythonContext::CompileEventHandler(nsI
 
   PyObject *argNames = PyList_New(aArgCount);
   if (!argNames)
     return HandlePythonError();
   for (PRUint32 i=0;i<aArgCount;i++) {
     PyList_SET_ITEM(argNames, i, PyString_FromString(aArgNames[i]));
   }
   PyObject *ret = PyObject_CallMethod(mDelegate, "CompileEventHandler",
-                                      "sNNsi",
+                                      "sNNsii",
                                       AtomToEventHandlerName(aName),
                                       argNames,
                                       PyObject_FromNSString(aBody),
                                       aURL, aLineNo, aVersion);
   if (!ret)
     return HandlePythonError();
 
   NS_ASSERTION(aHandler.getScriptTypeID()==nsIProgrammingLanguage::PYTHON,