Bug 1610613 - Make Picture-in-Picture window persist across workspaces on macOS. r=spohl

Differential Revision: https://phabricator.services.mozilla.com/D69932

--HG--
extra : moz-landing-system : lando
This commit is contained in:
Mike Conley 2020-04-07 13:28:24 +00:00
Родитель 29de48a946
Коммит f217dbb0d0
1 изменённых файлов: 3 добавлений и 0 удалений

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

@ -496,6 +496,9 @@ nsresult nsCocoaWindow::CreateNativeWindow(const NSRect& aRect, nsBorderStyle aB
if (mAlwaysOnTop) {
[mWindow setLevel:NSFloatingWindowLevel];
NSWindowCollectionBehavior newBehavior = [mWindow collectionBehavior];
newBehavior |= NSWindowCollectionBehaviorCanJoinAllSpaces;
[mWindow setCollectionBehavior:newBehavior];
}
[mWindow setContentMinSize:NSMakeSize(60, 60)];