зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1414741
- Disable control center shadow in mozscreenshots. r=MattN
MozReview-Commit-ID: FLyfMIaMloT --HG-- extra : rebase_source : 1a2755b66f95ec8f1a6a000d22ed52a2103c3419
This commit is contained in:
Родитель
eaae914ec1
Коммит
97644c30a1
|
@ -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
|
||||
|
|
Загрузка…
Ссылка в новой задаче