Bug 1631234 - Change the diagnostic assertion of the storage aceess in the ClientSource to a regular assertion. r=dimi

We change this assertion to a normal to ease the crash problem from
users and will do a further investigation to know the root cause.

Differential Revision: https://phabricator.services.mozilla.com/D71525
This commit is contained in:
Tim Huang 2020-04-20 09:39:48 +00:00
Родитель dca41f9190
Коммит cc191c2a88
1 изменённых файлов: 3 добавлений и 4 удалений

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

@ -262,10 +262,9 @@ 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_DIAGNOSTIC_ASSERT(spec.LowerCaseEqualsLiteral("about:blank") ||
StringBeginsWith(spec, NS_LITERAL_CSTRING("blob:")) ||
StorageAllowedForWindow(aInnerWindow) ==
StorageAccess::eAllow);
MOZ_ASSERT(spec.LowerCaseEqualsLiteral("about:blank") ||
StringBeginsWith(spec, NS_LITERAL_CSTRING("blob:")) ||
StorageAllowedForWindow(aInnerWindow) == StorageAccess::eAllow);
}
nsPIDOMWindowOuter* outer = aInnerWindow->GetOuterWindow();