From 52979461b74412032ad8405537ac3f3fb9c3eb63 Mon Sep 17 00:00:00 2001 From: Robert O'Callahan Date: Tue, 25 Sep 2012 15:24:43 +1200 Subject: [PATCH] Bug 792675. Part 2: Change assertion to warning since Web content can trigger it (trying to create URIs relative to a blob URI). r=sicking --HG-- extra : rebase_source : 256474307aeed04af0aae1445a2e488a5afb8fb0 --- content/base/src/nsBlobProtocolHandler.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/content/base/src/nsBlobProtocolHandler.cpp b/content/base/src/nsBlobProtocolHandler.cpp index d8b51598e05..856fcdb2aad 100644 --- a/content/base/src/nsBlobProtocolHandler.cpp +++ b/content/base/src/nsBlobProtocolHandler.cpp @@ -69,9 +69,9 @@ nsBlobProtocolHandler::GetFileDataEntryPrincipal(nsACString& aUri) static FileDataInfo* GetFileDataInfo(const nsACString& aUri) { - NS_ASSERTION(StringBeginsWith(aUri, - NS_LITERAL_CSTRING(BLOBURI_SCHEME ":")), - "Bad URI"); + NS_WARN_IF_FALSE(StringBeginsWith(aUri, + NS_LITERAL_CSTRING(BLOBURI_SCHEME ":")), + "Bad URI"); if (!gFileDataTable) { return nullptr;