Bug 1286024 - Replace no document in SetRequestContext warning with a log. r=ckerschb

MozReview-Commit-ID: IitqAt0iLQF

--HG--
extra : rebase_source : 72c6bd3b894d8a36f65bfd43ddd8f294de1f2d22
This commit is contained in:
Thomas Nguyen 2016-07-12 17:46:23 +08:00
Родитель 4e932ce22a
Коммит 941244dcc8
1 изменённых файлов: 1 добавлений и 1 удалений

Просмотреть файл

@ -648,7 +648,7 @@ nsCSPContext::SetRequestContext(nsIDOMDocument* aDOMDocument,
doc->SetHasCSP(true);
}
else {
NS_WARNING("No Document in SetRequestContext; can not query loadgroup; sending reports may fail.");
CSPCONTEXTLOG(("No Document in SetRequestContext; can not query loadgroup; sending reports may fail."));
mLoadingPrincipal = aPrincipal;
mLoadingPrincipal->GetURI(getter_AddRefs(mSelfURI));
// if no document is available, then it also does not make sense to queue console messages