All users were logged out of Bugzilla on October 13th, 2018

Not possible to set NSWindowCollectionBehaviorCanJoinAllSpaces

RESOLVED INVALID

Status

()

P5
normal
RESOLVED INVALID
3 years ago
2 years ago

People

(Reporter: noitidart, Unassigned)

Tracking

46 Branch
x86_64
Mac OS X
Points:
---

Firefox Tracking Flags

(Not tracked)

Details

(Whiteboard: tpi:+)

(Reporter)

Description

3 years ago
User Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:46.0) Gecko/20100101 Firefox/46.0
Build ID: 20160411042519

Steps to reproduce:

I am trying to open a window with Services.ww.openWindow such that the window does not change with the space.

To do this we have to do it like this:

http://stackoverflow.com/a/32132705/1828637

> This sounds like either NSWindowCollectionBehaviorCanJoinAllSpaces or NSWindowCollectionBehaviorStationary. Set it as the collectionBehavior of the window.
>
> (You probably want to set the window level, too, but that's about ordering rather than collection/Spaces behavior. And if you have a Window menu, then you probably also want NSWindowCollectionBehaviorIgnoresCycle.)

I tried all the window features listed here - https://developer.mozilla.org/en-US/docs/Web/API/Window/open#Position_and_size_features

But none of them are working. Even alwaysRaised dos not.

I tried using js-ctypes and setCollectionBehavior on NSWindow however by the time the window opesn with Services.ww.openWindow, it is too late to call setCollectionBehavior. This was explained here - http://stackoverflow.com/q/31866399/1828637



Expected results:

Please enable someway we can set collection behavior.
(Reporter)

Updated

3 years ago
Component: Untriaged → Widget: Cocoa
OS: Unspecified → Mac OS X
Priority: -- → P5
Product: Firefox → Core
Hardware: Unspecified → x86_64

Updated

2 years ago
Whiteboard: tpi:+
(Reporter)

Comment 1

2 years ago
Actually it does seem possible with this code:

https://gist.github.com/Noitidart/80d00ae9147f1ab917099d43fbb012e9

I'm not sure if it's perfect but its working.
(Reporter)

Comment 2

2 years ago
Marking resolved, invalid (as fix not needed) but maybe might re-open if its not possible to open a window into the user active workspace.
Status: UNCONFIRMED → RESOLVED
Last Resolved: 2 years ago
Resolution: --- → INVALID
You need to log in before you can comment on or make changes to this bug.