pjs/xpcom/components
timeless%mozdev.org 610396f65a 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
..
.cvsignore
Makefile.in Bug 315598 Allow more than one global redirect observer, using the 2006-02-22 14:07:21 +00:00
nsCategoryCache.cpp Bug 315598 Allow more than one global redirect observer, using the 2006-02-22 14:07:21 +00:00
nsCategoryCache.h Bug 315598 Allow more than one global redirect observer, using the 2006-02-22 14:07:21 +00:00
nsCategoryManager.cpp landing patch for bug 326273 "Implement nsIThreadManager" (Mac portions by Mark Mentovai) with reviews from bienvenu, bsmedberg, bzbarsky, josh, roc, and ssieb 2006-05-10 17:30:15 +00:00
nsCategoryManager.h fixes bug 246085 "fire category manager notifications on the main thread only" patch by chpe@gnome.org, r=dougt, sr=darin 2005-09-19 17:13:32 +00:00
nsCategoryManagerUtils.h Bug 290247: fix 3 long-standing do_CreateInstanceFromCategory bugs: 2005-04-13 23:56:54 +00:00
nsComponentManager.cpp Bug 345903 Crash in [@ nsComponentManagerImpl::GetService] with broken JS component 2006-07-26 16:00:16 +00:00
nsComponentManager.h Re-landing bug 316416 with biesi's uninitialized-rv catch and with the windows nsIFile hashing cached (bug 316732) 2005-12-13 17:55:43 +00:00
nsICategoryManager.idl Bug 236613: change to MPL/LGPL/GPL tri-license. 2004-04-18 14:21:17 +00:00
nsIClassInfo.idl Remove dependency on nsIClassInfo.h from nsISupports.h (bug 330420). This adds a new nsIClassInfoImpl.h file which can be included to get the CI implementation macros. Also, removes unneeded inclusion of nsIProgrammingLanguage.h from nsIClassInfo.h. r=darin. 2006-03-15 04:59:42 +00:00
nsIComponentManager.idl Bug 288626 - Switch the strict API from opt-in (MOZILLA_STRICT_API) to opt-out (MOZILLA_INTERNAL_API) r=darin 2005-04-06 03:35:24 +00:00
nsIComponentManagerObsolete.idl Bug 236613: change to MPL/LGPL/GPL tri-license. 2004-04-18 14:21:17 +00:00
nsIComponentRegistrar.idl Re-landing bug 316416 with biesi's uninitialized-rv catch and with the windows nsIFile hashing cached (bug 316732) 2005-12-13 17:55:43 +00:00
nsIFactory.idl Bug 236613: change to MPL/LGPL/GPL tri-license. 2004-04-18 14:21:17 +00:00
nsIModule.idl Bug 106386 Correct misspellings in source code 2005-11-25 19:48:04 +00:00
nsIModuleLoader.idl Re-landing bug 316416 with biesi's uninitialized-rv catch and with the windows nsIFile hashing cached (bug 316732) 2005-12-13 17:55:43 +00:00
nsIServiceManager.idl Bug 296430, part "xpcom" - Add a category for directory-service providers which will be registered after autoregistration but before xpcom-startup r=darin a=asa 2005-06-07 19:35:20 +00:00
nsIServiceManagerObsolete.h Bug 313309 part 2 - change the NS_DEFINE_STATIC_IID_ACCESSOR macro to NS_DECLARE, and make a NS_DEFINE_ macro that's outside the class declaration, r=shaver 2005-11-11 14:36:26 +00:00
nsModule.h Bug 296561 - rework static component loading so that nsIXULAppInfo/Runtime/etc are available during autoregistration/xpcom-startup notification (and make static component loading saner in general) - r=shaver+dougt, a=asa 2005-07-21 13:33:43 +00:00
nsNativeComponentLoader.cpp Wrap FORCE_PR_LOG with MOZ_LOGGING ifdef so that --disable-logging works. 2006-04-13 17:03:18 +00:00
nsNativeComponentLoader.h Bug 320542 (BeOS bustage from 316416) - add extra #include 2005-12-16 16:47:27 +00:00
nsObsoleteModuleLoading.h
nsServiceManagerObsolete.cpp Re-landing bug 316416 with biesi's uninitialized-rv catch and with the windows nsIFile hashing cached (bug 316732) 2005-12-13 17:55:43 +00:00
nsStaticComponentLoader.cpp Re-landing bug 316416 with biesi's uninitialized-rv catch and with the windows nsIFile hashing cached (bug 316732) 2005-12-13 17:55:43 +00:00
nsStaticComponentLoader.h Bug 320324 - Static modules released too late, assertions in GenerateJavaInterfaces, r=darin 2005-12-21 13:50:13 +00:00