Created attachment 8340591 [details] testcase Assertion failure: !doc->IsLoadedAsData() (Should not get in here at all), at /Users/jruderman/trees/mozilla-central/content/events/src/nsEventListenerManager.cpp:1346 Regression from bug 942432?
The assertion shows an existing bug, or inconsistency.
Problem is that the spec doesn't define what should happen in this case Hixie filed https://www.w3.org/Bugs/Public/show_bug.cgi?id=23956
Created attachment 8345372 [details] [diff] [review] patch I think we should do this.
Comment on attachment 8345372 [details] [diff] [review] patch I don't think we should NS_ENSURE_TRUE, with its attendant warning, here. r=me other than that.
Reproduced on Nightly 2013-11-29-mozilla-central-debug. Verified fixed on Nightly 29.0a1 2013-12-18-mozilla-central-debug, Win 7 x64.