diff --git a/layout/base/nsPresShell.cpp b/layout/base/nsPresShell.cpp index 34cf7ad974fb..e20197892173 100644 --- a/layout/base/nsPresShell.cpp +++ b/layout/base/nsPresShell.cpp @@ -6223,7 +6223,9 @@ static void StartPluginInstance(PresShell *aShell, nsIContent *aContent) { nsCOMPtr objlc(do_QueryInterface(aContent)); - NS_ASSERTION(objlc, "Object nodes must implement nsIObjectLoadingContent"); + if (!objlc) + return; + nsCOMPtr inst; objlc->EnsureInstantiation(getter_AddRefs(inst)); }