Bug 553359. Cache whether the PresContext is chrome or not. r=bzbarsky
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user