for my research, I did some source code modifications in firefox and build it myself. In order to automate testing, I opted to use Selenium but unfortunately, my newly built
Ubuntu 14.04, firefox 36.0, selenium 2.44.0. The same problem, was solved by:
sudo pip install -U selenium
Selenium 2.45.0 is OK with FF36.
update: Selenium 2.53+ is compatible with FF45
You can get older FF versions here