CN110442400B - Browser control method and device - Google Patents

Browser control method and device Download PDF

Info

Publication number
CN110442400B
CN110442400B CN201910752234.4A CN201910752234A CN110442400B CN 110442400 B CN110442400 B CN 110442400B CN 201910752234 A CN201910752234 A CN 201910752234A CN 110442400 B CN110442400 B CN 110442400B
Authority
CN
China
Prior art keywords
kernel
target
module
webpage
browser
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
CN201910752234.4A
Other languages
Chinese (zh)
Other versions
CN110442400A (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.)
Netease Hangzhou Network Co Ltd
Original Assignee
Netease Hangzhou Network 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 Netease Hangzhou Network Co Ltd filed Critical Netease Hangzhou Network Co Ltd
Priority to CN201910752234.4A priority Critical patent/CN110442400B/en
Publication of CN110442400A publication Critical patent/CN110442400A/en
Application granted granted Critical
Publication of CN110442400B publication Critical patent/CN110442400B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/445Program loading or initiating
    • G06F9/44505Configuring for program initiating, e.g. using registry, configuration files
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/448Execution paradigms, e.g. implementations of programming paradigms
    • G06F9/4482Procedural
    • G06F9/4484Executing subprograms

Abstract

The embodiment of the disclosure provides a browser control method and a device, wherein the method comprises the following steps: the method comprises the steps of starting a main process of the browser by responding to the starting operation of the browser, loading a first kernel of the browser through the main process, and creating a subprocess management module in the main process, wherein the subprocess management module is used for controlling the subprocess. And starting the subprocess of the browser according to the subprocess management module, and loading a second kernel of the browser through the subprocess. And responding to the webpage opening operation, and calling a first target process to display a target webpage corresponding to the webpage opening operation, wherein the first target process is a main process and/or a sub process. The main process and/or the sub-process are/is set to control the first kernel or the second kernel to display the target webpage, so that the first kernel and the second kernel can be compatible in the browser, the browser does not need to be re-developed, redundant work is avoided, and the development efficiency of the system is improved.

Description

