CN110020338B - Browser and webpage opening method and device - Google Patents

Browser and webpage opening method and device Download PDF

Info

Publication number
CN110020338B
CN110020338B CN201710707569.5A CN201710707569A CN110020338B CN 110020338 B CN110020338 B CN 110020338B CN 201710707569 A CN201710707569 A CN 201710707569A CN 110020338 B CN110020338 B CN 110020338B
Authority
CN
China
Prior art keywords
target
kernel
webpage
address
webpage address
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201710707569.5A
Other languages
Chinese (zh)
Other versions
CN110020338A (en
Inventor
于子程
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Shenzhen Yayue Technology Co ltd
Original Assignee
Tencent Technology Shenzhen Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Tencent Technology Shenzhen Co Ltd filed Critical Tencent Technology Shenzhen Co Ltd
Priority to CN201710707569.5A priority Critical patent/CN110020338B/en
Publication of CN110020338A publication Critical patent/CN110020338A/en
Application granted granted Critical
Publication of CN110020338B publication Critical patent/CN110020338B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/90Details of database functions independent of the retrieved data types
    • G06F16/95Retrieval from the web
    • G06F16/958Organisation or management of web site content, e.g. publishing, maintaining pages or automatic linking

Abstract

A browser, a webpage opening method and equipment belong to the field of computers and the Internet. The browser includes: the system comprises a central pivot process module, an interface adaptation module and n kernels which are independent of each other, wherein n is an integer larger than 1; the central hub process module is used for acquiring a webpage address to be accessed and sending the webpage address to the interface adaptation module; the interface adaptation module is used for selecting a first target kernel for opening the webpage address from the n kernels and sending the webpage address to the first target kernel; and the first target kernel is used for opening the webpage corresponding to the webpage address. The embodiment of the invention ensures that a plurality of kernels of the browser are independent and do not influence each other, and cooperate with each other to ensure the normal operation of the browser. The cores are kept independent, so that the destructiveness of the cores is reduced, and the guarantee is provided for accessing more cores and upgrading the cores later.

Description

Browser and webpage opening method and device
Technical Field
The embodiment of the invention relates to the technical field of computers and the Internet, in particular to a browser and a webpage opening method.
Background
A browser is a piece of software that can display the contents of HyperText Markup Language (HTML) files of a web server or a file system and allow a user to interact with the HTML files.
The browser kernel determines how the browser displays the content of the web page and the format information of the page. Different browser kernels also have different interpretations of web page writing languages, so that the display effect of the same web page in browsers with different kernels can also be different. In the related art, a browser with a dual-kernel architecture is provided, where a Chrome kernel is used as a main body of the browser and is accessed to an IE kernel, where the IE kernel accesses a main kernel (i.e., the Chrome kernel) from a code level, and modifies a code of the main kernel.
In the browser of the multi-kernel architecture provided by the related art, when other kernels except the main kernel are accessed, the main kernel is damaged, and the expansibility is not high.
Disclosure of Invention
In order to solve the problem that when other kernels except a main kernel are accessed to a browser with a multi-kernel architecture provided by the related art, the main kernel is damaged, embodiments of the present invention provide a browser, a method and an apparatus for opening a web page. The technical scheme is as follows:
in a first aspect, a browser is provided, where the browser includes: the system comprises a central hub process module, an interface adaptation module and n mutually independent kernels, wherein n is an integer larger than 1;
the central hub process module is used for acquiring a webpage address to be accessed and sending the webpage address to the interface adaptation module;
the interface adaptation module is used for selecting a first target kernel for opening the webpage address from the n kernels and sending the webpage address to the first target kernel;
and the first target kernel is used for opening the webpage corresponding to the webpage address.
In a second aspect, a method for opening a web page is provided, where the method is applied in a browser, and the browser includes: the system comprises a central hub process module, an interface adaptation module and n mutually independent kernels, wherein n is an integer larger than 1;
the method comprises the following steps:
the central hub process module acquires a webpage address to be accessed and sends the webpage address to an interface adaptation module;
the interface adaptation module selects a first target kernel for opening the webpage address from the n kernels and sends the webpage address to the first target kernel;
and the first target kernel opens a webpage corresponding to the webpage address.
In a third aspect, there is provided a computer apparatus comprising a processor and a memory having stored therein at least one instruction, at least one program, a set of codes, or a set of instructions which, when executed by the processor, implements the functionality of a browser as claimed in any one of claims 1 to 6.
In a fourth aspect, there is provided a computer readable storage medium having stored therein at least one instruction, at least one program, a set of codes, or a set of instructions which, when executed, implement the functionality of a browser as claimed in any one of claims 1 to 6.
The technical scheme provided by the embodiment of the invention can bring the following beneficial effects:
the browser is communicated with the plurality of kernels through the interface adaptation module by packaging the interface adaptation module, and the integration of the plurality of kernels in a code access mode is avoided, so that the plurality of kernels are independent and do not influence each other, and are cooperated with each other, and a webpage can be opened by using a correct and appropriate kernel. The multiple kernels are kept independent, so that the destructiveness of the kernels is reduced, a guarantee is provided for accessing more kernels and upgrading the kernels later, and the expandability is improved.
Drawings
In order to more clearly illustrate the technical solutions in the embodiments of the present invention, the drawings needed to be used in the description of the embodiments will be briefly introduced below, and it is obvious that the drawings in the following description are only some embodiments of the present invention, and it is obvious for those skilled in the art to obtain other drawings based on these drawings without creative efforts.
FIG. 1 is an architecture diagram of a browser provided by one embodiment of the present invention;
FIG. 2 is an architecture diagram of an interface adaptation module provided by one embodiment of the present invention;
FIG. 3 is a flowchart of a method for opening a web page according to an embodiment of the present invention;
FIG. 4 is a flowchart of a method for opening a web page according to another embodiment of the present invention;
FIG. 5 is a flowchart of a method for opening a web page according to another embodiment of the present invention;
fig. 6 is a schematic structural diagram of a terminal according to an embodiment of the present invention.
Detailed Description
In order to make the objects, technical solutions and advantages of the present invention more apparent, embodiments of the present invention will be described in detail with reference to the accompanying drawings.
Referring to fig. 1, an architecture diagram of a browser according to an embodiment of the present invention is shown. The browser includes: the hub process module 110, the interface adaptation module 120 and n independent kernels 130, n being an integer greater than 1.
The hub process module 110 includes a Browser (Browser) process, which is a hub process of the Browser and is responsible for managing the main transactions of the Browser.
The interface adapter module 120 communicates up with the hub process module 110 and down with the n kernels 130.
Referring to fig. 2, an architecture diagram of the interface adaptation module 120 according to an embodiment of the present invention is shown. The interface adaptation module 120 includes: a Proxy (Proxy) unit 210 and a Stub (Stub) unit 220.
The stub unit 220 communicates with the n cores 130 downward, transmits a web address, receives core information, and communicates with the proxy unit 210 through an Inter-Process Communication (IPC) mechanism. The agent unit 210 receives the kernel information sent by the stub unit 220 downward, processes different kernel information uniformly, and then transmits the kernel information to the hub process module 110 upward.
Next, a process of opening a web page by the browser will be described.
The hub process module 110 is configured to obtain a web address to be accessed, and send the web address to the interface adaptation module 120.
In one example, assume that the user enters a web page address as follows: http:// ssjj.4399.com, the Browser process in the hub process module 110 will extract the web page address and send it to the interface adapter module 120.
The interface adaptation module 120 is configured to select a first target kernel used for opening a web address from the n kernels, and send the web address to the first target kernel.
After receiving the web page address sent by the hub process module 110, the interface adaptation module 120 selects a suitable kernel as a first target kernel to open the web page address.
Optionally, the interface adaptation module 120 selects a suitable kernel from the n kernels 130 as the first target kernel by detecting the pre-fabricated library. In one possible implementation, the interface adaptation module 120 is configured to: detecting whether a target item matched with the webpage address is included in the prefabricated library or not; and if the prefabricated library comprises the target item, selecting the core recorded in the target item as a first target core.
The prefabricated library comprises at least one item, each item comprises a corresponding relation between website information and a kernel, and the website information is any one of a domain name, a combination of the domain name and a host name, and a Uniform Resource Locator (URL).
The URL is an address of a standard resource on the internet, also called a web page address, and a domain name and a host name are part of the URL. Illustratively, one URL is http:// mail.163.Com/index. Html, then the domain name is 163.com, and the combination of the domain name and host name is mail.163.com.
Optionally, each entry further includes a kernel level corresponding to the website information, where the kernel level is used to indicate whether the web page address related to the website information is opened only by the kernel corresponding to the website information.
The kernel level determines whether the web page address associated with the web address information has other kernels available for switching. For example, when the kernel level is 1, the web address related to the website information can only be opened by using the kernel corresponding to the website information in the prefabricated library, and if the kernel level is 0, the corresponding web address may be switched to other kernels to be opened.
Illustratively, the entries included in the prefabricated library are shown in Table-1 below:
website information Inner core Kernel level
ssjj.4399.com 1 0
tenpay.com 1 1
qibao.gyyx.cn 0 0
xy2.cbg.163.com 2 0
2113.com 2 1
jj.cn 1 0
TABLE-1
Illustratively, table-1 shows entries in a partially pre-built library, as shown in Table-1, with one entry including website address information, kernel and kernel level. Where the web address information content.com in the second entry in table-1 is a domain name, and the web address information ssjj.4399.com in the first entry is a combination of the domain name and the host name. Assume that n cores 130 include the following 3 cores: chrome kernel, IE kernel and EDGE kernel, then Chrome kernel is denoted by 0, IE kernel is denoted by 1, EDGE kernel is denoted by 2. Com, kernel level 1, which means that the web page address containing the web address information content.com can only be opened by the IE kernel.
Optionally, the interface adaptation module 120 detects whether the pre-made library includes a target entry matched with the web page address, and specifically performs the following steps:
1. detecting whether a target item with website information matched with a domain name of a webpage address is included in a prefabricated library, and if yes, selecting an inner core recorded in the target item as a first target inner core; if not, executing the following step 2;
2. detecting whether a target item with website information matched with the combination of the domain name and the host name of the webpage address is included in the prefabricated library, and if yes, selecting an inner core recorded in the target item as a first target inner core; if not, executing the following step 3;
3. detecting whether a target item with website information matched with the URL of the webpage address is included in the prefabricated library, if so, selecting an inner core recorded in the target item as a first target inner core; if not, executing the following step 4;
4. and selecting any one core from the n cores as a first target core.
In the embodiment of the present invention, because some web page addresses with the same domain name or the same combination of domain name and host name can be opened by using the same kernel in practical applications, the web address information in the pre-made library is not necessarily a complete URL. Therefore, the data amount of the prefabricated library can be reduced and the detection efficiency can be improved.
After selecting the first target kernel, the interface adaptation module 120 sends a web page address to the first target kernel.
Optionally, in a possible implementation, the web page address sent by the hub process module 110 is received by the proxy unit 210 in the interface adaptation module 120. The proxy unit 210 sends the received web page address to the stub unit 220, and the stub unit 220 selects a first target kernel for opening the web page address from the n kernels. The stub unit 220 sends the web page address to the first target kernel after selecting the first target kernel.
And the first target kernel is used for opening the webpage corresponding to the webpage address.
After receiving the web page address sent by the interface adaptation module 120, the first target core constructs a rendering tree (rendering tree) according to the web page address, and draws a web page corresponding to the web page address according to the rendering tree.
The first target kernel selected for the first time may not be the most appropriate kernel to open the web page address. Therefore, the browser needs to detect whether the selected first target kernel is the most appropriate kernel for opening the web page address, and if not, the kernel needs to be switched. In the following, the kernel switching process is described by two possible implementations.
In a first possible implementation manner, the first target core is further configured to: detecting whether a preset error occurs when the webpage page corresponding to the webpage address is opened, and sending error information to the interface adaptation module 120 when the preset error occurs, where the error information is used to indicate that the preset error occurs when the webpage page corresponding to the webpage address is opened by the first target kernel.
The preset error is a specific interpreted scripting language (JavaScript, JS) error triggered by detecting a page, and is used for judging whether a correct kernel is used for opening a webpage address. After the first target kernel opens the webpage address, whether a JS error occurs is detected, if yes, error information is sent to the interface adaptation module 120, and if not, kernel switching is not needed.
The interface adaptation module 120 is further configured to, after receiving the error message, select a second target kernel from the n kernels except the first target kernel, and send the web page address to the second target kernel.
After receiving the error message, the interface adaptation module 120 determines that the first target kernel cannot be used to open the web page address and needs to perform kernel switching. The interface adaptation module 120 selects a kernel from other kernels except the first target kernel as a second target kernel. In one example, assume that n cores 130 include the following 3 cores: chrome kernel, IE kernel and EDGE kernel. If the first target kernel is a Chrome kernel, the interface adaptation module 120 takes an IE kernel or an EDGE kernel as a second target kernel; if the first target kernel is an IE kernel or an EDGE kernel, the interface adaptation module 120 uses the Chrome kernel as a second target kernel. Optionally, the interface adapting module 120 is further configured to: after the second target kernel is selected, a switch request is sent to the hub process module 110. The switching request is used for requesting to switch the kernel of the opened webpage address from the first target kernel to the second target kernel. Optionally, the switching request includes a web page address and an identifier of the second target kernel. The identity of the kernel is used to identify different kernels, with different kernels having different identities.
Optionally, the interface adapting module 120 is further configured to: after the error information is received, determining whether other kernels are available for switching according to the kernel level recorded in the target entry matched with the webpage address; if yes, executing the step of selecting a second target kernel from other kernels except the first target kernel in the n kernels; if not, the first target kernel is still used for opening the webpage corresponding to the webpage address.
The hub process module 110 sends a switch response to the interface adaptation module 120 after receiving the switch request. The switch response is used to indicate that the hub process module 110 agrees to perform a kernel switch. The interface adaptation module 120 sends the web page address to the second target kernel after receiving the switching response sent by the hub process module 110.
In a possible implementation manner, after receiving the error information sent by the first target kernel, the stub unit 220 in the interface adaptation module 120 selects a second target kernel from other kernels except the first target kernel from the n kernels, and then sends indication information to the proxy unit 210, where the indication information is used to indicate that the web page address is opened using the second target kernel, for example, the indication information includes the web page address and an identifier of the second target kernel. The proxy unit 210 sends a switch request to the hub process module 110 after receiving the indication information sent by the stub unit 220. After receiving the switching response sent by the hub process module 110, the proxy unit 210 sends the switching response to the stub unit 220. The stub unit 220 sends the web page address to the second target kernel after receiving the switch response.
And the second target kernel is used for opening the webpage corresponding to the webpage address.
After receiving the web page address sent by the interface adaptation module 120, the second target kernel constructs a rendering tree according to the web page address, and draws a web page corresponding to the web page address according to the rendering tree.
In a second possible implementation manner, the first target core is further configured to: and extracting a target parameter from the web page file corresponding to the web page address, and sending the target parameter to the interface adaptation module 120, where the target parameter is used to indicate a third target kernel suitable for opening a web page corresponding to the web page address.
And the first target kernel downloads the webpage resources to the local according to the webpage address, analyzes an HTML file in the webpage resources and searches target parameters. The target parameter is the name (name) = content) value of renderer (renderer) attribute in element tag. Illustratively, the content value is set to "webkit", "IE", and "EDGE", where "webkit" indicates opening using the Chrome kernel, "IE" indicates opening using the IE kernel, and "EDGE" indicates opening using the EDGE kernel.
After obtaining the target parameters, the first target kernel sends the target parameters to the interface adaptation module 120.
The interface adaptation module 120 is further configured to detect whether the third target kernel is the same as the first target kernel according to the target parameter; if not, sending the webpage address to a third target kernel; if the two are the same, the kernel does not need to be switched.
After receiving the target parameter sent by the first target kernel, the interface adaptation module 120 determines a third target kernel indicated by the target parameter and applicable to opening a web page corresponding to the web page address. Detecting whether the third target kernel is the same as the first target kernel or not, and if so, not needing kernel switching; if not, a switch request is sent to the hub process module 110. The switching request is used for requesting to switch the kernel of the opened webpage address from the first target kernel to the third target kernel. Optionally, the switching request includes the web page address and an identifier of the third target kernel.
Optionally, the interface adaptation module 120 is further configured to: after receiving the error information, determining whether other kernels are available for switching according to the kernel level recorded in the target entry matched with the webpage address; if yes, executing the step of selecting a second target kernel from other kernels except the first target kernel in the n kernels; if not, the first target kernel is still used for opening the webpage corresponding to the webpage address.
The hub process module 110 sends a switch response to the interface adaptation module 120 after receiving the switch request. The switch response is used to indicate that the hub process module 110 agrees to perform a kernel switch. The interface adaptation module 120 sends the web page address to the third target kernel after receiving the switching response sent by the hub process module 110.
In a possible implementation manner, after receiving the target parameter sent by the first target kernel, the stub unit 220 in the interface adaptation module 120 detects whether the third target kernel is the same as the first target kernel according to the target parameter, and if not, sends indication information to the proxy unit 210, where the indication information is used to indicate that the third target kernel is used to open the web address, and for example, the indication information includes the web address and an identifier of the third target kernel. The proxy unit 210 sends a switching request to the hub process module 110 after receiving the indication information sent by the stub unit 220. The proxy unit 210 receives the switch response sent by the hub process module 110 to the interface adaptation module 120 and sends the switch response to the stub unit 220. The stub unit 220 sends the web page address to the third target kernel after receiving the switching response.
And the third target kernel is used for opening the webpage corresponding to the webpage address.
After receiving the web page address sent by the interface adaptation module 120, the third target kernel constructs a rendering tree according to the web page address, and draws a web page corresponding to the web page address according to the rendering tree.
In the embodiment of the present invention, only taking the example that the first target kernel opens the web page corresponding to the web address and then extracts the target parameter, in other possible embodiments, after the first target kernel acquires the web file corresponding to the web address, the first target kernel may not open the web page first, extract the target parameter from the web file first, and send the target parameter to the interface adaptation module 120, where the interface adaptation module 120 detects whether the third target kernel is the same as the first target kernel; if not, sending a cancel instruction to the first target kernel, wherein the cancel instruction is used for instructing the first target kernel to cancel opening of the webpage corresponding to the webpage address, sending the webpage address to the third target kernel, and opening the webpage corresponding to the webpage address by the third target kernel; and if so, sending an opening instruction to the first target kernel, wherein the opening instruction is used for indicating the first target kernel to open the webpage corresponding to the webpage address.
In the embodiment of the invention, the browser is communicated with the plurality of kernels through the interface adaptation module by encapsulating the interface adaptation module, and the integration of the plurality of kernels in a code access mode is avoided, so that the plurality of kernels are kept independent and do not influence each other, and are cooperated with each other, and a webpage can be opened by using a correct and proper kernel. The cores are kept independent, so that the destructiveness of the cores is reduced, and the guarantee is provided for accessing more cores and upgrading the cores later.
In addition, whether a preset error occurs or a target parameter is extracted is detected through the kernel, so that when the error kernel is used, the correct kernel can be found and switched to open the webpage, and the expandability is improved.
Referring to fig. 3, a flowchart of a method for opening a web page according to an embodiment of the present invention is shown. The method can be applied to the browser shown in fig. 1. The method may include the steps of:
step 301, the backbone process module obtains a web page address.
In one example, assume that the current user enters a web page address: http:// ssjj.4399.com, the Browser process in the hub process module will obtain the web page address.
Step 302, the central hub process module sends the web page address to the interface adaptation module.
And the Browser process in the central process module sends the acquired webpage address to the interface adaptation module.
Step 303, the interface adaptation module selects a first target kernel for opening the web page address from the n kernels.
After the interface adaptation module receives the webpage address sent by the central process module, a proper inner core is selected as a first target inner core to open the webpage address.
Optionally, the interface adaptation module selects a suitable kernel from the n kernels as the first target kernel by detecting the pre-fabricated library. In a possible implementation mode, the interface adaptation module detects whether a target item matched with a webpage address is included in the prefabricated library or not; and if the prefabricated library comprises the target item, selecting the core recorded in the target item as a first target core.
The prefabricated library comprises at least one item, each item comprises a corresponding relation between website information and a kernel, and the website information is any one of a domain name, a combination of the domain name and a host name, and a URL (uniform resource locator).
The URL is the address of a standard resource on the internet, and the domain name and host name are part of the URL. Illustratively, if one URL is http:// mail.163.Com/index. Html, then the domain name is 163.Com, and the combination of domain name and host name is mail.163.Com.
Optionally, each entry further includes a kernel level corresponding to the website information, where the kernel level is used to indicate whether the web page address related to the website information is opened only by the kernel corresponding to the website information.
The kernel level determines whether the web address associated with the web address information has other kernels available for switching. Illustratively, when the kernel level is 1, the web address related to the website information can only be opened by using the kernel of the type corresponding to the website in the pre-built library, otherwise, the corresponding website can be opened by switching to other types of kernels.
For an exemplary description of the prefabricated library, see the description of table-1 above, which is not repeated in this embodiment.
The interface adaptation module detects whether a target item matched with the webpage address is included in the prefabricated library, and specifically executes the following steps:
303a, detecting whether a target item with website information matched with the domain name of the webpage address is included in the prefabricated library, if so, selecting an inner core recorded in the target item as a first target inner core; if not, the following step 303b is executed;
303b, detecting whether a target item with website information matched with the combination of the domain name and the host name of the webpage address is included in the prefabricated library, if so, selecting an inner core recorded in the target item as a first target inner core; if not, executing the following step 303c;
303c, detecting whether a target item with the website information matched with the URL of the webpage address is included in the prefabricated library, if so, selecting an inner core recorded in the target item as a first target inner core; if not, the following step 303d is executed;
303d, selecting any one core from the n cores as a first target core.
In the embodiment of the present invention, because some web page addresses with the same domain name or the same combination of domain name and host name can be opened by using the same kernel in practical applications, the web address information in the pre-made library is not necessarily a complete URL. Therefore, the data amount of the prefabricated library can be reduced and the detection efficiency can be improved.
Step 304, the interface adaptation module sends the web page address to the first target kernel.
And after the interface adaptation module selects the first target kernel, the interface adaptation module sends a webpage address to the first target kernel.
Optionally, in a possible implementation, the proxy unit in the interface adaptation module receives the web page address sent by the hub process module. And the proxy unit sends the received webpage address to the stub unit, and the stub unit selects a first target kernel for opening the webpage address from the n kernels. And after the stub unit selects the first target kernel, the stub unit sends a webpage address to the first target kernel.
Step 305, the first target kernel opens a webpage corresponding to the webpage address.
And after receiving the webpage address sent by the interface adaptation module, the first target kernel builds a rendering tree according to the webpage address and draws a webpage corresponding to the webpage address according to the rendering tree.
In the embodiment of the invention, the browser is communicated with the plurality of kernels through the interface adaptation module by encapsulating the interface adaptation module, so that the integration of the plurality of kernels in a code access mode is avoided, the plurality of kernels are kept independent and do not influence each other, and are cooperated with each other, and a webpage can be opened by using a correct and proper kernel. The multiple kernels are kept independent, so that the destructiveness of the kernels is reduced, a guarantee is provided for accessing more kernels and upgrading the kernels, and the expandability is improved.
Referring to fig. 4, a flowchart of a method for opening a web page according to another embodiment of the present invention is shown. The method can be applied to the structure shown in fig. 1. The method may include the steps of:
step 401, the backbone process module obtains a web page address.
Step 402, the backbone process module sends the web page address to the interface adaptation module.
In step 403, the interface adaptation module selects a first target kernel for opening a web page address from the n kernels.
Step 404, the interface adaptation module sends the web page address to the first target kernel.
Step 405, the first target kernel opens a webpage corresponding to the webpage address.
Steps 401 to 405 are the same as or similar to steps 301 to 305 in the embodiment of fig. 3, and refer to the description in the embodiment of fig. 3 for details, which are not repeated herein.
Step 406, the first target kernel detects whether a preset error occurs when the webpage page corresponding to the webpage address is opened; if yes, go to step 407; if not, the flow is ended.
The preset error is a specific JS error triggered by detecting a page and is used for judging whether a correct kernel is used for opening a webpage address. After a webpage address is opened by a first target kernel, whether a JS error occurs is detected, and if yes, kernel switching is needed; if not, the kernel switching is not needed.
In step 407, the first target kernel sends an error message to the interface adaptation module.
And after detecting the specific JS error, the first target kernel sends error information to the interface adaptation module.
In step 408, the interface adapter module selects a second target kernel from the n kernels excluding the first target kernel.
After receiving the error information, the interface adaptation module determines that the webpage address cannot be opened by using the first target kernel and needs kernel switching.
The interface adaptation module selects a kernel from other kernels except the first target kernel as a second target kernel. In one example, assume that the n cores include 3 cores as follows: chrome core, IE core and EDGE core. If the first target kernel is a Chrome kernel, taking an IE kernel or an EDGE kernel as a second target kernel; and if the first target kernel is an IE kernel or an EDGE kernel, taking the Chrome kernel as a second target kernel.
Step 409, the interface adaptation module sends a switching request to the hub process module.
And after selecting the second target kernel, the interface adaptation module sends a switching request to the central hub process module. The switching information is used for requesting to switch the kernel of the opened webpage address from the first target kernel to the second target kernel. Optionally, the switching request includes a web page address and an identifier of the second target kernel.
Optionally, after receiving the error information, the interface adaptation module determines whether there is another kernel available for switching according to the kernel level recorded in the target entry matched with the web page address; if yes, executing the step of selecting a second target kernel from other kernels except the first target kernel in the n kernels; if not, still using the first target kernel to open the webpage corresponding to the webpage address. In step 410, the hub process module sends a switch response to the interface adaptation module.
And after receiving the switching request, the central hub process module sends a switching response to the interface adaptation module. The switching response is used for indicating that the central hub process module agrees to perform kernel switching.
In step 411, the interface adapter module sends the web page address to the second target kernel.
And after receiving the switching response sent by the central process module, the interface adaptation module sends the webpage address to the second target kernel.
In a possible implementation manner, after receiving the error information sent by the first target kernel, the stub unit in the interface adaptation module selects a second target kernel from other kernels except the first target kernel from the n kernels, and then sends indication information to the proxy unit, where the indication information is used to indicate that the second target kernel is used to open the web page address, for example, the indication information includes the web page address and an identifier of the second target kernel. And after receiving the indication information sent by the stub unit, the proxy unit sends a switching request to the hub process module. And after receiving the switching response sent by the central process module, the proxy unit sends the switching response to the stub unit. And after receiving the switching response, the stub unit sends the webpage address to the second target kernel.
In step 412, the second target kernel opens a web page corresponding to the web address.
And after the second target kernel receives the webpage address sent by the interface adaptation module, constructing a rendering tree according to the webpage address, and drawing a webpage corresponding to the webpage address according to the rendering tree.
In the embodiment of the invention, the browser is communicated with the plurality of kernels through the interface adaptation module by encapsulating the interface adaptation module, so that the integration of the plurality of kernels in a code access mode is avoided, the damage to the main kernel when other kernels are accessed is avoided, and meanwhile, the plurality of kernels are independent and do not influence each other and are mutually cooperated, and a webpage can be opened by using correct and proper kernels. The multiple kernels are kept independent, so that the destructiveness of the kernels is reduced, a guarantee is provided for accessing more kernels and upgrading the kernels later, and the expandability is improved.
In addition, whether a preset error occurs or not is detected through the kernel, so that when the error kernel is used, the correct kernel can be found and switched to open the webpage.
Referring to fig. 5, a flowchart of a method for opening a web page according to another embodiment of the invention is shown. The method can be applied to the structure shown in fig. 1. The method may include the steps of:
step 501, the backbone process module obtains a web page address.
Step 502, the hub process module sends the web page address to the interface adaptation module.
Step 503, the interface adaptation module selects a first target kernel for opening the web page address from the n kernels.
Step 504, the interface adaptation module sends the web page address to the first target kernel.
And 505, the first target kernel opens a webpage corresponding to the webpage address.
Steps 501 to 505 are the same as or similar to steps 301 to 305 in the embodiment of fig. 3, and refer to the description in the embodiment of fig. 3 for details, which are not repeated herein.
Step 506, the first target kernel extracts the target parameters from the webpage file corresponding to the webpage address.
The first target kernel extracts a target parameter from the webpage file corresponding to the webpage address, and the target parameter is used for indicating a third target kernel which is suitable for opening the webpage corresponding to the webpage address.
And the first target kernel downloads the webpage resources to the local according to the webpage address, analyzes an HTML file in the webpage resources and searches target parameters. The target parameter is the content value of the name = render attribute in the element tag. Illustratively, the content value is set to "webkit", "IE", and "EDGE", where "webkit" indicates opening using the Chrome kernel, "IE" indicates opening using the IE kernel, and "EDGE" indicates opening using the EDGE kernel.
In step 507, the first target kernel sends the target parameters to the interface adaptation module.
And after the first target kernel acquires the target parameters, the target parameters are sent to the interface adaptation module.
Step 508, the interface adaptation module detects whether the third target kernel is the same as the first target kernel according to the target parameter; if yes, go to step 509; if not, the flow is ended.
And after receiving the target parameters sent by the first target kernel, the interface adaptation module determines a third target kernel which is indicated by the target parameters and is suitable for opening a webpage corresponding to the webpage address. Detecting whether the third target kernel is the same as the first target kernel or not, and if so, not needing kernel switching; if not, the kernel needs to be switched to a third target kernel.
Optionally, after receiving the error message, the interface adaptation module determines whether there is another kernel available for switching according to the kernel level recorded in the target entry matched with the web page address; if yes, executing the step of selecting a second target kernel from other kernels except the first target kernel in the n kernels; if not, still using the first target kernel to open the webpage corresponding to the webpage address. In step 509, the interface adapter module sends a switch request to the hub process module.
And after detecting that the kernel needs to be switched, the interface adaptation module sends a switching request to the central hub process module. The switching request is used for requesting to switch the kernel of the address of the opened webpage from the first target kernel to the third target kernel. Optionally, the switching request includes the web page address and an identifier of the third target kernel.
Step 510, the hub process module sends a switch response to the interface adaptation module.
And after receiving the switching request, the central hub process module sends a switching response to the interface adaptation module. The switching response is used for indicating that the central hub process module agrees to carry out kernel switching.
In step 511, the interface adapter module sends the web page address to the third target kernel.
And after receiving the switching response sent by the central process module, the interface adaptation module sends the webpage address to the third target kernel.
In a possible implementation manner, after receiving a target parameter sent by a first target kernel, a stub unit in an interface adaptation module detects whether a third target kernel is the same as the first target kernel according to the target parameter, and if not, sends indication information to an agent unit, where the indication information is used to indicate that a web address is opened by using the third target kernel, and for example, the indication information includes a web address and an identifier of the third target kernel. And after receiving the indication information sent by the stub unit, the proxy unit sends a switching request to the central hub process module. The agent unit receives the switching response sent to the interface adaptation module by the central hub process module and sends the switching response to the stub unit. And after receiving the switching response, the stub unit sends the webpage address to the third target kernel.
And step 512, the third target kernel opens a webpage corresponding to the webpage address.
And after receiving the webpage address sent by the interface adaptation module, the third target kernel builds a rendering tree according to the webpage address and draws a webpage corresponding to the webpage address according to the rendering tree.
In the embodiment of the present invention, only taking the example that the first target kernel extracts the target parameter after opening the web page corresponding to the web address, in other possible embodiments, after obtaining the web file corresponding to the web address, the first target kernel may not open the web page first, extract the target parameter from the web file first, send the target parameter to the interface adaptation module, and the interface adaptation module detects whether the third target kernel is the same as the first target kernel; if not, sending a canceling instruction to the first target kernel, wherein the canceling instruction is used for instructing the first target kernel to cancel opening of the webpage corresponding to the webpage address, sending the webpage address to the third target kernel, and opening the webpage corresponding to the webpage address by the third target kernel; and if the two web pages are the same, sending an opening instruction to the first target kernel, wherein the opening instruction is used for indicating the first target kernel to open the web page corresponding to the web address without switching the kernel.
In the embodiment of the invention, the browser is communicated with the plurality of kernels through the interface adaptation module by encapsulating the interface adaptation module, and the integration of the plurality of kernels in a code access mode is avoided, so that the plurality of kernels are kept independent and do not influence each other, and are cooperated with each other, and a webpage can be opened by using a correct and proper kernel. The multiple kernels are kept independent, so that the destructiveness of the kernels is reduced, a guarantee is provided for accessing more kernels and upgrading the kernels, and the expandability is improved.
In addition, the target parameters are extracted through the kernel, so that when the wrong kernel is used, the correct kernel can be found and switched to open the webpage.
Referring to fig. 6, a schematic structural diagram of a terminal according to an embodiment of the present invention is shown. The terminal can be installed and operated with the browser provided by the embodiment. Specifically, the method comprises the following steps:
the terminal 600 may include RF (Radio Frequency) circuitry 610, memory 620 including one or more computer-readable storage media, an input unit 630, a display unit 640, a sensor 650, audio circuitry 660, a WiFi (wireless fidelity) module 670, a processor 680 including one or more processing cores, and a power supply 690. Those skilled in the art will appreciate that the terminal structure shown in fig. 6 is not intended to be limiting and may include more or fewer components than those shown, or some components may be combined, or a different arrangement of components. Wherein:
the RF circuit 610 may be used for receiving and transmitting signals during a message transmission or communication process, and in particular, for receiving downlink information from a base station and processing the received downlink information by the one or more processors 680; in addition, data relating to uplink is transmitted to the base station. In general, RF circuitry 610 includes, but is not limited to, an antenna, at least one Amplifier, a tuner, one or more oscillators, a Subscriber Identity Module (SIM) card, a transceiver, a coupler, an LNA (Low Noise Amplifier), a duplexer, and the like. In addition, the RF circuitry 610 may also communicate with networks and other devices via wireless communications. The wireless communication may use any communication standard or protocol, including but not limited to GSM (Global System for Mobile communications), GPRS (General Packet Radio Service), CDMA (Code Division Multiple Access), WCDMA (Wideband Code Division Multiple Access), LTE (Long Term Evolution), email, SMS (Short Messaging Service), and the like.
The memory 620 may be used to store software programs and modules, and the processor 680 may execute various functional applications and data processing by operating the software programs and modules stored in the memory 620. The memory 620 may mainly include a storage program area and a storage data area, wherein the storage program area may store an operating system, an application program required by at least one function (such as a sound playing function, an image playing function, etc.), and the like; the storage data area may store data (such as audio data, a phonebook, etc.) created according to the use of the terminal 600, and the like. Further, the memory 620 may include high speed random access memory, and may also include non-volatile memory, such as at least one magnetic disk storage device, flash memory device, or other volatile solid state storage device. Accordingly, the memory 620 may also include a memory controller to provide the processor 680 and the input unit 630 access to the memory 620.
The input unit 630 may be used to receive input numeric or character information and generate keyboard, mouse, joystick, optical or trackball signal inputs related to user settings and function control. Specifically, the input unit 630 may include an image input device 631 and other input devices 632. The image input device 631 may be a camera, and may also be a photo scanning device. The input unit 630 may include other input devices 632 in addition to the image input device 631. In particular, other input devices 632 may include, but are not limited to, one or more of a physical keyboard, function keys (such as volume control keys, switch keys, etc.), a trackball, a mouse, a joystick, and the like.
The display unit 640 may be used to display information input by or provided to a user and various graphical user interfaces of the terminal 600, which may be made up of graphics, text, icons, video, and any combination thereof. The Display unit 640 may include a Display panel 641, and optionally, the Display panel 641 may be configured in the form of an LCD (Liquid Crystal Display), an OLED (Organic Light-Emitting Diode), or the like.
The terminal 600 can also include at least one sensor 650, such as a light sensor, motion sensor, and other sensors. Specifically, the light sensor may include an ambient light sensor that may adjust the brightness of the display panel 641 according to the brightness of ambient light, and a proximity sensor that may turn off the display panel 641 and/or the backlight when the terminal 600 is moved to the ear. As one of the motion sensors, the gravity acceleration sensor can detect the magnitude of acceleration in each direction (generally three axes), can detect the magnitude and direction of gravity when stationary, and can be used for applications of identifying the gesture of a mobile phone (such as horizontal and vertical screen switching, related games, magnetometer gesture calibration), vibration identification related functions (such as pedometer and tapping), and the like; as for other sensors such as a gyroscope, a barometer, a hygrometer, a thermometer, and an infrared sensor, which can be configured in the terminal 600, detailed descriptions thereof are omitted.
Audio circuit 660, speaker 661, and microphone 662 can provide an audio interface between a user and terminal 600. The audio circuit 660 may transmit the electrical signal converted from the received audio data to the speaker 661, and convert the electrical signal into an audio signal through the speaker 661 for output; on the other hand, the microphone 662 converts the collected sound signal into an electrical signal, which is received by the audio circuit 660 and converted into audio data, which is then processed by the audio data output processor 680 and then passed through the RF circuit 610 to be transmitted to, for example, another terminal, or output to the memory 620 for further processing. The audio circuit 660 may also include an earbud jack to provide communication of a peripheral headset with the terminal 600.
WiFi belongs to short-distance wireless transmission technology, and the terminal 600 can help the user send and receive e-mails, browse web pages, access streaming media, etc. through the WiFi module 670, and it provides wireless broadband internet access for the user. Although fig. 6 shows the WiFi module 670, it is understood that it does not belong to the essential constitution of the terminal 600, and can be omitted entirely as needed within the scope not changing the essence of the invention.
The processor 680 is a control center of the terminal 600, connects various parts of the entire handset using various interfaces and lines, and performs various functions of the terminal 600 and processes data by operating or executing software programs and/or modules stored in the memory 620 and calling data stored in the memory 620, thereby integrally supervising the handset. Optionally, processor 680 may include one or more processing cores; preferably, the processor 680 may integrate an application processor, which mainly handles operating systems, user interfaces, application programs, etc., and a modem processor, which mainly handles wireless communications. It will be appreciated that the modem processor described above may not be integrated into processor 680.
The terminal 600 also includes a power supply 690 (e.g., a battery) for powering the various components, which may be logically coupled to the processor 680 via a power management system to manage charging, discharging, and power consumption via the power management system. The power supply 690 may also include one or more dc or ac power sources, recharging systems, and/or the like power failure detection circuitry, power converters or inverters, power status indicators, and the like.
Although not shown, the terminal 600 may further include a bluetooth module or the like, which will not be described in detail herein.
Specifically, in this embodiment, the terminal 600 further includes a memory, where at least one instruction, at least one program, a code set, or an instruction set is stored in the memory, and when executed, the at least one instruction, the at least one program, the code set, or the instruction set implements the functions of the browser according to the foregoing embodiments.
In an exemplary embodiment, a computer readable storage medium is also provided, having stored therein at least one instruction, at least one program, code set or set of instructions which, when executed by a processor of a computer device, implement the functionality of a browser as described in the above embodiments.
Alternatively, the computer-readable storage medium may be a ROM, a Random Access Memory (RAM), a CD-ROM, a magnetic tape, a floppy disk, an optical data storage device, and the like. The computer device may be a terminal or a server.
It should be understood that reference to "a plurality" herein means two or more. "and/or" describes the association relationship of the associated objects, meaning that there may be three relationships, e.g., a and/or B, which may mean: a exists alone, A and B exist simultaneously, and B exists alone. The character "/" generally indicates that the former and latter associated objects are in an "or" relationship.
The above-mentioned serial numbers of the embodiments of the present invention are only for description, and do not represent the advantages and disadvantages of the embodiments.
The above description is only exemplary of the present invention and should not be taken as limiting the invention, as any modification, equivalent replacement, or improvement made within the spirit and principle of the present invention should be included in the protection scope of the present invention.

