mozilla

getting firefox chrome-window from XPCOM component

I am writing an XPCOM object that will like to access the main firefox window, and the open tabBrowsers. What is the interface that I should use ? ...

Avoid unresponsive script warning in xulrunner

In link text someone is advicing to change dom.max_script_run_time to avoid the unresponsive script warning. When we do that firefox add user_pref("dom.max_script_run_time", 100); extra line. In order to do that in xulrunner I edited to the xulruenner.js file to add pref("dom.max_script_run_time", 100); Can someone please confirm if ...

Does mozilla skywriter (bespin) support code clean up?

Is it possible to clean up indents with mozilla skywriter (bespin)? ...

Help me with my first Mozilla Extension.

I am new to Mozilla extensions and i have been trying to build the "hello world" following this tutorial https://developer.mozilla.org/en/Building_an_Extension but unfortunately its not showing anything on the right of my status bar when i start Firefox with my development profile. I have checked everything many times and not found any m...

The web page is ok with chorome, ie but mozilla again has problem

http://www.radikalgenc.com/bulten/ekim.htm this is a monthly newsletter. but it does not appear fine on mozilla, how can i fix this issue? ...

How to map response to request when using "http-on-modify-request" and "http-on-examine-response"??

How to map incoming responses to the outgoing requests when using HTTP observers: https://developer.mozilla.org/en/Setting_HTTP_request_headers#Observers ? ...

How to script Firefox or any Mozilla based browser

I need to automate something like this: Open an URL Wait until the page is fully loaded Save COMPLETE page as... (I can provide a name). I saw https://developer.mozilla.org/en/Command_Line_Options but I can't find an option to invoke the command "save page as... (in mode Web page complete)". So I can have all css, js, xml and related...

Mozilla addon development - Tab focus granting event

Hi, I need to capture tab focus granting event in Mozilla Browser. is there any type of listener implement for this event? Thanks, Chandnaa ...

How to work with files in XPCOM

Hi all, I'm writing a Mozilla component to get all the links from a page an write them into a file using XPCOM and C++. I get all the links into an array like this: //doc is a pointer to nsIDOMDocument doc->GetElementsByTagName(NS_LITERAL_STRING("A"), getter_AddRefs(nodeList)); nodeList->GetLength(&nodeNumb); href = new nsEmbedString[...

innerText shim for Firefox

in google chrome innerText seems to return the text of the element that the user see which is exactly what i need. so i need a shim of innerText for Firefox. for example: <div id='1'><br> f<div style='display:none'>no</div>oo   bar</div> <script> function test(){ return document.getElementById('1').innerText } </script> the funct...

::moz-selection does not apply to input elements

Is there anyway I can get ::moz-selection applied to input elements, even if I have to edit some file in userChrome.css, userContent.css or some similar file? thanks ...

mozilla's term "Global Objects" confused me

Several friends suggest me to read developer.mozilla.org/en/JavaScript/Reference/Global_Objects: The term "global objects"[1] here is not to be confused with the global object[2]. Here, global objects[3] refer to objects in the global scope. The global object[4] itself can be accessed by this in the global scope. In fact, the global sco...

CSS 3D support on Mozilla,Chrome,Opera.

Hi ALL I am working on 3D Data rendering and I am not able to find out the equivalent of following in mozilla, opera, chrome Can anybody help me out from this problem. for e.g: -webkit-transform: rotateX(90deg) translateZ(200px) rotateY(90deg) rotateZ(90deg); Thanks, Amit ...

Why scrolling with moz-radial-gradient is so slow?

Hi, I attached this style attribute to body tag: style="background: -moz-radial-gradient(center center , circle , rgb(223, 224, 228), rgb(189, 193, 200)) no-repeat fixed 0% 0% #fff;" And scrolling the page became very hard - it was lagging and scrolling slowly. Is it supposed to be so? Edit: Not only scrolling, all other jquery effe...

FireFox - Are all preferences in about:config located in .js files?

Hey Everyone, I am writing a script to grab some Firefox settings, however it looks like some preferences are not within Firefox's various .js files. The preferences I am referring to are the preferences in about:config (such as network.http.max-connections). The .js file I am mainly referring to is prefs.js. So my question is: Are a...