No button text in Firefox

I’ve been experiencing some weird behaviour with Firefox for the last few days. I’ve been writing an extension and I’ve made the mistake of testing it out on my own profile.

At some point I noticed that there was no text in buttons on websites. It’s not much of a problem on a website you’re familiar with because you still know where to click. The problem is with a new page. You don’t want to accidentally click on Cancel instead of Submit. It was also displaying every option in a select box in a big long list on the page.

I’d given up on finding a solution online after a lot of searching. I decided to create a new profile to see if it was my installation, or just my profile that was broken. My new profile in Firefox worked just fine. When I noticed that I decided to copy over some of the files from my old profile to my new one so I could keep my bookmarks, etc.

I copied a select bunch over and the button text disappeared in my new profile. I deleted it and started over again. This time I copied the files over one-by-one. When I got to prefs.js I lost my button text.

I went through prefs.js deleting likely suspects and then I stumbled upon this group of preferences:

user_pref(“nglayout.debug.disable_xul_cache”, true);
user_pref(“nglayout.debug.disable_xul_fastload”, true);
user_pref(“nglayout.debug.enable_xbl_forms”, true);

Once I commented these guys out I got my button text back.

I definitely did not add these preferences myself, and I’m not sure how they got there, but if you’re having the same problem as me then hopefully this will help you out.

2 thoughts on “No button text in Firefox

  1. Pingback: button text disappearing in firefox « bookweevil

  2. Pingback: button text disappearing in firefox « bookweevil

Leave a Reply

Your email address will not be published. Required fields are marked *