[Pale-Moon] Don't set the drawintitlebar attr in gPrivateBrowsingUI unless we want MOZ_CAN_DRAW_IN_TITLEBAR on macintosh

This commit is contained in:
Matt A. Tobin 2020-04-14 23:55:18 -04:00 committed by Roy Tam
commit 485fd40870

View file

@ -6951,7 +6951,7 @@ var gPrivateBrowsingUI = {
document.getElementById("Tools:Sanitize").setAttribute("disabled", "true");
if (window.location.href == getBrowserURL()) {
#ifdef XP_MACOSX
#if defined(XP_MACOSX) && defined(MOZ_CAN_DRAW_IN_TITLEBAR)
if (!PrivateBrowsingUtils.permanentPrivateBrowsing) {
document.documentElement.setAttribute("drawintitlebar", true);
}