Every frame always has a document now (except construction/teardown time). Most checks for document being non-null come from earlier times, when this wasn't the case.
Created attachment 27519 [details] proposed patch
Comment on attachment 27519 [details] proposed patch Should Frame::document() also assert that it's non-zero? I guess that's not critical since it will probably crash a moment later when the document pointer is used. r=me
Committed revision 40824.