android - 自 android 4.1 以来,android webView 是否会基于 Chrome 引擎?

标签 android webview chromium chrome-for-android

根据 2012 google I/O talk (摘录如下),android webView 从 4.1 版开始将基于 chromium。下载的源代码已经是这种情况了吗?

另外,“WebView和Chrome浏览器会一样”这个说法应该怎么理解呢?这是否意味着 chrome 浏览器将像最初的 android 浏览器一样构建在 webView 之上。

Q: With Chrome on Android what happens to the original Android browser and WebView?

A: ICS->JB upgrade will not pre-install Chrome. WebView will be converted to Chromium based code. Android and Chrome engineers are working together.

Q: Will WebView get updated?

A: WebView and Chrome browser will be the same when the OS is upgraded. Every 6 weeks Chrome will be updated but WebView will not. Just to be careful not to break anything.

http://www.zdnet.com/blog/burnette/google-io-2012-android-fireside-chat/2637

最佳答案

PIL , 根据我在 chromium 源代码中看到的内容,Chrome 看起来不像是构建在 WebView 之上的。我可以看到 Chrome 使用了一个名为 ContentView 的新类来充当“WebView”的 Chrome 等价物。

我对您提到的陈述的解释是,Chrome 和 Android 的 WebView 将共享相同的底层 WebKit 代码,并可能共享将 Java 层功能连接到 C++ 代码的接口(interface)。至少就目前而言,Chrome 可能会出于其目的使用自己的类似 webview 类的实现。

关于android - 自 android 4.1 以来,android webView 是否会基于 Chrome 引擎?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/12192674/

相关文章:

Android,如何更改自定义对话框中标题的颜色?

javascript - 使用 webView 时是否可以将 HTML 表单中的数据获取到 android 中?

javascript - 有没有正确的方法来发现 js 中的非 fatal error ?

javascript - Three.js canvas.toDataURL() 在 Chromium 中损坏了吗?

google-chrome - 为 Chromium 中的书签分配关键字

java - 将 Context 传递给类会导致 getSystemService 返回空指针异常

android - 如何使用 React Native 将一个页面导航到另一个页面?

android - 为什么 clang 将 NULL 定义为 __null?

android - `shouldOverrideUrlLoading` 真的被弃用了吗?我可以用什么代替?

android - WebView Android Studio 中的文件上传