Gitlab needs to support it. Onebox probably has nothing to do with it.
Have you checked how they render on iframely?