From bcd2e1bc8173ce98a9e40b25e21d75a5529a93a4 Mon Sep 17 00:00:00 2001 From: "timeless%mac.com" Date: Wed, 16 Jan 2002 06:40:47 +0000 Subject: [PATCH] Bug 117386 Crash changing themes [@ nsXBLPrototypeResources::FlushSkinSheets] r=dbradley sr=brendan git-svn-id: svn://10.0.0.236/trunk@112322 18797224-902f-48f8-a5cc-f745e15eee43 --- mozilla/content/xbl/src/nsXBLPrototypeResources.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/mozilla/content/xbl/src/nsXBLPrototypeResources.cpp b/mozilla/content/xbl/src/nsXBLPrototypeResources.cpp index 6d85214befe..8029d336ce1 100644 --- a/mozilla/content/xbl/src/nsXBLPrototypeResources.cpp +++ b/mozilla/content/xbl/src/nsXBLPrototypeResources.cpp @@ -137,7 +137,8 @@ nsXBLPrototypeResources::FlushSkinSheets() if (IsChromeURI(uri)) { PRBool complete; - loader->LoadAgentSheet(uri, *getter_AddRefs(newSheet), complete, nsnull); + if (NS_FAILED(loader->LoadAgentSheet(uri, *getter_AddRefs(newSheet), complete, nsnull)) + continue; } else newSheet = oldSheet;