Skip to content
This repository has been archived by the owner on Feb 26, 2022. It is now read-only.

Commit

Permalink
Bug 1165272 - Part 3: replace getCodebasePrincipal. r=bholley
Browse files Browse the repository at this point in the history
  • Loading branch information
allstarschh authored and Mossop committed Sep 4, 2015
1 parent 40232ea commit 4d93b54
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions lib/sdk/indexed-db.js
Original file line number Diff line number Diff line change
Expand Up @@ -32,9 +32,9 @@ let principaluri = Cc["@mozilla.org/network/io-service;1"].
getService(Ci.nsIIOService).
newURI(PSEUDOURI, null, null);

let principal = Cc["@mozilla.org/scriptsecuritymanager;1"].
getService(Ci.nsIScriptSecurityManager).
getCodebasePrincipal(principaluri);
let ssm = Cc["@mozilla.org/scriptsecuritymanager;1"]
.getService(Ci.nsIScriptSecurityManager);
let principal = ssm.createCodebasePrincipal(principaluri, {});

function toArray(args) {
return Array.prototype.slice.call(args);
Expand Down

0 comments on commit 4d93b54

Please sign in to comment.