mozilla / qbrt

CLI to a Gecko desktop app runtime
Apache License 2.0
391 stars 31 forks source link

allow DevTools to be pinned to the browser window (bottom or right) #100

Open cvan opened 7 years ago

cvan commented 7 years ago

By default, Firefox opens the DevTools as a pane fixed to the bottom of the active browser window.

screen shot 2017-06-08 at 6 27 49 pm screen shot 2017-06-08 at 6 28 03 pm

You can also dock the DevTools to the side:

screen shot 2017-06-08 at 6 28 19 pm

And to the bottom again:

screen shot 2017-06-08 at 6 28 26 pm

Or detach the DevTools:

screen shot 2017-06-08 at 6 28 38 pm

And by default, qbrt opens the DevTools as a separate detached window:

screen shot 2017-06-08 at 6 29 35 pm screen shot 2017-06-08 at 6 29 44 pm

For comparison, Electron does by default open the DevTools to the right side of the browser window.

To do this with the qbrt, the shell would be need to maintain an <iframe> that's positioned to the bottom, where the DevTools pane would be embedded. Am I correct in understanding that?

mykmelez commented 7 years ago

For comparison, Electron does by default open the DevTools to the right side of the browser window.

Indeed! I didn't do this earlier for a couple of reasons: primarily, because the shell was originally implemented in HTML, which doesn't support in-window DevTools; and secondarily, because I based the implementation on the one in Positron in order to get it working quickly, and that implementation didn't support in-window DevTools.

To do this with the qbrt, the shell would be need to maintain an