Bug 553359. Cache whether the PresContext is chrome or not. r=bzbarsky

This commit is contained in:
Timothy Nikkel
2010-04-10 13:03:40 -05:00
parent 8860216b72
commit f5b02612f1
3 changed files with 30 additions and 4 deletions

View File

@@ -2415,6 +2415,12 @@ nsDocShell::SetItemType(PRInt32 aItemType)
// disable auth prompting for anything but content
mAllowAuth = mItemType == typeContent;
nsRefPtr<nsPresContext> presContext = nsnull;
GetPresContext(getter_AddRefs(presContext));
if (presContext) {
presContext->UpdateIsChromeCache();
}
return NS_OK;
}