mozilla-xp.com | Post Question | Search | About | Groups | Contact | Register | Login



mozilla feedback firefox (6296)

mozilla feedback (2094)

mozilla feedback firefox prerelease (1989)

mozilla feedback companion ebay (1651)

mozilla feedback thunderbird (860)

mozilla support thunderbird (812)

mozilla support seamonkey (511)

mozilla dev tech crypto checkins (461)

mozilla support firefox (408)

mozilla support bugzilla (397)

mozilla dev extensions (359)

mozilla feedback thunderbird prerelease (334)

netscape public mozilla reviewers (272)

mozilla dev mdc feedback (270)

netscape public beta feedback (268)

netscape public mozilla crypto checkins (265)

mozilla dev apps thunderbird (252)

netscape public mozilla jobs (224)

mozilla dev tech plugins (194)

mozilla dev apps firefox (190)

mozilla dev tech xul (190)

mozilla dev apps calendar (187)

mozilla dev embedding (181)

netscape public mozilla embedding (177)

netscape public mozilla test (174)

netscape public dev xul (169)

mozilla dev planning (169)

mozilla support calendar (167)

mozilla dev tech js-engine rhino (165)

netscape public mozilla layout xslt (164)

mozilla test (163)

netscape public mozilla jseng (160)

mozilla dev platform (159)

netscape public mozilla crash-data (159)

netscape public mozilla xpcom (159)

mozilla dev platforms mobile (157)

mozilla marketing (156)

netscape public mozilla webtools (155)

mozilla jobs (153)

mozilla dev builds (153)

mozilla dev tech xpcom (150)

mozilla support webtools (148)

mozilla dev accessibility (147)

netscape public mozilla calendar (146)

netscape public mozilla xml (138)

mozilla dev tech java (137)

netscape public mozilla gtk (136)

mozilla community drumbeat (135)

mozilla dev tree-management (131)

mozilla dev apps bugzilla (130)

netscape public mozilla i18n (130)

netscape public mozilla prefs (129)

netscape public mozilla qa general (129)

mozilla dev amo (128)

netscape public mozilla general (127)

netscape public mozilla rdf (126)

netscape public mozilla xpinstall (126)

netscape public mozilla xpfe (123)

netscape public mozilla plugins (122)

netscape public mozilla java (122)

netscape public mozilla ui (119)

netscape public mozilla accessibility (118)

netscape public mozilla wishlist (117)

netscape public mozilla mac (116)

mozilla dev tech js-engine (116)

mozilla dev apps seamonkey (116)

netscape public mozilla crypto (112)

netscape public mozilla mathml (112)

mozilla dev tech crypto (111)

netscape public mozilla beos (111)

netscape public mozilla jsdebugger (110)

netscape public mozilla license (109)

netscape public mozilla qa browser (109)

mozilla wishlist (108)

mozilla dev quality (107)

mozilla dev tech xforms (106)

netscape public mozilla directory (106)

netscape public mozilla editor (106)

netscape public mozilla macosx (106)

mozilla dev apps js-debugger (105)

netscape public mozilla performance (103)

netscape public mozilla builds (100)

mozilla dev ports os2 (100)

netscape public mozilla qt (98)

netscape public mozilla mail-news (97)

mozilla announce (96)

netscape public mozilla documentation (94)

netscape public mozilla os2 (93)

netscape public mozilla nspr (93)

netscape public mozilla netlib (93)

netscape public mozilla style (92)

mozilla support planning (92)

netscape public mozilla patches (91)

mozilla dev l10n web (91)

mozilla dev tech nspr (89)

mozilla dev mdc (87)

mozilla dev tech network (87)

mozilla dev l10n (87)

mozilla dev tech css (86)

mozilla dev l10n cs (85)


mozilla.dev.tech.xpcom Post New
Items(150) /2 Next >> Last >|
Subject Posted Replies From
XPTC Stub

Hi all Is there any way to get the real object from the XPTCStub? Best Regards, Avishay

3/7/2010 4:16:00 PM 0 "Ben Shabtai, Avishay" <avishay.ben-shab...@hp.com>



nsIZipWriter zipping content of a JavaScript string variable

Hi, is it possible to use nsIZipWriter to zip the content of a JavaScript string variable to a zipped text file? There are methods like addEntryChannel and addEntryStream, may be one of them is to be used for this purpose. Can someone give me a hint how to realise this? Or should I write to a temporary textfile an then zip that temporary text file?

3/7/2010 11:18:21 AM 1 =?UTF-8?B?R2VvcmcgTWFhw58=?= <ge...@bioshop.de>
nsIStreamConverter

I'm trying to create a component which lets me convert an application/ xquery MIME type into something like application/xml, using an approach similar to that in http://mxr.mozilla.org/mozilla/source/browser/components/feeds/src/FeedConverter.js .. Any ideas on why it doesn't seem to get triggered when there is content served with this type? Any strategies for debugging? When I just try creating an instance, while the class is recognized, creating an instance doesn't seem to offer any methods I defined for the converter (just says it is nsISupports). // See http://weblogs.mozill

2/28/2010 4:57:56 PM 11 Brett <bret...@gmail.com>
Automated login and download

Hi! I would like to do this to a specific page from an application in an automated way: -fill in 2 input field -simulate the clicking on the submit button -simulate clicking on a specific link -simulate the selection of an option element -simulate the clicking on submit button -automaticly capture the download which will be initiated if the above steps are right. and download a file I want to do this to automaticly log in to a page and download price lists on a weekly-daily basis. The friend who needs this wants to download a lot of price list from that page and wants to make th

2/28/2010 1:29:02 AM 0 somebody1234 <mindfield...@yahoo.com>
Gecko 1.9.2 on linux : "TypeError: Components.classes[cid] is undefined"

Hello, I 've download the C++ "HelloWorld" sample of XPCOM from here : http://nerdlife.net/building-a-c-xpcom-component-in-windows/ Finnally I've been able to compile it on linux with this Makefile : --------------------------------------------------------------------------------- CXX = c++ CPPFLAGS += -fno-rtti \ -fno-exceptions \ -shared # Change this to point at your Gecko SDK directory. GECKO_SDK_PATH = ../../sdk # GCC only define which allows us to not have to #include mozilla- config # in every .cpp file. If your

2/27/2010 6:41:34 AM 0 Mike <jaimes.m...@gmail.com>
I can't execute python from XULrunner

http://pyxpcomext.mozdev.org/no_wrap/tutorials/pyxulrunner/python_xulrunner_customizing.html I don't have problem on installation, PYTHONPATH also specified, I have Microsoft Visual Studio 2005 and 2008 C++ runtimes When I press Go button it doesn't have any action and don't show any error. Could you kindly advise me what wrong ?

2/25/2010 1:48:39 AM 0 AHO <kosei.chiw...@gmail.com>
Firefox 3.6 : How can I obtain a HWND from the corresponding nsIDOMDocument object?

