mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 802881 - Use correct tab for getting background color. r=kats
This commit is contained in:
parent
f1e62e2f34
commit
d1eb5496ff
@ -2800,12 +2800,9 @@ Tab.prototype = {
|
|||||||
// event fires; it's not clear that doing so is worth the effort.
|
// event fires; it's not clear that doing so is worth the effort.
|
||||||
var backgroundColor = null;
|
var backgroundColor = null;
|
||||||
try {
|
try {
|
||||||
let browser = BrowserApp.selectedBrowser;
|
let { contentDocument, contentWindow } = this.browser;
|
||||||
if (browser) {
|
let computedStyle = contentWindow.getComputedStyle(contentDocument.body);
|
||||||
let { contentDocument, contentWindow } = browser;
|
backgroundColor = computedStyle.backgroundColor;
|
||||||
let computedStyle = contentWindow.getComputedStyle(contentDocument.body);
|
|
||||||
backgroundColor = computedStyle.backgroundColor;
|
|
||||||
}
|
|
||||||
} catch (e) {
|
} catch (e) {
|
||||||
// Ignore. Catching and ignoring exceptions here ensures that Talos succeeds.
|
// Ignore. Catching and ignoring exceptions here ensures that Talos succeeds.
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user