browser/devtools/styleinspector/cssruleview.xhtml
author Yeuk Hon Wong <yeukhon@acm.org>
Thu, 16 Jan 2014 08:21:30 -0500
changeset 163693 d470ebf7d063f6a8c20896ad1efb552beb1d5b3f
parent 132065 23422beddf5ed60c8ca738c7f4a95a7c5c2755fc
child 166202 ae4b3d2319b2abbc23c7476281a9f5899c1cfa31
permissions -rw-r--r--
Bug 918397 - CSP deprecation warning and dual CSP headers warning should be mutually exclusive. r=grobinson, r=sstamm

<?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-body">

  <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>