Dear List, I have this code , in which spiDocument is an nsIDOMDocument. nsresult lReturnVal; HWND hWnd=3DNULL,hParentWindow; nsCOMPtr<nsIDocument> spiDoc =3D do_QueryInterface(spiDocument);=20 nsIPresShell *piShell =3D spiDoc -> GetPrimaryShell(); if (piShell)=20 {=20 // Find hWnd=20 nsIViewManager* piViewManager =3D piShell -> GetViewManager();=20 if (piViewManager)=20 {=20 nsCOMPtr<nsIWidget> spiWidget;=20 piViewManager -> GetWidget(getter_AddRefs(spiWidget)); if (spiWidget)=20 hWnd =3D static_cast<HWND> (spiWidget -> = GetNativeData(NS_NA

2/24/2010 12:25:55 PM 0 "Oliveiros C," <oliveiros.crist...@marktest.pt>
nsIProxyAutoConfig problems!!!

I want to extend nsIProxyAutoConfig with an extra interface nsIProxyAutoConfigFoxview. below is what I have modified, nsIProxyAutoConfigFoxview is the extra interface. #1, file netwerk/base/public/nsIProxyAutoConfig.idl [scriptable, uuid(ec142454-de53-4f4c-aef7-37f79865b79d)] interface nsIProxyAutoConfigFoxview : nsISupports { ACString getProxyForURIFoxview(in ACString aTestURI, in ACString aTestHost, in ACString aTestFrom); }; #2, file netwerk/base/public/nsIProxyAutoConfig.js const nsISupports = Components.interfaces.nsISupports; const nsIProxyAutoConfig = Co

2/20/2010 2:10:54 PM 0 pengdw <david8...@163.com>
Threading issue

Hello, I'm trying to create a small http server using nsIServerSocket in GUI application. I create the instance of the server in the following // CODE BLOCK STARTS /* nsCOMPtr<nsIServerSocket> */ m_serv = do_CreateInstance(NS_SERVERSOCKET_CONTRACTID, &rv); if (NS_FAILED(rv)) { return rv; } rv = m_serv->Init(port, PR_TRUE, 5); if (NS_FAILED(rv)) { return rv; } m_socketListener = new MySocketListener(this); rv = m_serv->AsyncListen(m_socketListener); // CODE BLOCK ENDS and here is my socket listener method // CODE BLOCK STARTS NS_IMETHODIMP MySocketListener::O

2/19/2010 10:17:43 AM 0 Zoltan Bencik <zoltan.ben...@gmail.com>
Accessing firefox toolbars, menubar, title bar

Hi, I am developing an XPCOM component in C++. I want to access firefox toolbars, menubar, title bar from C++ code. I can get pointer to nsIWebBrowser but it is associated with firefox client area (as I read on Mozilla). So how can I get access to these elements. In fact I have developed a firefox extension in which I have added a toolbarbutton. I want to access this toolbarbutton in my C++ component code. This toolbarbutton is written in XUL. So the question is how to access XUL elements from C++? Which interfaces should be implemented? I am quite confused. Please help me out.

2/19/2010 6:55:10 AM 0 veeru <abhaykumar....@gmail.com>
Help Needed on XUL.WebProgressListner

Hello, I have code which converts html files to pdf files, this works fine with a single file. But I want to iterate a directory and send files one by one for convrting from html to pdf, but while directory iteration it fails. I am Pasting my code here, /* Convert HTML to PDF with mozilla rendering engine. This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; version 2 of the License. This program is distributed in the hope that it will be useful, but WITHOU

2/17/2010 8:06:23 AM 0 Musk <kasturikarle...@gmail.com>
Overriding nsIHttpProtocolHandler with JS component, permissions errors in Firefox 3.0 and 3.5 not 3.6

I have an extension with a Javascript component which registers itself with the contract @mozilla.org/network/protocol;1?name=http and thus replaces the usual HTTP protocol handler. Most of the time it just passes method calls on to the default handler. I have run into trouble with the various "userAgent properties" of nsIHttpProtocolHandler. I tried just passing gets and sets on to the default handler, for example: get userAgent() { return savedHttpHandler.userAgent; }, get vendor() { return savedHttpHandler.vendor; }, set vendor(v) { savedHttpHandler.vendor = v; },

2/16/2010 6:08:18 PM 0 Robert Tupelo-Schneck <schn...@gmail.com>
Binary resources in Firefox Extension

Hi, I'm developing a firefox extension using XPCOM in C++. I've put all images in the same DLL. I want to use those images on my extension toolbar. How can I achieve this? Or are there any other way for using binary resources in firefox extension? Any help would be highly appreciated. Thank you.

2/10/2010 10:19:39 AM 0 veeru <abhaykumar....@gmail.com>
nsIRequestObserver for command

Hi all, I've got myself into a bit of a pickle here, I could do with some thoughts on. I am manually invoking commands via their nsICommandControllers that I have initialised as well with their command tables and contexts. However, I need to get progress callbacks on some commands invocations, and so need to get an nsIRequestObserver for some specifc controller requests. It there any obvious way to create/return one I have missed? Otherwise I will have to hack the ctlr.doCommandWithParams() call and return one from there rather than returning void, which I would prefer not t

2/2/2010 10:07:14 AM 0 <"neil.stansbury () redbacksystems ! com">
When i used NS_InitXPCOM2 more than one time in one process,it crashed!

First,i used NS_InitXPCOM2 in one of my function and invked NS_ShutdownXPCOM before leaving the this function.And when i invoked NS_InitXPCOM2 or NS_InitXPCOM3 for the second time in other functions,it comes a deadlock error and the application crahed! can anybody help? Can the NS_InitXPCOM2 be invoked more than one time in one process?

1/20/2010 9:04:45 AM 0 BenKwan <freebe...@gmail.com>
Firefox Popup Window Event

Hi All, I am writing a Firefox extension using XPCOM C++. I want to get notified when the popup window (like we see while browsing www.rediffmail.com) is opening. How do I catch this event? Does anybody knows how to do it? Thanks for your help.

1/20/2010 6:48:04 AM 0 Vaibhav <vaibhavg...@gmail.com>
Calling PromptUsernameAndPassword crashes Firefox with segmentation fault

Hello, I try to port a Firefox extension from Windows to Linux. The extension include a XPCOM component based on the nsIAuthPrompt interface. In the first step the extension stores the default prompt auth component: NS_IMETHODIMP Example::SetDefaultAuthPrompter(nsIAuthPrompt *defPrompt) { theApp.m_defPrompt=defPrompt; return NS_OK; } My own prompt component use this later: NS_IMETHODIMP ExampleAuthPrompt::PromptUsernameAndPassword(const PRUnichar *parent, const PRUnichar *text, const PRUnichar *passwordRealm, PRUint32 savePassword, PRUnichar **user, PRUnichar

1/17/2010 10:00:50 PM 0 ac <andre.coutu...@googlemail.com>
Dynamically unregistering XPCOM components

Hello, Is there a way to dynamically unregister a (JavaScript) component? I've successfully managed to use nsIComponentRegistrar.autoRegister() to register it at runtime. But calling nsIComponentRegistrar.autoUnregister() throws an error: Error: [Exception... "Component returned failure code: 0x80004001 (NS_ERROR_NOT_IMPLEMENTED) [nsIComponentRegistrar.unregisterFactoryLocation]" nsresult: "0x80004001 (NS_ERROR_NOT_IMPLEMENTED)" location: "JS frame :: file:///media/disk/Data/Apps/thunderbird-3/modules/XPCOMUtils.jsm :: anonymous :: line 216" data: no] nsIComponentRegistrar.

1/13/2010 10:39:25 PM 0 Damiano ALBANI <damiano.alb...@gmail.com>
Re: Cant find a way to open AppData/LocalLow directory...

After you get 'AppData/Local' folder., call SetNativeLeafName(NS_LITERAL_CSTRING("LocalLow") of nsIFile. Good luck. On Wed, Jan 13, 2010 at 4:00 AM, <dev-tech-xpcom-request@lists.mozilla.org>wrote: > Send dev-tech-xpcom mailing list submissions to > dev-tech-xpcom@lists.mozilla.org > > To subscribe or unsubscribe via the World Wide Web, visit > https://lists.mozilla.org/listinfo/dev-tech-xpcom > or, via email, send a message with subject or body 'help' to > dev-tech-xpcom-request@lists.mozilla.org > > You can reach the person managing the list at >

1/13/2010 1:28:10 AM 2 dongdong deng <1983...@gmail.com>
Cant find a way to open AppData/LocalLow directory using xpcom

I'm working on windows machine. I am able to get path to User 'AppData/Local' folder as follows, appdatafile = Components.classes["@mozilla.org/file/directory_service; 1"]. getService(Components.interfaces.nsIProperties). get ("LocalAppData", Components.interfaces.nsIFile).path; Can anyone help me to get the 'AppData/LocalLow' user folder? In windows vista and windows 7 Appdata directory has 3 folder underneath Local,LocalLow and Roaming respectively. please run these commands and check the problem out.. %appdata% %LocalLowAppData%

1/12/2010 1:21:20 PM 0 Vikram Baghel <vickyha...@gmail.com>
Retrieving value of a specific string property throws error in FF 3.0.8 /3.5.6

Hi, I'm trying to retrieve the value of the string property 'capability.policy.localfilelinks.sites' on Firefox/Win. This is the code snippet I've tried: netscape.security.PrivilegeManager.enablePrivilege ('UniversalXPConnect'); var prefs = Components.classes["@mozilla.org/preferences-service; 1"].getService(Components.interfaces.nsIPrefBranch); var value = prefs.getCharPref ("capability.policy.localfilelinks.sites"); My intention is to check if 'value' contains two specific sites. This is the error I see from the Firebug console in 3.0.8: [Exception... "Cannot modify prop

1/11/2010 10:40:39 AM 3 Rajorshi Biswas <rajorshi.bis...@gmail.com>
How do I make a Firefox extension (add-on) that only becomes available for a specific site?

I want to develop an extension that activates only in specific domain. I don't want it to appear in browser menus, toolbar, status bar, context menu while not browsing this specific domain. How Can I do that? Thank you.

1/10/2010 3:26:03 PM 1 yevey <yevsj...@gmail.com>
Cancel request and auto-generate response.

Hi, I am trying to write an XPCOM component that will selectively cancel some requests and send back an auto-generated response. I have an observer listening for http-on-modify-request. If a request meets some requirement I call the Cancel(NS_BINDING_ABORTED) then use the current nsIStreamListener and call the OnStartRequest, OnDataAvailable, and OnStopRequest with my auto-generated data. However, I get unexpected Null Pointer Exceptions when I call OnStartRequest. Here is the my pseudo code: NS_IMETHODIMP WSComponent::Observe(nsISupports *aSubject, const char *aTopic, const PRUnich

1/8/2010 10:09:28 PM 4 "Max K." <mkley...@gmail.com>
js handle xpcom notify problem

Hi I want to do such thing: use js handling notify from xpcom component.I do this follow: 1,add an attribute in the interface : attribute nsISupports observer; 2.Generate header and type lib by xpidl. 3.xpidl auto add two method GetObserver(nsISupports * *observer),SetObserver(nsISupports *observer), I implment SetObserver to receive Observer pass from js. 4.write an Observer in js , register to nsIObserverService,create an instance and pass to xpcom. but why can't I call SetObserver method ? code: IMyComponent.idl #include "nsISupports.idl" [scriptable, uuid(b7b04

1/8/2010 9:45:47 AM 1 Chong <fbf...@gmail.com>
Is there a way to save chrome path file in .jar archive to a absolute path file ?

Hi, Is there a way to save chrome path file in .jar archive to a absolute path file ? The scenario is that there is a file exist in a .jar archive file, and I want to extract that file from the chrome path in a xul application. Any suggestions? Thanks in advance. --=20 =B5=CB=B6=AC=B6=AC =B5=E7=BB=B0=A3=BA51570010-6495

1/7/2010 5:00:15 AM 0 dongdong deng <1983...@gmail.com>
Problem with returning elements in FF 3.5.6

Hi all I have created 2 XPCOM Components, one in JS and the other in C++=20 The JS component contains function that returns variant (in some cases elem= ents) to the native component for example the following function:=20 nsIVariant GetParentNode(nsISupports e); which is called from C++ XPCOM object.=20 the JS implementation of GetParentNode is: function GetParentNode(e){=20 return e.parentNode; } prior to firefox 3.5.6 everything was ok.=20 in firefox 3.5.6 for some reason i do not get an nsGenericElement anymore b= ut nsXPCTStubBase object.=20 do i need to perfo

1/4/2010 3:56:40 PM 2 "Ben Shabtai, Avishay" <avishay.ben-shab...@hp.com>
Returning Unsafe object from XPCOM written in JS to C++

I have created a XPCOM that needs to return unsafe ojbects (DOM elements) that are not safe for example the following function: nsIVariant GetParentNode(nsISupports e); which is called from C++ XPCOM object. the JS implementation of GetParentNode is:: function GetParentNode(e){ return e.parentNode; } prior to firefox 3.5.6 everything was ok. in firefox 3.5.6 for some reason i do not get an nsGenericElement anymore but nsXPCTStubBase object. do i need to perform new XPCNativeWrapper(e.parentNode); instead of just returning the node?

12/31/2009 1:42:48 PM 0 Avishay <avishay.ben.shab...@gmail.com>
Re: Registation of a xpcom object in Firefox/Linux

Hi, Did you check with the help of this page? https://developer.mozilla.org/en/Troubleshooting_XPCOM_components_registrat= ion Are you sure your xulrunner binary has the same version as your SDK? What is the output of ./run-mozilla.sh `which ldd` -r your.so Regards Kelson Le jeu 17/12/09 16:27, ac andre.coutuier@googlemail.com a =C3=A9crit: > Hello, >=20 > we try to port a Firefox extension from Windows to Linux. In Windows > the registration works well, but not in Linux (We don't develop the > Windows Version). We try the registration part from=20 > http://www.iosart.

12/21/2009 12:04:51 PM 0 emman...@engelhart.org
MySQL xpcom connector

Hi there, After searching for a few hours, I'm ready to ask the experts... Mysqlxpcom project seems dead (looked alive around 2004). A search for "mysql" on this list actually turned up no results today. Googling "firefox mysql" yields little. This seems like a no-brainer...How would one speak directly to a mysql server via firefox? Seems like an XPCOM application would be the ticket, or is that looking in the wrong direction? Is there such an app? Any idea why this seems to be an obscure need? Thanks for any pointers

12/19/2009 12:36:19 AM 0 hv <habitablevol...@gmail.com>
Registation of a xpcom object in Firefox/Linux

Hello, we try to port a Firefox extension from Windows to Linux. In Windows the registration works well, but not in Linux (We don't develop the Windows Version). We try the registration part from http://www.iosart.com/firefox/xpcom/ and get the following error messag: ---------- Can not initialize XPCOM Glue Can not aquire component registrar Registration failed: (c1f30001) /opt/2016/components/MyComponent.so --------- Could any one tell me what the problem is?

12/17/2009 3:27:33 PM 0 ac <andre.coutu...@googlemail.com>
XPConnect QueryInterface forcing a NS_NOINTERFACE

In my (actually songbird extension, so it may be a slightly older build of XPCOM), I have a class written in javascript, which implements a custom interface in an xpt file in the extensions. I've tried this using both XPCOMUtils.js and a by-hand function definition. called QueryInterface to my custom interface, even though it is defined causes a NS_NOINTERFACE result. However if I do jsObj = object.wrappedJSObject jsObj.QueryInterface(Components.interfaces.awITelescope); it returns the object as it should. All my trials points to the function working okay, but somewhere along the

12/15/2009 5:12:16 PM 1 Alex Wilkinson <a.wi...@gmail.com>
Splitting the Browser.

Hi All, I want to split the Firefox Browser functionality into two parts. Browsing and Rendering at Server. and Presentation is at client. As per my understading, At the server create the DOM Objects and At client side Run the Javascript Engine (Seamonkey ) suppoly the DOM Objects. First of all is this possible If possible Any idea about how to proceed. Thanks and regards Reddy Gari.

12/8/2009 3:40:15 PM 0 Sree Gari <sree.rg...@gmail.com>
Sporadic XPCOM registration issue with Windows

Hi, Sorry for boring you again with a registration issue, but I'm stuck. I have three XPCOMs, coded in C++, which work well with Linux. They also mainly work with Windows Vista or XP (also fresh installed). I write "mainly", because time to time, I have a bug report about a compute= r where the components do not register. So it seems that I have anywhere a compatibility issue but I don't achieve = to find where. I have checked: * The component itself and the xulrunner binaries (In fact, it works almost= all the time). * The component dependences with "dependence walker": on

12/3/2009 12:33:29 PM 0 emman...@engelhart.org
Is there a way to run multiple instances of the same xulrunner app?

Hi, Is there a way to run multiple instances of the same xulrunner app? Or does any body have good idea? Though xulrunner can run the same app UI multiple times, but they are all in the same process. That's not a good feature for me and someone. Any ideas will be appreciated. Thanks in advance.

12/2/2009 3:06:04 AM 0 DDD <1983...@gmail.com>
How to get X11 Window Id?

Hi All, Need to write an XPCOM which returns X11 window id for the current window. The entire problem is to save window thumbnail to some file to pass it to some external application (a window manager actually). So, to identify the saved thumbnail I would like to name the file as winid.png. Is it possible to do that in JavaScript or in C++? Respectfully, Michael

11/26/2009 11:12:14 AM 0 "Michael A. Borisov" <bori...@gmail.com>
how can I put my xpcom in a specified directory?

Hello everyone, my xpcom works fine when I put it in C:\Program Files \Mozilla Firefox\extensions. For some special reason, I need put the xpcom in c:\windows\system32 now. But it doesn't work. I tried "regxpcom.exe -x thepathofxpcom", which doesn't work as well. Can anyone tell me, is that possible to put my xpcom in another specified place except the folder of "Mozilla Firefox\extensions"? Thanks a lot. Anthony

11/25/2009 5:25:00 PM 2 andro <anthonyha...@gmail.com>
Baume and Mercier Capeland S Mens Watch 8220

Baume and Mercier Capeland S Mens Watch 8220 http://www.watchestrade.net/Baume-Mercier-Capeland-S.html http://www.watchestrade.net/Baume-Mercier-Watches.html http://www.watchestrade.net/Baume-and-Mercier-Capeland-S-Mens-Watch-8220.html http://www.watchestrade.net/ <br />Automatic Baume Mercier,Titanium case and bracelet, Grey dial with black subdials, luminous hands and hour markers, Displays date at 3, Screw down fluted crown, Rotating bezel, Certified Chronometer, Water Resistant to 200 meters.<BR><BR>Baume et Mercier Capeland S Men's Watch 8220

11/24/2009 1:40:09 AM 0 watches replica <omegawatch...@gmail.com>
Firefox 3.x nsIWebProgressListener OnStateChange bug?

I found another odd thing in regards to Firefox 3.x and the Web Progress Listener. All the sudden I stop getting =93OnStateChange=94 events when using the back and forth button. I register a web progress listener with the following flag =91NOTIFY_STATE_DOCUMENT=92(among others) These are the steps to reproduce 1. Launch Firefox 3.x 2. Go to www.google.com and perform a search 3. =91Reload / Refresh=92 the search results page 4. Now use the =91Back=92 and =91Forth=92 button, - no =91OnStateChange=92 = events are being generated. (No DOMContentLoaded events are being generated as

11/23/2009 11:14:05 PM 19 Jens <jenslsoren...@gmail.com>
Usage nsIDocument::CreateElem instead of nsIDOMDocument::CreateElement

Hi everyone, Sorry to bother you again, but I can't find a solution. Here is the context : a plugin (using an XPCOM component) is running on Firefox , and it works mainly for XHTML pages. At plugin initialization , I retrieve the nsiDOMWindow (NPN_GET_VALUE with NPNVDOMWindow) and then get the nsIDOMDocument associated with it. Since my goal is to add HTML objects dynamically , I tried to use nsiDOMDocument::CreateElement : on UNIX, no problem, whereas on Windows the plugin crashes immediately (same thing when I tried to get a reference to the <body>). Since nsiDOMDocument::CreateEl

11/22/2009 9:17:46 AM 7 Mac <meunierr...@gmail.com>
nsIDOMDocument::CreateElement succeeds on UNIX and fails on WIN

Hi again, I'm developing a plugin for Firefox, maybe you think its' aplugin issue, but nope, it's an XPCOM issue, here is what is happening. At the plugin initialisation , I want to add an iframe to the current document, so 1) I get the document element : nsIDOMWindow * domWindow; NPN_GetValue(mInstance, NPNVDOMWindow, NS_STATIC_CAST(nsIDOMWindow **, &domWindow))==NPERR_NO_ERROR ); nsCOMPtr<nsIDOMDocument> domDocument; domWindow->GetDocument(getter_AddRefs(domDocument)); 2) then I create my nsIDOMElement: nsCOMPtr<nsIDOMElement> iframe; nsresult rv=domDocument->CreateElement(NS_L

11/19/2009 2:51:27 PM 1 Mac <meunierr...@gmail.com>
Emulating mozBackgroundRequest via an nsIObserver

I've got some code running from a DOM Worker launched from Chrome. The worker simply requests a resource by using XMLHttpRequest object. Unfortunately assigning mozBackgroundRequest to the object will not background the request as technically speaking code within the worker is not privileged at all and as a result in case the XMLHttpRequest object encounters a Basic Auth protected form, an authentication dialog will pop-up which is annoying. Hopefully in the future DOM Workers will be able to assign mozBackgroundRequest to arbitrary XMLHttpRequest objects but for now I come up with

11/18/2009 10:49:36 AM 0 pdp <pdp.gnuciti...@googlemail.com>
xpcom conflicts with apache

I write an app based on xpcom and run it from Apache.It did not work. When I run it under console, it worked well. Has someone ever met this type problem? Thanks

11/18/2009 2:20:32 AM 0 zhalfa <zhalfa2ti...@gmail.com>
Possible WebProgressListener bug in Firefox 3.6?

I=92m seeing some strange behaviors in Firefox Beta 3.6. I implemented a web progress listener which subscribe to the following events/ notifications =91nsIWebProgress::NOTIFY_STATUS|nsIWebProgress::NOTIFY_SECURITY=92 I=92m trying to query the =91nsIChannel=92 interface from the nsIRequest interface which is being passed to =93OnSecurityChange=94 and =93OnStatusChange=94 as one of its parameters. Performing the following operation often fails thus I=92m unable to get security information. nsCOMPtr<nsIChannel> spChannel =3D do_QueryInterface( aRequest ); // Often fails (not alway

11/17/2009 9:43:34 PM 5 Jens <jenslsoren...@gmail.com>
FW: using XPCOM to periodically refresh the browser

hello=2C =20 lets say i have created an XPCOM component=2C and i have a bit of javascrip= t that creates the object and calls methods on it. what i CAN do is paste = the javascipt into an html file (that i have written) and open it using fir= efox. but what i actually need to do is for all firefox pages to include th= is bit of javascript - that is=2C i open a firefox page=2C and the bit of j= avascript that creates my XPCOM object is sort of injected into the page. =20 is this even possible ? =20 thank you. =20 ___________________________________________

11/17/2009 8:06:39 PM 0 Paul Turnbull <paul_turnb...@hotmail.com>
using XPCOM to periodically refresh the browser

hello=2C =20 i am new to XPCOM (today in fact)=2C and so far i have a working template= =2C ie idl file is building fine=2C objects are implemented fine=2C and the= dll/xpt files are installed to firefox/components. i can successfuly insta= ntiate my object and call methods on it using javascript. =20 my overall goal is this: i need to be able to refresh all open firefox brow= sers=2C inluding all tabs=2C periodically (lets say 30 every secs). is XPCO= M the best way to go about this ? if so could someone please provide me wit= h some pointers to get me started ? =20

11/17/2009 4:15:31 PM 0 Paul Turnbull <paul_turnb...@hotmail.com>
Getting nsiWebBrowser from nsidomwindow (from within an XPCOM component written in C++)

Hi all, I've been searching a lot on the web about that subject, but didn't find much. I'm absolutely sure this is possible in C++ : some say you got to deal with nsIDocShellTreeItem using nsIInterfaceRequestor , it filaed when I tried it. Does anybody know the correct way to get the nsiWebBrowser instance from an nsidomwindow instance please? Thanks in advance , Mac

11/17/2009 10:27:25 AM 19 Mac <meunierr...@gmail.com>
Duplicate DNS config in HOST file of Windows XP

Hi, Does anyone meet the problem of "Duplicate DNS config in HOST file of Windows XP crash xulrunner" ? The HOST file exists in WINDOWS\system32\drivers\etc\hosts. If there are two the same IP&DNS pair, such as 192.168.0.1 www.test.com 192.168.0.1 www.test.com adding HTTPS certification to xulrunner will crash the program.

11/17/2009 6:33:20 AM 0 DDD <1983...@gmail.com>
Coordinates of symbols

Hello. How can I get coordinates of particular symbol in Mozilla's DOM node? Which interface should I use for that? Thank you.

11/13/2009 5:11:58 PM 1 Ruslan <ruslan.fayzrakhma...@gmail.com>
Read data from serial port

I'm trying to control a POS printer attached to serial port, using XPCOM to read and write to /dev/sttyS0. In fact, I almost succedded, and got the printer working! But I have problems trying to read from the blocking device when the printer is turned off and so there is no data available to be read. As expected, nsIScriptableFileInputStream.read() blocks when no data is available, the UI completly hangs, and the process must manually killed. So I used a nsIInputStreamPump to perform asynchronously reads from the device. Thats works fine, I got the data if there are some, and the

11/9/2009 7:02:32 PM 3 Jose Mico <jose.m...@gmail.com>
How to get nsILocalFile from a resource URL?

Hi, how can I get a nsILocalFile from a resource URL like resource://fruits/banana.png for testing whether the resource exists. For chrome URLs I already have a solution to get the nsILocalFile, but for resource URLs I'm still looking for.

11/8/2009 4:27:09 PM 0 =?UTF-8?B?R2VvcmcgTWFhw58=?= <ge...@bioshop.de>
imgITools::DecodeImageData implemented or not implemented?

Hi everyone, I'm facing a weird issue since two days, and it seems like you are my last resort. In advance, sorry for the long post, let's go to the point. --> The goal is to retrieve the data of an image situated on the web (e.g. http://www.google.com/images/firefox/sprite2.png), which means get image's width, height, bytes ... , inside an XPCOM component. Basically, this can be done by using an imgIContainer object. And in order to obtain a reference to the imgIContainer of the image, my idea was to use the imgITools interface with the nsIInputStream of the image, it gives somethin

11/6/2009 1:05:47 PM 4 Mac <meunierr...@gmail.com>
a Unicode string to a char *

hi.guys, Is there some interface to realize : a Unicode string to a char * ? I tried to use nsIScriptableUnicodeConverter,but it is not available~ Thank you in advance~ -hanyuxinting 2009-11-05

11/5/2009 7:34:08 AM 1 hanyuxinting <hanyuxint...@gmail.com>
get environment strings by Mozilla Xpcom

Hi,guys, I want to get the directory of "My Documents", the code is : var wrk = Components.classes["@mozilla.org/windows-registry- key;1"] .createInstance (Components.interfaces.nsIWindowsRegKey); var oType = "Software\\Microsoft\\Windows\\CurrentVersion\ \Explorer"; wrk.open(wrk.ROOT_KEY_CURRENT_USER, oType, wrk.ACCESS_READ); if(wrk.hasChild("User Shell Folders")) { var subkey = wrk.openChild("User Shell Folders", wrk.ACCESS_READ); var id;

11/3/2009 5:18:34 AM 2 hanyuxinting <hanyuxint...@gmail.com>
window.arguments in CPP

I have an extension that passes some parameters to window.openDialog javascript call. How can I retrevie these parameters within my cpp code? I have seen javascript examples where you can use window.arguments[0]... I haven't seen any samples to do the same within cpp code. Plz help?

10/22/2009 10:44:17 PM 0 MozDeveloper <opendev2...@gmail.com>
Retrieving of hostname

Hello, I'm looking for a way to get hostname of the computer that runs the firefox. Could you tell me, is there a way to retrieve hostname or run system command `hostname` to grub results from it? -- Sincerely, Yaroslav

10/19/2009 12:50:41 PM 2 Slash <slas...@gmail.com>
UniversalXPConnect and Xulrunner in Ubuntu 9

Hello, I have a chrome application with enabled XPCOM access from selected domains: pref("capability.principal.codebase.p0.granted", "UniversalXPConnect"); pref("capability.principal.codebase.p0.id", "http://localhost:8080"); pref("capability.principal.codebase.p0.subjectName", ""); ........capability.principal.codebase.p1.granted.... ......etc. Javascript code at localhost:8080 - try { netscape.security.PrivilegeManager.enablePrivilege ('UniversalXPConnect'); } catch (e) { console.info('Permission UniversalXPConnect denied.'); } var file = Components.classe

10/13/2009 3:12:57 PM 1 "O. Esner" <olda.es...@gmail.com>
decoding of long Int

Hi, I am new to Firefox. While debugging the Firefox with gdb, I found there are some variables/objects holds long int value. It is 15 digit value for example, In XPCWrappedNative::CallMethod, following long Int I found, Which I cannot decode? name = 140340262156644 classword = 140340131011560 Does anyone knows how to decode this type of values? regards, Kailas

10/9/2009 10:51:40 AM 1 PATIL Kailas <pati...@comp.nus.edu.sg>
set of methods used with vtableIndex

Hi, This might be a stupid question. Native function in Firefox named "NS_InvokeByIndex_P " is used for dynamic dispatch. vtableIndex or methodIndex indicates the method to call. My question is, Where I can find the list of method calls and there corresponding methodIndex or vtableIndex. Is there any way to find the set of methods used with Vtable in Firefox? Is there any document that explains dynamic dispatching mechanism used in Mozilla Firefox? regards, Kailas

10/9/2009 8:47:07 AM 0 PATIL Kailas <pati...@comp.nus.edu.sg>
How mapping of JS objects methods with native function name is done

Hi, I am new to Firefox. I want to know how the JS engine after executing the Javascript make the call to appropriate function. For example, if javascript code is document.write "hello" then how JS engine calls the function nsHTMLDocument::Write(const nsAString& aText) in Firefox. I want to know how or where the mapping of JS object method with Firefox native function name is done, such as mapping of document.write to nsHTMLDocument::Write. regards, Kailas

10/8/2009 11:18:28 AM 1 PATIL Kailas <pati...@comp.nus.edu.sg>
XPCOM XPCONNECT and Javascript issue on AIX

Hi, I am working on a defect https://bugzilla.mozilla.org/show_bug.cgi?id=516667 But I am finding difficulty in tracing the return value of the below javascript function in XPCOM code. createItem: function placesCrtItem(aURI, aContainer, aIndex, aTitle, aKeyword, aAnnotations, aChildTransactions) { return new placesCreateItemTransactions(aURI, aContainer, aIndex, aTitle, aKeyword, aAnnotations, aChildTransactions); }, For some reason, the return value is made null when it

10/7/2009 11:16:06 AM 0 Shailendra Jain <shailen.n.j...@gmail.com>
Disappearing windows event when using embedded Mozilla browser

I have a java stand alone app using swt and embedding the Mozilla browser running on Windows. An external admin application posts Windows Events representing administrative functions to which my app must respond. In my readAndDispatch loop I peek at the event queue looking for my external admin event. Most of the time this works fine, however, there are occasions where the event is never seen by the readAndDispatch loop. I have tested this by hitting a break point in the loop, dispatching the admin event from the admin external client, and then releasing the break point. The ad

10/1/2009 6:39:01 PM 0 Mark <mark.d.sandb...@gmail.com>
XPCOM JS to listen and refresh the page

Hi, I have written a small JavaScript using XPCOM to listen on a socket and refresh the page according to the data received (only refresh for now). I have a C application that will connect to this server socket and send the data and disconnect. I call this javascript inside the onload of the index page. The javascript works only once. From then on XPCOM init fails. Also the refresh is not working as intended. I am a beginner to XPCOM and Javascripts. So, is there a better way to achieve the desired functionality instead of loading via onload, etc? Can experts correct me whe

9/30/2009 9:45:18 AM 1 Arun <visionofa...@gmail.com>
OpenGL plugin (Firefox) and JavaScript overlay

Hi all i have some issue with firefox plugin (using openGL context). which is nicely working. but i like to overlay a javascript gui, and once it gets hidde behind the plugin (opengl, rendering done in back ground thread) with iframe under iexplorer similar activeX works ok. but with firefox it doesn; t work is there any suggestion? adrian -- ******************************************** Adrian Egli

9/29/2009 1:20:28 PM 0 "Adrian Egli OpenSceneGraph (3D)" <3dh...@gmail.com>
Can I use base64 routines in an add on?

Within mozilla, I've got an xpcom add on written in c++. I want to some base64 routines. I have found: PL_Base64Encode in plbase64.h NSSBase64_EncodeItem in nssb64.h g_base64_encode from gbase64.h BTOA_DataToAscii in base64.h From what I can tell, I can't include gbase64.h (I could be wrong, please correct me if so). For the .h files I can include, I can get to compile, but not link, undefined symbols: _NSSBase64_EncodeItem _PL_Base64Encode _BTOA_DataToAscii Any idea if the base64 routines are accessible from an add on? If so what do I need to do to make my

9/29/2009 2:39:00 AM 0 Cris <crisxp...@779Media.com>
Creating instance in thread

I'm finding a strange behavior that I can't seem to pin down. I created a very bare bones XPCOM object as described here: https://developer.mozilla.org/en/How_to_Build_an_XPCOM_Component_in_Javascript The trouble happens when I create an instance of the XPCOM object inside of a thread (threads setup according to: https://developer.mozilla.org/en/The_Thread_Manager). Calling this line inside of the thread works fine the first time Firefox is run: var myComponent = Components.classes['@dietrich.ganx4.com/helloworld; 1'] .createInstance (Components.interf

9/27/2009 4:15:00 AM 1 isnw <n...@summitsix.com>
PyXPCOM and external rendering

Hi everybody, my name is Manu, typing from the UK. I've been wondering: would it be possible to take advantage (via PyXPCOM) of the XUL and CSS-related structures that Firefox uses internally, but then render them with a different API in a standalone application? Manu

9/24/2009 6:13:00 PM 2 "Emanuele D'Arrigo" <man...@gmail.com>
Firefox extension and socket

Hi all, I'm having a problem with a simple Firefox extension that should comunicate with a php script in a local network. They only should exchange a simple message. This is the JavaScript code of the extension: ------------------------------------------------------------------------------------------ function getPageContent() { var listener = { finished : function(data){ alert("Inizio dati letti\n"+data+"\nFine dati letti"); } } readAllFromSocket("192.168.1.2",9999,"Prova messaggio da Firefox",listener); } function readAllFromSocket(host,port,outputDa

9/23/2009 10:46:36 AM 4 theZio <antonellodippol...@gmail.com>
MouseWheel events sent before actual scrolling.

I wish I could receive scroll events. Listening to DOMScrollEvent is fine, except that events are sent *before* the scroll is achieved. So I cannot get the newer positions of nsIDOMHTMLNSElements :( Is there a way to receive events only when the scroll has just finished?

9/23/2009 8:25:15 AM 6 lolive <olivier.ros...@gmail.com>
calling xpcom from script on random webpage

I have a script I'm using that is called by my overlay.xul for my firefox plugin. in order to get it to work, i call unsafeWindow.netscape.security.PrivilegeManager.enablePrivilege ("UniversalXPConnect"); but, this line doesn't work (i get an error saying i can't access it "components.classes": Components.classes[cid].createInstance(); I am using the extension only on my computer so I really dont care about security. I set signed.applets.codebase_principal_support to true but that didn't help. same problem.

9/15/2009 2:46:15 PM 0 Lehel <lehelkov...@gmail.com>
wrapping an external library using xpcom

hi all i know of a few e.g. firefox extensions which wrap external libraries like libpurple to provide the functions of the library using xpcom my question now is: is there an easier way to wrap externa libs other than manually write an IDL and the wrapper code? so anyone knows an easier approach for this? maybe some semiautomated wrapper (e.g. dlopen or such) thx all

9/14/2009 8:16:27 PM 0 jeti <buska...@gmail.com>
interfacing between native code and firefox javascript

I'm trying to develop a library that allows me to load firefox and then interface with the browser's html using xpcom/firefox-extension. I've managed to compile my test XCPOM module and get the firefox extension built and registered thanks the group's help. Overall, the steps I want to be able to do are: 0.) have the extension installed 1.) Have my native library load Firefox with the a specific url. 2.) Register a callback with my library that is called when a certain XPCOM interface method is called. 3.) Get a reference to the XPCOM object used by Firefox. 4.) Use the object to

9/14/2009 5:38:05 PM 1 Lehel <lehelkov...@gmail.com>
Firefox 3.5.3 and extension development

I just developed my first xpcom-based firefox extension. I placed it into an xpi package and tried to install it into firefox. Firefox issued this error: sample 1.0 could not be installed because it is incompatible with Firefox 3.5.3. I followed the directions for packaging from mozdev sites, i placed my xpcom in a components folder and my install.rdf looks like this: <?xml version="1.0"?> <RDF xmlns="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:em="http://www.mozilla.org/2004/em-rdf#"> <Description about="urn:mozilla:install-manifest"> <em:id>sample@le

9/13/2009 9:20:18 PM 2 Lehel <lehelkov...@gmail.com>
Compiling with Visual Studio

Hi. I've been trying to build an XPCOM dll with Visual Studio and keep getting this weird problem. When I try to compile the IDL file in my project, it complains that it cannot find nsISupports.idl. I have the gecko sdk installed and have set the "Addition Include Directories" correctly in Visual Studio to point to the xml-runner/sdk/include folder. everything else compiles fine. just having problems with the IDL. I even put the IDL directory into the Additional Includes Directory.

9/13/2009 5:19:12 PM 7 Lehel <lehelkov...@gmail.com>
Different versions of xpcom.dll ??!!

In the (Windows) Gecko SDK that I just downloaded (version 1.7) there is an xpcom.dll that is 406 KB long; in my c:\program files\mozilla firefox is an xpcom.dll that is only 17 KB long. Did I download a really stupid version of the Gecko SDK? My program needs a copy of xpcom.dll to run (I'm talking XPCOM), will the 17 KB one be good enough? Thanks! Chris

9/9/2009 11:27:39 PM 0 Chris Shearer Cooper <chris.shearer.coo...@gmail.com>
Firefox Add-on Limitations

I'm curious to know the limitations of a Firefox add-on or extension (is there a difference?) with regard to... * resizing and repositioning the firefox window on the desktop * controlling which tab is active * controlling the order of tabs * closing a tab Looking at http://www.oxymoronical.com/experiments/apidocs/ it is not apparent which interfaces I would leverage to take these actions. I assume that Firefox implements many more interfaces on top of the typical Xulrunner Xpcom interfaces... where can I find reference documentation for these? In short: I have experience wor

9/9/2009 6:37:27 PM 0 Derrick Rice <derrick.r...@gmail.com>
Building Standalone XPCOM w/ mozilla-1.9.1 ?

I am trying to build standalone XPCOM with mozilla-1.9.1 on Windows XP. I have downloaded and installed the mozilla-build tools and have successfully built the browser using VC7.1 . I have tried using "./ configure --enable-application=xpcom" to setup to build standalone xpcom but this does not work as it is looking for nsprpub to be built already. I have been able to build nsprpub on it's own but I can't seem to get the build process for xpcom to find the nspr headers when compiling. I get the following error when compiling xpcom: .../../../../dist\include\xpcom\xpt_arena.h(

9/9/2009 5:34:39 PM 0 stratdm <dmin...@cfl.rr.com>
nsiclipboardcommands

Hi all, Does anyone know what happened to this interface and the support of it? I've only found a couple other people that have tried to use it and who are getting the same error I'm getting, such that it seems just broken in all accounts. The interface seems like a perfect fit for a simple clipboard management tool for extensions/apps that have context menu actions on UI elements like links, images, media, etc. I'd much rather use this interface than a couple other more raw clipboard interfaces. A lot of the algorithms and patterns of clipboard management are already encapsulated w

8/31/2009 7:36:19 PM 1 goat <kav...@gmail.com>
JavaXPCOM how to use Domcontentloaded

Hello, In my Java application that uses SWT and Xulrunner 1.9.1.3 I currently use ProgressAdapter and LocationAdapter. That works good for normal websites. But I currently stuck to find a way to react on Ajax and IFrame Requests. When an IFrame has finished loading the ProgressAdapter reacts but always gets the main document, not the IFrame directly. More difficult, when Ajax Request are processed I don't get any reaction. When writing a normal Firefox extension using JavaScript there is a simple way to use the domcontentloaded event. How can I use this from Java? How can I reg

8/29/2009 8:04:08 PM 2 Martin Burchard <n...@martin-burchard.de>
Getting the URI from the browser location bar

I need to get the string from the location bar in Firefox from C++ XPCOM. Any ides how to do this? The point is to find the URL that my extension is running from so I can block sites that are not white listed to use my extension. This would be functionality similar to sitelock in ActiveX.

8/28/2009 3:07:29 AM 0 fico <ficoces...@gmail.com>
reading from socket asynchronously using asyncWait

I cannot seem to find an answer to this question anywhere, so I'm hoping some kind folk can give me a hand. I know very little about xpcom programming, so go easy on a newbie. <smile> How do I asynchronously read from a socket? The following code will create and open a connection to a remote host on a specified port using a socket. I can read data synchronously from the stream, but cannot figure out how to read asynchronously. I think I'm not grocking how asyncWait works: specifically what exactly is the first parameter? If I use a javascript function, it is never called. S

8/27/2009 7:25:52 PM 4 "mozilla accessibility" <Rich_Calogg...@wgbh.org>
Restricting browser to select domains and ip spaces

I'd like to restrict navigation (this is an embedded version of xulrunner) to a specific set of domains and IP spaces. What is the simplest way to do this? I have looked at both the nsIDocNavStartProgressCallback and nsIChannel interfaces but am not familiar (yet) on how to use them. Would replacing the nsIChannel interface be feasible or would I need to replace also the nsIHttpChannel, nsIFTPChannel, etc? Ideally, I'd like to show the user a custom error page when this occurs, but I'd also settle for having it look like an error status and then changing the page that is displaye

8/27/2009 3:07:22 PM 0 Derrick Rice <derrick.r...@gmail.com>
Javascript global Property and release

Dear XPCOM professionals! We have developed XPCOM component in extension (https://addons.mozilla.org/en-US/firefox/addon/8966) which registers global property in DOM. I'm worry about that unregisterSelf is never called and also my object's Release method is never called too. How about lifetime and releasing of "Javascript global property" objects? Can you tell me is this normal behavior or we do mistake or give me links to detailed explanation of this process? Thank you in advance! Regards, Dimitar. Extract from code follow: <CODE> var jsPrintSetupModule = {

8/26/2009 6:45:24 AM 0 Dimitar Angelov <mi...@edabg.com>
XPCOM, How to get access and modify text data entered by the user?

I'll explain in simple terms what I intend to do, so to be sure i don't miss any sollution. I want to be able to modify the text that the user enters in for example Google Docs or different blog websites and be able to alter that text before it is sent to the server. I need to display one text to the user on screen and send a different one to the server. What I need to know is how to get acces from XPCOM in the Mozilla framework to the objects (and what objects) that handle these operations. Any suggestions and ideeas are welcome. Thanks

8/25/2009 1:39:47 PM 0 Bogdan Diaconescu <bogdan.diacone...@gmail.com>
NS_GetServiceManager returns NS_ERROR_NOT_INITIALIZED

I having problems with my XPCOM c++ object , i am exceuting the following code: nsCOMPtr<nsIServiceManager> srvcManager; nsresult res = NS_GetServiceManager(getter_AddRefs(srvcManager)); if(NS_FAILED(res)) break; and i am always getting NS_ERROR_NOT_INITIALIZED. my XPCOM object is launched from javascript inside of Mozilla FireFox.

8/25/2009 12:58:52 PM 0 Avishay <avishay.ben.shab...@gmail.com>
Creating instance of JS XPCOM will make Firefox hang or crash.

I am trying to create an instance of a js xpcom component in a thread. unfortunately firefox always crashes or hangs (but with NO cpu usage). You can try the following script in ExecuteJS: ---------------------------- var aRunnable = { run: function run() { // create a component here. i chose nsILoginInfo, as you should have it as well var test = Cc["@mozilla.org/login-manager/loginInfo; 1"].createInstance(Ci.nsILoginInfo); } }; var ThreadMan = Cc["@mozilla.org/thread-manager;1"].getService (Ci.nsIThreadManager); var theThread = ThreadMan.newThread(0);

8/21/2009 3:41:42 PM 9 Jaywalker <andre.selmana...@googlemail.com>
Google "English"

After removing a Windows Protection ad, I have had trouble logging into my Google account. When I type "www.google.com" I get redirected to a "Google English" search engine site. I don't see where I can "sign in" to my Google account. There is a redirect indication "Go to Google.com" at the bottom, but all I get is an error page. Help! I need to log in to get to my Google docs, calendar, etc...

8/19/2009 2:13:16 PM 1 Laurie Yen <laurie....@lausd.net>
nsIContentPolicy in Firefox 3.5

Guys, Do you know if something is changed with nsIContentPolicy interface in Firefox 3.5? I have an XPCOM component implemented in C++ that implements nsIContentPolicy because i need ShouldLoad() event to obtain URLs from browser (if you know another, better way to catch every TOP-LEVEL URL, or how to catch onDocumentComplete event in C++ plugin, please tell me) and it worked great on FF3.0, but on FF3.5 it does not. I register "content-policy" category with category manager like this on plugin registration, like this: rv = catman->AddCategoryEntry("content-policy", GA

8/14/2009 8:07:42 AM 0 Mihailo Gazda <mihailoga...@gmail.com>
How to create an image xpcom object ?

Hi,guys. I want to use the nsIClipboard to realize clip and copy and taste images, but I donot know how to create an image xpcom object. Codes from mozilla developers realized how to clip and taste strings~ // create an XPCOM object to wrap what we want to copy var copytext = "Text to copy"; var str = Components.classes["@mozilla.org/supports-string;1"] .createInstance (Components.interfaces.nsISupportsString); if (!str) return false; str.data = copytext; // a transferring object needs to

8/14/2009 6:13:09 AM 0 hanyuxinting <hanyuxint...@gmail.com>
Worker object Mockup in XPCSHELL

Hi list, I've been trying to implement a Worker-like object via xpcom for use in xpcshell. As far as I can see, there isn't a component which I can directly access. Can someone provide me with pointers of how this can be achieved? Thanks in advance, pdp

8/13/2009 1:46:41 PM 0 pdp <pdp.gnuciti...@googlemail.com>
On Firefox 3.6 and gecko 1.9.2

Dear All, Although an alpha version of FF3.6 is out, I couldn't find a place where I can download gecko 1.9.2. Every pages I've accessed tell me that it is under development. I have a firefox XPCOM component, which by now I realized it doesn't work on FF 3.6. Probably due to some change in some internal interface I use. I would like to make tests with gecko 1.9.2, can anyone tell me where I can download it (in the case it is available to download,of coz) Thanx in advance, Best, Oliveiros

8/13/2009 10:15:15 AM 1 Oliveiros <oliveiros.crist...@gmail.com>
DOM operation in thread?

Hi, I met a special question. The following statements are in a thread. Sometimes it will crash here. ... nsCOMPtr<nsIDOMDocument> doc = nsnull; doc = do_CreateInstance("@mozilla.org/xul/xul-document;1"); nsCOMPtr<nsIDOMText> messageText = nsnull; nsString wStrMessage; rv = doc->CreateTextNode(wStrMessage, getter_AddRefs(messageText)); nsCOMPtr<nsIDOMSerializer> serialize = nsnull; serialize = do_CreateInstance("@mozilla.org/xmlextras/xmlserializer; 1"); nsString xmlStr; rv = serialize->SerializeToString(messageText, xmlStr); ... And

8/13/2009 9:37:40 AM 2 DDD <1983...@gmail.com>
Signed scripting

Hi everyone, Please tell me if I'm not posting on the right forum and where I can find the right place. I'm writing a script that has to be signed since it needs access to the brother's (firefox 3.0.13) DOM. As far as I know, I need a certificate to sign the script so I generated one with certutils and then used signtools in order to generate a jar containing my script. I used the doc at http://www.mozilla.org/projects/security/components/jssec.html#signedscript to make it work. certutil -N -d sFolder signtool -G certname -d sFolder -p password signtool -d sFolder -k certname

8/11/2009 12:40:50 PM 0 Adrian <adr...@ossorguine.fr>
Access to local files from XPCOM c++ components

Dear newsgroup I've come to little problem. I have some legacy code written in C++ and now I need to embed it in Firefox extension. I've made a XPCOM component with that legacy code and connected it with Firefox XUL code. Everything is running fine, until my legacy code accesses to files from disc (this files was brought with extension and are in same directory as an dll and xpt file - they are data files with finite state machines used in whole legacy code). I've come to conclusion that in legacy code, calling fopen() function returns NULL, becouse data files are not found (however t

8/10/2009 3:44:39 PM 7 MyOwnClone <tomas.vyma...@gmail.com>
SVG elements modification

Hi Folks, I was wondering how to change SVG element properties. I noticed that most of nsIDOMSVG* interfaces do not allow to set attributs. Cheers, Lucien Pereira. PS : Please feel free to point out any usefull documentation concerning SVG programming.

8/8/2009 10:17:31 AM 0 Lucien Pereira <pereira.luc...@laposte.net>
Override HTTPProtocolHandler

What does overriding the HTTPProtocolHandler entail? I am dealing with a custom protocol which many users use simply by using a proxy, I'd like to override the HTTPProtocolHandler and catch these. In all other cases I want to just use the native HTTPProtocolHandler. Any advice is much appreciated.

8/5/2009 9:13:35 PM 3 Kevin Hosford <k.e.hosf...@gmail.com>
XPCOM method to access nsNSSSocketInfo?

Hi, I'm working on implementing a new cryptographic technology in Mozilla called TLS Keying Material Exporters. I have already implemented the core algorithms in NSS (Netscape Security Services), and am now working on exposing them at application layer in Mozilla, specifically in security/manager/ssl/src/nsCrypto.cpp. I need to be able to access the nsNSSSocketInfo for the currently loaded https page. Can anyone give me advice on how to do that (presumably using XPCOM)? Thanks, Douglas

8/3/2009 2:24:03 AM 1 Douglas Stebila <doug...@stebila.ca>
Passing javascript objects to C++ XPCOM component

Hi, I'm still relatively new to XPCOM. Documentation is still kind of hard to go through, so I wanted to ask here. I know that in IE every javascript object implements IDispatch, so if it is passed to some C++ code, you can use IDispatch interface to get its members. How can I do the same in Firefox? If I define a javascript class within the javascript code, and then pass it to my XPCOM component as a parameter, how can I find some type information on it? Thanks

7/31/2009 6:06:45 PM 1 Jon <jonathan.ca...@gmail.com>
Turn on/off Protocol Extension

Thank you to anyone who takes the time to read this question and more thanks to any who can offer some advice. I have a working extension to Firefox which allows for an additional protocol which can be toggled on/off via a setting in Firefox's preferences. What I would like to do is make this setting only apply when navigating to different pages. For instance I want an <img src="..."> tag to still resolve using my protocol when I have my noredirect setting set to on. Where should I add this sort of check? -Kevin

7/31/2009 2:58:02 PM 0 Kevin Hosford <k.e.hosf...@gmail.com>
Invoke Javascript from scriptable plugin

I am developing a mozilla plugin that needs bidirectional communication between Plugin (C++) and Javascript. To give some background, I am porting an ActiveX component that works in IE. That ActiveX component raises events to HTML/Javascript. &lt;script language="JavaScript" for="obj" event="OnEvent()"> I spent enough time searching mozilla site/newsgroups/forums. I got some clues like nsIDOMEventTarget needs to be implemented etc. but I can't find a reasonably complete sample some thing like scriptable sample project in GeckoSDKsamples that gets me going. I would be thankful if some c

7/25/2009 1:17:15 PM 0 Kiran Babu G <gutta.ki...@gmail.com>
Invoke Javascript from scriptable plugin

Hi, I am developing a mozilla plugin that needs bidirectional communication between Plugin (C++) and Javascript. To give some background, I am porting an ActiveX component that works in IE. That ActiveX component raises events to HTML/Javascript. &lt;script language="JavaScript" for="obj" event="OnEvent()"> I spent enough time searching mozilla site/newsgroups/forums. I got some clues like nsIDOMEventTarget needs to be implemented etc. but I can't find a reasonably complete sample some thing like scriptable sample project in GeckoSDKsamples that gets me going. I would be thankful if

7/25/2009 10:40:00 AM 4 kirrukirru <gutta.ki...@gmail.com>

Pages: 2











Newest Articles

[Hendrix] On a Mac - Can't Uninstall Yahoo Toolbar
55 min. 4 sec. ago

[Hendrix] Flash player window mis-placed if the page is reloaded at background tab
59 min. 45 sec. ago

[Hendrix] complaint
1 hour 3 mins ago

[Hendrix] MLS players ticket to thump if no do business near March 25
1 hour 14 mins ago

[Hendrix] are you kidding me or what?
1 hour 17 mins ago