Browser control method and device
Technical Field
The embodiment of the disclosure relates to computer technologies, and in particular, to a browser control method and device.
Background
The browser kernel is a very important part of the browser, and is responsible for interpreting the syntax of the web page and displaying the web page, and one or more browser kernels are usually selected for opening the web page in the browser when the browser is developed.
Generally, after a browser is developed for a period of time, since a first kernel cannot meet new service requirements, a second kernel needs to be selected to support the browser, and the current practice is to redevelop the service functions of the browser on the second kernel to realize the support of the second kernel.
However, redevelopment on the second core requires a lot of redundancy work, which may result in a reduction in the development efficiency of the system.
Disclosure of Invention
The embodiment of the disclosure provides a browser control method and device, so as to overcome the problem of reduced development efficiency of a system caused by redevelopment on a second kernel.
In a first aspect, an embodiment of the present disclosure provides a browser control method, where the method includes:
responding to browser starting operation, starting a main process of the browser, loading a first kernel of the browser through the main process, and creating a sub-process management module in the main process, wherein the sub-process management module is used for controlling the sub-process;
starting a subprocess of the browser according to the subprocess management module, and loading a second kernel of the browser through the subprocess;
and responding to a webpage opening operation, and calling the first target process to display a target webpage corresponding to the webpage opening operation, wherein the first target process is the main process and/or the sub-process.
In one possible design, the invoking the first target process to display a target web page corresponding to the web page opening operation in response to the web page opening operation includes:
responding to a webpage opening operation, and acquiring configuration information from a webpage management module in the main process, wherein the configuration information is used for indicating a target browser inner core for opening the target webpage;
determining the target browser kernel according to the configuration information, and determining the first target process according to the target browser kernel;
and calling the first target process to display a target webpage corresponding to the webpage opening operation.
In one possible design, the configuration information includes at least one web page identifier and a browser kernel corresponding to each of the at least one web page identifier;
determining the target browser kernel according to the configuration information includes:
acquiring a target webpage identifier of the target webpage;
judging whether a browser kernel corresponding to the target webpage identifier exists in the configuration information or not according to the target webpage identifier;
if yes, determining the browser kernel in the configuration information as the target browser kernel;
if not, determining the first kernel as the target browser kernel.
In one possible design, if the target browser kernel is the second kernel, the first target process is a child process;
the calling the first target process to display the target webpage corresponding to the webpage opening operation includes:
creating a second kernel web page proxy module in the main process and creating a second kernel web page module in the sub-process, wherein the second kernel web page proxy module is used for indicating the page attribute of the target web page, and the second kernel web page module is used for displaying the target web page;
acquiring the page attribute of the target webpage according to the second kernel webpage proxy module;
the main process sends a webpage opening instruction and the page attribute of the target webpage to a second kernel webpage management module in the sub-process;
and the second kernel webpage management module controls the second kernel webpage module to display the target webpage according to the webpage opening instruction and the page attribute of the target webpage.
In one possible design, if the target browser kernel is the first kernel, the first target process is a master process;
the calling the first target process to display the target webpage corresponding to the webpage opening operation includes:
and controlling a first kernel webpage module in the main process to display the target webpage.
In one possible design, the web page of the browser includes an interface module for interacting with a user, a main process, or a sub-process;
the method further comprises the following steps:
the second target process receives the request data sent by the interface module;
and the second target process returns response data to the interface module according to the request data, wherein the response data is data corresponding to the request data.
In a possible design, if the web page corresponding to the interface module uses a first kernel, the second target process is the main process;
the second target process returns response data to the interface module according to the request data, and the response data comprises the following steps:
a compatible module in the main process acquires the response data according to the request data;
and a first interaction module in the main process returns the response data to the interface module, wherein the first interaction module is used for realizing interaction between the webpage corresponding to the first kernel and the main process.
In a possible design, if a second kernel is used by a webpage corresponding to the interface module, the second target process is the child process;
the second target process returns response data to the interface module according to the request data, and the response data comprises the following steps:
a second communication module in the sub-process sends the request data to a first communication module in the main process, wherein the second communication module and the first communication module are used for realizing the communication between the sub-process and the main process;
a compatible module in the main process acquires the response data according to the request data;
the second communication module receives the response data sent by the first communication module;
and a second interaction module in the sub-process returns the response data to the interface module according to the response data received by the second receiving module, wherein the second interaction module is used for realizing interaction between a webpage corresponding to a second kernel and the sub-process.
In a second aspect, an embodiment of the present disclosure provides a browser control apparatus, where the apparatus includes:
the system comprises a creating module, a first kernel module and a second kernel module, wherein the creating module is used for responding to browser starting operation, starting a main process of the browser, loading the first kernel of the browser through the main process and creating a subprocess management module in the main process, and the subprocess management module is used for controlling the subprocess;
the starting module is used for starting the subprocess of the browser according to the subprocess management module and loading a second kernel of the browser through the subprocess;
and the calling module is used for responding to a webpage opening operation and calling the first target process to display a target webpage corresponding to the webpage opening operation, wherein the first target process is the main process and/or the sub-process.
In one possible design, the invoking module is specifically configured to:
responding to a webpage opening operation, and acquiring configuration information from a webpage management module in the main process, wherein the configuration information is used for indicating a target browser inner core for opening the target webpage;
determining the target browser kernel according to the configuration information, and determining the first target process according to the target browser kernel;
and calling the first target process to display a target webpage corresponding to the webpage opening operation.
In one possible design, the configuration information includes at least one web page identifier and a browser kernel to which the at least one web page identifier corresponds;
the calling module is specifically configured to:
acquiring a target webpage identifier of the target webpage;
judging whether a browser kernel corresponding to the target webpage identifier exists in the configuration information or not according to the target webpage identifier;
if yes, determining the browser kernel in the configuration information as the target browser kernel;
if not, determining the first kernel as the target browser kernel.
In one possible design, if the target browser kernel is the second kernel, the first target process is a child process;
the calling module is specifically configured to:
creating a second kernel web page proxy module in the main process and creating a second kernel web page module in the sub-process, wherein the second kernel web page proxy module is used for indicating the page attribute of the target web page, and the second kernel web page module is used for displaying the target web page;
acquiring the page attribute of the target webpage according to the second kernel webpage proxy module;
the main process sends a webpage opening instruction and the page attribute of the target webpage to a second kernel webpage management module in the sub-process;
and the second kernel web page management module controls the second kernel web page module to display the target web page according to the web page opening instruction and the page attribute of the target web page.
In one possible design, if the target browser kernel is the first kernel, the first target process is a master process;
the calling module is specifically configured to:
and controlling a first kernel webpage module in the main process to display the target webpage.
In one possible design, the web page of the browser includes an interface module for interacting with a user, a main process, or a sub-process;
further comprising: a processing module;
the processing module is used for receiving the request data sent by the interface module by the second target process;
and the second target process returns response data to the interface module according to the request data, wherein the response data is data corresponding to the request data.
In a possible design, if the web page corresponding to the interface module uses a first kernel, the second target process is the main process;
the processing module is specifically configured to:
a compatible module in the main process acquires the response data according to the request data;
and a first interaction module in the main process returns the response data to the interface module, wherein the first interaction module is used for realizing interaction between the webpage corresponding to the first kernel and the main process.
In a possible design, if a second kernel is used by a webpage corresponding to the interface module, the second target process is the child process;
the processing module is specifically configured to:
a second communication module in the sub-process sends the request data to a first communication module in the main process, wherein the second communication module and the first communication module are used for realizing communication between the sub-process and the main process;
a compatible module in the main process acquires the response data according to the request data;
the second communication module receives the response data sent by the first communication module;
and a second interaction module in the sub-process returns the response data to the interface module according to the response data received by the second receiving module, wherein the second interaction module is used for realizing interaction between a webpage corresponding to a second kernel and the sub-process.
In a third aspect, an embodiment of the present disclosure provides a browser control device, including:
a memory for storing a program;
a processor for executing the program stored by the memory, the processor being adapted to perform the method as described above in the first aspect and any one of the various possible designs of the first aspect when the program is executed.
In a fourth aspect, embodiments of the present disclosure provide a computer-readable storage medium comprising instructions that, when executed on a computer, cause the computer to perform the method as described above in the first aspect and any one of the various possible designs of the first aspect.
The embodiment of the disclosure provides a browser control method and a device, wherein the method comprises the following steps: the method comprises the steps of starting a main process of the browser by responding to the starting operation of the browser, loading a first kernel of the browser through the main process, and creating a subprocess management module in the main process, wherein the subprocess management module is used for controlling the subprocess. And starting the subprocess of the browser according to the subprocess management module, and loading a second kernel of the browser through the subprocess. And responding to the webpage opening operation, and calling a first target process to display a target webpage corresponding to the webpage opening operation, wherein the first target process is a main process and/or a sub process. The main process is set for loading the first kernel, the sub process is set for loading the second kernel, and then the first kernel or the second kernel is controlled to display the target webpage according to the main process and/or the sub process, so that the first kernel and the second kernel can be compatible in one browser without redevelopment of the browser, redundant work is avoided, and the development efficiency of the system is improved.
Drawings
In order to more clearly illustrate the embodiments of the present disclosure or the technical solutions in the prior art, the drawings used in the embodiments or the description of the prior art will be briefly described below, and it is obvious that the drawings in the following description are some embodiments of the present disclosure, and those skilled in the art can obtain other drawings without inventive labor.
FIG. 1 is a schematic view of a browser system according to an embodiment of the present disclosure;
fig. 2 is a first flowchart of a browser control method according to an embodiment of the present disclosure;
fig. 3 is a flowchart of a browser control method according to an embodiment of the present disclosure;
fig. 4 is a flowchart three of a browser control method according to an embodiment of the present disclosure;
fig. 5 is a fourth flowchart of a browser control method according to an embodiment of the present disclosure;
fig. 6 is a first schematic structural diagram of a browser control device according to an embodiment of the present disclosure;
fig. 7 is a schematic structural diagram of a browser control device according to an embodiment of the present disclosure;
fig. 8 is a schematic hardware structure diagram of a browser control device according to an embodiment of the present disclosure.
Detailed Description
To make the objects, technical solutions and advantages of the embodiments of the present disclosure more clear, the technical solutions of the embodiments of the present disclosure will be described clearly and completely with reference to the drawings in the embodiments of the present disclosure, and it is obvious that the described embodiments are some, but not all embodiments of the present disclosure. All other embodiments, which can be derived by a person skilled in the art from the embodiments disclosed herein without making any creative effort, shall fall within the protection scope of the present disclosure.
Fig. 1 is a schematic view of a browser system according to an embodiment of the present disclosure, and as shown in fig. 1, the browser system includes: a main process 10, a sub-process 20, and a web page 30;
the main process 10, the sub-process 20 and the web page 30 further include a plurality of modules, and the following first describes each process and the modules in each process in detail:
the main process 10 is used for executing business logic of the browser, and meanwhile, the main process 10 is also used for displaying a webpage 30 and controlling the sub-process 20 according to a first kernel; the sub-process 20 is for displaying the web page 30 according to the second kernel;
in this embodiment, the main process 10 is configured to display the web page according to the first kernel, and the sub-process 20 is configured to display the web page according to the second kernel, so that when the second kernel is unstable and crashes, only the sub-process 20 exits without affecting the normal operation of the main process 10, thereby ensuring the stability of the browser operation.
It is understood that the first kernel refers to a browser kernel that is used when a browser is initially developed, which may be understood as an old browser kernel, and the second kernel refers to a browser kernel that is currently needed but not supported by the browser, which may be understood as a new browser kernel, where the number of types of the first kernel and the second kernel is not particularly limited in this embodiment.
The following describes each module included in the main process 10 in detail:
a subprocess management module: the method includes the steps that a subprocess management module is created and loaded after a main process is started, and is used for managing the starting and destroying of the subprocesses, when the subprocesses crash, the subprocesses are tried to be restarted, and in an optional implementation mode, the subprocesses can be restarted according to a preset period, so that the stability of a system is improved.
The webpage management module: the method includes that a browser kernel used for indicating that a webpage is displayed adopts a second kernel or a first kernel, in a possible implementation mode, whether a specified webpage is opened by adopting the second kernel or the first kernel can be indicated according to configuration information in a webpage management module, and the webpage management module is further used for managing creation and destruction of the webpage.
A first kernel web page module: for loading the first kernel and displaying pages of the web page in accordance with the browser window.
The second kernel webpage agent module: the second kernel is configured to instruct the second kernel to display the web page attributes of the web page, where the web page attributes may include, for example, a display position of the web page, a background color of the web page, a transparency of the web page, and the like.
Compatible module: the browser is used for processing the request of the compatible second kernel and the first kernel, namely, no matter the request corresponds to the second kernel or the request corresponds to the first kernel, the browser processes the request through the compatible module, so that a service developer of the browser can control related parameters through the compatible module without considering the specific content of the browser kernel for displaying the webpage at present.
In this embodiment, if the interaction mode corresponding to the web page is synchronous, the response data result of the main process or the sub process may be directly returned to the web page, and if the interaction mode corresponding to the web page is asynchronous, the response data may be returned to the web page in a form of message sending.
A first interaction module: the method and the system are used for realizing interaction between the webpage displayed by the first kernel and the main process, and specifically for receiving data sent by the webpage corresponding to the first kernel and sending data returned by the browser to the webpage corresponding to the first kernel.
A first communication module: and the system is loaded in the main process and is used for realizing the communication between the main process and the subprocess.
The following detailed description of the various modules included in sub-process 20:
a second communication module: and the sub-process is loaded in the sub-process and used for realizing communication between the sub-process and the main process.
The second kernel web page module: and the web page is displayed according to the second inner core.
The second kernel web page management module: the webpage opening and closing method is used for receiving a main process sending instruction, wherein the instruction sent by the main process can be used for indicating to open a webpage or close the webpage, and the webpage is correspondingly opened or closed according to the instruction sent by the main process
A second interaction module: the method and the system are used for realizing interaction between the webpage displayed by the second kernel and the sub-process, and specifically for receiving data sent by the webpage displayed by the second kernel and sending data returned by the browser to the webpage corresponding to the second kernel.
An interface module: specifically, a package Javascript (Js) interface is packaged in the interface module, and may receive, for example, request data input by a user through the Js interface, and may also receive response data returned by the main process or the sub-process, where the response data may be returned by a callback, for example.
By setting the interface module, it is ensured that compatible processing can be realized no matter the interaction mode corresponding to the web page is synchronous or one-step, so that for a web page developer, the web page developer can perform related development of the web page only through the interface module without considering what the browser kernel for displaying the web page is specific.
It can be understood by those skilled in the art that the main process 10, the sub-process 20, and the web page 30 described above are all loaded in a browser, where the browser may be a browser implementing any service function, and this embodiment is not limited thereto.
Specifically, in the prior art, when a second kernel needs to be selected to support a browser, a business function of the browser is usually redeveloped on the second kernel, and the browser supported by the second kernel is subjected to gray-scale publishing after redeveloped, however, a stable optimization work cycle after redeveloped and online is very long, and if a new requirement exists midway, the browsers need to be completely redeveloped on the first kernel and the second kernel, so that a large amount of redundant work needs to be performed, development cost of a system is increased, and development efficiency of the system is reduced.
Based on the above problem, this embodiment provides a browser control method based on the system described in the embodiment of fig. 1, and the method provided in the embodiment of the present disclosure is described in detail below with reference to fig. 2, where fig. 2 is a flowchart of a browser control method provided in an embodiment of the present disclosure, and as shown in fig. 2, the method includes:
s201, responding to a browser starting operation, starting a main process of the browser, loading a first kernel of the browser through the main process, and creating a subprocess management module in the main process, wherein the subprocess management module is used for controlling the subprocess.
The browser starting operation may be, for example, a double-click operation performed on a browser icon, or may also be an opening control for clicking the browser icon, or may also be an operation for inputting a command line instruction for opening the browser, or the like; alternatively, the browser may also be started by clicking a connection of the client, and as long as an operation for opening the browser is considered as the browser starting operation described in this embodiment, those skilled in the art may understand, and details of other implementation manners of the browser starting operation are not described herein again.
Specifically, when the browser is started, a main process in the browser is started, wherein the main process may be, for example, a process stored in the browser, and when the browser is started, the main process is also started correspondingly, and when the browser is closed, the main process is also closed correspondingly; alternatively, the main process may also be created in real time when the browser is started, the current main process is destroyed when the browser is closed, and a new main process is created when the browser is opened next time, for example, the specific implementation manner of the main process is not limited in this embodiment.
After the main process of the browser is started, the first kernel of the browser may be loaded through the main process, where the first kernel is already described in the foregoing embodiments, and is not described here again.
In this embodiment, the main process is configured to execute a business logic of the browser, and is further configured to manage the sub-process, where creation and destruction of the sub-process are both controlled by the main process, and specifically, the browser creates the sub-process management module in the main process, for example, the sub-process may be created or destroyed according to the sub-process management module, and the sub-process may be attempted to be restarted when the sub-process crashes.
S202, starting the subprocess of the browser according to the subprocess management module, and loading a second kernel of the browser through the subprocess.
The sub-process is similar to the main process in implementation, and the difference is that the sub-process can load a second kernel of the browser, and then the sub-process in this embodiment displays a web page according to the second kernel, and when the second kernel crashes, the corresponding sub-process is indicated to be abnormal in work, and the main process is not affected, so that the browser can be ensured to execute normal business logic, and the stability of the browser is improved.
S203, responding to the webpage opening operation, and calling a first target process to display a target webpage corresponding to the webpage opening operation, wherein the first target process is a main process and/or a sub process.
In this embodiment, after the host process is started, interface elements in the browser other than the web page are already loaded, for example, a control, a rendered page, and the like in the browser, and meanwhile, an entry for opening the web page, such as an icon, a button, a picture, a title, a link, and the like of the web page, may also be displayed in the interface of the browser.
The web page opening operation may be, for example, a single-click operation performed on an entry for opening a web page, or may also be a double-click on a preset position, and the like, and as long as the operation for opening a web page is considered as the web page opening operation in this embodiment, the operation is not limited here.
In response to a webpage opening operation, calling a main process and/or a sub-process to display a target webpage corresponding to the webpage opening operation, wherein in the embodiment, the main process is used for displaying the webpage according to a first kernel, so that if a browser kernel corresponding to the displayed webpage is the first kernel, the main process is called to display the target webpage; if the browser kernel corresponding to the displayed web page is the second kernel, in this embodiment, a sub-process is used for displaying the web page according to the second kernel.
For example, after a host process of a certain browser a is currently executing a communication function, and after a host process of the certain browser a is started, interface elements of function modules such as "friends", "session bar", and "dynamic" are loaded in the browser a, assuming that the browser a currently has an activity B, a web page title corresponding to a web page of the activity B is displayed at the top of the session bar, and a target web page of the corresponding activity B can be opened according to a first target process by clicking the web page title.
According to the browser control method provided by the embodiment of the disclosure, the main process of the browser is started by responding to the browser starting operation, the first kernel of the browser is loaded through the main process, and the sub-process management module is created in the main process, wherein the sub-process management module is used for controlling the sub-process. And starting the subprocess of the browser according to the subprocess management module, and loading a second kernel of the browser through the subprocess. And responding to the webpage opening operation, and calling a first target process to display a target webpage corresponding to the webpage opening operation, wherein the first target process is a main process and/or a sub process. The main process is set for loading the first kernel, the sub process is set for loading the second kernel, and then the first kernel or the second kernel is controlled to display the target webpage according to the main process and/or the sub process, so that the first kernel and the second kernel can be compatible in one browser without redevelopment of the browser, redundant work is avoided, and the development efficiency of the system is improved.
In an optional embodiment, based on the above embodiment, the following further details a description with reference to fig. 3 is given to an implementation manner in which the first target process is invoked to display the target web page, where fig. 3 is a flowchart of a second browser control method provided in an embodiment of the present disclosure, and as shown in fig. 3, the method includes:
s301, responding to the starting operation of the browser, starting a main process of the browser, loading a first kernel of the browser through the main process, and creating a subprocess management module in the main process, wherein the subprocess management module is used for controlling the subprocess.
S302, starting the subprocess of the browser according to the subprocess management module, and loading a second kernel of the browser through the subprocess.
The implementation manners of S301 and S302 are the same as those of S201 and S202, and are not described herein again.
S303, responding to the webpage opening operation, and acquiring configuration information from a webpage management module in the main process, wherein the configuration information is used for indicating a target browser inner core for opening a target webpage.
In this embodiment, a web page management module is arranged in the main process, the web page management module may download configuration information from the server in advance and store the configuration information in the web page management module, and when the web page opening operation indicates that the target web page needs to be opened at that time, the target browser kernel corresponding to the target web page is determined to be opened according to the configuration information included in the web page management module, where the target browser kernel is a first kernel or a second kernel.
In the following, a description is given with reference to a specific example, specifically, the configuration information may be stored in the web page management module in a table manner, where each web page may correspond to a web page identifier, and the web page identifier is used to uniquely indicate one web page, and the web page identifier may be, for example, a number, a web page title, a letter, and the like. The table of configuration information may be, for example, as shown in table 1 below:
TABLE 1
Web page identification Browser kernel
Web page 1 First kernel
Web page 2 Second kernel
Web page 3 (not specified)
As can be seen by referring to table 1 above, the target web page with the web page identifier "web page 1" is displayed by applying the first kernel, the target web page with the web page identifier "web page 2" is displayed by applying the second kernel, and the target web page with the web page identifier "web page 3" does not have a corresponding browser kernel, which is understood by those skilled in the art, the foregoing is only an exemplary description and is not a limitation on the implementation manner of the configuration information, where the web page identifier included in the configuration information and the browser kernel corresponding to the web page identifier may be selected according to actual requirements, and in addition, besides the implementation of storing the configuration information by using a table, for example, a series of indexable manners such as an array, a key value pair, and a linked list may also be used, which is not limited in this embodiment.
S304, determining a target browser kernel according to the configuration information, and determining a first target process according to the target browser kernel.
First, a possible implementation manner of determining a target browser kernel according to configuration information is described with reference to table 1:
and acquiring a target webpage identifier of the target webpage.
For example, the code of the webpage may be analyzed to obtain the title of the target webpage, so as to obtain the target webpage identifier; alternatively, the web page identifier may also be directly obtained from the cache of the target web page, and the like, which is not limited in this embodiment.
And judging whether a browser kernel corresponding to the target webpage identifier exists in the configuration information or not according to the target webpage identifier.
With reference to table 1, assuming that the target web page identifier is "web page 2", it may be determined that a browser kernel (second kernel) corresponding to the target web page identifier (web page 2) exists in the configuration information, and then the first kernel is determined as a target browser kernel corresponding to the web page 2; in addition, assuming that the target web page identifier is "web page 3", it may be determined that a browser kernel corresponding to the target web page identifier (web page 3) does not exist in the configuration information, or, assuming that the target web page identifier is "web page 4", because the web page identifier does not exist in the configuration information, it may also be determined that a browser kernel corresponding to the target web page identifier (web page 4) does not exist in the configuration information, and then the first kernel is determined as a target browser kernel corresponding to the web page 3 or the web page 4, it may be understood that the first kernel is a default browser kernel, and when the target browser kernel corresponding to the target web page is not obtained in the configuration information, the default first kernel is adopted to display the target web page.
Meanwhile, the embodiment can also determine the first target process according to the target browser kernel.
If the target browser kernel is the first kernel, the first target process is the main process, and if the target browser kernel is the second kernel, the first target process is the sub process.
In an optional embodiment, if the second kernel is used to display the page under the unstable condition, the first kernel may be used to display the target web page by changing the configuration information, and the second kernel is optimized and then adjusted, and the configuration information in the second kernel is changed by setting the web page management module, so that the switching of the browser kernels can be quickly and effectively realized.
S305, calling a first target process to display a target webpage corresponding to the webpage opening operation.
The following describes in detail the implementation manners in which the first target process is a child process and the first target process is a master process.
Firstly, introducing a target browser kernel which is a second kernel and a first target process which is a child process:
and creating a second kernel webpage agent module in the main process and a second kernel webpage module in the sub-process, wherein the second kernel webpage agent module is used for indicating the page attribute of the target webpage, and the second kernel webpage module is used for displaying the target webpage.
And acquiring the page attribute of the target webpage according to the second kernel webpage proxy module.
Specifically, the second kernel web proxy module may set the page attribute of the target web page, for example, the second kernel web proxy module may adjust transparency, background color, zoom size, and the like of the target page.
And the main process sends a webpage opening instruction and the page attribute of the target webpage to a second kernel webpage management module in the sub-process.
And the second kernel web page management module controls the second kernel web page module to display the target web page according to the web page opening instruction and the page attribute of the target web page.
In this embodiment, the second kernel web page management module is disposed in the sub-process and configured to control the second kernel web page module to display the target web page, specifically, when the second kernel is needed to display the web page, the main process sends an open instruction to the second kernel web page management module to instruct the sub-process to display the target web page, and then the second kernel web page management module responds to the received open instruction and displays the target web page according to the page attribute of the target web page obtained from the second kernel web page agent module.
Then, introducing that the target browser kernel is a first kernel and the first target process is a main process:
and controlling a first kernel webpage module in the main process to display the target webpage.
In this embodiment, the first kernel web page module is used to display the target web page, and the host process is used to implement the business logic of the browser, so that when the browser kernel is the first kernel, the module in the host process can be directly controlled to implement the display of the target web page.
The browser control method provided by the embodiment of the disclosure comprises the following steps: and responding to the starting operation of the browser, starting the main process of the browser, loading the first kernel of the browser through the main process, and creating a subprocess management module in the main process, wherein the subprocess management module is used for controlling the subprocess. And starting the subprocess of the browser according to the subprocess management module, and loading a second kernel of the browser through the subprocess. And responding to the webpage opening operation, and acquiring configuration information from a webpage management module in the main process, wherein the configuration information is used for indicating a target browser inner core for opening a target webpage. And determining a target browser kernel according to the configuration information, and determining a first target process according to the target browser kernel. If the target browser kernel is a second kernel, the first target process subprocess creates a second kernel webpage proxy module in the main process, and creates a second kernel webpage module in the subprocess, wherein the second kernel webpage proxy module is used for indicating the page attribute of the target webpage, and the second kernel webpage module is used for displaying the target webpage. And acquiring the page attribute of the target webpage according to the second kernel webpage proxy module. And the main process sends a webpage opening instruction and the page attribute of the target webpage to a second kernel webpage management module in the sub-process. And the second kernel web page management module controls the second kernel web page module to display the target web page according to the web page opening instruction and the page attribute of the target web page. And if the target browser kernel is the first kernel, the first target process is the main process, and the first kernel webpage module in the main process is controlled to display the target webpage. The target browser kernel is determined according to the configuration information in the webpage management module, so that webpage display of the browser kernel according to requirements can be accurately achieved, orderly operation of the browser is guaranteed, meanwhile, for the second kernel, the target page is displayed through the second kernel by controlling each module in the sub-process through the main process, effective compatibility of the second kernel and the first kernel can be guaranteed, and stability of the target page displayed by the browser is guaranteed.
On the basis of the above embodiment, the web page of the browser provided in the embodiment of the present disclosure includes an interface module, which may refer to the system described in fig. 1, where the interface module is used to interact with a user, a main process, or a sub process, so that the method provided in the present embodiment can also make a data request to the browser through a first kernel or a second kernel, first, an implementation manner of the first kernel is used by the web page corresponding to the interface module is described below with reference to fig. 4, and fig. 4 is a flowchart three of a browser control method provided in an embodiment of the present disclosure.
As shown in fig. 4, the method includes:
s401, the second target process receives the request data sent by the interface module.
In this embodiment, if the first kernel is used by the webpage corresponding to the interface module, the second target process is the host process, and the host process receives the data request sent by the interface module.
Specifically, the interface module is disposed in the web page, and may be configured to receive request information input by a user, and send the request information to the host process, for example, interaction between the interface module and the host process may be performed through a first interaction module disposed in the host process, where the request information is information requesting to acquire data, for example, information requesting to acquire a nickname of the user or information requesting to acquire a head portrait of the user, and this embodiment does not limit the request information.
For example, a web page firstly receives a user identifier input by a user, and then the web page sends request data to a host process through an interface function of the interface module, where the interface function may be, for example: getUserInfo (uid, callback), where getUserInfo () is an interface function, which includes two input parameters, respectively, a user identification uid and a callback method name callback.
S402, the compatible module in the main process acquires response data according to the request data.
Specifically, a compatible module is arranged in the main process and is used for being compatible with the requests of the first kernel and the second kernel, so that no matter which browser kernel is currently, the compatible module can obtain response data according to the request data, and compatibility between the second kernel and the first kernel is realized.
In an alternative embodiment, if the requested data is in an incorrect format, or the requested data cannot be obtained due to an incorrect content, or the like, the obtained response data is used to prompt the interface module that an error exists.
And S403, the first interaction module in the main process returns the response data to the interface module, wherein the first interaction module is used for realizing interaction between the webpage corresponding to the first kernel and the main process.
After the response data corresponding to the request data is acquired, the host process returns the response data to the interface module through the first interaction module, and continues to use the example in the above step, after the interface module acquires the response data, the interface module may return the response data to the web page according to the callback method name in the interface function, for example, return the response data by calling a method callback (jsonData), where the parameter jsonData is data including a user nickname and a head portrait, and for example, the user nickname and the head portrait may be displayed on the web page, so that the user can acquire information in time.
The browser control method provided by the embodiment of the disclosure comprises the following steps: and the second target process receives the request data sent by the interface module. And the compatible module in the main process acquires the response data according to the request data. And a first interaction module in the main process returns the response data to the interface module, wherein the first interaction module is used for realizing the interaction between the webpage corresponding to the first kernel and the main process. When a webpage displayed by the first kernel needs to make a data request, response data corresponding to the request data can be quickly and effectively acquired through the compatible module in the main process, and the response data is sent to the webpage according to the first interaction module and the interface module, so that the processing of the webpage request of the first kernel can be quickly and effectively realized.
Next, an implementation manner of using the second kernel for the web page corresponding to the interface module is described below with reference to fig. 5, and fig. 5 is a fourth flowchart of a browser control method according to an embodiment of the present disclosure.
S501, the second target process receives the request data sent by the interface module.
Specifically, the implementation manner of S501 is similar to that of S401, except that in this embodiment, the second kernel is used by the web page corresponding to the interface module, and then the second target process is a sub-process, and in this embodiment, the data request sent by the interface module is a sub-process.
S502, the second communication module in the sub-process sends request data to the first communication module in the main process, wherein the second communication module and the first communication module are used for realizing communication between the sub-process and the main process.
The difference between this embodiment and the embodiment in fig. 4 is that after receiving the request data sent by the interface module, the sub-process cannot acquire the request data, and therefore the request data is sent to the main process according to the second communication module, and the main process receives the request data according to the first communication module.
And S503, the compatible module in the main process acquires response data according to the request data.
The implementation of S503 is similar to S402, and is not described here again.
S504, the second communication module receives the response data sent by the first communication module.
Specifically, after the compatible module in the main process obtains the response data, the main process sends the response data to the sub-process according to the first communication module, and the second communication module of the sub-process receives the response data.
And S505, the second interaction module in the sub-process returns the response data to the interface module according to the response data received by the second receiving module, and the second interaction module is used for realizing interaction between the webpage corresponding to the second kernel and the sub-process.
The implementation manner of S505 is similar to that in S403, except that in this embodiment, the response data is returned to the interface module by the second interaction module in the sub-process, and the specific implementation manner is not described herein again.
The browser control method provided by the embodiment comprises the following steps: and the second target process receives the request data sent by the interface module. And the second communication module in the subprocess sends request data to the first communication module in the main process, wherein the second communication module and the first communication module are used for realizing the communication between the subprocess and the main process. And the compatible module in the main process acquires the response data according to the request data. And the second communication module receives the response data sent by the first communication module. And the second interaction module in the sub-process returns the response data to the interface module according to the response data received by the second receiving module, and the second interaction module is used for realizing the interaction between the webpage corresponding to the second kernel and the sub-process. The method comprises the steps that request data sent by an interface module are received through a subprocess, then the request data are sent to a main process to be processed, then the request data returned by the main process are sent to the interface module, and therefore the processing of a webpage request of a second kernel can be quickly and effectively achieved.
Fig. 6 is a schematic structural diagram of a browser control device according to an embodiment of the present disclosure. As shown in fig. 6, the apparatus 60 includes: a creation module 601, an initiation module 602, and a calling module 603.
A creating module 601, configured to start a main process of a browser in response to a browser start operation, load a first kernel of the browser through the main process, and create a sub-process management module in the main process, where the sub-process management module is configured to control the sub-process;
a starting module 602, configured to start a sub-process of the browser according to the sub-process management module, and load a second kernel of the browser through the sub-process;
the invoking module 603 is configured to invoke, in response to a web page opening operation, the first target process to display a target web page corresponding to the web page opening operation, where the first target process is the main process and/or the sub-process.
In one possible design, the invoking module 603 is specifically configured to:
responding to a webpage opening operation, and acquiring configuration information from a webpage management module in the main process, wherein the configuration information is used for indicating a target browser inner core for opening the target webpage;
determining the target browser kernel according to the configuration information, and determining the first target process according to the target browser kernel;
and calling the first target process to display a target webpage corresponding to the webpage opening operation.
In one possible design, the configuration information includes at least one web page identifier and a browser kernel to which the at least one web page identifier corresponds;
the calling module 603 is specifically configured to:
acquiring a target webpage identifier of the target webpage;
judging whether a browser kernel corresponding to the target webpage identifier exists in the configuration information or not according to the target webpage identifier;
if yes, determining the browser kernel in the configuration information as the target browser kernel;
if not, determining the first kernel as the target browser kernel.
In one possible design, if the target browser kernel is the second kernel, the first target process is a child process;
the calling module 603 is specifically configured to:
creating a second kernel web page proxy module in the main process and creating a second kernel web page module in the sub-process, wherein the second kernel web page proxy module is used for indicating the page attribute of the target web page, and the second kernel web page module is used for displaying the target web page;
acquiring the page attribute of the target webpage according to the second kernel webpage proxy module;
the main process sends a webpage opening instruction and the page attribute of the target webpage to a second kernel webpage management module in the sub-process;
and the second kernel webpage management module controls the second kernel webpage module to display the target webpage according to the webpage opening instruction and the page attribute of the target webpage.
In one possible design, if the target browser kernel is the first kernel, the first target process is a master process;
the calling module 603 is specifically configured to:
and controlling a first kernel webpage module in the main process to display the target webpage.
The apparatus provided in this embodiment may be used to implement the technical solutions of the above method embodiments, and the implementation principles and technical effects are similar, which are not described herein again.
Fig. 7 is a schematic structural diagram of a browser control device according to an embodiment of the present disclosure. As shown in fig. 7, in this embodiment, on the basis of the embodiment shown in fig. 6, the web page of the browser includes an interface module, where the interface module is used for interacting with a user, a main process, or a sub process; the apparatus 70 further comprises: and a processing module 704.
In a possible design, the processing module 704 is configured to receive, by the second target process, request data sent by the interface module;
and the second target process returns response data to the interface module according to the request data, wherein the response data is data corresponding to the request data.
In a possible design, if a first kernel is used by a webpage corresponding to the interface module, the second target process is the master process;
the processing module 704 is specifically configured to:
a compatible module in the main process acquires the response data according to the request data;
and a first interaction module in the main process returns the response data to the interface module, wherein the first interaction module is used for realizing interaction between the webpage corresponding to the first kernel and the main process.
In a possible design, if a second kernel is used by a webpage corresponding to the interface module, the second target process is the sub-process;
the processing module 704 is specifically configured to:
a second communication module in the sub-process sends the request data to a first communication module in the main process, wherein the second communication module and the first communication module are used for realizing communication between the sub-process and the main process;
a compatible module in the main process acquires the response data according to the request data;
the second communication module receives the response data sent by the first communication module;
and a second interaction module in the sub-process returns the response data to the interface module according to the response data received by the second receiving module, wherein the second interaction module is used for realizing interaction between a webpage corresponding to a second kernel and the sub-process.
The apparatus provided in this embodiment may be used to implement the technical solutions of the above method embodiments, and the implementation principles and technical effects are similar, which are not described herein again.
Fig. 8 is a schematic diagram of a hardware structure of a browser control device according to an embodiment of the present disclosure, and as shown in fig. 8, a browser control device 80 of the present embodiment includes: a processor 801 and a memory 802; wherein
A memory 802 for storing computer-executable instructions;
the processor 801 is configured to execute computer-executable instructions stored in the memory to implement the steps performed by the browser control method in the foregoing embodiments. Reference may be made in particular to the description relating to the method embodiments described above.
Alternatively, the memory 802 may be separate or integrated with the processor 801.
When the memory 802 is provided separately, the browser control apparatus further includes a bus 803 for connecting the memory 802 and the processor 801.
The embodiment of the present disclosure further provides a computer-readable storage medium, where a computer executing instruction is stored, and when a processor executes the computer executing instruction, the browser control method executed by the above browser control device is implemented.
In the several embodiments provided in the present disclosure, it should be understood that the disclosed apparatus and method may be implemented in other ways. For example, the above-described device embodiments are merely illustrative, and for example, the division of the modules is only one logical division, and other divisions may be realized in practice, for example, a plurality of modules may be combined or integrated into another system, or some features may be omitted, or not executed. In addition, the shown or discussed coupling or direct coupling or communication connection between each other may be through some interfaces, indirect coupling or communication connection between devices or modules, and may be in an electrical, mechanical or other form.
The integrated module implemented in the form of a software functional module may be stored in a computer-readable storage medium. The software functional module is stored in a storage medium and includes several instructions for enabling a computer device (which may be a personal computer, a server, or a network device) or a processor (in english: processor) to execute some steps of the methods described in the embodiments of the present application.
It should be understood that the Processor may be a Central Processing Unit (CPU), other general purpose Processor, a Digital Signal Processor (DSP), an Application Specific Integrated Circuit (ASIC), etc. A general purpose processor may be a microprocessor or the processor may be any conventional processor or the like. The steps of a method disclosed in connection with the disclosure may be embodied directly in a hardware processor, or in a combination of the hardware and software modules within the processor.
The memory may comprise a high-speed RAM memory, and may further comprise a non-volatile storage NVM, such as at least one disk memory, and may also be a usb disk, a removable hard disk, a read-only memory, a magnetic or optical disk, etc.
The bus may be an Industry Standard Architecture (ISA) bus, a Peripheral Component Interconnect (PCI) bus, an Extended ISA (EISA) bus, or the like. The bus may be divided into an address bus, a data bus, a control bus, etc. For ease of illustration, the buses in the figures of the present application are not limited to only one bus or one type of bus.
The storage medium may be implemented by any type or combination of volatile or non-volatile memory devices, such as Static Random Access Memory (SRAM), electrically erasable programmable read-only memory (EEPROM), erasable programmable read-only memory (EPROM), programmable read-only memory (PROM), read-only memory (ROM), magnetic memory, flash memory, magnetic or optical disks. A storage media may be any available media that can be accessed by a general purpose or special purpose computer.
Those of ordinary skill in the art will understand that: all or a portion of the steps of implementing the above-described method embodiments may be performed by hardware associated with program instructions. The program may be stored in a computer-readable storage medium. When executed, the program performs steps comprising the method embodiments described above; and the aforementioned storage medium includes: various media that can store program codes, such as ROM, RAM, magnetic or optical disks.
Finally, it should be noted that: the above embodiments are only used for illustrating the technical solutions of the present disclosure, and not for limiting the same; while the present disclosure has been described in detail with reference to the foregoing embodiments, those of ordinary skill in the art will understand that: the technical solutions described in the foregoing embodiments may still be modified, or some or all of the technical features may be equivalently replaced; and such modifications or substitutions do not depart from the spirit and scope of the corresponding technical solutions of the embodiments of the present disclosure.

