I'm trying to convert my embedding app that relies on mozilla
1.7.7. being installed to rely instead on Firefox 1.5.0.1 being
installed.

The app worked fine under Mozilla 1.7.7, but is now failing under Firefox.

I'm calling 

NS_InitEmbedding(binDir, nsnull);

Where binDir is
D:\Projects\mozilla\MOZILLA_NIH\FIREFOX_1_5_0_1\mozilla\dist\bin.  

In nsAppStartupNotifier::Observe(), when it's going through the
categories of startup listeners, it fails when it gets to the one with
contractId: service,@mozill.org/extensions/manager;1

This gives me the following error on the console:

************************************************************
* Call to xpconnect wrapped JSObject produced this error:  *
[Exception... "'[JavaScript Error: 
"Components.classes['@mozilla.org/xre/app-info;1'] has no properties" {file: 
"file:///D:/Projects/mozilla/MOZILLA_NIH/FIREFOX_1_5_0_1/mozilla/dist/bin/components/nsExtensionManager.js"
 line: 2177}]' when calling method: [nsIFactory::createInstance]"  nsresult: 
"0x80570021 (NS_ERROR_XPC_JAVASCRIPT_ERROR_WITH_DETAILS)"  location: 
"<unknown>"  data: yes]
************************************************************
WARNING: Cannot create startup observer : 
service,@mozilla.org/extensions/manager;1, file 
d:/Projects/mozilla/MOZILLA_NIH/FIREFOX_1_5_0_1/mozilla/embedding/components/appstartup/src/nsAppStartupNotifier.cpp,
 line 112

It then continues through the iteration and fails again on contractId:
service,@mozilla.org/updates/update-service, with a similar console
message.

The remaining categories seem to pass.

Any idea why this might be happening?

Ed

-- 
Modify my email address before replying to remove spam block.

_______________________________________________
dev-embedding mailing list
[email protected]
https://lists.mozilla.org/listinfo/dev-embedding

Reply via email to