I'm getting <https://tbpl.mozilla.org/?tree=Try&rev=9e9518c33d28>: oranges in editor/libeditor/html/tests/test_bug520189.html. I think because of the QI at <http://mxr.mozilla.org/mozilla-central/source/editor/libeditor/base/nsEditor.cpp#3549>.
Yeah I think Aryeh recently came across this too. This is crazy, in case that is not obvious! :-)
Created attachment 621326 [details] [diff] [review]
Comment on attachment 621326 [details] [diff] [review]
I'm not sure why you're QIing to nsINode and then static-casting to nsIContent. You can just QI to nsIContent, and you'll have access to the NodeType method since nsIContent derives publicly from nsINode, right?
Please make that change, r=me with that.