This avoids the need to pass the WebViewCore to its methods. Change-Id: Ieec414f0819f06c8f5568ae5d6dd81a48d05fd6e