Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Merge branch 'jb51572' into 'master'
Ensure restored history entries have a triggeringPrincipal

See merge request mer-core/embedlite-components!92
  • Loading branch information
llewelld authored and rainemak committed Oct 29, 2020
2 parents 698504e + 6fb652e commit 3788865
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions jsscripts/embedhelper.js
Expand Up @@ -331,6 +331,7 @@ EmbedHelper.prototype = {
}
let historyEntry = Cc["@mozilla.org/browser/session-history-entry;1"].createInstance(Ci.nsISHEntry);
historyEntry.setURI(uri);
historyEntry.triggeringPrincipal = Services.scriptSecurityManager.createNullPrincipal({});
shist.addEntry(historyEntry, true);
});
if (index < 0) {
Expand Down

0 comments on commit 3788865

Please sign in to comment.