зеркало из https://github.com/mozilla/gecko-dev.git
Bug 791284 - Add debugging code to nsDocument::StartDocumentLoad and fix and re-enable test. r=sicking
This commit is contained in:
Родитель
87434b98fa
Коммит
ce928e90ee
|
@ -148,6 +148,7 @@ _BROWSER_FILES = \
|
|||
browser_tabview_snapping.js \
|
||||
browser_tabview_startup_transitions.js \
|
||||
browser_tabview_undo_group.js \
|
||||
browser_tabview_bug610242.js \
|
||||
dummy_page.html \
|
||||
head.js \
|
||||
search1.html \
|
||||
|
|
|
@ -2346,6 +2346,16 @@ 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);
|
||||
|
|
|
@ -121,7 +121,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.getSimpleCodebasePrincipal(uri);
|
||||
let principal = ssm.getNoAppCodebasePrincipal(uri);
|
||||
channel.owner = principal;
|
||||
return channel;
|
||||
}
|
||||
|
|
Загрузка…
Ссылка в новой задаче