Bug 1641153 - Part 3: Revert the assertion back to diagnostic assertion in ClientSource.cpp r=dimi

Differential Revision: https://phabricator.services.mozilla.com/D77076
This commit is contained in:
Tim Huang 2020-05-28 11:39:39 +00:00
Родитель b5a277093f
Коммит 77f24ad67a
1 изменённых файлов: 4 добавлений и 3 удалений

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

@ -262,9 +262,10 @@ nsresult ClientSource::WindowExecutionReady(nsPIDOMWindowInner* aInnerWindow) {
// continue to inherit the SW as well. We need to avoid triggering the
// assertion in this corner case.
if (mController.isSome()) {
MOZ_ASSERT(spec.LowerCaseEqualsLiteral("about:blank") ||
StringBeginsWith(spec, NS_LITERAL_CSTRING("blob:")) ||
StorageAllowedForWindow(aInnerWindow) == StorageAccess::eAllow);
MOZ_DIAGNOSTIC_ASSERT(spec.LowerCaseEqualsLiteral("about:blank") ||
StringBeginsWith(spec, NS_LITERAL_CSTRING("blob:")) ||
StorageAllowedForWindow(aInnerWindow) ==
StorageAccess::eAllow);
}
nsPIDOMWindowOuter* outer = aInnerWindow->GetOuterWindow();