I’m working on an app, which is based on Firefox and what I need to build is an in-app password manager. I’m planning to populate it once and hide it from view outside of the window frame, bringing it in-frame when it is needed. Now, I have read about the rules applied to moveTo, namely
“You can’t move a window or tab that wasn’t created by window.open.
You can’t move a window or tab when it’s in a window with more than one tab.”
I was wondering if there are any exceptions to that rule? I have full access to chrome, so I was wondering if there’s some more low-level way to achieve the moveTo form there?
Thanks a lot!
The restrictions of
window.moveTo()don’t apply to code running with system privileges. I just tried typingtop.moveTo(-1000, 0)into the Error Console – it moved the window off-screen, something that unprivileged code isn’t allowed to do. Still, opening the window off-screen is not possible as far as I know (you can however move it in aloadevent handler, when the window is still invisible). Also, the task manager still shows that window – it is possible to Alt-Tab to it, then press Alt-Space and choose “Move” from that system menu (that’s on Windows).