Dispatch a PluginRemoved event for actual plugins.

master
Fedor 2019-09-05 20:03:56 +03:00
parent c52cc0239a
commit f00dae7823
1 changed files with 4 additions and 2 deletions

View File

@ -715,6 +715,7 @@ nsObjectLoadingContent::UnbindFromTree(bool aDeep, bool aNullParent)
/// would keep the docshell around, but trash the frameloader
UnloadObject();
}
if (mType == eType_Plugin) {
nsIDocument* doc = thisContent->GetComposedDoc();
if (doc && doc->IsActive()) {
nsCOMPtr<nsIRunnable> ev = new nsSimplePluginEvent(doc,
@ -722,6 +723,7 @@ nsObjectLoadingContent::UnbindFromTree(bool aDeep, bool aNullParent)
NS_DispatchToCurrentThread(ev);
}
}
}
nsObjectLoadingContent::nsObjectLoadingContent()
: mType(eType_Loading)