Many thanks to Albert Astals Cid for the solution of this problem. BUG: 377062 (cherry picked from commit ba5f04a4)