Chrome IOS - 它只是一个 UIWebView 吗?
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/11259152/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me):
StackOverFlow
Chrome IOS - Is it just a UIWebView?
提问by SpaceBeers
I'm not sure this is a suitable question for here but is the new Chrome app for IOS just a UIWebView?
我不确定这是一个合适的问题,但适用于 IOS 的新 Chrome 应用程序只是一个 UIWebView 吗?
If so then would it be safe to assume that there shouldn't be any rendering differences between it and mobile Safari?
如果是这样,那么假设它和移动 Safari 之间不应该有任何渲染差异是安全的吗?
采纳答案by Ben Leggiero
As of version 48, Chrome for iOS uses WKWebView, which is the same view used in Safari.
从版本 48 开始,iOS 版 Chrome 使用 WKWebView,这与 Safari 中使用的视图相同。
Sources:
资料来源:
回答by igrigorik
No, it is not just a UiWebView. Mike Pinkerton's post on chrome-team googlegroup:
不,它不仅仅是一个 UiWebView。Mike Pinkerton在 chrome-team googlegroup 上的帖子:
Chrome for iOS has some pretty major technical restrictions imposed by the App Store, such as the requirement to use the built-in UIWebView for rendering, no V8, and a single-process model. As a result it's been challenging to re-use critical Chromium infrastructure components. That said, there is a lot of code we do leverage, such as the network layer, the sync and bookmarks infrastructure, omnibox, metrics and crash reporting, and a growing portion of content.
iOS 版 Chrome 有一些由 App Store 强加的非常重要的技术限制,例如要求使用内置 UIWebView 进行渲染、没有 V8 和单进程模型。因此,重用关键的 Chromium 基础设施组件一直是一项挑战。也就是说,我们确实利用了很多代码,例如网络层、同步和书签基础设施、多功能框、指标和崩溃报告,以及越来越多的内容。
The networking layer alone contains a lotof optimizations to enhance your browsing. Here's a quick overview: http://www.igvita.com/2012/06/04/chrome-networking-dns-prefetch-and-tcp-preconnect/
仅网络层就包含许多优化以增强您的浏览。这是一个快速概述:http: //www.igvita.com/2012/06/04/chrome-networking-dns-prefetch-and-tcp-preconnect/
回答by Ashley Mills
Yes, you're right... it uses the webkit rendering engine, with Chrome UI.
是的,你是对的……它使用 webkit 渲染引擎和 Chrome UI。
Ref. DaringFireball...
参考 大胆的火球...
It's not the Chrome rendering or JavaScript engines — the App Store rules forbid that. It's the iOS system version of WebKit wrapped in Google's own browser UI
这不是 Chrome 渲染或 JavaScript 引擎——App Store 规则禁止这样做。是谷歌自己的浏览器UI包裹的iOS系统版本的WebKit