mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-08 19:04:45 +00:00
133666 - skin switch on restart not completely performed. r=ben sr=hyatt
This commit is contained in:
parent
4d35fe5527
commit
039011de8b
@ -2925,10 +2925,6 @@ nsresult nsChromeRegistry::LoadProfileDataSource()
|
||||
rv = AddToCompositeDataSource(PR_TRUE);
|
||||
if (NS_FAILED(rv)) return rv;
|
||||
|
||||
// We have to flush the chrome cache!
|
||||
rv = FlushCaches();
|
||||
if (NS_FAILED(rv)) return rv;
|
||||
|
||||
// XXX this sucks ASS. This is a temporary hack until we get
|
||||
// around to fixing the skin switching bugs.
|
||||
// Select and Remove skins based on a pref set in a previous session.
|
||||
@ -2943,6 +2939,10 @@ nsresult nsChromeRegistry::LoadProfileDataSource()
|
||||
}
|
||||
}
|
||||
|
||||
// We have to flush the chrome cache!
|
||||
rv = FlushCaches();
|
||||
if (NS_FAILED(rv)) return rv;
|
||||
|
||||
rv = LoadStyleSheet(getter_AddRefs(mScrollbarSheet), NS_LITERAL_CSTRING("chrome://global/skin/scrollbars.css"));
|
||||
// This must always be the last line of profile initialization!
|
||||
|
||||
|
@ -2925,10 +2925,6 @@ nsresult nsChromeRegistry::LoadProfileDataSource()
|
||||
rv = AddToCompositeDataSource(PR_TRUE);
|
||||
if (NS_FAILED(rv)) return rv;
|
||||
|
||||
// We have to flush the chrome cache!
|
||||
rv = FlushCaches();
|
||||
if (NS_FAILED(rv)) return rv;
|
||||
|
||||
// XXX this sucks ASS. This is a temporary hack until we get
|
||||
// around to fixing the skin switching bugs.
|
||||
// Select and Remove skins based on a pref set in a previous session.
|
||||
@ -2943,6 +2939,10 @@ nsresult nsChromeRegistry::LoadProfileDataSource()
|
||||
}
|
||||
}
|
||||
|
||||
// We have to flush the chrome cache!
|
||||
rv = FlushCaches();
|
||||
if (NS_FAILED(rv)) return rv;
|
||||
|
||||
rv = LoadStyleSheet(getter_AddRefs(mScrollbarSheet), NS_LITERAL_CSTRING("chrome://global/skin/scrollbars.css"));
|
||||
// This must always be the last line of profile initialization!
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user