mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 1073536 - Allow checking if MOZILLA_OFFICIAL is set via nsIXULRuntime. r=ted
This commit is contained in:
parent
33c269c1d6
commit
08857086a7
@ -973,6 +973,17 @@ nsXULAppInfo::GetDistributionID(nsACString& aResult)
|
||||
return NS_OK;
|
||||
}
|
||||
|
||||
NS_IMETHODIMP
|
||||
nsXULAppInfo::GetIsOfficial(bool* aResult)
|
||||
{
|
||||
#ifdef MOZILLA_OFFICIAL
|
||||
*aResult = true;
|
||||
#else
|
||||
*aResult = false;
|
||||
#endif
|
||||
return NS_OK;
|
||||
}
|
||||
|
||||
#ifdef XP_WIN
|
||||
// Matches the enum in WinNT.h for the Vista SDK but renamed so that we can
|
||||
// safely build with the Vista SDK and without it.
|
||||
|
@ -23,7 +23,7 @@ bool BrowserTabsRemoteAutostart();
|
||||
* stable/frozen, please contact Benjamin Smedberg.
|
||||
*/
|
||||
|
||||
[scriptable, uuid(588831D6-7576-4CEA-B368-3AAB76CD9FCC)]
|
||||
[scriptable, uuid(15b0e6cf-83da-4672-814e-cfa0b06ba31b)]
|
||||
interface nsIXULRuntime : nsISupports
|
||||
{
|
||||
/**
|
||||
@ -151,4 +151,9 @@ interface nsIXULRuntime : nsISupports
|
||||
* The distribution ID for this build (MOZ_DISTRIBUTION_ID).
|
||||
*/
|
||||
readonly attribute AUTF8String distributionID;
|
||||
|
||||
/**
|
||||
* True if this is an official build (MOZILLA_OFFICIAL).
|
||||
*/
|
||||
readonly attribute boolean isOfficial;
|
||||
};
|
||||
|
Loading…
Reference in New Issue
Block a user