bug 941457. When clearing history, close all open tabs so the browser (including overlay buttons) is in a consistent state. r=mbrubeck