Merge "webview: refactor compatibility check." into main