diff --git a/widget/cocoa/nsCocoaWindow.mm b/widget/cocoa/nsCocoaWindow.mm index df9782494c7e..708b79ebf59e 100644 --- a/widget/cocoa/nsCocoaWindow.mm +++ b/widget/cocoa/nsCocoaWindow.mm @@ -2843,6 +2843,14 @@ void nsCocoaWindow::CocoaWindowDidResize() { [titlebarContainerView setTransparent:NO]; } + if (@available(macOS 11.0, *)) { + // In order to work around a drawing bug with titlebarAppearsTransparent + // windows in full screen mode, disable titlebar separators for full + // screen windows. The drawing bug was filed as FB9056136. See bug 1700211 + // and bug 1912338 for more details. + window.titlebarSeparatorStyle = NSTitlebarSeparatorStyleNone; + } + if (!mGeckoWindow) { return; }