Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Merge branch 'jb54249' into 'master'
Set history item triggering principal to system

See merge request mer-core/embedlite-components!127
  • Loading branch information
llewelld committed May 24, 2021
2 parents d347c95 + 010f93a commit 82bd88a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion jsscripts/embedhelper.js
Expand Up @@ -344,7 +344,7 @@ EmbedHelper.prototype = {
}
let historyEntry = Cc["@mozilla.org/browser/session-history-entry;1"].createInstance(Ci.nsISHEntry);
historyEntry.setURI(uri);
historyEntry.triggeringPrincipal = Services.scriptSecurityManager.createNullPrincipal({});
historyEntry.triggeringPrincipal = Services.scriptSecurityManager.getSystemPrincipal();
shist.addEntry(historyEntry, true);
});
if (index < 0) {
Expand Down

0 comments on commit 82bd88a

Please sign in to comment.