FAQ Database Discussion Community


Errors in Firefox Add-on SDK when using cfx xpi whereas cfx run works great

javascript,firefox,firefox-addon-sdk
I'm a student at a University Institute of Technology in France and I'm very new to Firefox add-on development since I discovered it at the beginning of my work placement, a few days ago. What I have to do is an add-on that allows employees of the company to organize...

Different result of fixed element CSS in Chrome and Firefox

html,css,google-chrome,firefox,css-position
I have this html: <div class="lightbox"> <div class="lightbox-content-wrapper"> <div class="lightbox-content-inner-wrapper"> <div class="lightbox-content"> <!-- Popup Form --> <div class="lightbox-form-wrapper"> Test </div> </div> </div> </div> </div> and this CSS: .lightbox { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: #000; background: rgba( 0, 0, 0, .7 ) repeat; }...

Firefox Windows / Linux inconstancies

css,linux,firefox,fonts,font-face
My website has very different rendering in Firefox Windows / Firefox Linux (however, similar versions, default parameters for both). The reason seems to be that the font are rendered very differently. This: font-family: sans-serif; gives Arial-like font on Windows: and a little bit different font on Linux: How to solve...

How to display red borders on required or invalid value input element in Chrome just like Firefox behaviour for HTML5 validation?

css,html5,google-chrome,firefox
I have to bring red borders around the input element in chrome on HTML5 validation like as that of Firefox. I have search it a lot but unable to find precise answer. Any help of how to do it using css is greatly appreciated. Thank you....

firefox images flickering during jquery animations

jquery,image,firefox,animation
My problem is that images starts flickering and flashing in a wired way during fading or sliding animations in case of fading in/out animations the problem gets triggered by just scrolling in the page which contains the side bar fading animations. and in case of sliding the problem just occurs...

Dgrid - Firefox breaks while trying to load large data set in dgrid

javascript,firefox,dojo,dgrid,broken-pipe
I have a dgrid connected to a store with a very large data set. (Currently over 137,000 rows). I expect there to be a delay. When I first connected the store - the data populated the dgrid. However I keep getting a pipe break now. I didn't change anything between...

css overflow-y:auto not working in firefox and chrome

javascript,html,css,css3,firefox
I have the following code <div id="someDiv" style="float: right; margin-right: -350px; position: relative; overflow-x: hidden; overflow-y: auto;"> <svg class="someSvgClass" width="105"> <g>..</g> <g>..</g> ... </svg> </div> This div contains inside another div with a fixed height.These "g" elements are added dynamically using JavaScript. So I expect a scroll bar when the...

“URL GOTO” keeps looping from iMacros javascript

javascript,loops,firefox,command-line,imacros
I have two files in the folder ~/iMacros/Macros/ that are related. One is an imacro (TodaysEvents.iim) like below: VERSION BUILD=8920312 RECORDER=FX TAB T=1 URL GOTO=http://www.event.com/schedual SET !EXTRACT_TEST_POPUP NO SET !ERRORIGNORE YES TAG POS={{loop}} TYPE=A ATTR=TXT:02 EXTRACT=HTM SAVEAS TYPE=EXTRACT FOLDER=/root/Desktop FILE=TodaysEvents.csv TAB CLOSE And the other is a javascript file (TodaysEvents.js)...

Cannot put() data to an indexeddb database using Firefox

javascript,firefox,indexeddb
Hi I created an Indexeddb database but having trouble input data into it. Database: var request = indexedDB.open("BCDB"); request.onupgradeneeded = function() { var db = request.result; var store = db.createObjectStore("psf", { autoIncrement: true }); var psTag = store.createIndex("ps_tag", "psTag"); var psNameIndex = store.createIndex("ps_name", "psName"); var psResultIndex = store.createIndex("ps_result", "psResult"); var...

Django cannot read session under subdomain but working under IP Address

django,session,firefox
I use django 1.7 with python 2.73. I set up django on Windows Server 2008. Code just like this, nothing special, typing a username and and save session, then jump to another view. def login_user(request): error = None if request.POST: form = LoginForm(request.POST) username = request.POST.get('username') password = request.POST.get('password') try:...

code executed in wrong order in Firefox with setTimeout after alert

javascript,firefox,settimeout,alert
Run the following code in any browser( try it several times): console.log('processing: task #1'); setTimeout(function(){ console.log('processing: task #3'); },0); alert('See console logs'); console.log('processing: task #2'); In my understanding, the above code would result console output being: "processing: task #1" "processing: task #2" "processing: task #3" But in Firefox( v38.0.1), it...

XUL iframe firefox addon, how to change the src within the iframe?

javascript,firefox,iframe,firefox-addon,xul
I am developing a firefox addon, in my settings page dialog.xul i have an iframe where i load different settings pages page1.xul page2.xul page3.xul Iframe : <vbox flex="1"> <iframe id="iframe" src="chrome://xxx/content/page1.xul" flex="1"></iframe> </vbox> Within the iframe i need to navigate from page2.xul to page3.xul with the code in page2.xul My...

i have developed website and the issue is that same version of firefox shows different design on different computers while other browsers were fine?

css,firefox,firefox-developer-tools,html5-apps
i have developed this website http://www.falestinona.com/nashra the website tests on my laptop are correct and same design over IE, Chrome, FF and Opera the problem i have found that same version of firefox shows the design different on different computers. FF on my laptop shows correct design while same version...

Mozilla stance on HTML imports

firefox,web-component
Can anyone tell me whether Mozilla has shifted its stance on not implementing HTML imports (part of the HTML5 Web Components spec)?

Firefox and Chrome again seem to parse dates differently

javascript,google-chrome,firefox
So my problem is this: new Date('01/32/1980') //January 32, 1980 (invalid) Running this javascript in Chrome results in 'Invalid Date' Running this javascript in Firefox results in a date of February 01, 1980 I've seen so many questions where people have different problems with the javascript date parser between browsers,...

Linking to an anchor on another page lands in the wrong place (Firefox)

javascript,jquery,html,firefox,jquery-waypoints
I have a long page with different divs, with each div containing quite a lot of content. This content is hidden when you land on the page, then is expanded once you reach the heading for each section, either by clicking the link to the anchor or by scrolling. I'm...

SVG data image not working on Firefox

css,image,firefox,svg,data
I'm setting a SVG as background-image for a pseudo element: content: ''; position: absolute; right: 0; bottom: 0; left: 0; width: 100%; height: 12px; background-image: url('data:image/svg+xml;utf8,<svg version="1.1" id="Layer_1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px" viewBox="0 0 620 12" enable-background="new 0 0 620 12" xml:space="preserve"><g><polygon fill="#D11A3C" points="48.8,12 0,12 0,0 54.1,0"/><polygon fill="#952592" points="93.8,12 44,12...

Inconsistent display on IE & Firefox

html,css,internet-explorer,firefox,twitter-bootstrap-3
I'm using Bootstrap on my website project. I'm through with the design but the items are displayed out of place on IE & Firefox. The same page renders great on Chrome. I used developer tools on the three browsers to make sure there was no difference in the CSS properties....

How do I indent my code with the tab-space key?

javascript,firefox,console
For example, how can I type JS some code that looks like this into the Firefox console: if (10 > 5) { alert("Hello world!"); alert("How are you doing today?"); alert("I'm doing great, thanks!") } Without resorting to using the space bar or my operating system's clipboard? I'd like to be...

PlayN and Firefox issues

facebook,firefox,gwt,game-engine,playn
I am working on a pet project of a Facebook game. I've had a couple of problems until now on Firefox browser. CPU runs wild when you start a game on FF. TextLayout gets moved a few pixels up. Caching ruins reloading of resources Anyone had these kind of problems?...

nsICacheService doesn't work in Firefox 38

javascript,firefox,firefox-addon
I use Components.classes["@mozilla.org/network/cache-service;1"].getService(Components.interfaces.nsICacheService); to manipulate http cache when developing Firefox extension. But after I upgrade to Firefox 38 esr, this interface throws error when calling its function [Exception... "Component returned failure code: 0x80004001 (NS_ERROR_NOT_IMPLEMENTED) [nsICacheService.visitEntries]" nsresult: "0x80004001 (NS_ERROR_NOT_IMPLEMENTED)" And I didn't find it obsolete in MDN, so anyone knows why?...

iMacro's !LOOP from command line

javascript,bash,loops,firefox,imacros
I'm not sure how to articulate this question other then describing the problem and putting out hope that someone will point me in the right direction. I have written a bash script that calls a macro from iMacros. The macro looks like below: VERSION BUILD=8920312 RECORDER=FX TAB T=1 URL GOTO=http://www.event.com/schedual...

How do you close the DOM Properties window in Firefox Developer Edition?

firefox,firefox-developer-tools,firefox-developer-edition
I am using Firefox Developer Edition and when I had the Inspector open, which is accessed by right-clicking an item and selecting Inspect Element, I then right clicked something in the Inspector and selected Show DOM Properties, which you can see in the screenshot below: However I cannot figure out...

How to show/hide a jquery script only on Firefox

javascript,jquery,firefox,browser,cross-browser
Trying to show and hide js only on Firefox browser. There are another question about Detect all Firefox versions, but it is not answer of my question so i have asked this question. HTML: <div id="about_me"> This Text color will be change </div> Show this only on Firefox: $("#about_me").addClass("red"); I...

How to use youtube API in firefox extension?

javascript,firefox,youtube
My question concerns running script that exists on the page the user is loading. For example on a youtube video if you go to the console and type: player = document.getElementById('movie_player'); You can then interact with the player by using : player.getDuration(); or player.playVideo(); But I searched and researched for...

Worker works on Firefox, and older version of Chrome but not on the latest Chrome

javascript,angularjs,google-chrome,firefox,web-worker
I have a directive with Canvas that communicate with a webWorker. On Firefox and versions of Chrome < 43.0.2357.65 (64-bit) everything work good, but on Chrome >= 43.0.2357.65 (64-bit) the directive is not receiving messages from the Worker. restrict: 'E' replace: true templateUrl: 'some.html' link: ($scope, element, attrs) -> ......

Firefox dropdown menu click

html,firefox,select,drop-down-menu
I have a dropdown menu for languages in my website and it works fine in Google Chrome, Safari and Internet Explorer, but it is bugged in Firefox. This is the code: <a href=""> <select id="languageSelector" style="background-color: transparent" onchange="location = this.options[this.selectedIndex].value;"> <option value=".">ESPAÑOL</option> <option value="./en/index.html">ENGLISH</option> <option value="./de/index.html">DEUTSCH</option> <option...

How Does Firefox Reader View Operate (FF version 38.0.5)

javascript,firefox,firefox-reader-view
Summary I am looking for the criteria by which I can create a webpage and be [fairly] sure it will appear in the Firefox Reader View, if user desired. Some sites have this option, some do not. Some with more text do not have this option than others with much...

How to update a FirefoxDriver (WebDriver) object when opening, and switching between tabs?

java,firefox,selenium,tabs,selenium-firefoxdriver
Long time lurker; first time poster. I'm fairly new to the Selenium API and WebDriver, and I'm having a small problem. In short, I am attempting to leverage the Firefox tab feature using Selenium's FirefoxDriver, but my driver instance object is not returning the correct URL using its getCurrentUrl() method...

ObjCreate with Firefox in AutoIt

object,firefox,autoit
I have opened IE with the resolution 360x640 by creating IE Object. This is my code: $object = ObjCreate("InternetExplorer.Application.1") With $object .Visible = 1 .Height = 640 .Width = 360 .Navigate("https://www.google.com.bd/?gws_rd=cr,ssl&ei=jm11Vb7_Iofg8AX0_IGYBw#q=ripon+al+wasim") EndWith I want to create Firefox Object by same way in AutoIt. How can I do it?...

firefox extension works through sdk but not when installed in browser - compatibility issue?

javascript,firefox,firefox-addon,firefox-addon-sdk,mozilla
---Update---- After experimenting more with this, I've determined that the contentScript I have written is not the problem here. For example, if I reduce the extension to merely: var buttons = require('sdk/ui/button/action'); var data = require("sdk/self").data; var self = require("sdk/self"); var button = buttons.ActionButton({ id: "library-link", label: "External Resource Locator",...

Can't get xpi to work in TorBrowser

firefox,firefox-addon,tor-browser-bundle
I created a small little HelloWorld extension and was able to get it to work in Firefox 31 (which TorBrowser is based on). However I'm unable to get it to work in TorBrowser. Any idea why that might be and how I can fix? This is my main.js var contextMenu...

How do I make a dropdown in Firefox look the same as Chrome/IE?

css,twitter-bootstrap,google-chrome,firefox
So, I'm building a website with a dropdown menu. In Chrome it looks nice, but on Firefox it takes no padding and I would like to find a way to make them look the same on the both browsers. I'm aware that this is a known issue, but I didn't...

How to run a Selenium NUnit test using Windows Authentication with Firefox?

firefox,selenium,selenium-webdriver,windows-authentication,iis-express
Our web app requires Windows Authentication. I have a NUnit test that Launches a IIS Express process hosting my web app. Starts up a FirefoxDriver and navigates to the web app. Unforntunately it gets a 401.0 - Unauthorized error without even asking for credentials. I'm used to Firefox asking for...

Magnific Popup position bug

google-chrome,firefox,position,magnific-popup
There is a strange bug happening when you have got a link triggering Magnific Popup and that link is contained inside an absolute positioned element, which is positioned inside a relative positioned element with overflow:hidden. To reproduce the bug, checkout this example in Chrome or Firefox: http://codepen.io/mediadivisiongmbh/pen/bdRjKy HTML <div class="hover-container">...

CodeIgniter Captcha Image not validate in Chrome while it is OK in Firefox

php,codeigniter,google-chrome,firefox
I have created a login form with captcha image using CI. It works perfect on Internet Explorer and Mozilla Firefox. But I cannot succeed to login using Google Chrome (ver: 43.0.2357.81 m). I have checked many times what comes as captchaWord in $_SESSION variable and what I post in $_POST...

No video with supported format and MIME type found

internet-explorer,firefox,video,html5-video
So i have this video element on my website <videogular vg-responsive="true" vg-theme="config.theme.url" vg-player-ready="onPlayerReady($API)" vg-complete="onCompleteVideo()" vg-theme="config.theme.url"> <vg-media vg-src="config.sources" vg-tracks="config.tracks" vg-native-controls="true"> </vg-media> IF i view this in chrome there is no problem and the video is displayed if however i view the same page in Firefox i get the following error: No...

How to access second element using relative Xpath

firefox,xpath,selenium-webdriver,selenium-ide,robotframework
Given this page snippet <section id="mysection"> <div> <div> <div> <a href=""> <div>first</div> </a> </div> <div> <a href=""> <div>second</div> </a> </div> </div> </div> </section> I want to access the second a-element using relative Xpath. In FF (and locating with Selenium IDE) this //section[@id='mysection']//a[1] works but this does not match //section[@id='mysection']//a[2] What...

how can i use require(“”); in javascript

javascript,firefox,plugins,requirejs,mozilla
i want to use a plugin in Firefox that it is in this. in this plugin tutorial use require function, and it is: require("sdk/preferences/service"); but i get error that require is not defined. so i search and download requireJS. but when attach this i get error module name sdk/preference/service has...

Flex inside flex doesent work in Firefox 38

css,firefox,flexbox
I try to use flex in firefox, it doesent work, in Chrome, it works like a charm! Here is the result in Firefox: And here is how it looks (should look) in Chrome/Opera: What is the problem? Here is the CSS, that doesent work on Firefox: .jawcontain {display: flex;flex-direction: column;justify-content:...

How do I use Glimpse to find out what is causing my ASP.NET MVC application to hang?

javascript,jquery,asp.net-mvc,firefox,diagnostics
I have an ASP.NET MVC application that makes pretty heavy use of javascript and JQuery for both administrative functions as well as customer-facing functions. Recently I reorganized the administrative screens to be able to more cleanly fit administrative controls for some new features. I tested using IE and Chrome and...

Why does the expiration date of the request cache lie in the past?

firefox,caching,firebug
I am working on caching some pages and I noticed this in Firebug: So it says that the cache expired 45 years ago. Is this a bug or some bad data? I have another page that is caching correctly I just do not understand why its saying Expires ... 1970....

Exact solution to keep cookie after closing firefox

firefox,cookies
I know this is asked many time but i want exact solution. Why cookies are deleted after closing firefox? I want to keep cookies after closing firefox....

Unknown property 'zoom'. Declaration dropped

css,firefox
Firebug is giving me a warning "Unknown property 'zoom'. Declaration dropped." within its console. What does that mean? This warning comes from the following CSS declaration: .flexslider .slides { zoom: 1; } ...

$(this).val() not working in FireFox but works in Chrome

javascript,jquery,html,google-chrome,firefox
This is my problem. When I try to set the value of an input field in FireFox nothing happens. I don't get any errors. It simply just doesn't work. It is supposed to add two decimal places after the number. It works perfectly in Chrome. Here's my jQuery code... $('input.drawer').on('blur',...

Firefox and SSL pages - takes very long on certain sites [closed]

firefox,ssl,browser,ssl-certificate
I use openSUSE 13.1 and Firefox 38.0.1. On some pages with ssl it takes minutes until the connection is established. It only happens on sites whose ssl certificate is not trusted by firefox, so that it asks you if you really want to enter the site. But even this security...

Socket.IO CORS request failed

angularjs,node.js,firefox,express,socket.io
I have my in the client side an angular module: angular.module('App') .factory('socketClient', function(socketFactory, Auth) { // socket.io now auto-configures its connection when we ommit a connection url var ioSocket = io('', { // Send auth token on connection query: 'token=' + Auth.getToken(), path: '/socket.io-client' }); return socketFactory({ ioSocket: ioSocket });;...

Addon to modify http headers specified via regex of content

regex,firefox,http-headers,firefox-addon
I need a Firefox addon that would enable me to modify outbound http request headers thusly: "[pseudocode] if any request header contains x in its content then replace x with y" where x is a regular expression and y preferably can contain substitution patterns referencing x. I've looked at the...

Manual adding firefox for android addon

android,firefox,firefox-addon
I've got an firefox add-on, but I want to test before I upload it to the firefox add-on center.. Does anybody know if I can install the add-on (XPI file) on firefox for android? Thanks for help....

Detect tab url change inside firefox add-on

firefox,firefox-addon,firefox-addon-sdk
I have an extension that works on chrome that monitors the active Tab for url changes. Specifically i needed to detect when the url changed but there was no new page load or navigation, (some sites do this, like youtube when you click to view another video) On chrome i...

Show Firefox OS devtools on Firefox Developer Edition 'desktop'

firefox,firefox-os,gecko,firefox-developer-tools,firefox-developer-edition
I've an iMac with OS X Yosemite v.10.10.3. I use Firefox Developer Edition 40.0a2. I've a ZTE Open C (FR version) with Firefox OS; Boot2Gecko 2.1.0.0-prerelease (B2G OS). What I'd like to do is the following: I've a basic webpage (mostyl HTML, CSS and JS) opened in my browser on...

Vimperator - reload plugin

firefox,plugins,vimperator
How can I reload vimperator plugin after I modify it? Now I restart browser each time I need reload but it is nightmare to develop plugins like this.

Is there anyway to save javascript breakpoints in firefox?

javascript,firefox,breakpoints
I just spent about an hour setting breakpoints in a few javascript files. Most likely I'll need to use these same breakpoints for a few days now and in between I'm required to power down my workstation. Is there anyway that I can save this set of breakpoints somehow and...

SVG as data URI triggers XML parsing error in Firefox

css,firefox,svg
I made a codepen demo illustrating the problem: codepen.io/acusti/pen/mJmVRy And here’s the error I get if I try to load the svg content in Firefox: XML Parsing Error: unclosed token Location: data:image/svg+xml;utf8,<svg%20viewBox='0%200%20120%20120'%20version='1.1'%20xmlns='http://www.w3.org/2000/svg'><circle%20cx='45'%20cy='45'%20r='30'%20fill='#555555'></circle></svg> Line Number 1, Column 77: <svg viewBox='0 0 120 120' version='1.1' xmlns='http://www.w3.org/2000/svg'><circle cx='45' cy='45' r='30'...

Is there a difference between a “key” and “key=” URL query string?

javascript,url,firefox,query-string
For example, when we parse this query string: foo&bar=&baz=123 Firefox’s implementation of the standard URLSearchParams type (spec) assigns an empty string value to both foo and bar: Does this mean that foo and foo= are effectively the same inside a query string? Or is it a bug in Firefox?...

Copy to clipboard from Firefox add-on content script

javascript,firefox,copy,firefox-addon,firefox-addon-sdk
I want to write a content script in a Firefox add-on that will copy a string to the user's clipboard in response to an event. I know that I can do this with the Firefox clipboard API like this: var clipboard = require("sdk/clipboard"); var val = "Lorem ipsum dolor sit...

Strange security errors in Firefox on Windows 7

security,firefox,ssl,ssl-certificate
I've got a client who is reporting very strange security errors I've not seen before on Windows 7 using this link The page won't load any of the assets with the error: "this site makes use of a SHA-1 certificate, it's recommended you use security certificates with algorithms stronger than...

Trouble with navbar brand css in Firefox

html,css,twitter-bootstrap,firefox
I recently realized that my navbar brand image doesn't show properly in the frequently use web browser Mozilla Firefox. The css works well in Chrome and in Internet Explorer (wat). I have tried messing around with the css a bit but I can never make it work in firefox. I...

Can I put a button on the tab header using Firefox Add-on?

javascript,firefox,firefox-addon
In a Firefox browser window, I would like to put a button on the tab header next to the web page title. Is this possible with a Firefox add-on? So far I am still unsure what to call this part of a tab. Sorry for duplicates! Edit: I didn't have...

input radio checked / unchecked not working in Firefox 38.0.5 Windows - jquery

javascript,jquery,forms,firefox,radio
I am trying to figure out a way to allow users to select radio options but then deselect the option if they change their mind. I would also like hide other form fields if they select an option because those fields are not relevant. I can get the code to...

How to open a webpage with Firefox/Chrome on server and save it to a HTML file?

javascript,google-chrome,firefox,server-side
I want to open a webpage with Firefox or Chrome on server (Apache) using command line, and save it to a file: firefox http://example.com > mypage.html //it doesn't work this command should execute browser javascript code and returns what it prints like on normal browsing. Is it possible with Chrome/Firefox?...

Jquery not working while browsing with Firefox

javascript,jquery,firefox
Hello I'm using this code: $("#cart").click(function () { if ($(event.target).closest('.content').length > 0) return false; $('#cart').load('index.php?route=module/cart #cart > *'); var e = window.event || e; $("#cart").toggleClass("active"); e.stopPropagation(); $(document).click(function (e) { $("#cart").removeClass("active"); $('#cart').live('mouseleave', function () { // Code Here }); }); }); It works just fine in Chrome but when testing it...

FileReader onload only works the second time around in Firefox?

javascript,firefox,dom
I'm working on in-browser image processing with HTML5 and have a weird issue in Firefox with the onload event handler for the File API FileReader class (which works properly on chrome): the file is only processed properly the second time it's selected in the form. Any idea how I can...

jQuery working on Firefox but partially on IE8

jquery,firefox,internet-explorer-8,compatibility
I have made a jQuery script who working well on Firefox but not on IE8. On IE, when I select an option, the title don't change but in Firefox it do it. I'm using jQuery v 1.11.3, suposed to be compatible with IE8. My HTML code : <!DOCTYPE html> <html>...

jenkins cannot run firefox: No protocol specified Error: cannot open display: :0

linux,firefox,jenkins,python-3.4
I have installed jenkins as a service on linux mint. I am trying to run tests written in python and script cannot run firefox. This line is a problem. ... self.browser = webdriver.Firefox() ... When i log in as jenkins user, i can't run firefox. getting this error : (process:3758):...

Blob createObjectURL download not working in Firefox (but works when debugging)

javascript,firefox,download,blob
I have an odd problem, the function below is one I created based on what i found on the net about creating a Blob in the client on the fly with some binary data in (passed as an array) and being able to download that. This works brilliantly in Chrome,...

NS_ERROR_UNEXPECTED in FireFox on mozRTCPeerConnection()

firefox,webrtc
I am using adapter.js in my webrtc 1-1 video call application. It works fine on Google Chrome and both peers see each other's video and can hear audio. However, when I run the same application on FireFox, I get the following error on console which comes from adapter.js. NS_ERROR_UNEXPECTED This...

Selenium Firefox webdriver does not adopt profile

python,firefox,selenium-webdriver
I have created a FF profile: fp = webdriver.FirefoxProfile() fp.set_preference("browser.download.dir", CLIENT_SAVING_DIR) fp.set_preference("browser.download.folderList",2) fp.set_preference("browser.download.manager.showWhenStarting",False) fp.set_preference("browser.helperApps.neverAsk.saveToDisk", "application/octet-stream") Then pass this profile to remote mode webdriver: remoteHost="192.168.x.y:4444/wd/hub" driver = webdriver.Remote(remoteHost, desired_capabilities=DesiredCapabilities.FIREFOX, browser_profile=pf) I've...

File types change into .xml while downloading in Firefox

c#,asp.net,firefox,firefox-addon,firefox-addon-sdk
In my asp .net application we can upload doc files and after uploading files we can view it in browser. It is working in all browser, but there is one issue while view through Firefox, while clicking hyperlink view the file is being download, but file type changes into .xml...

Why is position of html button in tablecell different in Firefox

html,css,firefox,cross-browser
Why is the position of a button element different in Firefox vs Chrome/IE when nested inside a li with display: table-cell? In Chrome and IE the button is aligned to the top of the cell while in Firefox it is aligned to the bottom. Can this be influenced in Firefox...

Firebug Events side panel is empty

firefox,firebug
Did anyone ever notice that the Events side panel within the HTML panel in Firebug is not working anymore? I'm used to relying on that functionality. Anyone has any idea what's going on?...

Date.toString() not converting hours to proper timezone in Firefox

javascript,django,date,datetime,firefox
I have some HTML rendered by a Django template that formats a timestamp in ISO 8601 format, e.g: <span class="my-date">2015-06-04T13:00:00</span> I am using some Javascript to convert this timestamp to the user's local timezone: $(document).ready(function(){ $('.my-date').each( function(){ var tz_date = new Date( $(this).text() ); $(this).text( tz_date.toString() ); }); }); This...

Google maps not working in Firefox (gray box)

javascript,google-maps,firefox,google-maps-api-3
I have a plugin I'm working on that uses the Google Maps API v3. Works like a charm, except in Firefox! I present to you the following URL: [REDACTED BECAUSE SOLVED]. You'll notice that if you're using firefox there is a gray box with google maps stuff available. If you...

Firefox 37 throwing error when trying to add microphone volume control for WebRTC audio context

firefox,webrtc,html5-audio,audiocontext
Since firefox 37 I cannot add volume control to the input(microphone), i get the error : IndexSizeError: Index or size is negative or greater than the allowed amount It works fine on Chrome. Here is the code sample : var audioContext = new (window.AudioContext || window.webkitAudioContext)(); // define audio context...

how to unbind/prevent context menu by keybord (key #93) with FF?

javascript,firefox,events,contextmenu,unbind
I want to prevent the default event on key #93 ("select key", between "alt gr" and "ctrl right" on AZERTY keybord). This key open context menu like right click. I tried : $(document).off('keydown'); $(document).off('keyup'); $(document).off('keypress'); $(document).on('keypress', function(e){ if(e.keyCode == 93) { e.preventDefault(); return false; } }); $(document).on('keyup', function(e){ if(e.keyCode ==...

getElementById returns null in Mozilla Firefox [closed]

javascript,html,firefox,mozilla
I have an applcation built using Javascript and HTML5. I also have some scripts included that is to be executed on button click. The application seems to be working fine on chrome but when I tried to run on Firefox it fails. I tried to debug and found out that...

Difference running Protractor with/without Selenium?

google-chrome,firefox,selenium,selenium-webdriver,protractor
Checking the protractor documentation, I see there is a option to run protractor without using Selenium server using directConnect: true flag. What is the difference between running protractor tests with a selenium server and without a selenium server other than the fact that only Chrome, Firefox are supported for the...

xul overlay for new menu in TB/Firefox main menubar

firefox,firefox-addon,overlay,xul
I'd like to add a new menu at the end of the main menu bar (file, edit, ...) after the Help menu via an extension i wrote. I already know how to add a new item to one of the menus by something like: <menupopup id="menu_HelpPopup"> <menuitem id="example-item" oncommand="alert('Hello!');" label="TEST"...

Firefox crashes when a websocket call answered

firefox,websocket,asterisk,sipml
I'm experimenting with asterisk 13 and sipml5 on a cantos virtual machine, Everything is configured properly. I use Firefox 38.0.1 to make calls from an extension to the other, and till last night everything worked just fine. Now today when I start to call an extension and want to...

Need help finding a bug with jquery $(document).ready() not working properly in firefox

javascript,jquery,firefox,wamp,document-ready
I made a jquery function that sets the width of an element so that it fills any extra width left by it's siblings inside it's parent. (basically a flexbox) I call this function in both $(document).ready() and $(window).resize() HTML <body> <div class='pageCenter'> <div class='fixedCol'>my fixed col</div> <div class='flexCol'>my flexible col</div>...

Creating a firefox script to close all but one tab?

firefox,greasemonkey
im using greasemonkey in firefox and looking to create a script that will close all but a specified tab(or webpage). Ive little to no clue what im doing, i wanted it to be simple i.e. if (tabs >= 3) Close all tabs except specified webpage but i just cant seem...

Firefox CSS transition fails in conjunction with jQuery prop() on placeholder

jquery,css,firefox
Got a weird one for you all. I am using CSS transition to change length of input at same time as modifying placeholder attribute / property. For some reason it fails to animate in firefox. Works fine in Chrome and Safari. As demonstrated below, I can alter another property like...

php output system() in real time

php,firefox,buffer
I'm trying to make a system call and have each line sent to the browser in real time echo('<pre>'); system('ping -c 10 www.google.com'); echo('</pre>); This works when I call it from the command line (each line of the ping is output one at a time). However it does not work...

CSS flexbox wraps content in FireFox (not Chrome)

css,google-chrome,firefox,flexbox,pseudo-element
I have a button that consists of an <i> and an <span> element (an icon and some text). Now both have different sizes so I'm applying a flexbox to my button that should center my items nicely. In Chrome everything works as I expected but using the page in a...

How to get use the functionality same as “-webkit-appearance” in firefox?

html,css,firefox
I wanted to remove the actual box in a HTML check box and have + and - marks when user clicks on it alternatively. to remove the actual box in the check box I used -webkit-appearance: none; CSS property. But it seems it is not working with firefox. (Working in...

Cannot change image height in Firefox when loading image from css

html,css,css3,firefox
I have a very simple img that is loaded from css. The image has a height of 300px, and I am trying to stretch it vertically to 700px: <div> <img class="test"> </div> Currently I have it as: .test:after { min-height:700px; height:700px; content: url('/test.png'); overflow:hidden; display:block; width:100%; } This works perfectly...

How to call the console debug pannel in firefox addons

javascript,windows,firefox,hotkeys,add-on
Java-script : i would like to call "ctrl + shift + j" to open the console what's the method to call that window on firefox addon ? i use that with "Custom buttons" addon Thanks ...

Firefox crash when I run sellenium unit test

c#,firefox,selenium,jenkins,selenium-webdriver
I start use Selenium.WebDriver (v2.45) to run visual tests. As web driver I use FirefoxDriver. I have installed Firefox 38. When I try run test firefox return exception with message: FF has stopped working. Anyone any sugesstion, it worked in previous week, is it possible that my test was creashed...

Receive message from main.js in Firefox add-on content script

javascript,firefox,firefox-addon,firefox-addon-sdk
I'm trying to communicate between main.js and a content script. Here is my main.js: var pageMod = require('sdk/page-mod'); var self = require('sdk/self'); var ss = require('sdk/simple-storage'); pageMod.PageMod({ include: 'example.com', contentScriptFile: self.data.url('content-script.js'), onAttach: function(worker) { worker.port.on('getSetting', function(request) { // var settingValue = ss.storage[request] var settingValue = 'test value'; // for testing,...

Opentype features cross-browser compatibility

css,css3,firefox,webkit,opentype
I am trying to utilise the opentype features of 'Plantin MT Pro' from myfonts. More specifically, I am hoping to use 'true' small-caps and old-style numbering. By 'true' small-caps, I mean i'd prefer not to mimic small-caps via the font-variant selector if possible. The below css is achieving success in...

How to disable firefox's reader view from my website?

firefox,website,reader,firefox-reader-view
Today i updated my firefox to the latest version and one big feature is the reader view for desktop. We launched a webshop two weeks ago and now there is this tiny "reader view" icon. When i click on it i get an error-message. My team-leader wants me to remove...

Can CSS identifiers begin with two hyphens?

css,css3,firefox,css-selectors,identifier
CSS 2.1 defines identifiers as In CSS, identifiers can contain only the characters [a-zA-Z0-9] and ISO 10646 characters U+00A0 and higher, plus the hyphen (-) and the underscore (_); they cannot start with a digit, two hyphens, or a hyphen followed by a digit. Identifiers can also contain escaped characters...

Firefox Add-Ons: Variable Is Not Defined In Console

javascript,debugging,firefox,firefox-addon,xul
I'm developing a Firefox extension. When I run it, I open up the browser console and it says, [name] is not defined. It's in "browser.xul." <?xml version="1.0"?> <?xml-stylesheet href="chrome://Uedit/skin/skin.css" type="text/css"?> <!DOCTYPE Uedit SYSTEM "chrome://Uedit/locale/translations.dtd"> <overlay id="Uedit-overlay" xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"> <script src="Uedit.js" /> <toolbarpalette id="BrowserToolbarPalette"> <toolbarbutton id="Uedit"...

firefox extension: intercepting url it is requesting and blocking conditionally

javascript,firefox,firefox-addon,firefox-addon-sdk
in firefox extension I want to intercept the url browser is making request to and block the request entirely if some condition matches how can I intercept URL being requested...

tag not working on Mozilla Firefox and IE … changing the slash doesn't work for me

html,image,google-chrome,firefox
I have used img tag to display images in my HTML page. The code works fine with Google chrome, but doesn't work on firefox or IE . Just an empty box appears. What could be the possible reasons for this? I think the code is fine. Could there be any...

Which object in JavaScript holds “..”?

javascript,firefox
On firefox browser console, I could access <body></body> container as shown below. > window [object Window] > documentObject = window["document"]; [object HTMLDocument] > documentObject["body"] [object HTMLBodyElement] Please let me know, How do I access <head></head> container? Note: Please do not recommend getElementByTagName kind of methods. I am trying to access...

Dart Polymer: Creating PaperDialog with CoreAnimatedPages displayed incorrectly in Firefox

firefox,dart,polymer
I use Dart Polymer PaperDialogs containing CoreAnimatedPages. The idea is to have popups in which you can click through multiple option views. Example repository available at: https://bitbucket.org/neogucky/polymer-dialog-problem/ DialogView: view.html <link rel="import" href="packages/polymer/polymer.html"> <link rel="import" href="packages/paper_elements/paper_button.html"> <link rel="import" href="packages/paper_elements/paper_dialog.html"> <link rel="import"...

Error message “firefox doesn't work anymore”

firefox,selenium,selenium-webdriver
I am running Selenium Webdriver for Firefox (most recent version). Everytime I start my test, I'll get an error message from Windows itself saying Firefox crashed. When I hit the Force close-Button, the test starts as it should. I am new to Eclipse and Selenium, but in debugger mode I...

Remove the black line from the bottom and right side of Firefox select boxes

html,css,firefox
This may seem to be a stupid question but is there a way to remove the black line on the bottom and right sides from the drop down of a select box in Firefox? For example: http://postimg.org/image/6sqgo7xul/ Here is a basic fiddle: http://jsfiddle.net/FtVGg/33/ <div class="styled-select"> <select id="select"> <option value="0">Option one</option>...

Odd behavior with “history.back” in Ember app using “replaceWith” running in iframe in FF

firefox,ember.js,ember-router
Update: This is a bug not in Ember but in Firefox. See https://bugzilla.mozilla.org/show_bug.cgi?id=301307. I will be deleting this question once the bounty expires (unless someone comes up with a workaround). I have an Ember app running in an iframe. Page A has a link to page B, and page B...