firefox

How does Firefox's 'awesome' bar match strings?

The question is how the string matching is done to find matching entries by the firefox 3 url bar. Substring matching on every entry might be slow. What algorithm can be used to match at any location in a fast way? ...

How to access a document's HTML in Firefox using IAccessible

I can get an IAccessible object from a Firefox window using this code: Guid guid = new Guid("{618736E0-3C3D-11CF-810C-00AA00389B71}"); object obj = null; int ret = AccessibleObjectFromWindow(hWnd, (uint) OBJID.WINDOW, ref guid, ref obj); Accessibility.IAccessible acc = (Accessibility.IAccessible)obj; However, I'm not sure where t...

Firefox Div Problem

I'm trying to make a little gallery of some school works I've done in my animation class. I want to put 3 images on each line and they are all in divs because I did onion skin wrapping for a dropshadow on them. Unfortunately this makes them all just stick together in two lines across the page. But I want them specifically formatted so I ...

Firefox "ssl_error_no_cypher_overlap" error

My co-workers and I are having a problem using Firefox 3.0.6 to access a Java 1.6.0___11 web application we're developing. Everything works fine anywhere from 1-30 minutes into the session...but eventually, the connection fails and the following error appears: Secure Connection Failed An error occurred during a connection to 10.x.x.x...

Very Strange CSS problem on Internet Explorer. I have no idea what is wrong!

I have just been testing a web site I have set up in Internet explorer. Works fine in Firefox of course. I have a set of style sheets most of which have a background picture I, the user can select the different style sheets as they please. The style sheets render exactly the same apart from colours and backgrounds, of course the text bas...

How to dynamically change shortcut key in Firefox?

I have a firefox extension which can be activated by a shortcut key. I want users to be able to change the key combo dynamically. My XUL looks like this <keyset id="ksMain"> <key id="keyDoMyThing" modifiers="control,shift" key="e" command="cmdDoMyThing"/> </keyset> cmdDoMyThing is a reference to an element in a commandset. When I...

How do you make an HTML document writable in the browser?

Lest my question is not clear; I don't mean dynamically replacing nodes with . I mean editing each and all text directly - including headers, text in and and yes editing tables. I know this is possible in IE and I have a script which switches between editable and back which works in IE, but that doesn't work in FireFox. Is there any w...

Greasemonkey Script and Function Scope

Here is my script code: // ==UserScript== // @name test // @description test // @include http://* // @copyright Bruno Tyndall // ==/UserScript== var main = function() { var b = document.getElementsByTagName('body')[0]; var t = document.createElement('div'); t.inn...

setting top.location.hash with %20 in firefox

In firefox, using this javascript: top.location.hash = "#here%20are%20spaces"; changes the browser url to: http://mysite.com/#here are spaces I expected firefox to show the encoded spaces as %20 in the browser url. What's going on here? Why is firefox not setting the url to the string as I passed it? How can I force firefox to u...

injecting javascript to FireFox...

Hi, I'd like to create a handle through which I would be able to inject javascript to Firefox. I can do it very easily with IE but Firefox is a different story... Can anyone help? ...

event is not defined in mozilla firefox for javascript function??

function onlyNumeric() { if (event.keyCode < 48 || event.keyCode > 57) { event.returnValue = false; } } onkeypress=onlyNumneric(); In IE, this code is working fine. However, in Mozilla Firefox, the event is an undefined error. ...

How do I communicate between threads in JavaScript?

I created an XPCOM object in C++ for a FireFox extension. I'm using a worker thread to listen for an event and when it happens, I need to do stuff on the main thread. Obviously, I can't just sit and wait in JavaScript on the main thread because you need to be able to use the browser (my event happens very rarely). I tried doing this in t...

Javascript in FF Extension versus Bookmarklet

Hi, I wanted to click this button programatically: http://rk.100webspace.net/1.cgi Typing either into the address bar works: javascript:window.content.document.forms[0].elements['Insert'].click(); javascript:document.body.childNodes[3]['Insert'].click(); But neither works when I do it from a extension: function CountP(event)...

retrieving files from browser cache

I accidentally deleted a PDF file from both my web server and my development machine. I want to check my browser's cache to see if there's a copy of it in there. Where do I look? I use both Firefox and Internet Explorer, so I'd like to search both of their caches. ...

How to set DIV width/height with Javascript in Firefox

The following works in IE, but not Firefox: var el = $get('divToMask'); var box = Sys.UI.DomElement.getBounds(el); var maskEl = $get('maskDiv'); // Only seems to work in IE maskEl.style.width = box.width; maskEl.style.height = box.height; Sys.UI.DomElement.setLocation(maskEl, box.x, box.y); box.width and box.height contain the corr...

How big should a Firefox toolbar button be?

What size, in pixels, should a custom Firefox toolbar button icon be? I've seen quite a variety. Most commonly I've come across 32x32, 24x24 and 16x16 but also 10x10, 15x15, 16x14, etc. I cannot find a definitive reference. Also see: How big should an Internet Explorer icon be? ...

How to build a mozilla firefox NSAPI sample plugin with only Gecko-sdk on linux

Hi, I have built the gecko-sdk NSAPI sample plugins on Windows (using visual studio project files), but I would like to develop some plugins on linux platform. The mozilla site only covers setting up gecko-sdk for windows: https://developer.mozilla.org/En/Creating_XPCOM_Components/Setting_up_the_Gecko_SDK However, the gecko-sdk code ...

How to inline SVG in CruiseControl.NET reports?

I am trying to embed inline SVG within custom CruiseControl.NET reports. Since this is for internal use only, I just need a solution compatible with the last version of Firefox. Actually inserting the SVG XML into a custom CruiseControl.NET report is OK. But, but I am struggling with the HTML vs XHTML interpretation of the file by Firef...

Finding mac window id/number from firefox

Is there any way to figure out a firefox window's ID ("windowNumber") on mac OSX from within firefox? Either via JavaScript (unlikely) or XPCOM code. I can easily enumerate the NSWindows but I can't figure out a way to connect the dots between a firefox DOM and the platform specific window. For clarity: I need some way to talk to the Ja...

How to distribute XPCOM component via XPI for FireFox 3?

I wrote an XPCOM component and an extension that uses it. XPCOM loads arbitrary DLL for its purposes. How can I include XPCOM and DLL into XPI package? ...