Bug 1133003 part A - send a global observer notification when Flash hangs, r=aklotz
This commit is contained in:
@@ -897,6 +897,13 @@ CreateFlashMinidump(DWORD processId, ThreadId childThread,
|
||||
bool
|
||||
PluginModuleChromeParent::ShouldContinueFromReplyTimeout()
|
||||
{
|
||||
if (mIsFlashPlugin) {
|
||||
MessageLoop::current()->PostTask(
|
||||
FROM_HERE,
|
||||
mTaskFactory.NewRunnableMethod(
|
||||
&PluginModuleChromeParent::NotifyFlashHang));
|
||||
}
|
||||
|
||||
#ifdef XP_WIN
|
||||
if (LaunchHangUI()) {
|
||||
return true;
|
||||
@@ -1279,6 +1286,15 @@ PluginModuleChromeParent::ActorDestroy(ActorDestroyReason why)
|
||||
PluginModuleParent::ActorDestroy(why);
|
||||
}
|
||||
|
||||
void
|
||||
PluginModuleParent::NotifyFlashHang()
|
||||
{
|
||||
nsCOMPtr<nsIObserverService> obs = services::GetObserverService();
|
||||
if (obs) {
|
||||
obs->NotifyObservers(nullptr, "flash-plugin-hang", nullptr);
|
||||
}
|
||||
}
|
||||
|
||||
void
|
||||
PluginModuleParent::NotifyPluginCrashed()
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user