browser/devtools/styleinspector/cssruleview.xhtml
author David Rajchenbach-Teller <dteller@mozilla.com>
Fri, 17 Oct 2014 10:17:37 -0400
changeset 213384 09fbfd40895ad06d6168f1288dbb397969800f0d
parent 166196 ae4b3d2319b2abbc23c7476281a9f5899c1cfa31
child 239569 f8326cd3e1eef21a5ebf867258206c49f8292e17
permissions -rw-r--r--
Bug 1083989 - Browser Chrome mochitests should not export Promise.jsm to the scope. r=ted

<?xml version="1.0"?>
<!-- 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 window [
  <!ENTITY % inspectorDTD SYSTEM "chrome://browser/locale/devtools/styleinspector.dtd">
  %inspectorDTD;
]>


<html xmlns="http://www.w3.org/1999/xhtml"
      xmlns:xul="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"
      class="theme-sidebar">

  <head>
    <title>&ruleViewTitle;</title>
    <link rel="stylesheet" href="chrome://global/skin/global.css"  type="text/css"/>
    <link rel="stylesheet" href="chrome://browser/skin/devtools/common.css"  type="text/css"/>
    <link rel="stylesheet" href="chrome://browser/content/devtools/ruleview.css"  type="text/css"/>
    <link rel="stylesheet" href="chrome://browser/skin/devtools/ruleview.css"  type="text/css"/>

    <script type="application/javascript;version=1.8" src="theme-switching.js"/>

    <script type="application/javascript;version=1.8">
      window.setPanel = function(panel, iframe) {
        let {devtools} = Components.utils.import("resource://gre/modules/devtools/Loader.jsm", {});
        let inspector = devtools.require("devtools/styleinspector/style-inspector");
        this.ruleview = new inspector.RuleViewTool(panel, window, iframe);
      }
      window.onunload = function() {
        if (this.ruleview) {
          this.ruleview.destroy();
        }
      }
    </script>
  </head>
</html>