Backed out changeset 62c28040b388 (bug 1243415)

This commit is contained in:
Carsten "Tomcat" Book 2016-12-16 12:32:21 +01:00
Родитель 3dba61aa37
Коммит 1adf9f3831
1 изменённых файлов: 3 добавлений и 10 удалений

Просмотреть файл

@ -2404,16 +2404,9 @@ GeckoDriver.prototype.takeScreenshot = function (cmd, resp) {
switch (this.context) {
case Context.CHROME:
let container = {frame: this.getCurrentWindow()};
let highlightEls = [];
for (let h of highlights) {
let el = this.curBrowser.seenEls.get(h, container);
highlightEls.push(el);
}
let canvas = capture.viewport(this.getCurrentWindow(), highlightEls);
return capture.toBase64(canvas);
let canvas = capture.viewport(this.getCurrentWindow());
resp.body.value = capture.toBase64(canvas);
break;
case Context.CONTENT:
if (hash) {