Minor refactoring in getCurrentWebChromeClient