Bug 944397 - Process SetInputMethodActive request until content window is ready. r=fabrice

--HG--
extra : rebase_source : 330dbbe63646b2b08a3b6eded27c85714361044a