зеркало из https://github.com/mozilla/pjs.git
Fixing Mach-O part of bug 159016, IME with Flash 6
This commit is contained in:
Родитель
dabd1ed2fa
Коммит
f913a3f7c2
|
@ -103,6 +103,10 @@ EXTRA_DSO_LDOPTS = \
|
|||
$(MOZ_UNICHARUTIL_LIBS) \
|
||||
$(NULL)
|
||||
|
||||
ifneq (,$(filter mac cocoa,$(MOZ_WIDGET_TOOLKIT)))
|
||||
EXTRA_DSO_LDOPTS += $(TK_LIBS)
|
||||
endif
|
||||
|
||||
include $(topsrcdir)/config/rules.mk
|
||||
|
||||
DEFINES += -D_IMPL_NS_PLUGIN
|
||||
|
|
|
@ -176,8 +176,13 @@
|
|||
|
||||
#if defined(XP_MAC) && TARGET_CARBON
|
||||
#include "nsIClassicPluginFactory.h"
|
||||
#endif
|
||||
|
||||
#if defined(XP_MAC) || defined (XP_MACOSX)
|
||||
#if TARGET_CARBON
|
||||
#include <TextServices.h> // for ::UseInputWindow()
|
||||
#endif
|
||||
#endif
|
||||
|
||||
// this is the name of the directory which will be created
|
||||
// to cache temporary files.
|
||||
|
@ -4608,7 +4613,8 @@ NS_IMETHODIMP nsPluginHostImpl::GetPluginFactory(const char *aMimeType, nsIPlugi
|
|||
}
|
||||
}
|
||||
|
||||
#if defined(XP_MAC) && TARGET_CARBON
|
||||
#if defined(XP_MAC) || defined (XP_MACOSX)
|
||||
#if TARGET_CARBON
|
||||
/* Flash 6.0 r50 and older on Mac has a bug which calls ::UseInputWindow(NULL, true)
|
||||
which turn off all our inline IME. Turn it back after the plugin
|
||||
initializtion and hope that future versions will be fixed. See bug 159016
|
||||
|
@ -4620,6 +4626,7 @@ NS_IMETHODIMP nsPluginHostImpl::GetPluginFactory(const char *aMimeType, nsIPlugi
|
|||
::UseInputWindow(NULL, false);
|
||||
}
|
||||
}
|
||||
#endif
|
||||
#endif
|
||||
|
||||
if (plugin != nsnull)
|
||||
|
|
Загрузка…
Ссылка в новой задаче