I have an addon I wrote that uses an XPCom binary component. It will not load in Firefox 4? What do I need to do keep it working? How do I keep it up to date in the future?

Hey Guys,
There are a few related questions here. Let's start here:
1. I have an add on I wrote for my company and it loads and works great on previous versions of Firefox but just stopped working with Firefox 4. Now with the latest version it seems my c++ binary xp com component is not loading. I get this unhelpful error:
TypeError: Components.classes[cid] is undefined
What do I have to do to get this working with both Firefox 4 and previous versions?
2. We have a shipping product that people install as part of that installation we install this add in. What is the correct way to install the addin to support multiple versions of firefox.
3. Over time new versions of Firefox will be developed and could break our users if something like this happens again. What is the best way for our users to be able to auto update this add on?

I got my real add-on work on FF4 now. Here is what needs to do (on VS2005)
In project property<br>
C++<br>
General/Additional Include Directories - xulrunner-2.0.en-US.win32.sdk\xulrunner-sdk\include<br>
Preprocessor/Preprocessor Definitions - MOZ_NO_MOZALLOC;XP_WIN;XP_WIN32
Linker<br>
General/Additional Library Directories - xulrunner-2.0.en-US.win32.sdk\xulrunner-sdk\lib<br>
Input/Additonal Dependencies- nspr4.lib xpcom.lib xpcomglue_s_nomozalloc.lib
Update module cpp by following the sample<br>
http://mxr.mozilla.org/mozilla-central/source/xpcom/sample/nsSampleModule.cpp
Add two extra directives on chrome.manifest<br>
interfaces &lt;path/to/your/xpt&gt;<br>
binary-component &lt;path/to/your/dll&gt;
Add unpack property to install.rdf if needed
https://developer.mozilla.org/en/Install_Manifests#unpack

