发明名称 Browser kernel adaptation method and browser therefor
摘要 The present disclosure, pertaining to the field of computer Internet, discloses a browser kernel adaptation method and a browser therefor. The method includes: receiving, by a browser, a request for browsing a page from a user; acquiring, by the browser, information of the page from a server according to the request, and determining the type of the page according to the information of the page; and selecting, by the browser, a browser kernel according to the type of the page, and processing the request by using the selected browser kernel. The browser includes: a receiving module, a determining module, and a selecting module. The present disclosure implements an automatic adaptation function of the browser kernel during page browsing, and solves the problem that the browser kernel in the prior art cannot be automatically adapted.
申请公布号 US9571556(B2) 申请公布日期 2017.02.14
申请号 US201414255294 申请日期 2014.04.17
申请人 TENCENT TECHNOLOGY (SHENZHEN) COMPANY LIMITED 发明人 He Ming;Chen Lei;Gao Wenjun
分类号 G06F15/16;H04L29/08;G06F17/30 主分类号 G06F15/16
代理机构 Dilworth & Barrese, LLP. 代理人 Dilworth & Barrese, LLP.
主权项 1. A browser kernel adaptation method, comprising: receiving, by a browser, a request for browsing a page from a user; acquiring, by the browser, information of the page from a server according to the request, and determining the type of the page type according to the information of the page, the page type includes WAP type, WEB type, and unknown type; and selecting, by the browser, a browser kernel according to the type page type, when the page type is the unknown type, selecting the browser kernel in accordance with a first data segment of the page, and a mobile terminal mode; and processing the request by using the selected browser kernel, wherein if the page is not of WAP type, selecting a browser kernel provided by the developer of the browser, or selecting a browser kernel provided by a mobile terminal where the browser is installed, or selecting background transfer when the page is not of the WAP type, comprises: if the page is not of the WAP type, judging whether the first data segment of the page is “<?xml”; if the first data segment is “<?xml”, selecting the browser kernel provided by a developer of the browser; if the first data segment is not “<?xml”, judging whether the mobile terminal where the browser is installed is in World Wide Web (WWW) proxy mode; if the mobile terminal mode is WWW proxy mode, selecting the background transfer; and if the mobile terminal mode is not WWW proxy mode, selecting the browser kernel provided by the mobile terminal where the browser is installed.
地址 Shenzhen, Guangdong CN