Update support-legacy-browser() with code from latest #1524.