Claims (10)

1. A browser, the browser comprising: the system comprises a central hub process module, an interface adaptation module and n mutually independent kernels, wherein n is an integer larger than 1; the browser is also correspondingly provided with a prefabricated library, the prefabricated library comprises at least one item, each item comprises a corresponding relation between website information and the kernel, and the website information is any one of a domain name, a combination of the domain name and a host name, and a Uniform Resource Locator (URL);
the central hub process module is used for acquiring a webpage address to be accessed and sending the webpage address to the interface adaptation module;
the interface adaptation module is used for detecting whether a target item with website information matched with the domain name of the webpage address is included in the prefabricated library, and if the target item with website information matched with the domain name of the webpage address is included in the prefabricated library, selecting an inner core recorded in the target item as a first target inner core; if the prefabricated library does not comprise a target item of which the website information is matched with the domain name of the webpage address, detecting whether the prefabricated library comprises the target item of which the website information is matched with the combination of the domain name of the webpage address and the host name, and if the prefabricated library comprises the target item of which the website information is matched with the combination of the domain name of the webpage address and the host name, selecting an inner core recorded in the target item as a first target inner core; if the prefabricated library does not comprise a target item of which the website information is matched with the combination of the domain name and the host name of the webpage address, detecting whether the prefabricated library comprises the target item of which the website information is matched with the URL of the webpage address, if the prefabricated library comprises a target item of which the website information is matched with the URL of the webpage address, selecting a kernel recorded in the target item as a first target kernel; if the target item of which the website information is matched with the URL of the webpage address is not included in the prefabricated library, selecting any one kernel from the n kernels as a first target kernel, and sending the webpage address to the first target kernel;
the first target kernel is used for extracting a target parameter from a webpage file corresponding to the webpage address and sending the target parameter to the interface adaptation module, wherein the target parameter is used for indicating a third target kernel suitable for opening a webpage corresponding to the webpage address;
the interface adaptation module is further configured to detect whether the third target kernel is the same as the first target kernel according to the target parameter, if the third target kernel is different from the first target kernel, sending the webpage address to the third target kernel;
the third target kernel is used for opening a webpage corresponding to the webpage address;
the first target kernel is further configured to open a web page corresponding to the web address under the condition that the third target kernel is the same as the first target kernel.
2. The browser according to claim 1, wherein each entry further includes a kernel level corresponding to the website information, and the kernel level is used to indicate whether a web page address associated with the website information is opened only by the kernel corresponding to the website information.
3. The browser according to any one of claims 1 to 2,
the first target kernel is further configured to detect whether a preset error occurs when the web page corresponding to the web address is opened, and send error information to the interface adaptation module when the preset error occurs, where the error information is used to indicate that the preset error occurs when the web page corresponding to the web address is opened by the first target kernel;
the interface adaptation module is further configured to select a second target kernel from other kernels, except the first target kernel, of the n kernels after receiving the error information, and send the web page address to the second target kernel;
and the second target kernel is used for opening a webpage corresponding to the webpage address.
4. The browser according to any one of claims 1 to 2, wherein the n kernels comprise: chrome kernel, IE kernel, EDGE kernel.
5. A webpage opening method is applied to a browser, and the browser comprises the following steps: the system comprises a central hub process module, an interface adaptation module and n mutually independent kernels, wherein n is an integer larger than 1; the browser is also correspondingly provided with a prefabricated library, the prefabricated library comprises at least one item, each item comprises a corresponding relation between website information and the kernel, and the website information is any one of a domain name, a combination of the domain name and a host name, and a Uniform Resource Locator (URL);
the method comprises the following steps:
the central hub process module acquires a webpage address to be accessed and sends the webpage address to an interface adaptation module;
the interface adaptation module detects whether a target item with website information matched with the domain name of the webpage address is included in the prefabricated library, and if the target item with website information matched with the domain name of the webpage address is included in the prefabricated library, an inner core recorded in the target item is selected as a first target inner core; if the prefabricated library does not comprise a target item of which the website information is matched with the domain name of the webpage address, detecting whether the prefabricated library comprises the target item of which the website information is matched with the combination of the domain name of the webpage address and the host name, and if the prefabricated library comprises the target item of which the website information is matched with the combination of the domain name of the webpage address and the host name, selecting an inner core recorded in the target item as a first target inner core; if the prefabricated library does not comprise a target item of which the website information is matched with the combination of the domain name and the host name of the webpage address, detecting whether the prefabricated library comprises the target item of which the website information is matched with the URL of the webpage address, and if the prefabricated library comprises the target item of which the website information is matched with the URL of the webpage address, selecting an inner core recorded in the target item as a first target inner core; if the target item with the website information matched with the URL of the webpage address is not included in the prefabricated library, selecting any one of the n kernels as a first target kernel, and sending the webpage address to the first target kernel;
the first target kernel extracts a target parameter from a webpage file corresponding to the webpage address and sends the target parameter to the interface adaptation module, wherein the target parameter is used for indicating a third target kernel suitable for opening a webpage corresponding to the webpage address;
the interface adaptation module detects whether the third target kernel is the same as the first target kernel or not according to the target parameters, and if the third target kernel is not the same as the first target kernel, the interface adaptation module sends the webpage address to the third target kernel;
the third target kernel opens a webpage corresponding to the webpage address;
and the first target kernel is used for opening the webpage corresponding to the webpage address under the condition that the third target kernel is the same as the first target kernel.
6. The method of claim 5, wherein each entry further comprises a kernel level corresponding to the website information, and the kernel level indicates whether the web page address associated with the website information is opened only by the kernel corresponding to the website information.
7. The method according to any one of claims 5 to 6, further comprising:
the first target kernel detects whether a preset error occurs when a webpage corresponding to the webpage address is opened, and sends error information to the interface adaptation module under the condition that the preset error occurs, wherein the error information is used for indicating that the preset error occurs when the webpage corresponding to the webpage address is opened by the first target kernel;
after receiving the error information, the interface adaptation module selects a second target kernel from other kernels except the first target kernel in the n kernels, and sends the webpage address to the second target kernel;
and the second target kernel opens a webpage corresponding to the webpage address.
8. The method of any of claims 5 to 6, wherein the n cores comprise: chrome kernel, IE kernel, EDGE kernel.
9. A computer device comprising a processor and a memory having stored therein at least one instruction, at least one program, a set of codes, or a set of instructions which, when executed by the processor, implement the functions of a browser as claimed in any one of claims 1 to 4.
10. A computer readable storage medium having stored therein at least one instruction, at least one program, a set of codes, or a set of instructions which, when executed, implement the functionality of a browser as claimed in any one of claims 1 to 4.
CN201710707569.5A 2017-08-17 2017-08-17 Browser and webpage opening method and device Active CN110020338B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201710707569.5A CN110020338B (en) 2017-08-17 2017-08-17 Browser and webpage opening method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201710707569.5A CN110020338B (en) 2017-08-17 2017-08-17 Browser and webpage opening method and device

