Bug 951812 - [Gallery] Release webgl context when we leave editor mode