Closed jryans closed 8 years ago
@mykmelez, what do you think about this instead of #52?
Pave the cowpaths! Although in this case it's more like: travel the cowpaths, which may one day be paved, even though they're mined with dung (so mind the dung).
@mykmelez, what do you think about this instead of #52?
To be less oblique: I like this solution much better, since it follows the existing convention, and is thus less likely to break (and as a beneficial side effect fixes other things that I haven't noticed are broken yet). It's only unfortunate that it requires the code to do unnecessary work to create an nsISupportsArray and populate it with a null
element.
(and as a beneficial side effect fixes other things that I haven't noticed are broken yet)
Among other things, it enables fullscreen mode for the window, so you can give it the absolute maximum screen real estate available when doing intense debugging. FTW!
Instead of #52, we could take this approach to be more like Firefox's behavior.
So, for the "all" feature to apply correctly,
openWindow
must consider you to be adialog
, where that is apparently defined as "passed a non-zero length args array".And sure enough, Firefox's
nsBrowserContentHandler.js
has anopenWindow
wrapper which seems to create an args array and add at least one element down each of its various paths.Perhaps it's best to match Firefox since this should enable many features, instead of listing them one by one.