Backed out changeset 4bd98277bf9e (bug 1243415)

This commit is contained in:
Carsten "Tomcat" Book 2016-12-16 12:32:15 +01:00
parent c5da4a74c3
commit d6aef7b832

View File

@ -2408,14 +2408,9 @@ GeckoDriver.prototype.takeScreenshot = function (cmd, resp) {
switch (this.context) {
case Context.CHROME:
let canvas;
let container = {frame: this.getCurrentWindow()};
let highlightEls = [];
let container = {frame: this.getCurrentWindow().document.defaultView};
if (!container.frame) {
throw new NoSuchWindowError('Unable to locate window');
}
for (let h of highlights) {
let el = this.curBrowser.seenEls.get(h, container);
highlightEls.push(el);