Bug 1414741 - Disable control center shadow in mozscreenshots. r=MattN

MozReview-Commit-ID: FLyfMIaMloT

--HG--
extra : rebase_source : 1a2755b66f95ec8f1a6a000d22ed52a2103c3419
This commit is contained in:
Johann Hofmann 2017-12-14 10:40:38 -06:00
Родитель eaae914ec1
Коммит 97644c30a1
1 изменённых файлов: 5 добавлений и 0 удалений

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

@ -13,6 +13,7 @@ Cu.import("resource://gre/modules/Timer.jsm");
Cu.import("resource://testing-common/BrowserTestUtils.jsm");
Cu.import("resource:///modules/SitePermissions.jsm");
Cu.import("resource://gre/modules/NetUtil.jsm");
Cu.import("resource://gre/modules/AppConstants.jsm");
let {UrlClassifierTestUtils} = Cu.import("resource://testing-common/UrlClassifierTestUtils.jsm", {});
@ -259,6 +260,10 @@ async function openIdentityPopup(expand) {
let gBrowser = browserWindow.gBrowser;
let { gIdentityHandler } = gBrowser.ownerGlobal;
gIdentityHandler._identityPopup.hidePopup();
// Disable the popup shadow on OSX until we have figured out bug 1425253.
if (AppConstants.platform == "macosx") {
gIdentityHandler._identityPopup.style["-moz-window-shadow"] = "none";
}
gIdentityHandler._identityBox.querySelector("#identity-icon").click();
if (expand) {
// give some time for opening to avoid weird style issues