Coordinate visiblity between background pages and content scripts to avoid doing more work than is necessary (in particuarl, we want to be good citizens on background pages that shouldn't be repainting or running JS when not visible).