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
|
bool
|
||||||
PluginModuleChromeParent::ShouldContinueFromReplyTimeout()
|
PluginModuleChromeParent::ShouldContinueFromReplyTimeout()
|
||||||
{
|
{
|
||||||
|
if (mIsFlashPlugin) {
|
||||||
|
MessageLoop::current()->PostTask(
|
||||||
|
FROM_HERE,
|
||||||
|
mTaskFactory.NewRunnableMethod(
|
||||||
|
&PluginModuleChromeParent::NotifyFlashHang));
|
||||||
|
}
|
||||||
|
|
||||||
#ifdef XP_WIN
|
#ifdef XP_WIN
|
||||||
if (LaunchHangUI()) {
|
if (LaunchHangUI()) {
|
||||||
return true;
|
return true;
|
||||||
@@ -1279,6 +1286,15 @@ PluginModuleChromeParent::ActorDestroy(ActorDestroyReason why)
|
|||||||
PluginModuleParent::ActorDestroy(why);
|
PluginModuleParent::ActorDestroy(why);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
void
|
||||||
|
PluginModuleParent::NotifyFlashHang()
|
||||||
|
{
|
||||||
|
nsCOMPtr<nsIObserverService> obs = services::GetObserverService();
|
||||||
|
if (obs) {
|
||||||
|
obs->NotifyObservers(nullptr, "flash-plugin-hang", nullptr);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
void
|
void
|
||||||
PluginModuleParent::NotifyPluginCrashed()
|
PluginModuleParent::NotifyPluginCrashed()
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -259,6 +259,7 @@ protected:
|
|||||||
void InitAsyncSurrogates();
|
void InitAsyncSurrogates();
|
||||||
|
|
||||||
protected:
|
protected:
|
||||||
|
void NotifyFlashHang();
|
||||||
void NotifyPluginCrashed();
|
void NotifyPluginCrashed();
|
||||||
void OnInitFailure();
|
void OnInitFailure();
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user