Tencent / VasSonic

VasSonic is a lightweight and high-performance Hybrid framework developed by tencent VAS team, which is intended to speed up the first screen of websites working on Android and iOS platform.
Other
11.81k stars 1.61k forks source link

VasSonic 对接X5 时 loadDataWithBaseURL方法无效 #226

Closed 9527qingfeng closed 6 years ago

9527qingfeng commented 6 years ago

What steps will reproduce the problem? 该问题的重现步骤是什么?

  1. SonicSessionClient 中 @Override public void loadDataWithBaseUrl(String baseUrl, String data, String mimeType, String encoding, String historyUrl) { this.mAgentWeb.loadDataWithBaseURL(baseUrl,data,mimeType,encoding,historyUrl); }

    @Override public void loadDataWithBaseUrlAndHeader(String baseUrl, String data, String mimeType, String encoding, String historyUrl, HashMap<String, String> headers) { loadDataWithBaseUrl(baseUrl, data, mimeType, encoding, historyUrl); }

  2. loadDataWithBaseURL 这步获取到了 信息, data中有数据 但是 loadDataWithBaseURL之后加载不出来页面 返回title about:blank

  3. sonicSession 创建成功

What is the expected output? What do you see instead? 你期待的结果是什么?实际看到的又是什么? 页面显示出来

What version of the product are you using? On what operating system? 你正在使用产品的哪个版本?在什么操作系统上? 3.6版本

Please provide any additional information below. 如果有的话,请在下面提供更多信息。