зеркало из https://github.com/mozilla/gecko-dev.git
Disable the security check in nsContentUtils::CanLoadImage() to see if that's what costs us 2% per yesterday.
This commit is contained in:
Родитель
e56b27e7a7
Коммит
96cd535991
|
@ -1696,6 +1696,7 @@ nsContentUtils::CanLoadImage(nsIURI* aURI, nsISupports* aContext,
|
||||||
|
|
||||||
nsresult rv;
|
nsresult rv;
|
||||||
|
|
||||||
|
#if 0 // Disabled to see if this is what cost us 2% perf
|
||||||
PRUint32 appType = nsIDocShell::APP_TYPE_UNKNOWN;
|
PRUint32 appType = nsIDocShell::APP_TYPE_UNKNOWN;
|
||||||
|
|
||||||
{
|
{
|
||||||
|
@ -1724,6 +1725,7 @@ nsContentUtils::CanLoadImage(nsIURI* aURI, nsISupports* aContext,
|
||||||
return PR_FALSE;
|
return PR_FALSE;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
#endif
|
||||||
|
|
||||||
PRInt16 decision = nsIContentPolicy::ACCEPT;
|
PRInt16 decision = nsIContentPolicy::ACCEPT;
|
||||||
|
|
||||||
|
|
Загрузка…
Ссылка в новой задаче