зеркало из https://github.com/mozilla/gecko-dev.git
implemented NavigatorImpl::JavaEnabled()
This commit is contained in:
Родитель
fe7b181a91
Коммит
420b774709
|
@ -56,6 +56,10 @@
|
|||
#include "nsScreen.h"
|
||||
#include "nsHistory.h"
|
||||
|
||||
#if defined(OJI)
|
||||
#include "nsIJVMManager.h"
|
||||
#endif
|
||||
|
||||
#include "nsMimeTypeArray.h"
|
||||
#include "nsPluginArray.h"
|
||||
|
||||
|
@ -2203,5 +2207,18 @@ NS_IMETHODIMP
|
|||
NavigatorImpl::JavaEnabled(PRBool* aReturn)
|
||||
{
|
||||
*aReturn = PR_FALSE;
|
||||
return NS_OK;
|
||||
|
||||
#if defined(OJI)
|
||||
nsIJVMManager* manager = NULL;
|
||||
nsresult rv = nsServiceManager::GetService(nsIJVMManager::GetCID(),
|
||||
nsIJVMManager::GetIID(),
|
||||
(nsISupports **)&manager);
|
||||
|
||||
if (rv == NS_OK && manager != NULL) {
|
||||
rv = manager->IsJavaEnabled(aReturn);
|
||||
nsServiceManager::ReleaseService(nsIJVMManager::GetCID(), manager);
|
||||
}
|
||||
#endif
|
||||
|
||||
return rv;
|
||||
}
|
||||
|
|
Загрузка…
Ссылка в новой задаче