Bug 989847 - Handle webgl context lose/restore event for gallery editor mode