зеркало из https://github.com/mozilla/gecko-dev.git
#if 0 out mstoltz's changes, which seem to cause tinderbox to hang on test #2
This commit is contained in:
Родитель
9d7267c466
Коммит
5e98f0dd1e
|
@ -3374,6 +3374,7 @@ HTMLContentSink::ProcessAREATag(const nsIParserNode& aNode)
|
|||
void
|
||||
HTMLContentSink::ProcessBaseHref(const nsString& aBaseHref)
|
||||
{
|
||||
#if 0
|
||||
//-- Make sure this page is allowed to load this URL
|
||||
nsresult rv;
|
||||
NS_WITH_SERVICE(nsIScriptSecurityManager, securityManager,
|
||||
|
@ -3384,6 +3385,7 @@ HTMLContentSink::ProcessBaseHref(const nsString& aBaseHref)
|
|||
if (NS_FAILED(rv)) return;
|
||||
rv = securityManager->CheckLoadURI(mDocumentBaseURL, baseHrefURI, PR_FALSE);
|
||||
if (NS_FAILED(rv)) return;
|
||||
#endif
|
||||
|
||||
if (nsnull == mBody) { // still in real HEAD
|
||||
mHTMLDocument->SetBaseURL(aBaseHref);
|
||||
|
|
|
@ -3374,6 +3374,7 @@ HTMLContentSink::ProcessAREATag(const nsIParserNode& aNode)
|
|||
void
|
||||
HTMLContentSink::ProcessBaseHref(const nsString& aBaseHref)
|
||||
{
|
||||
#if 0
|
||||
//-- Make sure this page is allowed to load this URL
|
||||
nsresult rv;
|
||||
NS_WITH_SERVICE(nsIScriptSecurityManager, securityManager,
|
||||
|
@ -3384,6 +3385,7 @@ HTMLContentSink::ProcessBaseHref(const nsString& aBaseHref)
|
|||
if (NS_FAILED(rv)) return;
|
||||
rv = securityManager->CheckLoadURI(mDocumentBaseURL, baseHrefURI, PR_FALSE);
|
||||
if (NS_FAILED(rv)) return;
|
||||
#endif
|
||||
|
||||
if (nsnull == mBody) { // still in real HEAD
|
||||
mHTMLDocument->SetBaseURL(aBaseHref);
|
||||
|
|
Загрузка…
Ссылка в новой задаче