Claims (9)

1. A browser control method, characterized in that the method comprises:
responding to browser starting operation, starting a main process of the browser, loading a first kernel of the browser through the main process, and creating a sub-process management module in the main process, wherein the sub-process management module is used for controlling the sub-process;
starting a subprocess of the browser according to the subprocess management module, and loading a second kernel of the browser through the subprocess;
responding to webpage opening operation, and determining a first target process;
calling the first target process to display a target webpage corresponding to the webpage opening operation, wherein the first target process is the main process and/or the sub-process;
if the target browser kernel of the target webpage is the first kernel, the first target process is a main process; the calling the first target process to display the target webpage corresponding to the webpage opening operation includes:
controlling a first kernel webpage module in the main process to display the target webpage;
if the target browser kernel of the target webpage is the second kernel, the first target process is a sub-process; the calling the first target process to display the target webpage corresponding to the webpage opening operation includes:
creating a second kernel webpage agent module in the main process and a second kernel webpage module in the sub-process, wherein the second kernel webpage agent module is used for indicating the page attribute of the target webpage, and the second kernel webpage module is used for displaying the target webpage;
acquiring the page attribute of the target webpage according to the second kernel webpage proxy module;
the main process sends a webpage opening instruction and the page attribute of the target webpage to a second kernel webpage management module in the sub-process;
and the second kernel webpage management module controls the second kernel webpage module to display the target webpage according to the webpage opening instruction and the page attribute of the target webpage.
2. The method of claim 1, wherein determining the first target process in response to the web page open operation comprises:
responding to a webpage opening operation, and acquiring configuration information from a webpage management module in the main process, wherein the configuration information is used for indicating that the target browser kernel is opened;
and determining the target browser kernel according to the configuration information, and determining the first target process according to the target browser kernel.
3. The method of claim 2, wherein the configuration information comprises at least one web page identifier and a browser kernel corresponding to each of the at least one web page identifier;
determining the target browser kernel according to the configuration information includes:
acquiring a target webpage identifier of the target webpage;
judging whether a browser kernel corresponding to the target webpage identifier exists in the configuration information or not according to the target webpage identifier;
if yes, determining the browser kernel in the configuration information as the target browser kernel;
if not, determining the first kernel as the target browser kernel.
4. The method of claim 1, wherein the web page of the browser comprises an interface module for interacting with a user, a main process, or a sub-process;
the method further comprises the following steps:
the second target process receives the request data sent by the interface module;
and the second target process returns response data to the interface module according to the request data, wherein the response data is data corresponding to the request data.
5. The method according to claim 4, wherein if the web page corresponding to the interface module uses a first kernel, the second target process is the main process;
the second target process returns response data to the interface module according to the request data, and the response data comprises the following steps:
a compatible module in the main process acquires the response data according to the request data;
and a first interaction module in the main process returns the response data to the interface module, wherein the first interaction module is used for realizing interaction between the webpage corresponding to the first kernel and the main process.
6. The method of claim 4, wherein if a second kernel is used by the web page corresponding to the interface module, the second target process is the child process;
the second target process returns response data to the interface module according to the request data, and the response data comprises the following steps:
a second communication module in the sub-process sends the request data to a first communication module in the main process, wherein the second communication module and the first communication module are used for realizing communication between the sub-process and the main process;
a compatible module in the main process acquires the response data according to the request data;
the second communication module receives the response data sent by the first communication module;
and a second interaction module in the sub-process returns the response data to the interface module according to the response data received by the second receiving module, and the second interaction module is used for realizing the interaction between the webpage corresponding to the second kernel and the sub-process.
7. A browser control apparatus, characterized in that the apparatus comprises:
the system comprises a creating module, a first kernel module and a second kernel module, wherein the creating module is used for responding to browser starting operation, starting a main process of the browser, loading the first kernel of the browser through the main process and creating a subprocess management module in the main process, and the subprocess management module is used for controlling the subprocess;
the starting module is used for starting the subprocess of the browser according to the subprocess management module and loading a second kernel of the browser through the subprocess;
the calling module is used for responding to webpage opening operation and calling a first target process to display a target webpage corresponding to the webpage opening operation, wherein the first target process is the main process and/or the sub-process;
if the target browser kernel of the target webpage is the first kernel, the first target process is a main process; the calling module is specifically configured to: controlling a first kernel webpage module in the main process to display the target webpage;
if the target browser kernel of the target webpage is the second kernel, the first target process is a sub-process; the calling module is specifically configured to: creating a second kernel web page proxy module in the main process and creating a second kernel web page module in the sub-process, wherein the second kernel web page proxy module is used for indicating the page attribute of the target web page, and the second kernel web page module is used for displaying the target web page; acquiring the page attribute of the target webpage according to the second kernel webpage proxy module; the main process sends a webpage opening instruction and the page attribute of the target webpage to a second kernel webpage management module in the sub-process; and the second kernel web page management module controls the second kernel web page module to display the target web page according to the web page opening instruction and the page attribute of the target web page.
8. A browser control apparatus, characterized by comprising:
a memory for storing a program;
a processor for executing the program stored by the memory, the processor being configured to perform the method of any of claims 1 to 6 when the program is executed.
9. A computer-readable storage medium comprising instructions which, when executed on a computer, cause the computer to perform the method of any one of claims 1 to 6.
CN201910752234.4A 2019-08-15 2019-08-15 Browser control method and device Active CN110442400B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910752234.4A CN110442400B (en) 2019-08-15 2019-08-15 Browser control method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910752234.4A CN110442400B (en) 2019-08-15 2019-08-15 Browser control method and device

