Open Bug 1684287 Opened 4 years ago Updated 1 years ago

window.open always opens new windows at (0, 0) instead of respecting system settings

Categories

(Core :: Widget: Gtk, defect, P3)

Firefox 84
defect

Tracking

()

UNCONFIRMED

People

(Reporter: ddascalescu, Unassigned, NeedInfo)

Details

User Agent: Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:84.0) Gecko/20100101 Firefox/84.0

Steps to reproduce:

My laptop is connected to an external monitor, which is set as primary. I'm running Linux Mint 20, and I've set up the window behavior to open new windows on the screen where the cursor is. This works fine when opening a new Firefox window (Ctrl+N) but not when opening one via open from a bookmarklet.

  1. Added a bookmarklet to the toolbar with the following contents:

javascript:q=location.href;if(document.getSelection){d=document.getSelection();}else{d='';};p=document.title;void(open('https://pinboard.in/add?url='+encodeURIComponent(q)+'&description='+encodeURIComponent(d)+'&title='+encodeURIComponent(p),'Pinboard','toolbar=no,width=1500,height=700'));

  1. Click the bookmarklet

Actual results:

The new windows is created in the top-left corner of the secondary screen (my laptop). This is very annoying as every time I click that bookmarklet to bookmark a site, I have to drag the window onto the primary screen.

Geometry-wise, the laptop is located to the left of primary screen (external monitor).

Expected results:

The window should open on the screen where the mouse cursor is.

Bugbug thinks this bug should belong to this component, but please revert this change in case of error.

Component: Untriaged → Widget: Gtk
Product: Firefox → Core

Hello!
Unfortunately I wasn't able to reproduce the issue following the STR provided in the description with Firefox 86.0a1(2020-12-18) on Ubuntu 20.
Could you answer the following questions in order to further investigate this issue:

  1. Does this issue happen with a new profile? Here is a link on how to create a new profile: https://support.mozilla.org/en-US/kb/profile-manager-create-remove-switch-firefox-profiles
  2. Does this issue occur in the latest nightly version of firefox? Here is a link from where you can download it: https://www.mozilla.org/en-US/firefox/channel/desktop/
  3. Are you using any addons if so please list them.

I will let the component as it is since I find it suitable for this issue.
Thank you for your contribution!

Flags: needinfo?(ddascalescu)
Priority: -- → P3

Does it help if you add 'widget.disable-workspace-management' boolean value at about:config, set to true and restart browser?

The bug is still reproducible every time on KDE neon 5.21, with the latest Firefox Nightly, without any addons used.

Forgot to mention in the OP - the bookmarklet code comes from Pinboard's Howto page, https://pinboard.in/howto/, under "popup".

Flags: needinfo?(ddascalescu)

Dan, it's not very clear if the last comment was a reponse to Martin's request to test that setting.

Severity: -- → S3
Flags: needinfo?(ddascalescu)
You need to log in before you can comment on or make changes to this bug.