Bug 1027990 activity rearwindow hack

https://bugzilla.mozilla.org/show_bug.cgi?id=1027990