From 7e680fa911207c2ab6db9b60218baff5024640e5 Mon Sep 17 00:00:00 2001 From: Robert O'Callahan Date: Tue, 21 Dec 2010 15:03:00 -0800 Subject: [PATCH] Bug 617718. Don't process invalidates if we're stopping. r=bsmedberg a=bsmedberg --- modules/plugin/base/src/nsNPAPIPluginInstance.cpp | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/modules/plugin/base/src/nsNPAPIPluginInstance.cpp b/modules/plugin/base/src/nsNPAPIPluginInstance.cpp index afd748db0e71..6354f9d0fd53 100644 --- a/modules/plugin/base/src/nsNPAPIPluginInstance.cpp +++ b/modules/plugin/base/src/nsNPAPIPluginInstance.cpp @@ -1126,6 +1126,9 @@ nsNPAPIPluginInstance::GetDOMElement(nsIDOMElement* *result) NS_IMETHODIMP nsNPAPIPluginInstance::InvalidateRect(NPRect *invalidRect) { + if (RUNNING != mRunning) + return NS_OK; + nsCOMPtr owner; GetOwner(getter_AddRefs(owner)); if (!owner) @@ -1137,6 +1140,9 @@ nsNPAPIPluginInstance::InvalidateRect(NPRect *invalidRect) NS_IMETHODIMP nsNPAPIPluginInstance::InvalidateRegion(NPRegion invalidRegion) { + if (RUNNING != mRunning) + return NS_OK; + nsCOMPtr owner; GetOwner(getter_AddRefs(owner)); if (!owner) @@ -1148,6 +1154,9 @@ nsNPAPIPluginInstance::InvalidateRegion(NPRegion invalidRegion) NS_IMETHODIMP nsNPAPIPluginInstance::ForceRedraw() { + if (RUNNING != mRunning) + return NS_OK; + nsCOMPtr owner; GetOwner(getter_AddRefs(owner)); if (!owner)