Kee extension credentials window/modal positioned out of screen

Hi!

I’m experiencing some irritating behavior where the “Select credentials” modal (in case of basic auth and multiple possible results) is placed outside of the visible desktops. This happens on Windows 10 2004, with the latest Edge as browser. The only way to recover the window is by using the “right-mouse click and move, followed by an arrow key” hack, in order to move the window back into the visible space.

It seems to happen when the screen layout has been changed since the last time the machine has been started.

Is there any way the extension can store where it opened last time, instead of only determining the position once (or at least, it looks like this happens).

Thanks!

In the short-term you may find that restoring and re-maximising your browser window helps. Or try swapping around which monitor is considered by Windows to be your primary (#1) monitor. It sounds a bit weird that the screen real-estate from the other monitor is still available to the browser at all, so there may be a bug or misconfiguration in your operating system or graphics card drivers.

Despite all that, even when there are two valid screens connected and available, in at least some operating systems and some screen layouts, Firefox is still unable to position the Kee Network Authentication dialog correctly. It appears to work better in Chrome but I don’t have Edge available to test at the moment so can’t comment any further on the technical details apart from in Firefox.

It’s possible that some of the workarounds I mention below for Firefox will help for Edge on Windows 10 too but ultimately, Kee just asks the browser to display the dialog so in any cases where this does not happen correctly, there is a bug in that web browser. Kee never determines the position of these dialog windows, although implementing some code to do this may form at least some part of a workaround to improve the situation for at least some browsers in some screen configurations so I will explore that possibility in future. Unfortunately it will be a large job to test that any change to fix this problem you’re seeing will not create other equally annoying problems in one of the many other browsers and operating systems so I’m not sure exactly when I will be able to commit to looking into this topic again.

In Firefox, this behaviour is probably due to, or at least very related to, this bug: https://bugzilla.mozilla.org/show_bug.cgi?id=1271047

If that bug gets fixed, Kee may work as expected in Firefox without any further changes.

If it still ends up on the wrong screen then:

  1. There is another Firefox bug that needs to be found and fixed AND

  2. We should be able to change Kee so that it can work around that remaining bug by calculating and specifying the exact position required in order to position the dialog in the centre of the screen.

There is a workaround for the current situation which sounds too bad to consider adding to Kee - we’d have to make the window move around the screen after it loads for every user, regardless of multi-monitor status or the browser they are using. I don’t intend to implement that workaround.

If the Firefox bug never gets fixed, there is hope on the horizon from a very early draft for some new browser technology that will add support for multiple screens: https://github.com/webscreens/window-placement. This would require far more significant changes to Firefox but since it would be a shiny new feature that benefits web sites as well as browser extensions, they may choose to prioritise that over fixing the existing bug.

Thank you for your elaborate response! It is good to hear this is probably not related to Kee, but to the browser and/or the OS. I do have a maybe non-standard screen setup (4K laptop screen with 200% scaling, and 2 27" 4K external screen with 150% scaling). When the browser is running on the laptop screen (which is also the primary screen), the popup opens on a usable position, when it is run on the other screen is is open somewhere outside of the desktops (so it is actually not visible at all, only in the taskbar).

Playing with what the primary monitor is, and the scaling of the several screen, all result in a different position of the pop-up: sometimes it’s great, sometimes it is half out of the screen and sometimes it isn’t visible at all.

Before I started using Kee, I had a plugin which didn’t use a pop-up window at all, but opened a dropdown in which you could select the correct login for the basic authentication. Maybe that would be a valid workaround for this plugin?

Thanks for the additional context.

I developed the dropdown login selection approach around 10 years back in the first version of KeeFox but unfortunately browsers no longer support the modification of that basic authentication interface so I had to delete that feature a few years ago as part of the work that changed KeeFox into Kee.

If browsers would allow extensions to open their own popup view (the bit you see when you click the icon in the toolbar) we could use that space to provide a much improved user experience but unfortunately they don’t, and it doesn’t seem all that likely that they will support it any time soon.

Since basic authentication is so rarely used nowadays, browser developers tend to give it a low priority and improvements are very slow to materialise but I’ll keep an eye out in case any new alternatives to the standalone dialog window ever materialise.

1 Like