diff options
author | Moonchild <mcwerewolf@wolfbeast.com> | 2019-03-25 18:03:03 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-03-25 18:03:03 +0100 |
commit | aa816b3d848d38c83204c3dd1a1d0b86013978b4 (patch) | |
tree | e96cabae4a274f8bf5a53c12a9b200fbf47d74f1 /devtools/server | |
parent | 24b1f14e0264152242a260dbc7e48b62206d1b17 (diff) | |
parent | 1413b3d6fd7297014d35d862abc792dc30c1ec24 (diff) | |
download | UXP-aa816b3d848d38c83204c3dd1a1d0b86013978b4.tar UXP-aa816b3d848d38c83204c3dd1a1d0b86013978b4.tar.gz UXP-aa816b3d848d38c83204c3dd1a1d0b86013978b4.tar.lz UXP-aa816b3d848d38c83204c3dd1a1d0b86013978b4.tar.xz UXP-aa816b3d848d38c83204c3dd1a1d0b86013978b4.zip |
Merge pull request #834 from g4jc/remove_contextid
Issue #756 - Remove Contextual Identity
Diffstat (limited to 'devtools/server')
-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 7fcbca8c4..f484a5976 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; |