Created attachment 493496 [details] testcase 1. Install 'DOM Fuzz Lite' from https://www.squarefree.com/extensions/domFuzzLite.xpi 2. Load the testcase. ###!!! ASSERTION: Element without owner document: 'Error', file content/base/src/nsGenericElement.cpp, line 3419
Yeah, this assert is semi-bogus while documents can go away before their elements. Luckily, we're planning to fix that...
Although I'm not sure whether we will actually force documents to live longer than elements during unlink.
Sure, but that shouldn't be an issue for this testcase.
Jesse, this is fixed, right?
So should elements always have an ownerDocument then, ideally? Because I'm seeing currently a js error in one of my GreaseMonkey scripts that says that some element.ownerDocument is undefined.
element.ownerDocument should always point to a valid document. .ownerDocument is defined in nsIDOMNode, so if ownerDocument is undefined, it sounds like element isn't actually element object but something else.