I am looking for an environment where I can try out little bits of code. When I try
var w = browser.windows.getCurrent()
in the browser console I get
Uncaught TypeError: browser.windows is undefined
.
I’ve tried various other things without luck. I thought the console was supposed to be in the same environment that background scripts run in.
Is there some way I can make it work, or at least understand what environment I am in?
OTOH, window.getWorkspaceID()
did run. More about why I care below.
FF 78.10.0esr on Debian GNU/Linux.
My substantive goal is to find out if the windows respond to GetWorkspaceID()
and
MoveToWorkspace()
; neither is part of the WebExtensions API but look as if they’ve been implemented. FF is not restoring windows to their original virtual desktop. I’m speculating that the gtk calls underlying it don’t work properly with the KDE desktop I’m running.
I have tried making those calls against the window object I can access from the debug console; they weren’t recognized.