pjs/xpcom
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
..
MoreFiles Bug 324392: fix licensing on Apple DTS code. 2006-01-23 10:22:40 +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
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 Remove uses of MOZ_DECL_CTOR_COUNTER, which is always defined to nothing. b=332745 rs=roc,bzbarsky 2006-04-05 00:00:44 +00:00
sample Bug 336989 Useless null check of aOwner in nsPluginHostImpl::InstantiateEmbeddedPlugin 2006-06-03 23:23:45 +00:00
string fixing win32 build bustage 2006-06-28 23:49:57 +00:00
stub Bug 334038 - Separate out the frozen C stringapi and the glued C++ wrappers, fix a few bugs along the way, and move some of the utils from nsCRT into nsCRTGlue for use by frozen-linkage code. r=darin 2006-05-03 16:11:14 +00:00
system Implement nsIShellService for GNOME (bug 242254). r=biesi, sr=shaver. Note: set as wallpaper for images that use transparency will be broken until bug 250531 is fixed. This also makes toolkit/ always be pulled in preparation for migrating more code to the new GNOME XPCOM interfaces. 2006-05-17 02:22:33 +00:00
tests Bug 339105 - nsUnicharPtrHashKey, r=darin 2006-06-15 13:48:29 +00:00
threads fixes bug 343731 "###!!! ASSERTION: QueryInterface needed: 'query_result.get() == mRawPtr', file ../../dist/include/xpcom/nsCOMPtr.h, line 594" r=biesi 2006-07-06 18:46:31 +00:00
tools Bug 106386 Correct misspellings in source code 2005-11-25 21:57:13 +00:00
typelib [OS/2] Bug 325902: make xpt_link expand wildcards, p=abwillis, r=mkaply 2006-07-14 20:05:21 +00:00
windbgdlg Bug 306334 - XULRunner debug doesn't link on mac r=darin/brendan 2005-08-31 17:20:09 +00:00
.cvsignore Ignore xpcom-config.h & xpcom-private.h 2003-07-03 22:49:28 +00:00
Makefile.in Bug 305949 Part 1 - Separate the frozen XPCOM exports with the XPCOM_API macro; add compatibility methods to the frozen string API; convert most of the tests/tools to use the xpcom glue when appropriate r=darin This checking does not actually stop exporting the nonfrozen methods yet, pending a bunch of test cleanup throughout the tree. 2005-11-08 18:17:49 +00:00
xpcom-config.h.in Add --disable-v1-string-abi option to remove backwards-compatible support for the nsAString vtable. Bug 273424, r+sr=darin. 2005-01-24 16:44:41 +00:00
xpcom-private.h.in 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