Skip to content

Commit

Permalink
Issue #1787 - Remove nsIAppsService, mozIApplication and mozapp data …
Browse files Browse the repository at this point in the history
…cleanup.
  • Loading branch information
wolfbeast committed Nov 20, 2024
1 parent 32dd996 commit 25d6683
Show file tree
Hide file tree
Showing 43 changed files with 5 additions and 1,032 deletions.
9 changes: 2 additions & 7 deletions caps/BasePrincipal.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -624,13 +624,8 @@ BasePrincipal::GetOriginSuffix(nsACString& aOriginAttributes)
NS_IMETHODIMP
BasePrincipal::GetAppStatus(uint16_t* aAppStatus)
{
if (AppId() == nsIScriptSecurityManager::UNKNOWN_APP_ID) {
NS_WARNING("Asking for app status on a principal with an unknown app id");
*aAppStatus = nsIPrincipal::APP_STATUS_NOT_INSTALLED;
return NS_OK;
}

*aAppStatus = nsScriptSecurityManager::AppStatusForPrincipal(this);
// TODO: Remove GetAppStatus.
*aAppStatus = nsIPrincipal::APP_STATUS_NOT_INSTALLED;
return NS_OK;
}

Expand Down
2 changes: 0 additions & 2 deletions caps/nsPrincipal.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -31,8 +31,6 @@
#include "mozilla/Preferences.h"
#include "mozilla/HashFunctions.h"

#include "nsIAppsService.h"

using namespace mozilla;

static bool gCodeBasePrincipalSupport = false;
Expand Down
8 changes: 0 additions & 8 deletions caps/nsScriptSecurityManager.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@

#include "xpcpublic.h"
#include "XPCWrapper.h"
#include "nsIAppsService.h"
#include "nsIInputStreamChannel.h"
#include "nsILoadContext.h"
#include "nsIServiceManager.h"
Expand Down Expand Up @@ -55,7 +54,6 @@
#include "nsIChromeRegistry.h"
#include "nsIContentSecurityPolicy.h"
#include "nsIAsyncVerifyRedirectCallback.h"
#include "mozIApplication.h"
#include "mozilla/Preferences.h"
#include "mozilla/dom/BindingUtils.h"
#include "mozilla/dom/ContentParent.h"
Expand Down Expand Up @@ -240,12 +238,6 @@ nsScriptSecurityManager::SecurityHashURI(nsIURI* aURI)
return NS_SecurityHashURI(aURI);
}

uint16_t
nsScriptSecurityManager::AppStatusForPrincipal(nsIPrincipal *aPrin)
{
return nsIPrincipal::APP_STATUS_NOT_INSTALLED;
}

/*
* GetChannelResultPrincipal will return the principal that the resource
* returned by this channel will use. For example, if the resource is in
Expand Down
1 change: 0 additions & 1 deletion docshell/base/nsDocShell.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -193,7 +193,6 @@
#include "nsSandboxFlags.h"
#include "nsXULAppAPI.h"
#include "nsDOMNavigationTiming.h"
#include "nsIAppsService.h"
#include "nsDSURIContentListener.h"
#include "nsDocShellLoadTypes.h"
#include "nsDocShellTransferableHooks.h"
Expand Down
114 changes: 0 additions & 114 deletions dom/apps/AppsService.js

This file was deleted.

2 changes: 0 additions & 2 deletions dom/apps/AppsService.manifest

This file was deleted.

Loading

0 comments on commit 25d6683

Please sign in to comment.