Bug 935604 - Part 1: Fix graphical corruption on page load. r=lucasr, a=lsblakk

--HG--
extra : rebase_source : 46e57952f397fe5c6243af8a87606c317c144357
extra : amend_source : 1e3c9b7b23fa2cc9ea8e1ffd048761021a58df10