firefox

firefox view source code

I noticed that the source code shown in Firefox appears to be incomplete. I have the latest version. When using the Firebug plugin to look at a webpage, I am able to find elements which are simply not recognized by Firefox. This is for a automated script I am working on. I am wondering several things: Why is a firefox plugin able to...

Why would a browser make two separate requests for the same file?

I'm debugging a program I wrote and noticed something strange. I set up an HTTP server on port 12345 that servers a simple OGG video file, and attempted to access it from Firefox. Upon sniffing the network requests, I found these two requests were made: GET /video.ogv HTTP/1.1 Host: 127.0.0.1:12345 User-Agent: Mozilla/5.0 (Macintosh; U...

Open popup window with open.window not work?

Hello, does anybody know such a problem, window.open()do not work with Firefox suddenly. <a href="javascript: void(0)" onclick="window.open('popup.html', 'windowname1', 'width=200, height=77'); return false;">Click here for simple popup window</a> this always open in a new window (or a new tab), but not open in a popup ...

How can I get auto-repeated keydown events in Firefox when arrow keys are held down?

I've got several editable divs. I want to jump through them by pressing arrow keys (38 and 40). Firefox 3 on Mac OS and Linux won't repeat the events on holding the key. Obviously only keypress events are supported for repetition. As the keys 38 and 40 are only supported on keydown I'm kind of stuck. ...

How do you convert from a nsACString to a LPCWSTR?

I'm making a firefox extension (nsACString is from mozilla) but LoadLibrary expects a LPCWSTR. I googled a few options but nothing worked. Sort of out of my depth with strings so any references would also be appreciated. ...

Firefox Live DOM

Is it possible through a plugin or setting or something to allow Firefox to recognize the live DOM source code? Basically, firebug or other similar tools can recognize elements on the page which Firefox does not. I understand with these extensions I have the ability to see such changes made by javascript, but Firefox does not seem to f...

Personal Internet Moderation Script

What approach should I take to develop software to block traffic at the desktop level (windows) to sites based on their domain name. Messing with a host file was easy, but the browser seems to have too long of a delay before it recognizes changes in the host file. My ideal solution would be a simple ruby script to disable sites during ...

Firefox Tab Tearing kills my NPPlugin

I have an NPAPI Plugin that runs in Firefox, but any time that the tab is "torn off" (by dragging the tab into space so a new window is formed), the plugin is destroyed and recreated. The problem is that the plugin needs to be initialized with information from an Ajax call, and I cannot find any way in Javascript to detect this, so the p...

HTML5 Video and degradation?

I've been playing around with the HTML5 video tag and I'm puzzled as to how best to degrade when you can't support a codec? For older browsers (or IE) that don't support the video tag at all this quite is straight forward: <video width="320" height="240"> <source src="vid.ogv" type='video/ogg'> <source src="vid.mp4" type='video/mp...

Firefox makes two HTTP requests

Ok this is weird. If I make a request to a page, where it's text/html, firefox makes one request. If I make a request to a page, where it's application/xml, firefox makes two requests. In IE, Google Chrome, it one makes one in both cases. Any ideas why the two requests, and how I can force just the one? ...

How to maintain table row height in scrolling window - Firefox?

I have a html table with static headers. The rest of the body scrolls within a fixed size window. (Using overflow:scroll; height:550px; overflow-x:hidden; for the tbody ) When the number of rows is less than what fits in the scrolling window, the row size automatically expands to fill the entire scroll window. How do I "disable this"?...

Firefox jquery scrollTo flicker bug

I've seen quite a few threads here talking about flickering in Firefox, but none that quite describe the problem I'm having. I've got a horizontal scrolling website, fixed position menus, and the jquery plugin .scrollTo handling next and previous buttons. This works great in Chrome and Safari (don't know about IE), but in Firefox there...

Formatting good in FireFox, bad in IE.... help

I am a newb for sure. I have been developing in the firefox, and just barely checked in IE. Someone please help me out. Don't know where I went wrong. Thanks! www.clgproperty.com ...

Firefox plugin to build custom links for the right click menu

In Firefox, I'd like to be able to highlight a word or number, then right click and have options that would open various custom links such as: View User Profile -> http://mysite.com/user/HIGHLIGHTEDWORD View User Admin Page -> http://mysite.com/admin/user.php?user=HIGHLIGHTEDWORD View Order Page -> http://mysite.com/orderdetailspage.p...

Change Windows browser proxy settings via ruby script

I'm looking for some code/library to programmatically change proxy settings for popular browsers using Ruby on Windows. Thanks. ...

Firefox displaying unwanted symbols in corner

Hi guys I am working on a website which is going good except I have symbols in the top left corner of the screen when using firefox only. The symbols look like  If i view the .html file that is saved on my computer I don't have any problems. It only occurs after I have uploaded it to the server, and view the page with Firefox thro...

why does this script not execute in Firefox?

I'm trying to run a very simple browser detect script and it executes just fine in Safari and Chrome (running on a Mac) but doesn't execute at all in Firefox. I can boil it down to the simplest possible form, and it still doesn't execute: <script type="text/javascript"> if (navigator.userAgent.match(/^.*Chrome.*$/)) {break;} else { loca...

How do you install Firebug if your computer is isolated from the internet?

I have noticed that Firebug and some other addons I have browsed require that Firefox be installed and running for them to be installed. That's a little inconvenient, given that my development machine is not connected to the internet. Is there a way to download and install the addins using a flash drive? ...

Any example of writing an NPAPI plugin in Linux?

Hi, all I need to write a browser plugin to communicate with another process, and it seems I have to use NPAPI plugins. Is there any example or open source NPAPI plugin I can refer to? Many thanks for your reply. Summary of answers http://mxr.mozilla.org/seamonkey/source/modules/plugin/samples/ http://firebreath.googlecode.com/ http...

getting the HEAD element from overlay.js firefox plugin

I have a lightwiehgt plugin to firefox which needs to inject a script into the HTML. The code looks like this: var head = document.getElementsByTagName("head")[0]; var newscrpt; newscrpt = document.createElement('script'); newscrpt.type = "text/javascript" ; newscrpt.src = "http://blabla.com/..."; newscrpt = head.appendChild(news...