Implement #onPause and #onResume on ShadowWebView