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