diff --git a/content/xbl/src/nsXBLPrototypeHandler.cpp b/content/xbl/src/nsXBLPrototypeHandler.cpp index f184ca716bc..017e762d020 100644 --- a/content/xbl/src/nsXBLPrototypeHandler.cpp +++ b/content/xbl/src/nsXBLPrototypeHandler.cpp @@ -1074,7 +1074,7 @@ nsXBLPrototypeHandler::Write(nsIScriptContext* aContext, nsIObjectOutputStream* { // Make sure we don't write out NS_HANDLER_TYPE_XUL types, as they are used // for elements. - if (mType & NS_HANDLER_TYPE_XUL) + if ((mType & NS_HANDLER_TYPE_XUL) || !mEventName) return NS_OK; XBLBindingSerializeDetails type = XBLBinding_Serialize_Handler; diff --git a/content/xbl/test/Makefile.in b/content/xbl/test/Makefile.in index 83f26714898..a85407bfb3f 100644 --- a/content/xbl/test/Makefile.in +++ b/content/xbl/test/Makefile.in @@ -79,6 +79,7 @@ _CHROME_FILES = \ test_bug378518.xul \ test_bug398135.xul \ test_bug398492.xul \ + test_bug721452.xul \ $(NULL) libs:: $(_TEST_FILES) diff --git a/content/xbl/test/test_bug721452.xul b/content/xbl/test/test_bug721452.xul new file mode 100644 index 00000000000..d1393d54228 --- /dev/null +++ b/content/xbl/test/test_bug721452.xul @@ -0,0 +1,25 @@ + + + + + + + + + + + + + + + + + + + + + + +