Dispatch a PluginRemoved event for actual plugins.
parent
c52cc0239a
commit
f00dae7823
|
@ -715,11 +715,13 @@ nsObjectLoadingContent::UnbindFromTree(bool aDeep, bool aNullParent)
|
||||||
/// would keep the docshell around, but trash the frameloader
|
/// would keep the docshell around, but trash the frameloader
|
||||||
UnloadObject();
|
UnloadObject();
|
||||||
}
|
}
|
||||||
nsIDocument* doc = thisContent->GetComposedDoc();
|
if (mType == eType_Plugin) {
|
||||||
if (doc && doc->IsActive()) {
|
nsIDocument* doc = thisContent->GetComposedDoc();
|
||||||
|
if (doc && doc->IsActive()) {
|
||||||
nsCOMPtr<nsIRunnable> ev = new nsSimplePluginEvent(doc,
|
nsCOMPtr<nsIRunnable> ev = new nsSimplePluginEvent(doc,
|
||||||
NS_LITERAL_STRING("PluginRemoved"));
|
NS_LITERAL_STRING("PluginRemoved"));
|
||||||
NS_DispatchToCurrentThread(ev);
|
NS_DispatchToCurrentThread(ev);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue