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

Depends on D76732

Differential Revision: https://phabricator.services.mozilla.com/D76733
This commit is contained in:
Tim Huang 2020-05-26 07:27:25 +00:00
Родитель 292c69a964
Коммит 8d0fd9b1f8
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 // continue to inherit the SW as well. We need to avoid triggering the
// assertion in this corner case. // assertion in this corner case.
if (mController.isSome()) { if (mController.isSome()) {
MOZ_ASSERT(spec.LowerCaseEqualsLiteral("about:blank") || MOZ_DIAGNOSTIC_ASSERT(spec.LowerCaseEqualsLiteral("about:blank") ||
StringBeginsWith(spec, NS_LITERAL_CSTRING("blob:")) || StringBeginsWith(spec, NS_LITERAL_CSTRING("blob:")) ||
StorageAllowedForWindow(aInnerWindow) == StorageAccess::eAllow); StorageAllowedForWindow(aInnerWindow) ==
StorageAccess::eAllow);
} }
nsPIDOMWindowOuter* outer = aInnerWindow->GetOuterWindow(); nsPIDOMWindowOuter* outer = aInnerWindow->GetOuterWindow();