I keep getting errors adding toolbar or menu elements.
I receive a dialog box that says either "Error on adding toolbar element" or "Error on adding menu element" followed by ": NS_ERROR_UNEXPECTED Component returned failure code 0x8000ffff, (NS_ERROR_UNEXPECTED) [nsIPrefBranch.getCharPref] id:". These dialog boxes occur in groups of ten.
Opaite Mbohovái (1)
Start Firefox in Diagnose Firefox issues using Troubleshoot Mode to check if one of your add-ons is causing your problem (switch to the DEFAULT theme: Tools > Add-ons > Themes).
See Troubleshoot extensions, themes and hardware acceleration issues to solve common Firefox problems and Troubleshoot issues with plugins like Flash or Java to fix common Firefox problems
If it does work in Safe-mode then disable all your extensions and then try to find which is causing it by enabling one at a time until the problem reappears.
You can use "Disable all add-ons" on the Safe mode start window to disable all extensions.
You have to close and restart Firefox after each change via "File > Exit" (Mac: "Firefox > Quit"; Linux: "File > Quit")