Avoid double manipulation on the selection because of Firefox bug.
Merge branch 't/10119'