Font awesome not working in Firefox

Custom web fonts via CDN (or any cross-domain font request) doesn’t work in Firefox or Internet Explorer (correctly so, by spec) though they do work (incorrectly so) in Webkit-based browsers. You can fix this by adding headers to your page. Apache <FilesMatch “.(eot|ttf|otf|woff)”> Header set Access-Control-Allow-Origin “*” </FilesMatch> Nginx if ($filename ~* ^.*?\.(eot)|(ttf)|(woff)$){ add_header Access-Control-Allow-Origin … Read more

Firefox webdriver opens first run page all the time

To turn off this annoying start page: in C# with Selenium 2.48 I found the following solution: FirefoxProfile prof = new FirefoxProfile(); prof.SetPreference(“browser.startup.homepage_override.mstone”, “ignore”); prof.SetPreference(“startup.homepage_welcome_url.additional”, “about:blank”); Driver = new FirefoxDriver(prof); …and it will never bother you again. Note: One of these settings alone will also work. I use them together to make it bullet-proof.

The character encoding of the plain text document was not declared – mootool script

In your HTML it is a good pratice to provide the encoding like using the following meta like this for example: <meta http-equiv=”content-type” content=”text/html; charset=utf-8″ /> Note: if any line between <head> and this meta line (Even if it’s a commented note) problem will remain, so make sure you added meta line after <head> directly … Read more

Firefox redirects to https

“Sites preferences” are the culprit. Wasted 45min of my life finding how to fix it despite all the kb/support.mozilla tricks which does not solve your issue nor did mine. I don’t know what triggers this issue, but several of my websites started to go pear-shaped in a few weeks only affecting me and only firefox. … Read more

favicon not displayed by Firefox

First, make sure you don’t have a “normal” cache problem by loading the favicon URL directly (put it into the browser’s URL bar) and force-refreshing it. If that does the job, no need for the complicated solution below. IMPORTANT: My original problem cannot have been a cache issue: First, I did clear the cache, second, … Read more

X-Frame-Options: ALLOW-FROM in firefox and chrome

ALLOW-FROM is not supported in Chrome or Safari. See MDN article: https://developer.mozilla.org/en-US/docs/Web/HTTP/X-Frame-Options You are already doing the work to make a custom header and send it with the correct data, can you not just exclude the header when you detect it is from a valid partner and add DENY to every other request? I don’t … Read more

Firefox 5 ‘caching’ 301 redirects

In Firefox you have the “Web Developer” Tools (Ctrl+Shift+I). You can click “Network” tab and check the checkbox “Disable Cache” to check for new version of page every time. Then load the original URL and it will refresh your cache. Then you can enable the cache again and access that URL also from other tabs. … Read more