Bug 974807 - [Sora][gallery]WebGL context is lost when the screen is turned off

Handle lose context during saving