Publications (2)

Publication Number Publication Date
CN110442400A CN110442400A (en) 2019-11-12
CN110442400B true CN110442400B (en) 2023-04-18

Family

ID=68435655

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910752234.4A Active CN110442400B (en) 2019-08-15 2019-08-15 Browser control method and device

Country Status (1)

Country Link
CN (1) CN110442400B (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111143717A (en) * 2019-12-26 2020-05-12 威创集团股份有限公司 Webpage login method, equipment and storage medium
CN111414563B (en) * 2020-03-23 2024-03-01 广州方硅信息技术有限公司 Webpage interaction method, device, computer equipment and storage medium

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102722559A (en) * 2012-05-31 2012-10-10 奇智软件(北京)有限公司 Method, device and system for controlling processes of abnormal pages
CN103019846A (en) * 2012-12-10 2013-04-03 北京奇虎科技有限公司 Process multiplexing method for multi-core browser and multi-core browser
CN103955468A (en) * 2012-03-06 2014-07-30 北京奇虎科技有限公司 Method and device for displaying documents based on browser
CN104063247A (en) * 2014-06-26 2014-09-24 北京奇虎科技有限公司 Application program calling method and system
CN105302825A (en) * 2014-06-30 2016-02-03 腾讯科技(深圳)有限公司 Method and apparatus for opening web page

Family Cites Families (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103389912A (en) * 2012-05-09 2013-11-13 阿里巴巴集团控股有限公司 Browser kernel switching method, system and device
CN103559097B (en) * 2013-10-18 2017-06-09 北京奇虎科技有限公司 The method of interprocess communication, device and browser in a kind of browser
CN103544068B (en) * 2013-10-18 2017-05-24 北京奇虎科技有限公司 Process to process communication method and device for browsers and browser
CN103955515B (en) * 2014-05-05 2018-03-30 百度在线网络技术(北京)有限公司 The processing method and processing device of double-core browser
CN104881318B (en) * 2015-05-07 2019-06-25 珠海豹趣科技有限公司 A kind of interface call method, device and terminal
CN106528733A (en) * 2016-10-27 2017-03-22 合网络技术(北京)有限公司 Webpage display method and apparatus

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103955468A (en) * 2012-03-06 2014-07-30 北京奇虎科技有限公司 Method and device for displaying documents based on browser
CN102722559A (en) * 2012-05-31 2012-10-10 奇智软件(北京)有限公司 Method, device and system for controlling processes of abnormal pages
CN103019846A (en) * 2012-12-10 2013-04-03 北京奇虎科技有限公司 Process multiplexing method for multi-core browser and multi-core browser
CN104063247A (en) * 2014-06-26 2014-09-24 北京奇虎科技有限公司 Application program calling method and system
CN105302825A (en) * 2014-06-30 2016-02-03 腾讯科技(深圳)有限公司 Method and apparatus for opening web page

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
基于IE内核的多进程浏览器设计与实现;王有存;《中国优秀硕士学位论文全文数据库 (信息科技辑)》;20150615;第I139-71页 *

Also Published As

Publication number Publication date
CN110442400A (en) 2019-11-12

Similar Documents

Publication Publication Date Title
US10726195B2 (en) Filtered stylesheets
US9740543B1 (en) Multi-endpoint method implementation
CN108388515B (en) Test data generation method, device, equipment and computer readable storage medium
CN110442400B (en) Browser control method and device
US20210240914A1 (en) System and method for dynamic webpage rendering with no flicker or flash of original content
RU2639667C2 (en) Context invitation in trial version of application
US8189014B1 (en) Generating a screen layout for a BIOS display
CN111338628B (en) Component rendering method and device
WO2023179725A1 (en) Application integration method and device
CN111736884A (en) Componentization method and system
US7636888B2 (en) Verifying compatibility between document features and server capabilities
CN111367518A (en) Page layout method and device, computing equipment and computer storage medium
CN111444453A (en) Page return data processing method and device
US20040030717A1 (en) Extending hypermedia documents
CN113536168B (en) Component processing method and device
US10326780B1 (en) Auto-sizing an untrusted view
US20160077899A1 (en) Handling of inputs in a multi-process application
CN115470426A (en) Browser kernel determining method and device, computer equipment and storage medium
CN112558957B (en) Method and device for generating webpage form, electronic equipment and readable storage medium
CN113468450A (en) Page control method and device
CN110660463A (en) Report editing method, device and equipment based on ultrasonic system and storage medium
CN114896018B (en) BMC application interface language switching method, device and medium
US10678646B2 (en) Self-recovering application
CN113886738A (en) CEF-based custom protocol extension method
CN108536438B (en) Dotting module, method and computer readable medium for processing user behavior data

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