From 10fb778c7b993102bffb3bc37a7ce5afaf1b10d3 Mon Sep 17 00:00:00 2001 From: "roc+@cs.cmu.edu" Date: Sat, 22 Dec 2007 00:56:57 -0800 Subject: [PATCH] Bug 409337. Discard invalidation requests made by hidden plugins. r=josh,sr=jst,a=beltzner --- layout/generic/nsObjectFrame.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/layout/generic/nsObjectFrame.cpp b/layout/generic/nsObjectFrame.cpp index 527834df4aaa..e6d51790698b 100644 --- a/layout/generic/nsObjectFrame.cpp +++ b/layout/generic/nsObjectFrame.cpp @@ -2024,7 +2024,7 @@ NS_IMETHODIMP nsPluginInstanceOwner::InvalidateRect(nsPluginRect *invalidRect) { nsresult rv = NS_ERROR_FAILURE; - if (mOwner && invalidRect) { + if (mOwner && invalidRect && mWidgetVisible) { //no reference count on view nsIView* view = mOwner->GetView();