Bug 1007940 - Improve the performance of editor initialization; r=bzbarsky a=sylvestre

--HG--
extra : transplant_source : %D6l%FA%BE8%E5%0E%5E%A5%E5Sj%C1D%9A%20u%DC%09%BE