Publications (2)

Publication Number Publication Date
CN110020338A CN110020338A (en) 2019-07-16
CN110020338B true CN110020338B (en) 2022-10-28

Family

ID=67186094

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201710707569.5A Active CN110020338B (en) 2017-08-17 2017-08-17 Browser and webpage opening method and device

Country Status (1)

Country Link
CN (1) CN110020338B (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112102909A (en) * 2020-09-22 2020-12-18 合肥易康达医疗卫生信息科技有限公司 Method for automatically drawing body temperature single prescription according to collected data
CN114217866B (en) * 2021-11-08 2023-09-19 阿里健康科技(中国)有限公司 Application method and device of applet and electronic equipment

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7430738B1 (en) * 2001-06-11 2008-09-30 Microsoft Corporation Methods and arrangements for routing server requests to worker processes based on URL
CN101655863A (en) * 2009-04-24 2010-02-24 北京搜狗科技发展有限公司 Method for loading web pages in browser and browser
CN106528733A (en) * 2016-10-27 2017-03-22 合网络技术(北京)有限公司 Webpage display method and apparatus

Family Cites Families (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102385594B (en) * 2010-08-31 2015-09-30 腾讯科技(深圳)有限公司 The kernel control method of multi-core browser and device
CN102156709B (en) * 2011-02-28 2020-01-03 奇智软件(北京)有限公司 Method for switching browser engine modes
CN103605688B (en) * 2013-11-01 2017-05-10 北京奇虎科技有限公司 Intercept method and intercept device for homepage advertisements and browser
KR101518472B1 (en) * 2014-06-16 2015-05-07 주식회사 플랜티넷 Method for detecting a number of the devices of a plurality of client terminals selected by a web server with additional non-specified domain name from the internet request traffics sharing the public IP address and System for detecting selectively the same
CN104202360B (en) * 2014-08-13 2015-12-30 小米科技有限责任公司 The method of accessed web page, device and router
CN107045501A (en) * 2016-02-05 2017-08-15 腾讯科技(深圳)有限公司 A kind of Web access method and device

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7430738B1 (en) * 2001-06-11 2008-09-30 Microsoft Corporation Methods and arrangements for routing server requests to worker processes based on URL
CN101655863A (en) * 2009-04-24 2010-02-24 北京搜狗科技发展有限公司 Method for loading web pages in browser and browser
CN106528733A (en) * 2016-10-27 2017-03-22 合网络技术(北京)有限公司 Webpage display method and apparatus

Also Published As

Publication number Publication date
CN110020338A (en) 2019-07-16

Similar Documents

Publication Publication Date Title
CN107040609B (en) Network request processing method and device
US9241242B2 (en) Information recommendation method and apparatus
CN109857403B (en) Page updating method and device, page processing method and device
CN108156508B (en) Barrage information processing method and device, mobile terminal, server and system
CN110058850B (en) Application development method and device and storage medium
WO2017084452A1 (en) Method and apparatus for processing tag page in graphical interface
US20150091935A1 (en) Method and device for browsing web under weak light with mobile terminal browser
WO2018196588A1 (en) Information sharing method, apparatus and system
CN110020293B (en) Multimedia data display method, device and storage medium
US20160182485A1 (en) Method and device for controlling web page to invoke system function, and storage medium thereof
CN109088844B (en) Information interception method, terminal, server and system
CN109933381B (en) Kernel loading method and device
CN103702297A (en) Short message enhancement method, device and system
US9921735B2 (en) Apparatuses and methods for inputting a uniform resource locator
CN104182429A (en) Web page processing method and terminal
WO2015067142A1 (en) Webpage display method and device
WO2015003636A1 (en) Method and device for interception of page elements
CN104239332A (en) Webpage content processing method, webpage content processing device and browser client side
CN108073647B (en) Webpage display method and device
CN108182090B (en) Flash plug-in loading method and device based on blink kernel
CN108347460B (en) Resource access method and device
CN110020338B (en) Browser and webpage opening method and device
CN108959062B (en) Webpage element acquisition method and device
CN105095161B (en) Method and device for displaying rich text information
CN106649595B (en) Object pool-based webpage starting acceleration method and device and terminal

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant
TR01 Transfer of patent right

Effective date of registration: 20221129

Address after: 1402, Floor 14, Block A, Haina Baichuan Headquarters Building, No. 6, Baoxing Road, Haibin Community, Xin'an Street, Bao'an District, Shenzhen, Guangdong 518133

Patentee after: Shenzhen Yayue Technology Co.,Ltd.

Address before: 518057 Tencent Building, No. 1 High-tech Zone, Nanshan District, Shenzhen City, Guangdong Province, 35 floors

Patentee before: TENCENT TECHNOLOGY (SHENZHEN) Co.,Ltd.

TR01 Transfer of patent right