Bug 1369801 - dt-addon: hack to get real window from sandbox draft
authorJulian Descottes <jdescottes@mozilla.com>
Fri, 09 Jun 2017 11:55:40 +0200
changeset 606672 ea3f8a377292923d48c1e66f26f5bd07bd910964
parent 606671 205cea4075c95c7702176065af80b42c3c27e0c3
child 606673 02499c95a51952a1aa198763422c03a554a7970e
push id67765
push userjdescottes@mozilla.com
push dateTue, 11 Jul 2017 08:07:43 +0000
bugs1369801
milestone56.0a1
Bug 1369801 - dt-addon: hack to get real window from sandbox MozReview-Commit-ID: LxDNfDiOso3
devtools/client/webconsole/net/main.js
--- a/devtools/client/webconsole/net/main.js
+++ b/devtools/client/webconsole/net/main.js
@@ -35,17 +35,17 @@ var styleSheets = [
   "resource://devtools/client/webconsole/net/components/response-tab.css"
 ];
 
 // Load theme stylesheets into the Console frame. This should be
 // done automatically by UI Components as soon as we have consensus
 // on the right CSS strategy FIXME.
 // It would also be nice to include them using @import.
 styleSheets.forEach(url => {
-  loadSheet(this, url, "author");
+  loadSheet(this.document.defaultView, url, "author");
 });
 
 // Localization API used by React components
 // accessing strings from *.properties file.
 // Example:
 //   let localizedString = Locale.$STR('string-key');
 //
 // Resources: