Bug 1065153 - Support call URLs with guest or FxA hawk session types, r=MattN

This commit is contained in:
Dan Mosedale
2014-09-18 10:40:35 -07:00
parent 54248e7e75
commit 367c884525
7 changed files with 207 additions and 61 deletions

View File

@@ -5,7 +5,16 @@
const {classes: Cc, interfaces: Ci, utils: Cu} = Components;
Cu.importGlobalProperties(["indexedDB"]);
// Make it possible to load LoopStorage.jsm in xpcshell tests
try {
Cu.importGlobalProperties(["indexedDB"]);
} catch (ex) {
// don't write this is out in xpcshell, since it's expected there
if (typeof window !== 'undefined' && "console" in window) {
console.log("Failed to import indexedDB; if this isn't a unit test," +
" something is wrong", ex);
}
}
Cu.import("resource://gre/modules/Services.jsm");
Cu.import("resource://gre/modules/XPCOMUtils.jsm");