window.open always opens new windows at (0, 0) instead of respecting system settings
Categories
(Core :: Widget: Gtk, defect, P3)
Tracking
()
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.
- 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'));
- 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.
Comment 1•4 years ago
|
||
Bugbug thinks this bug should belong to this component, but please revert this change in case of error.
Comment 2•4 years ago
|
||
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:
- 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
- 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/
- 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!
Updated•4 years ago
|
Comment 3•4 years ago
|
||
Does it help if you add 'widget.disable-workspace-management' boolean value at about:config, set to true and restart browser?
Reporter | ||
Comment 4•4 years ago
|
||
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".
Comment 5•1 years ago
|
||
Dan, it's not very clear if the last comment was a reponse to Martin's request to test that setting.
Description
•