When ShadowRoot is not in a document tree, ShadowRoot.getElementById() searches all the descendent elements. This is slow.
Since Bug 87815 is resolved without needing this bug, let's close this anyway.