Obscure error in FF20

Arnaud Didry <[email protected]> Fri, 12 Apr 2013 03:49:22 -0700 (PDT)
Newsgroups gmane.comp.mozilla.devel.dom
Message-ID <[email protected]>
Hi,

We are experiencing random and obscure errors since the FF20 update : "TypeError: Value does not implement interface Element". 

The stack trace always point to the same line of code : `if (node.id && !node.id.tagName && !node.id.item) {id = node.id;}` (from YUI3 [1]). The caller also ensure that `node.nodeType === 1` [2]

Another particularity of the bug is that it seems to always occurs inside an IndexedDB callback.

We're still trying to find a way to produce a failing test case. We deployed a patch which wrap the line in a try/catch to log the `node` variable but since then the error doesn't seems to occur anymore.

It seems related to the bug #821606 [3]. Do you think of something else which can cause this ? 

Should I file a ticket on bugzilla ?

Thanks !

Arnaud


[1] https://github.com/yui/yui3/blob/v3.8.0/src/dom/js/dom-core.js#L62-L63
[2] https://github.com/yui/yui3/blob/v3.8.0/src/dom/js/selector-native.js#L220
[3] https://bugzilla.mozilla.org/show_bug.cgi?id=821606