Bug 796410. Make things still work right if we disable Paris list bindings. r=peterv
authorBoris Zbarsky <bzbarsky@mit.edu>
Sat, 06 Oct 2012 12:21:42 -0400
changeset 109531 221cf927f71d6e15e1d5673efbc5e2157838c698
parent 109530 c532f851ec5716861bbf0ea3dfd2065a205efa37
child 109532 7fc54528af644c058526ec8665eaad70d53e9ab7
push id23631
push userphilringnalda@gmail.com
push dateSun, 07 Oct 2012 05:11:15 +0000
treeherdermozilla-central@ecd4c4304219 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewerspeterv
bugs796410
milestone18.0a1
first release with
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
Bug 796410. Make things still work right if we disable Paris list bindings. r=peterv
js/xpconnect/src/dombindingsgen.py
--- a/js/xpconnect/src/dombindingsgen.py
+++ b/js/xpconnect/src/dombindingsgen.py
@@ -441,16 +441,17 @@ listTemplate = (
 "template<>\n"
 "bool\n"
 "${name}Wrapper::DefineDOMInterface(JSContext *cx, JSObject *receiver, bool *enabled)\n"
 "{\n"
 "  bool ok = mozilla::dom::${name}Binding::DefineDOMInterface(cx, receiver, enabled);\n"
 "  if (ok || *enabled) {\n"
 "    return ok;\n"
 "  }\n"
+"  *enabled = true;\n"
 "  return getPrototype(cx, receiver);\n"
 "}\n"
 "\n")
 
 derivedClassTemplate = (
 "template<>\n"
 "bool\n"
 "${name}Wrapper::objIsList(JSObject *obj)\n"