It seems that the extension window immediately closes on Chrome when running on Mac, and so it doesn't get the new window event, for some reason. More investigation is needed.