some fixes for chromium webview support