MacOS – Web browser opens popups as new tabs when maximized

firefoxgoogle-chromemacossafariweb-browser

When browsing to a web page which opens a new dialog popup window, if the browser is maximized, then the new window is not opened as a dialog but as a new tab. However if the browser is not maximized, then the new window opens as a dialog. I need it to be a dialog (not new tab) always.

This behavior is same in all browsers tried – Safari, Chrome, Firefox. So it seems to be a setting of the OS itself.

Found one setting Apple menu > System Preferences > Dock > Prefer tabs when opening documents with options Always | In Full Screen Only | Manually, but changing these does not change the described behaviour.

Is there any setting affecting this?

(On Windows OS both Chrome and Firefox works as expected – they open dialog windows regardless of the browser being maximized or not.)

Best Answer

I have figured out a fix to this using Firefox 58.0.2. Firefox 59 slightly breaks this functionality - it opens as a new window in a new macOS space instead of a floating popup.

I don't have fixes for Chrome and Safari or Firefox 59, but I am certain they are possible.

(If you require Firefox 58.0.2, you can find it on Mozilla's FTP here. You will likely want to disable Firefox auto-updates, but this will compromise your security in the long run.)

In the address bar, type in about:config and hit enter.

On the warning page, click "I accept the risk". As long as you don't mess with other settings, your browser should remain safe.

In the search field, type link. - this will help us narrow down to the two settings we want to change.

Double click on browser.link.open_newwindow.disabled_in_fullscreen to set the boolean to false.

Double click on browser.link.open_newwindow.restriction and set 1 as the value and click OK.

This should force Firefox to open popups like the one you have as a new window that floats on top of the fullscreen window. Again, if you use Firefox 59, the popup will make a new window, but it will go to a new space instead of floating. enter image description here