mirror of
https://repo.dactyloidae.xyz/Dactyloidae/UXP.git
synced 2026-10-01 21:07:30 +09:00
Bug 1341589 - Set triggeringPrincipal on history entry for view-source loads
This commit is contained in:
parent
55c354f1c0
commit
582f93fe09
1 changed files with 2 additions and 0 deletions
|
|
@ -330,6 +330,8 @@ var ViewSourceContent = {
|
||||||
.createInstance(Ci.nsISHEntry);
|
.createInstance(Ci.nsISHEntry);
|
||||||
shEntry.setURI(BrowserUtils.makeURI(viewSrcURL, null, null));
|
shEntry.setURI(BrowserUtils.makeURI(viewSrcURL, null, null));
|
||||||
shEntry.setTitle(viewSrcURL);
|
shEntry.setTitle(viewSrcURL);
|
||||||
|
let systemPrincipal = Services.scriptSecurityManager.getSystemPrincipal();
|
||||||
|
shEntry.triggeringPrincipal = systemPrincipal;
|
||||||
shEntry.loadType = Ci.nsIDocShellLoadInfo.loadHistory;
|
shEntry.loadType = Ci.nsIDocShellLoadInfo.loadHistory;
|
||||||
shEntry.cacheKey = shEntrySource.cacheKey;
|
shEntry.cacheKey = shEntrySource.cacheKey;
|
||||||
docShell.QueryInterface(Ci.nsIWebNavigation)
|
docShell.QueryInterface(Ci.nsIWebNavigation)
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue