mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 777135 - Part 1: Add nice C++ version of nsIPrincipal::GetAppStatus. r=mounir
--HG-- extra : rebase_source : 6150a2b708faa41f1f6c7723260fc52444b7ea8d
This commit is contained in:
parent
4dcffa2862
commit
ba21663f76
@ -240,6 +240,18 @@ interface nsIPrincipal : nsISerializable
|
||||
*/
|
||||
readonly attribute unsigned short appStatus;
|
||||
|
||||
%{C++
|
||||
PRUint16 GetAppStatus()
|
||||
{
|
||||
PRUint16 appStatus;
|
||||
nsresult rv = GetAppStatus(&appStatus);
|
||||
if (NS_FAILED(rv)) {
|
||||
return APP_STATUS_NOT_INSTALLED;
|
||||
}
|
||||
return appStatus;
|
||||
}
|
||||
%}
|
||||
|
||||
/**
|
||||
* Returns the app id the principal is in, or returns
|
||||
* nsIScriptSecurityManager::NO_APP_ID if this principal isn't part of an
|
||||
|
Loading…
Reference in New Issue
Block a user