The atoms return the size of the DOMWindow given, so the FirefoxDriver should pass in window.top to get the correct dimensions when a frame is selected.