Bug 841850 - Check the target of a link click and update the content type from TYPE_SUBDOCUMENT to TYPE_DOCUMENT if the target is a new document. r=bz
Bug 841850 - Mochitests. r=smaug