Bug 1026125 - Check for current document accross shadow root when creating accessible. r=surkov f=wchen