mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-10 03:45:46 +00:00
Backed out changeset 4bd98277bf9e (bug 1243415)
This commit is contained in:
parent
c5da4a74c3
commit
d6aef7b832
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user