diff options
author | janekptacijarabaci <janekptacijarabaci@seznam.cz> | 2018-04-30 23:08:16 +0200 |
---|---|---|
committer | janekptacijarabaci <janekptacijarabaci@seznam.cz> | 2018-04-30 23:08:16 +0200 |
commit | 05e44d895f595307d5fbcd0b2b5256cfdccb5ea3 (patch) | |
tree | d2111d099ffae989c2b7fb12a2891109cdaf1dd9 /toolkit/components/viewsource/content/viewSource-content.js | |
parent | 490883811099db289db93051c1bf419680498452 (diff) | |
download | UXP-05e44d895f595307d5fbcd0b2b5256cfdccb5ea3.tar UXP-05e44d895f595307d5fbcd0b2b5256cfdccb5ea3.tar.gz UXP-05e44d895f595307d5fbcd0b2b5256cfdccb5ea3.tar.lz UXP-05e44d895f595307d5fbcd0b2b5256cfdccb5ea3.tar.xz UXP-05e44d895f595307d5fbcd0b2b5256cfdccb5ea3.zip |
Bug 1341589 - Set triggeringPrincipal on history entry for view-source loads
Diffstat (limited to 'toolkit/components/viewsource/content/viewSource-content.js')
-rw-r--r-- | toolkit/components/viewsource/content/viewSource-content.js | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/toolkit/components/viewsource/content/viewSource-content.js b/toolkit/components/viewsource/content/viewSource-content.js index fa1dd19f1..70d23eaa4 100644 --- a/toolkit/components/viewsource/content/viewSource-content.js +++ b/toolkit/components/viewsource/content/viewSource-content.js @@ -330,6 +330,8 @@ var ViewSourceContent = { .createInstance(Ci.nsISHEntry); shEntry.setURI(BrowserUtils.makeURI(viewSrcURL, null, null)); shEntry.setTitle(viewSrcURL); + let systemPrincipal = Services.scriptSecurityManager.getSystemPrincipal(); + shEntry.triggeringPrincipal = systemPrincipal; shEntry.loadType = Ci.nsIDocShellLoadInfo.loadHistory; shEntry.cacheKey = shEntrySource.cacheKey; docShell.QueryInterface(Ci.nsIWebNavigation) |