Hmm, the git blame for that DCHECK isn't really useful due to pointing to some blink reformat change, but I think it was there for a long time and looking at surrounding code it was most likely added by
phi...@opera.com.
It looks like the spec indeed doesn't explicitly prohibit having media tracks with the same ids, but I'm not sure if it could be really useful anywhere. Chromium/Chrome media stack has a separate set of media track objects and we are currently using track ids to map blink tracks to Chromium media tracks. Perhaps the spec needs to be clarified?