Backed out changeset 8b4e4083639e (bug 1171931) for B2G debug emulator bustage.
This commit is contained in:
@@ -1856,7 +1856,7 @@ PluginInstanceParent::SubclassPluginWindow(HWND aWnd)
|
||||
return;
|
||||
}
|
||||
|
||||
if (XRE_IsContentProcess()) {
|
||||
if (XRE_GetProcessType() == GeckoProcessType_Content) {
|
||||
if (!aWnd) {
|
||||
NS_WARNING("PluginInstanceParent::SubclassPluginWindow unexpected null window");
|
||||
return;
|
||||
@@ -1886,7 +1886,7 @@ PluginInstanceParent::SubclassPluginWindow(HWND aWnd)
|
||||
void
|
||||
PluginInstanceParent::UnsubclassPluginWindow()
|
||||
{
|
||||
if (XRE_IsContentProcess()) {
|
||||
if (XRE_GetProcessType() == GeckoProcessType_Content) {
|
||||
if (mPluginHWND) {
|
||||
// Remove 'this' from the plugin list safely
|
||||
nsAutoPtr<PluginInstanceParent> tmp;
|
||||
|
||||
Reference in New Issue
Block a user