mirror of
https://repo.dactyloidae.xyz/Dactyloidae/UXP.git
synced 2026-09-07 16:28:38 +09:00
Issue #1787 - Remove nsIAppsService, mozIApplication and mozapp data cleanup.
This commit is contained in:
parent
ef5f052d97
commit
ff89fee91d
43 changed files with 5 additions and 1032 deletions
|
|
@ -1766,16 +1766,6 @@ SpecialPowersAPI.prototype = {
|
|||
// It's an URL.
|
||||
let uri = Services.io.newURI(arg, null, null);
|
||||
principal = secMan.createCodebasePrincipal(uri, {});
|
||||
} else if (arg.manifestURL) {
|
||||
// It's a thing representing an app.
|
||||
let appsSvc = Cc["@mozilla.org/AppsService;1"]
|
||||
.getService(Ci.nsIAppsService)
|
||||
let app = appsSvc.getAppByManifestURL(arg.manifestURL);
|
||||
if (!app) {
|
||||
throw "No app for this manifest!";
|
||||
}
|
||||
|
||||
principal = app.principal;
|
||||
} else if (arg.nodePrincipal) {
|
||||
// It's a document.
|
||||
// In some tests the arg is a wrapped DOM element, so we unwrap it first.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue