Bug 1454445 - Put windowtype/positioning attributes on the webconsole html tag to support opening as top-level;r=Mossop draft
authorBrian Grinstead <bgrinstead@mozilla.com>
Tue, 24 Apr 2018 16:22:07 -0700
changeset 787554 e52c3917b6d60026a990b0476540dee7f2b03e42
parent 787142 26e53729a10976f52e75efa44e17b5e054969fec
push id107745
push userbgrinstead@mozilla.com
push dateTue, 24 Apr 2018 23:23:22 +0000
reviewersMossop
bugs1454445
milestone61.0a1
Bug 1454445 - Put windowtype/positioning attributes on the webconsole html tag to support opening as top-level;r=Mossop We currently never open this as a top level window (it gets wrapped in browserconsole.xul), but we are working towards it. Putting these attributes on the <html> tag works similarly to putting them on the <window> tag in the XUL document and makes it easier to make progress on missing features. MozReview-Commit-ID: x6seka5wyf
devtools/client/webconsole/webconsole.html
--- a/devtools/client/webconsole/webconsole.html
+++ b/devtools/client/webconsole/webconsole.html
@@ -1,13 +1,15 @@
 <!-- This Source Code Form is subject to the terms of the Mozilla Public
    - License, v. 2.0. If a copy of the MPL was not distributed with this
    - file, You can obtain one at http://mozilla.org/MPL/2.0/. -->
 <!DOCTYPE html>
-<html dir="">
+<html dir=""
+      windowtype="devtools:webconsole"
+      width="900" height="350">
 <head>
   <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
     <link rel="stylesheet" href="chrome://devtools/skin/widgets.css"/>
     <link rel="stylesheet" href="chrome://devtools/skin/webconsole.css"/>
     <link rel="stylesheet" href="chrome://devtools/skin/components-frame.css"/>
     <link rel="stylesheet" href="resource://devtools/client/shared/components/reps/reps.css"/>
     <link rel="stylesheet" href="resource://devtools/client/shared/components/tabs/Tabs.css"/>
     <link rel="stylesheet" href="resource://devtools/client/shared/components/tabs/TabBar.css"/>