fix bug 1005977 - Prevent obvious content overlap

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