diff --git a/chrome/src/nsChromeRegistry.cpp b/chrome/src/nsChromeRegistry.cpp index be34a2c4fcd..6dfe7484cc3 100644 --- a/chrome/src/nsChromeRegistry.cpp +++ b/chrome/src/nsChromeRegistry.cpp @@ -1651,6 +1651,9 @@ nsChromeRegistry::AddToCompositeDataSource(PRBool aUseProfile) NS_IMETHODIMP nsChromeRegistry::GetBackstopSheets(nsISupportsArray **aResult) { + if (!mScrollbarSheet) + LoadStyleSheet(getter_AddRefs(mScrollbarSheet), "chrome://global/skin/scrollbars.css"); + if(mScrollbarSheet || mUserSheet) { NS_NewISupportsArray(aResult); diff --git a/rdf/chrome/src/nsChromeRegistry.cpp b/rdf/chrome/src/nsChromeRegistry.cpp index be34a2c4fcd..6dfe7484cc3 100644 --- a/rdf/chrome/src/nsChromeRegistry.cpp +++ b/rdf/chrome/src/nsChromeRegistry.cpp @@ -1651,6 +1651,9 @@ nsChromeRegistry::AddToCompositeDataSource(PRBool aUseProfile) NS_IMETHODIMP nsChromeRegistry::GetBackstopSheets(nsISupportsArray **aResult) { + if (!mScrollbarSheet) + LoadStyleSheet(getter_AddRefs(mScrollbarSheet), "chrome://global/skin/scrollbars.css"); + if(mScrollbarSheet || mUserSheet) { NS_NewISupportsArray(aResult);