зеркало из https://github.com/mozilla/gecko-dev.git
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:
Родитель
b5a277093f
Коммит
77f24ad67a
|
@ -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();
|
||||
|
|
Загрузка…
Ссылка в новой задаче