Created attachment 374680 [details]
When creating a webgl context and drawing form video texture a few weird things happen:
1. max active contexts limit is suddenly 8.
2. creating an additional context returns `null`.
3. creating *another* context crashes the tab, and causing a refresh.
Seems to be happening on Safari on all platforms.
I have created a reproduction of the bug in a simple webgl program that creates context, loads videosm and draws a frame, on every button click.
First 8 clicks work fine.
9th click returns `null` (instead of a new recycled context) and causes an error.
10th click crashes the tab, after trying to recycle the same context from before and printing: `WebGL: INVALID_OPERATION: loseContext: context already lost`.
Also attaching the error log.
Created attachment 374681 [details]