Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [platform-swt-dev] Browser - XULRunner components


Hi Ryan,

It's difficult to say for sure, but your description sounds similar to what the Browser's "External" component experienced before its QueryInterface() implementation began returning implementations for nsISecurityCheckedComponent and nsIClassInfo.  Maybe this is what you need?  External.java has example implementations.

Grant




Ryan Levering <rrlevering@xxxxxxxxx>
Sent by: platform-swt-dev-bounces@xxxxxxxxxxx

12/28/2010 05:37 PM

Please respond to
"Eclipse Platform SWT component developers list."        <platform-swt-dev@xxxxxxxxxxx>

To
platform-swt-dev@xxxxxxxxxxx
cc
Subject
[platform-swt-dev] Browser - XULRunner components





Are XPCOM components supported in the SWT wrapping of XULRunner?

I only ask because it appears as if they are not, but I'm confused at how this is true.

If I create an XPCOM component that overrides some service and drop it into a firefox build, it works correctly.  I then take the same component on the same XULRunner build (XULRunner 1.9.2.13 versus FF 3.6.13) with SWT and drop it in and it makes an effort but ends up not working.  In particular, the registerSelf method is called to register the component factory but then getClassObject is never called (these are both nsiModule methods).  The component directory is set up correctly in the AppFileLocProvider and it's within the same directory as the hacked in external.xpt component that SWT uses to call into _javascript_.  compreg.dat in the profile directory shows that the component appears correctly registered.  So on the surface things look good, but the service manager is not returning the registered component, neither in the compiled XULRunner code nor if I do something like Mozilla.getInstance().getServiceManager().getServiceByContractID(SERVICE_ID, CLASS_ID).

I was wondering if 1) some one has gotten a custom component set up and running so I'm just doing something silly or 2) Grant knows what my problem is.
_______________________________________________
platform-swt-dev mailing list
platform-swt-dev@xxxxxxxxxxx
https://dev.eclipse.org/mailman/listinfo/platform-swt-dev



Back to the top