Ignore native event listeners without a type (bug 962724); r=vporof

This commit is contained in:
Panos Astithas 2014-01-29 11:23:10 +02:00
parent fc76290873
commit 8d9cdbe611

View File

@ -1699,9 +1699,9 @@ ThreadActor.prototype = {
// Create a form object for serializing the listener via the protocol.
let listenerForm = Object.create(null);
let listener = handler.listenerObject;
// Native event listeners don't provide any listenerObject and are not
// that useful to a JS debugger.
if (!listener) {
// Native event listeners don't provide any listenerObject or type and
// are not that useful to a JS debugger.
if (!listener || !handler.type) {
continue;
}