gecko-dev/xpcom
timeless%mozdev.org bf613adffe Bug 345903 Crash in [@ nsComponentManagerImpl::GetService] with broken JS component
r=dougt
ComponentManager talks to factories when it's asked to create components or get services. The factories are expected to return success when they provide an object or return a failure code and provide a null pointer.

Unfortunately, it's trivially easy for someone writing a js xpcom component to mess up their factory such that they return success without providing an object.

In this case we will now throw NS_ERROR_SERVICE_NOT_FOUND. I've picked this because we did not find a factory capable of properly servicing our request :) -- and because there's no better result available :(.

This branch eventually deserves PR_LOGGING so that people could see it even if they didn't build debug (but did somehow get prlogging), but that's left for a future patch.
2006-07-26 16:00:16 +00:00
..
base Bug 322169: Clear Private Data does not clear JS Console, patch by Simon B�nzli <zeniko@gmail.com>, r=mconnor, r=darin 2006-07-19 12:49:33 +00:00
build Bug 339144 - Expose a custom factory type for simple nsIUnicharInputStream instances, r=darin 2006-07-21 16:28:51 +00:00
components Bug 345903 Crash in [@ nsComponentManagerImpl::GetService] with broken JS component 2006-07-26 16:00:16 +00:00
doc
ds Bug 339144 - Expose a custom factory type for simple nsIUnicharInputStream instances, r=darin 2006-07-21 16:28:51 +00:00
glue [BeOS]Fixing XPCOM Glue-standalone bustage, p=sergei_d, r=benjamin, affects only BeOS-port 2006-07-24 20:33:19 +00:00
io 345397 Support pathnames in nsLocalFileOSX::SetPersistentDescriptor. r=josh sr=darin 2006-07-23 15:16:37 +00:00
libxpt/xptcall
MoreFiles
obsolete [BEOS] Use real process directory, Bug 341031, p=sergei_d, r=benjaminBeOS-specific patch 2006-07-19 12:00:16 +00:00
proxy Bug 344623 - leaks caused by incorrect refcounting in bug 342311, r=darin 2006-07-19 18:28:00 +00:00
reflect
sample
string
stub
system
tests
threads
tools
typelib [OS/2] Bug 325902: make xpt_link expand wildcards, p=abwillis, r=mkaply 2006-07-14 20:05:21 +00:00
windbgdlg
.cvsignore
Makefile.in
xpcom-config.h.in
xpcom-private.h.in