summaryrefslogtreecommitdiffstats
path: root/toolkit
diff options
context:
space:
mode:
authorjanekptacijarabaci <janekptacijarabaci@seznam.cz>2018-04-30 23:05:55 +0200
committerjanekptacijarabaci <janekptacijarabaci@seznam.cz>2018-04-30 23:05:55 +0200
commit3dec348f43b3633cdcd1cfa52bc24b0fba45cb84 (patch)
treeb1d1415a87d7d049d7ebbae4c0e7953045cbfe7a /toolkit
parent2cb9f3ceb89038721eb9528dcc56dd33b66b0c85 (diff)
downloadUXP-3dec348f43b3633cdcd1cfa52bc24b0fba45cb84.tar
UXP-3dec348f43b3633cdcd1cfa52bc24b0fba45cb84.tar.gz
UXP-3dec348f43b3633cdcd1cfa52bc24b0fba45cb84.tar.lz
UXP-3dec348f43b3633cdcd1cfa52bc24b0fba45cb84.tar.xz
UXP-3dec348f43b3633cdcd1cfa52bc24b0fba45cb84.zip
Bug 1307736 - Store triggeringPrincipal with all history entries
Diffstat (limited to 'toolkit')
-rw-r--r--toolkit/modules/sessionstore/Utils.jsm5
1 files changed, 5 insertions, 0 deletions
diff --git a/toolkit/modules/sessionstore/Utils.jsm b/toolkit/modules/sessionstore/Utils.jsm
index 863bca6f5..25b75c71b 100644
--- a/toolkit/modules/sessionstore/Utils.jsm
+++ b/toolkit/modules/sessionstore/Utils.jsm
@@ -16,12 +16,17 @@ Cu.import("resource://gre/modules/XPCOMUtils.jsm", this);
XPCOMUtils.defineLazyServiceGetter(this, "serializationHelper",
"@mozilla.org/network/serialization-helper;1",
"nsISerializationHelper");
+XPCOMUtils.defineLazyGetter(this, "SERIALIZED_SYSTEMPRINCIPAL", function() {
+ return Utils.serializePrincipal(Services.scriptSecurityManager.getSystemPrincipal());
+});
function debug(msg) {
Services.console.logStringMessage("Utils: " + msg);
}
this.Utils = Object.freeze({
+ get SERIALIZED_SYSTEMPRINCIPAL() { return SERIALIZED_SYSTEMPRINCIPAL; },
+
makeURI: function (url) {
return Services.io.newURI(url, null, null);
},