diff options
author | Gaming4JC <g4jc@bulletmail.org> | 2019-03-18 18:39:07 -0400 |
---|---|---|
committer | Gaming4JC <g4jc@bulletmail.org> | 2019-03-18 20:53:54 -0400 |
commit | 28a75e15712ac549802381e95e513de2a40a27b1 (patch) | |
tree | 9ca3e687f4a1344283f840164530f9961d055479 /devtools/server/actors | |
parent | 71d9610bd969e4dc0bbe763270b101815c6ce6fe (diff) | |
download | uxp-28a75e15712ac549802381e95e513de2a40a27b1.tar.gz |
Issue mcp-graveyard/UXP#756 - Remove Contextual Identity from DevTools
Diffstat (limited to 'devtools/server/actors')
-rw-r--r-- | devtools/server/actors/stylesheets.js | 13 |
1 files changed, 1 insertions, 12 deletions
diff --git a/devtools/server/actors/stylesheets.js b/devtools/server/actors/stylesheets.js index 7fcbca8c48..f484a59765 100644 --- a/devtools/server/actors/stylesheets.js +++ b/devtools/server/actors/stylesheets.js @@ -451,21 +451,10 @@ var StyleSheetActor = protocol.ActorClassWithSpec(styleSheetSpec, { let options = { loadFromCache: true, policy: Ci.nsIContentPolicy.TYPE_INTERNAL_STYLESHEET, + window: this.window, charset: this._getCSSCharset() }; - // Bug 1282660 - We use the system principal to load the default internal - // stylesheets instead of the content principal since such stylesheets - // require system principal to load. At meanwhile, we strip the loadGroup - // for preventing the assertion of the userContextId mismatching. - // The default internal stylesheets load from the 'resource:' URL. - // Bug 1287607, 1291321 - 'chrome' and 'file' protocols should also be handled in the - // same way. - if (!/^(chrome|file|resource):\/\//.test(this.href)) { - options.window = this.window; - options.principal = this.document.nodePrincipal; - } - return fetch(this.href, options).then(({ content }) => { this.text = content; return content; |