From d96900349d68f5f3869a0573c5a2ff6443747745 Mon Sep 17 00:00:00 2001 From: Felipe Gomes Date: Wed, 27 Mar 2019 10:26:53 +0000 Subject: [PATCH] Bug 1539311 - Fix incorrect parameter in the Windows Taskbar Previews code. r=Standard8 Differential Revision: https://phabricator.services.mozilla.com/D25013 --HG-- extra : moz-landing-system : lando --- browser/modules/WindowsPreviewPerTab.jsm | 4 ++-- toolkit/components/thumbnails/PageThumbs.jsm | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/browser/modules/WindowsPreviewPerTab.jsm b/browser/modules/WindowsPreviewPerTab.jsm index 2a77105feff9..98af2226304c 100644 --- a/browser/modules/WindowsPreviewPerTab.jsm +++ b/browser/modules/WindowsPreviewPerTab.jsm @@ -148,7 +148,7 @@ function PreviewController(win, tab) { this.tab.addEventListener("TabAttrModified", this); XPCOMUtils.defineLazyGetter(this, "canvasPreview", function() { - let canvas = PageThumbs.createCanvas(this.win); + let canvas = PageThumbs.createCanvas(this.win.win); canvas.mozOpaque = true; return canvas; }); @@ -270,7 +270,7 @@ PreviewController.prototype = { let winWidth = this.win.width; let winHeight = this.win.height; - let composite = PageThumbs.createCanvas(this.win); + let composite = PageThumbs.createCanvas(this.win.win); // Use transparency, Aero glass is drawn black without it. composite.mozOpaque = false; diff --git a/toolkit/components/thumbnails/PageThumbs.jsm b/toolkit/components/thumbnails/PageThumbs.jsm index a116446538b5..b31b709e98fa 100644 --- a/toolkit/components/thumbnails/PageThumbs.jsm +++ b/toolkit/components/thumbnails/PageThumbs.jsm @@ -261,7 +261,7 @@ var PageThumbs = { return; } // The content is a local page, grab a thumbnail sync. - PageThumbUtils.createSnapshotThumbnail(aBrowser.ownerGlobal, + PageThumbUtils.createSnapshotThumbnail(aBrowser.contentWindow, aCanvas, aArgs);