Similar to commit a9c858fc78, this patch implements the WebDriver spec concept of shadow references grouped according to their browsing context groups.
a9c858fc78