Bug 824080 HTML editor shouldn't set selection state as inactive at losing focus but the document has focus r=ehsan