bug 799523 - rollup of parts 1-3 - fix for Retina MacBook crash when entering fullscreen mode (e.g. in BananaBread). r=bz,smichaud a=bajaj