Fixed #1933 Add a WebGL toggle flag to the framework.

Add a WebGL toggle flag to the framework.