Similar Messages

  • I cannot load Maverick on my iMac HD.  It reports that my HD is used for Time Machine backups and will not load to that drive.  I do not use this drive for backups.  Help.

    I cannot load Maverick on my iMac HD.  It reports that my HD is used for Time Machine backups and will not load to that drive.  I do not use this drive for backups.  I use an external 1 TB WD My Book for backups as well as Super Duper Backups. Can anyone offer advice.   Thanks.

    Welcome to Apple Support Communities
    You have got the "Backups.backupdb" folder in the root level of your hard drive. This is the folder used by Time Machine to save backups to, and the OS X Mavericks installer thought that your hard drive is being used to store Time Machine backups
    To fix this, open a Finder window, select the Go menu (on the menu bar) > Go to Folder, and type:
    Then, delete "Backups.backupdb" and empty the Trash. Finally, open the Mavericks installer from the Applications folder and follow the steps

  • My macbook pro loads webpages fine for the first few minutes but after that the internet freezes and will not load anymore webpages. What can I do to fix this?

    My macbook pro loads webpages fine for the first few minutes but after that the internet freezes and will not load anymore webpages. What can I do to fix this?

    I let Firefox sit on my desktop for about five minutes, and it finall allowed me to use it. That is EXTREEEMELY slow. What is the problem?

  • Videos will not load in Firefox only. Have reinstalled, restored, etc.

    Videos (from YouTube, Facebook, websites, etc.) will not load in Firefox. I've tried reinstalling Firefox, restoring all settings to default, disabling all addons, extensions, etc. When I try to load a video, a dark rectangle appears where the video should and my cursor just shakes. In Chrome, Internet Explorer, etc. the videos load and play with no problems, no hesitation, so it must be some setting or some bad file with Firefox, but I feel like I've tried everything.
    I'm using Windows 7 on an HP laptop. I've checked my Firefox settings against those on my desktop PC and can find no variances. This problem is driving me mad, so please help.....
    Thanks.

    Hello,
    Try disabling graphics hardware acceleration. Since this feature was added to Firefox, it has gradually improved, but there still are a few glitches.
    You might need to restart Firefox in order for this to take effect, so save all work first (e.g., mail you are composing, online documents you're editing, etc.).
    Then perform these steps:
    *Click the orange Firefox button at the top left, then select the "Options" button, or, if there is no Firefox button at the top, go to Tools > Options.
    *In the Firefox options window click the ''Advanced'' tab, then select "General".
    *In the settings list, you should find the ''Use hardware acceleration when available'' checkbox. Uncheck this checkbox.
    *Now, restart Firefox and see if the problems persist.
    Additionally, please check for updates for your graphics driver by following the steps mentioned in the following Knowledge base articles:
    * [[Troubleshoot extensions, themes and hardware acceleration issues to solve common Firefox problems]]
    * [[Upgrade your graphics drivers to use hardware acceleration and WebGL]]
    You can also disable hardware acceleration in Flash: <br> <br>
    Some problems with Flash video playback can be resolved by disabling hardware acceleration in your Flash Player settings. (See [[Flash Plugin - Keep it up to date and troubleshoot problems|this article]] for more information on using the Flash plugin in Firefox).
    To disable hardware acceleration in Flash Player:
    #Go to this [http://helpx.adobe.com/flash-player/kb/video-playback-issues.html#main_Solve_video_playback_issues Adobe Flash Player Help page].
    #Right-click on the Flash Player logo on that page.
    #Click on '''Settings''' in the context menu. The Adobe Flash Player Settings screen will open.
    # Click on the icon at the bottom-left of the Adobe Flash Player Settings window to open the Display panel. <br/> <br/>[[Image:fpSettings1.PNG]] <br/>
    # Remove the check mark from '''Enable hardware acceleration'''.
    # Click '''Close''' to close the Adobe Flash Player Settings Window.
    # Restart Firefox.
    This [http://www.macromedia.com/support/documentation/en/flashplayer/help/help01.html Flash Player Help - Display Settings page] has more information on Flash Player hardware acceleration, if you're interested.<br> <br>
    Did this fix your problems? Please report back to us!
    Thank you.

  • A URL will not load in Firefox (it does nothing) but will load in Safari; some other URLs also have a similar problem.

    In Safari with the above website, I cannot "View Source". Also, I have the same problem viewing images of patents at the USPTO, again probably a similar problem. Perhaps the web address isn't HTML but is an image format not supported by Firefox. Perhaps there is a plug-in or add-on that will be able to read the image, but should probably be included in the main Firefox release since it seems to be fairly common.

    A twitter widget on my website will not load in firefox but will load in every other browser I've tried. I have tried several versions of firefox. Here is the code I am trying to run:
    <code>
    new TWTR.Widget({
    version: 2,
    type: 'profile',
    rpp: 5,
    interval: 6000,
    width: 'auto',
    height: 265,
    theme: {
    shell: {
    background: '#333333',
    color: '#ffffff'
    tweets: {
    background: '#000000',
    color: '#ffffff',
    links: '#4aed05'
    features: {
    scrollbar: false,
    loop: false,
    live: true,
    hashtags: true,
    timestamp: true,
    avatars: false,
    behavior: 'all'
    }).render().setUser('ShawnC4Real').start();
    </code>
    And the first thing I checked was that scripts were enabled.

  • Ever since I downloaded the new Firefox, when I right-click on a link to open it in a different tab, the tab will open but will not load anything, no matter what link I try.

    Ever since I downloaded the new Firefox, when I right-click on a link to open it in a different tab, the tab will open but will not load anything, no matter what link I try. The tab will show the website destination in the navigation bar, but will not automatically load it; I have to press the load button in the navigation bar instead of it instantly loading.
    == This happened ==
    Every time Firefox opened
    == The newest version, 3.6.6, of Firefox was downloaded

    It's not specific sites. I can middle-click on the same link 50 times and it will open it in a new tab 45 times and 5 of those times, it will randomly open it in an entirely new window. I don't know what's causing this.
    It happens so randomly that I don't know how to pin-point what it could be.

  • Angry Birds Friends on Facebook will not load in Firefox, just white screen. Will load using Chrome, etc?

    Angry Birds Friends on Facebook will not load in Firefox, just white screen. Will load using Chrome, etc? Checked for malware, cleared cache, re-installed Firefox, disabled add ons, enabled java, updated flash and shockwave, etc.

    Hello,
    Try disabling graphics hardware acceleration. Since this feature was added to Firefox, it has gradually improved, but there still are a few glitches.
    You might need to restart Firefox in order for this to take effect, so save all work first (e.g., mail you are composing, online documents you're editing, etc.).
    Then perform these steps:
    *Click the orange Firefox button at the top left, then select the "Options" button, or, if there is no Firefox button at the top, go to Tools > Options.
    *In the Firefox options window click the ''Advanced'' tab, then select "General".
    *In the settings list, you should find the ''Use hardware acceleration when available'' checkbox. Uncheck this checkbox.
    *Now, restart Firefox and see if the problems persist.
    Additionally, please check for updates for your graphics driver by following the steps mentioned in the following Knowledge base articles:
    [[Troubleshoot extensions, themes and hardware acceleration issues to solve common Firefox problems]]
    [[Upgrade your graphics drivers to use hardware acceleration and WebGL]]
    Did this fix your problems? Please report back to us!
    Thank you.

  • TS4148 I have an iphone 4s version 6.1 carrier o2-uk but it will not pick up any signal what do i do?

    i have an  iphone 4s version 6.1 carrier o2-uk but it will not pick up any signal what do i do?

    I got my real add-on work on FF4 now. Here is what needs to do (on VS2005)
    In project property<br>
    C++<br>
    General/Additional Include Directories - xulrunner-2.0.en-US.win32.sdk\xulrunner-sdk\include<br>
    Preprocessor/Preprocessor Definitions - MOZ_NO_MOZALLOC;XP_WIN;XP_WIN32
    Linker<br>
    General/Additional Library Directories - xulrunner-2.0.en-US.win32.sdk\xulrunner-sdk\lib<br>
    Input/Additonal Dependencies- nspr4.lib xpcom.lib xpcomglue_s_nomozalloc.lib
    Update module cpp by following the sample<br>
    http://mxr.mozilla.org/mozilla-central/source/xpcom/sample/nsSampleModule.cpp
    Add two extra directives on chrome.manifest<br>
    interfaces &lt;path/to/your/xpt&gt;<br>
    binary-component &lt;path/to/your/dll&gt;
    Add unpack property to install.rdf if needed
    https://developer.mozilla.org/en/Install_Manifests#unpack

  • Online card security Verified by Visa and Mastercard Securecode will not load since Firefox updated so unable to make purchases using Firefox.

    The additional Fraudsafe security feature used by Mastercard and Visa when buying products will not load since the Firefox update so no purchases can be made and I have to swap to using Internet Explorer instead :(

    Just found a previous post also reporting this problem https://support.mozilla.com/en-US/questions/818366?s=visa&as=s

  • My server went down and now that it is back up my mail will not import back in help what steps do I do to rectify this?

    My server went down and now that it is back up it will not load my aol and gmail accounts mail help.  What steps do I do to make this happen?

    Hi there MeganElizabeth02061999,
    You may want to check your past purchases and see if you can find the tracks there. Take a look at the article below for more information.
    Downloading past purchases from the iTunes Store, App Store, and iBooks Store
    http://support.apple.com/kb/ht2519
    -Griff W.

  • Any idea why the scrabble board will not load in firefox, when it does (on the same machine) in explorer?

    I downloaded Firefox this morning to solve some explorer problems, and made Firefox my default browser. I play Lexulous (scrabble) through gmail, but firefox will not load the actual game board. Any ideas?

    Apple Portables: Troubleshooting the slot load optical disc drive

  • My bluetooth keyboard (Macnus 3.0) is recognised by my iMac but will  not pair?  I have paired it with my iPad using code 8310 but it still will not pair with my iMac.  Can someone help please?

    My bluetooth keyboard (Macnus brand - bought recently in Thailand)(similar to Mac small keyboard) will pair with my iPad using code 8310,and is recognized by my iMac but will not pair?
    There are very scant instructions with the keyboard and no mention of any code (the code was prompted by my iPad).
    I have followed the instructions but it still will not pair with my iMac!
    Can anyone help please?
    My iMac is 20 inch  Mid 2007 OSX10.9.1 4GB RAM

    Hi All, thank you for you suggestions.  I have been unable to find any website for the maker, but have looked at several Thai/cambodian sites incl <http://www.buycoms.com/Article/8435/index.asp>  which mentions the keyboard being suitable for tablet or windows.  No mention of iMac!  although the box is branded to indicate Mac compatable.
    I'm thinking that maybe it just will not pair with an iMac.
    Ill keep looking for the maker website, which might come on later in the future? maybe?
    thanks again.

  • I just downloaded Lion and when it opened mail for the first time, I received an error that there was something corrupted in mail.  I was directed by Apple to close Mail and re-open it.  I did, but now Mail will not open at all.  What do I need to do to c

    I am having issues with Mail after downloading and installing Lion.  Snow Leopard prior.  There was a message that there was some sort of corruption in Mail and that I should close Mail and re-open Mail.  I did, but Mail will not open at all.

    Try the following user tip:
    Troubleshooting issues with iTunes for Windows updates

  • I have a problem with my computer recognizing my new iphone when i uninstall itunes and reinstall it does not download properly and bonjour will not load any ideas of what to do

    I have a dell lap top with windows 7 that won't recognize my iphone 5c. The driver's will not install with out a problem, I talked to apple support to try to fix this problem, I unistalled itunes and reinstalled it, now itunes did not download properly, bonjour does not load and i can not burn cds, I have uninstalled and reinstalled twice with the same problem. If anyone can point me in the right direction that would be great

    You are right, but how could i send it to Apple? when the phone company first replaced my iphone they had in stock alots of iphones and they just sent mine back to Apple and gave me a new one, so all i did is to give them my phone, but now how could i sent it to Apple? and i cant send it by myself, and the store wont do that, its a lost for them.. so sending it to Apple wasnt an option from the begining.
    and for the record, i dont think the store where i bought it is an authorized shop.. its just a store who boughts phone's from Apple in a low price and sells it in much more money..

  • Google voice/contacts will not load in Firefox 23.0.1 The contacts page sticks at "Loading..."

    LIke the title says, attempting to load https://www.google.com/contacts results in the page load sticking at "Loading ..." This works fine in Internet Explorer and Chrome. I emptied the cache and cookies and tried Cntrl-F5 and none of those worked.

    If you really have version 23, make sure your useragent is correct.
    * [[Websites say that Firefox is outdated or incompatible even though it's the latest version]]
    Update firefox first, then try to clear the cache and cookies.
    Note: ''This will temporarily log you out of all sites you're logged in to.''
    To clear cache and cookies do the following:
    #Go to Firefox > History > Clear recent history or (if no Firefox button is shown) go to Tools > Clear recent history.
    #Under "Time range to clear", select "Everything".
    #Now, click the arrow next to Details to toggle the Details list active.
    #From the details list, check ''Cache'' and ''Cookies'' and uncheck everything else.
    #Now click the ''Clear now'' button.
    Further information can be found in the [[Clear your cache, history and other personal information in Firefox]] article.
    Did this fix your problems? Please report back to us!
    Thank you.

Maybe you are looking for