mirror of
https://repo.dactyloidae.xyz/Dactyloidae/UXP.git
synced 2026-09-10 10:18:38 +09:00
Bug 1307736 - Store triggeringPrincipal with all history entries
This commit is contained in:
parent
9fca6b7ced
commit
46ef98acf7
4 changed files with 22 additions and 6 deletions
|
|
@ -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);
|
||||
},
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue