Back out 8e4817a15420 (bug 791284) for debug xpcshell failure

This commit is contained in:
Phil Ringnalda 2012-09-16 18:03:59 -07:00
parent 0500299d26
commit ad9d576341
2 changed files with 1 additions and 11 deletions

View File

@ -2371,16 +2371,6 @@ nsDocument::StartDocumentLoad(const char* aCommand, nsIChannel* aChannel,
}
#endif
#ifdef DEBUG
{
uint32_t appId;
nsresult rv = NodePrincipal()->GetAppId(&appId);
NS_ENSURE_SUCCESS(rv, rv);
MOZ_ASSERT(appId != nsIScriptSecurityManager::UNKNOWN_APP_ID,
"Document should never have UNKNOWN_APP_ID");
}
#endif
MOZ_ASSERT(GetReadyStateEnum() == nsIDocument::READYSTATE_UNINITIALIZED,
"Bad readyState");
SetReadyStateInternal(READYSTATE_LOADING);

View File

@ -63,7 +63,7 @@ AboutWeaveLog.prototype = {
// view. That way links to files can be opened.
let ssm = Cc["@mozilla.org/scriptsecuritymanager;1"]
.getService(Ci.nsIScriptSecurityManager);
let principal = ssm.getNoAppCodebasePrincipal(uri);
let principal = ssm.getSimpleCodebasePrincipal(uri);
channel.owner = principal;
return channel;
}