CN112667947A - Method and system compatible with IE (Internet Explorer) kernel version control in multi-kernel browser - Google Patents

Method and system compatible with IE (Internet Explorer) kernel version control in multi-kernel browser Download PDF

Info

Publication number
CN112667947A
CN112667947A CN202011599842.5A CN202011599842A CN112667947A CN 112667947 A CN112667947 A CN 112667947A CN 202011599842 A CN202011599842 A CN 202011599842A CN 112667947 A CN112667947 A CN 112667947A
Authority
CN
China
Prior art keywords
kernel
browser
module
version
file
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.)
Pending
Application number
CN202011599842.5A
Other languages
Chinese (zh)
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.)
Hefei D2s Soft Information Technology Co ltd
Original Assignee
Hefei D2s Soft Information Technology 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 Hefei D2s Soft Information Technology Co ltd filed Critical Hefei D2s Soft Information Technology Co ltd
Priority to CN202011599842.5A priority Critical patent/CN112667947A/en
Publication of CN112667947A publication Critical patent/CN112667947A/en
Pending legal-status Critical Current

Links

Images

Landscapes

  • Information Transfer Between Computers (AREA)

Abstract

The invention discloses a method and a system for controlling IE (Internet Explorer) kernel version in a compatible multi-kernel browser, which relate to a multi-kernel browser and belong to the technical field of IE kernel version control; the system comprises a request receiving module, an information acquisition module, a version adaptation module, a browser process module, a kernel selection module, a data storage module and a version control module, wherein the IE kernel version control in the compatible multi-kernel browser is realized through the cooperation of the modules, and different browser kernels are respectively used for loading a requested webpage according to Uniform Resource Locator (URL) information; acquiring the loading time and the loading information quantity of loading the uniform resource locator URL information into different browser kernels; the most suitable browser kernel is selected, the configuration relation is stored in the data storage module, and the next calling is facilitated, so that the most complete compatibility and adaptability of user browsing in a complex environment are achieved, and the user can obtain better webpage browsing experience.

Description

Method and system compatible with IE (Internet Explorer) kernel version control in multi-kernel browser
Technical Field
The invention relates to a multi-kernel browser, in particular to a method and a system for controlling IE kernel versions in a compatible multi-kernel browser, belonging to the technical field of IE kernel version control.
Background
The most important or core part of the browser is the "Rendering Engine", which can be roughly translated into a "Rendering Engine", although we are generally accustomed to referring to it as the "browser kernel". Is responsible for interpreting the web page syntax (e.g. an application HTML, JavaScript under the standard generic markup language) and rendering (displaying) the web page. Therefore, the so-called browser kernel is a rendering engine adopted by the browser, and the rendering engine determines how the browser displays the content of the web page and the format information of the page. The different browser kernels have different interpretations of the web page writing method, so that rendering (display) effects of the same web page in browsers of different kernels can be different, which is also the reason why a web page writer needs to test the web page display effects in browsers of different kernels.
Disclosure of Invention
The invention aims to provide a method and a system for controlling IE kernel versions in a compatible multi-kernel browser, wherein the system is provided with a request receiving module, an information acquisition module, a version adaptation module, a browser process module, a kernel selection module, a data storage module and a version control module, the IE kernel versions in the compatible multi-kernel browser are controlled through the cooperation of the modules, and different browser kernels are respectively used for loading a requested webpage according to Uniform Resource Locator (URL) information; acquiring the loading time and the loading information quantity of loading the uniform resource locator URL information into different browser kernels; the most suitable browser kernel is selected, the configuration relation is stored in the data storage module, and the next calling is facilitated, so that the most complete compatibility and adaptability of user browsing in a complex environment are achieved, and the user can obtain better webpage browsing experience.
The purpose of the invention can be realized by the following technical scheme:
a method and system for controlling IE kernel version compatible with multi-kernel browser comprises a request receiving module, an information acquisition module, a version adaptation module, a browser process module, a kernel selection module and a data storage module;
the compatible multi-kernel browser comprises at least two browser kernels, wherein one browser kernel is an IE kernel, and the IE kernel at least comprises two versions of an IE8 kernel and a new version IE kernel; the information acquisition module acquires the version identification of the IE kernel; the request receiving module is used for receiving request information for loading a webpage, wherein the request information comprises Uniform Resource Locator (URL) information;
the version adaptation module is used for acquiring the adaptation relation between the webpage requested to be loaded and the browser kernel according to a preset rule, and the concrete adaptation relation determining formula comprises the following steps:
the request receiving module receives request information for loading a webpage; the request information comprises Uniform Resource Locator (URL) information;
the browser process module loads the requested webpage by respectively utilizing different browser kernels according to the uniform resource locator URL information;
acquiring the loading time and the loading information quantity of loading the uniform resource locator URL information into different browser kernels; respectively marked as Ti and Li, wherein i represents a version identifier;
calculating out a Liu using a calculation formulaThe loading speed Vi of the browser kernel is calculated by
Figure BDA0002870726670000021
Wherein α is a correction coefficient;
the loading speed Vi of the browser kernel obtained by calculation is arranged in a descending order, the URL information and the kernel version identification with the maximum loading speed Vi of the browser kernel are bound, and the bound URL information and the kernel version identification with the maximum loading speed Vi of the browser kernel are sent to a data storage module for storage;
the kernel selection module selects a corresponding browser kernel according to the adaptation relation, and when the browser kernel selected by the kernel selection module is an IE kernel, the browser process module selects a currently adapted IE kernel version according to Uniform Resource Locator (URL) information;
if the currently adapted IE kernel version is an IE8 kernel, the browser process module calls a preset IE kernel redirection module, the IE kernel redirection module carries out the operation of redirecting to a corresponding position to load a preset IE8 kernel file, and the preset IE kernel redirection module is a dynamic link library file Trident.
If the currently adapted IE kernel version is a new version IE kernel, the browser process module calls a preset IE kernel redirection module, and the IE kernel redirection module carries out the operation of redirecting to a corresponding position to load a preset new version IE kernel file;
and loading the requested webpage by adopting the currently adapted browser kernel.
Further, the new version IE kernel is an IE10 kernel, and the new version IE kernel file is an IE10 kernel file.
Further, the IE8 kernel file and the IE10 kernel file include:
dynamic link library DLL of IE8 core and dynamic link library DLL of IE10 core;
data files of IE8 kernel and data files of IE10 kernel;
the language pack file of IE8 kernel and the language pack file of IE10 kernel;
registry configuration file of IE8 kernel and registry configuration file of IE10 kernel.
Further, the preset IE8 kernel file and the new version IE kernel file are stored in the data storage module, and the specific storage process includes the following steps:
extracting the dynamic link library DLL of the IE8 kernel from the IE8 kernel, and extracting the dynamic link library DLL of the IE10 kernel from the IE10 kernel;
generating a data file and a language package file of an IE8 kernel, a data file of an IE10 kernel and a language package file of an IE10 kernel through debugging analysis;
installing the dynamic link library DLL, the data files and the language package files of the IE10 kernel and the dynamic link library DLL, the data files and the language package files of the IE10 kernel to a designated position of a data storage module;
and generating registry configuration files of an IE8 kernel and an IE10 kernel, and importing the registry configuration files into the registry of the data storage module.
Further, the step of extracting the dynamic link library DLL of the IE8 kernel from the IE8 kernel comprises the following steps:
reloading all system application program interface APIs associated with IE8 kernel loading;
acquiring all dynamic link library DLLs loaded by a browser by monitoring a dynamic link library DLL viewing interface;
excluding the dynamic link library DLL of the system bottom layer, extracting the dynamic link library DLL of the IE8 kernel.
Further, the step of extracting the dynamic link library DLL of the IE10 kernel from the IE10 kernel comprises the following steps:
reloading all system application program interface APIs associated with IE10 kernel loading;
acquiring all dynamic link library DLLs loaded by a browser by monitoring a dynamic link library DLL viewing interface;
excluding the dynamic link library DLL of the system bottom layer, extracting the dynamic link library DLL of the IE10 kernel.
A control method for an IE kernel version compatible with a multi-kernel browser comprises the following steps:
the method comprises the following steps: the request receiving module receives request information for loading a webpage; the request information comprises Uniform Resource Locator (URL) information; the browser process module loads the requested webpage by respectively utilizing different browser kernels according to the uniform resource locator URL information;
step two: if the URL information of the uniform resource locator submitted by the current user is a local area network address, judging that the version number of the currently adapted IE kernel is an IE8 kernel;
if the URL information of the uniform resource locator submitted by the current user contains an IP address, judging that the version number of the IE kernel which is currently adapted is the IE10 kernel; if the uniform resource locator URL information submitted by the current user is contained in an IE8 kernel compatible domain name list, judging that the version number of the current adapted IE kernel is an IE10 kernel;
step three: if the uniform resource locator URL information is not contained in the IE kernel compatible domain name list, acquiring the loading time and the loading information quantity of the uniform resource locator URL information for loading the webpage in different browser kernels; respectively marked as Ti and Li, wherein i represents a version identifier;
calculating the loading speed Vi of the browser kernel by using a calculation formula, wherein the calculation formula is
Figure BDA0002870726670000051
Wherein α is a correction coefficient;
step four: the loading speed Vi of the browser kernel obtained by calculation is arranged in a descending order, the URL information and the kernel version identification with the maximum loading speed Vi of the browser kernel are bound, and the bound URL information and the kernel version identification with the maximum loading speed Vi of the browser kernel are sent to a data storage module for storage;
step five: if the currently adapted IE kernel version is an IE8 kernel, the browser process module calls a preset IE kernel redirection module, the IE kernel redirection module carries out the operation of redirecting to a corresponding position to load a preset IE8 kernel file, and the preset IE kernel redirection module is a dynamic link library file Trident.
If the currently adapted IE kernel version is a new version IE kernel, the browser process module calls a preset IE kernel redirection module, and the IE kernel redirection module carries out the operation of redirecting to a corresponding position to load a preset new version IE kernel file;
and loading the requested webpage by adopting the currently adapted browser kernel.
Compared with the prior art, the invention has the beneficial effects that:
1. the invention is provided with a request receiving module, an information acquisition module, a version adaptation module, a browser process module, an inner core selection module, a data storage module and a version control module, realizes the control of IE inner core versions in compatible multi-inner core browsers by the cooperation of all modules, and respectively loads the requested web pages by using different browser inner cores according to uniform resource locator URL information; acquiring the loading time and the loading information quantity of loading the uniform resource locator URL information into different browser kernels; the most suitable browser kernel is selected, the configuration relation is stored in the data storage module, and the next calling is facilitated, so that the most complete compatibility and adaptability of user browsing in a complex environment are achieved, and the user can obtain better webpage browsing experience.
2. The multi-core browser comprises at least two browser cores, wherein one browser core is an IE core, and the IE core at least comprises two versions of an IE8 core and a new version IE core; the information acquisition module acquires the version identification of the IE kernel; the request receiving module is used for receiving request information for loading a webpage, wherein the request information comprises Uniform Resource Locator (URL) information; the version adaptation module is used for acquiring the adaptation relation between the webpage requested to be loaded and the browser kernel according to a preset rule,
the request receiving module receives request information for loading a webpage; the request information comprises Uniform Resource Locator (URL) information; the browser process module loads the requested webpage by respectively utilizing different browser kernels according to the uniform resource locator URL information; acquiring the loading time and the loading information quantity of loading the uniform resource locator URL information into different browser kernels; respectively marked as Ti and Li, wherein i represents a version identifier; calculating the loading speed Vi of the browser kernel by using a calculation formula, wherein the calculation formula is as follows; wherein is a correction factor; the loading speed Vi of the browser kernel obtained by calculation is arranged in a descending order, the URL information and the kernel version identification with the maximum loading speed Vi of the browser kernel are bound, and the bound URL information and the kernel version identification with the maximum loading speed Vi of the browser kernel are sent to a data storage module for storage; the kernel selection module selects a corresponding browser kernel according to the adaptation relation, and when the browser kernel selected by the kernel selection module is an IE kernel, the browser process module selects a currently adapted IE kernel version according to Uniform Resource Locator (URL) information; if the currently adapted IE kernel version is an IE8 kernel, the browser process module calls a preset IE kernel redirection module, the IE kernel redirection module carries out the operation of redirecting to a corresponding position to load a preset IE8 kernel file, and the preset IE kernel redirection module is a dynamic link library file Trident. If the currently adapted IE kernel version is a new version IE kernel, the browser process module calls a preset IE kernel redirection module, and the IE kernel redirection module carries out the operation of redirecting to a corresponding position to load a preset new version IE kernel file; and loading the requested webpage by adopting the currently adapted browser kernel.
Drawings
Fig. 1 is a schematic block diagram of the present invention.
Detailed Description
The technical solutions of the present invention will be described clearly and completely with reference to the following embodiments, and it should be understood that the described embodiments are only a part of the embodiments of the present invention, and not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
Referring to fig. 1, an IE kernel version control system compatible with a multi-kernel browser includes a request receiving module, an information obtaining module, a version adapting module, a browser process module, a kernel selecting module, and a data storage module;
the compatible multi-kernel browser comprises at least two browser kernels, wherein one browser kernel is an IE kernel, and the IE kernel at least comprises two versions of an IE8 kernel and a new version IE kernel; the information acquisition module acquires the version identification of the IE kernel; the request receiving module is used for receiving request information for loading a webpage, wherein the request information comprises Uniform Resource Locator (URL) information;
the version adaptation module is used for acquiring the adaptation relation between the webpage requested to be loaded and the browser kernel according to a preset rule, and the concrete adaptation relation determining formula comprises the following steps:
the request receiving module receives request information for loading a webpage; the request information comprises Uniform Resource Locator (URL) information;
the browser process module loads the requested webpage by respectively utilizing different browser kernels according to the uniform resource locator URL information;
acquiring the loading time and the loading information quantity of loading the uniform resource locator URL information into different browser kernels; respectively marked as Ti and Li, wherein i represents a version identifier;
calculating the loading speed Vi of the browser kernel by using a calculation formula, wherein the calculation formula is
Figure BDA0002870726670000081
Wherein α is a correction coefficient;
the loading speed Vi of the browser kernel obtained by calculation is arranged in a descending order, the URL information and the kernel version identification with the maximum loading speed Vi of the browser kernel are bound, and the bound URL information and the kernel version identification with the maximum loading speed Vi of the browser kernel are sent to a data storage module for storage;
the kernel selection module selects a corresponding browser kernel according to the adaptation relation, and when the browser kernel selected by the kernel selection module is an IE kernel, the browser process module selects a currently adapted IE kernel version according to Uniform Resource Locator (URL) information;
if the currently adapted IE kernel version is an IE8 kernel, the browser process module calls a preset IE kernel redirection module, the IE kernel redirection module carries out the operation of redirecting to a corresponding position to load a preset IE8 kernel file, and the preset IE kernel redirection module is a dynamic link library file Trident.
If the currently adapted IE kernel version is a new version IE kernel, the browser process module calls a preset IE kernel redirection module, and the IE kernel redirection module carries out the operation of redirecting to a corresponding position to load a preset new version IE kernel file;
and loading the requested webpage by adopting the currently adapted browser kernel.
Preferably, the new version IE kernel is an IE10 kernel, and the new version IE kernel file is an IE10 kernel file.
Preferably, the IE8 kernel file and the IE10 kernel file include:
dynamic link library DLL of IE8 core and dynamic link library DLL of IE10 core;
data files of IE8 kernel and data files of IE10 kernel;
the language pack file of IE8 kernel and the language pack file of IE10 kernel;
registry configuration file of IE8 kernel and registry configuration file of IE10 kernel.
Preferably, the preset IE8 kernel file and the new version IE kernel file are stored in a data storage module, and the specific storage process includes the following steps:
extracting the dynamic link library DLL of the IE8 kernel from the IE8 kernel, and extracting the dynamic link library DLL of the IE10 kernel from the IE10 kernel;
generating a data file and a language package file of an IE8 kernel, a data file of an IE10 kernel and a language package file of an IE10 kernel through debugging analysis;
installing the dynamic link library DLL, the data files and the language package files of the IE10 kernel and the dynamic link library DLL, the data files and the language package files of the IE10 kernel to a designated position of a data storage module;
and generating registry configuration files of an IE8 kernel and an IE10 kernel, and importing the registry configuration files into the registry of the data storage module.
Preferably, the step of extracting the dynamic link library DLL of the IE8 kernel from the IE8 kernel comprises the following steps:
reloading all system application program interface APIs associated with IE8 kernel loading;
acquiring all dynamic link library DLLs loaded by a browser by monitoring a dynamic link library DLL viewing interface;
excluding the dynamic link library DLL of the system bottom layer, extracting the dynamic link library DLL of the IE8 kernel.
Preferably, the step of extracting the dynamic link library DLL of the IE10 kernel from the IE10 kernel comprises the following steps:
reloading all system application program interface APIs associated with IE10 kernel loading;
acquiring all dynamic link library DLLs loaded by a browser by monitoring a dynamic link library DLL viewing interface;
excluding the dynamic link library DLL of the system bottom layer, extracting the dynamic link library DLL of the IE10 kernel.
A control method for an IE kernel version compatible with a multi-kernel browser comprises the following steps:
the method comprises the following steps: the request receiving module receives request information for loading a webpage; the request information comprises Uniform Resource Locator (URL) information; the browser process module loads the requested webpage by respectively utilizing different browser kernels according to the uniform resource locator URL information;
step two: if the URL information of the uniform resource locator submitted by the current user is a local area network address, judging that the version number of the currently adapted IE kernel is an IE8 kernel;
if the URL information of the uniform resource locator submitted by the current user contains an IP address, judging that the version number of the IE kernel which is currently adapted is the IE10 kernel; if the uniform resource locator URL information submitted by the current user is contained in an IE8 kernel compatible domain name list, judging that the version number of the current adapted IE kernel is an IE10 kernel;
step three: if the uniform resource locator URL information is not contained in the IE kernel compatible domain name list, acquiring the loading time and the loading information quantity of the uniform resource locator URL information for loading the webpage in different browser kernels; respectively marked as Ti and Li, wherein i represents a version identifier;
calculating the loading speed Vi of the browser kernel by using a calculation formula, wherein the calculation formula is
Figure BDA0002870726670000101
Wherein α is a correction coefficient;
step four: the loading speed Vi of the browser kernel obtained by calculation is arranged in a descending order, the URL information and the kernel version identification with the maximum loading speed Vi of the browser kernel are bound, and the bound URL information and the kernel version identification with the maximum loading speed Vi of the browser kernel are sent to a data storage module for storage;
step five: if the currently adapted IE kernel version is an IE8 kernel, the browser process module calls a preset IE kernel redirection module, the IE kernel redirection module carries out the operation of redirecting to a corresponding position to load a preset IE8 kernel file, and the preset IE kernel redirection module is a dynamic link library file Trident.
If the currently adapted IE kernel version is a new version IE kernel, the browser process module calls a preset IE kernel redirection module, and the IE kernel redirection module carries out the operation of redirecting to a corresponding position to load a preset new version IE kernel file;
and loading the requested webpage by adopting the currently adapted browser kernel.
The preset IE kernel redirection module executes the operation of loading the preset IE8 kernel file to the corresponding position through the following substeps:
when the browser process module is monitored to access the registry, if the IE configuration item is accessed, the browser process module is guided to read and write the registry configuration file of the IE8 kernel; if the path of the IE kernel file is inquired, returning the information of the specified position of the data storage module imported by the IE8 kernel file;
when the browser process module is monitored to access the dynamic link library DLL, according to the version number of the IE8 kernel which is currently adapted, locating the specified position of the data storage module into which the corresponding IE8 kernel file is imported, searching the dynamic link library DLL with the same name in the position, and if the dynamic link library DLL is found, guiding the browser process module to load the dynamic link library DLL;
when monitoring that the browser process module accesses the data file and the language package file, positioning the data storage module at the designated position of the data storage module into which the corresponding IE8 kernel file is imported according to the version number of the currently adapted IE8 kernel, searching the data file and the language package file with the same name at the position, and guiding the browser process module to load the data file and the language package file if the data file and the language package file are found;
when monitoring that a browser process module creates a COM object, searching a dynamic link library DLL for realizing the COM object from a registry of the data storage module, and then calling the processing substep when monitoring that the browser process module accesses the dynamic link library DLL;
and when monitoring that the browser process module accesses the DLL kernel handle, calling the processing substep when monitoring that the browser process module accesses the dynamic link library DLL.
The preset IE kernel redirection module executes the operation of loading the preset IE10 kernel file to the corresponding position through the following substeps:
when the browser process module is monitored to access the registry, if the IE configuration item is accessed, the browser process module is guided to read and write the registry configuration file of the IE10 kernel; if the path of the IE kernel file is inquired, returning the information of the specified position of the data storage module imported by the IE10 kernel file;
when the browser process module is monitored to access the dynamic link library DLL, according to the version number of the IE10 kernel which is currently adapted, locating the specified position of the data storage module into which the corresponding IE10 kernel file is imported, searching the dynamic link library DLL with the same name in the position, and if the dynamic link library DLL is found, guiding the browser process module to load the dynamic link library DLL;
when monitoring that the browser process module accesses the data file and the language package file, positioning the data storage module at the designated position of the data storage module into which the corresponding IE10 kernel file is imported according to the version number of the currently adapted IE10 kernel, searching the data file and the language package file with the same name at the position, and guiding the browser process module to load the data file and the language package file if the data file and the language package file are found; when monitoring that a browser process module creates a COM object, searching a dynamic link library DLL for realizing the COM object from a registry of the data storage module, and then calling the processing substep when monitoring that the browser process module accesses the dynamic link library DLL;
and when monitoring that the browser process module accesses the DLL kernel handle, calling the processing substep when monitoring that the browser process module accesses the dynamic link library DLL.
Writing the IE8 kernel file and the new version IE kernel file into a memory; the step of redirecting to the corresponding position to load the preset IE8 kernel file comprises the step of redirecting to the corresponding position in the memory to load the preset IE8 kernel file; the step of redirecting to the corresponding position to load the preset IE10 kernel file is that the step of redirecting to the corresponding position in the memory to load the preset IE10 kernel file.
The step of obtaining the adaptation relationship between the webpage requested to be loaded and the browser kernel according to the preset rule comprises the following steps: acquiring the browser inner core matched with the webpage requested to be loaded according to a preset rule;
the step of selecting the corresponding browser kernel according to the adaptation relation comprises the following steps: selecting a browser inner core matched with the webpage requested to be loaded; the step of obtaining the adaptation relationship between the webpage requested to be loaded and the browser kernel according to the preset rule comprises the following steps: acquiring a browser inner core which is not matched with the webpage requested to be loaded according to a preset rule; the step of selecting the corresponding browser kernel according to the adaptation relation comprises the following steps: selecting a browser inner core except the non-adaptive inner core to load the webpage requested to be loaded; the step of obtaining the adaptation relationship between the webpage requested to be loaded and the browser kernel according to the preset rule comprises the following steps: acquiring the adaptation relation between the webpage requested to be loaded and the current default browser kernel according to a preset rule;
the step of selecting the corresponding browser kernel according to the adaptation relation comprises the following steps: if the webpage requested to be loaded is matched with the current default browser kernel, selecting the current default browser kernel for loading; otherwise, selecting the browser kernel except the current default kernel.
In the description herein, references to the description of "one embodiment," "an example," "a specific example" or the like are intended to mean that a particular feature, structure, material, or characteristic described in connection with the embodiment or example is included in at least one embodiment or example of the invention. In this specification, the schematic representations of the terms used above do not necessarily refer to the same embodiment or example. Furthermore, the particular features, structures, materials, or characteristics described may be combined in any suitable manner in any one or more embodiments or examples.
The preferred embodiments of the invention disclosed above are intended to be illustrative only. The preferred embodiments are not intended to be exhaustive or to limit the invention to the precise forms disclosed. Obviously, many modifications and variations are possible in light of the above teaching. The embodiments were chosen and described in order to best explain the principles of the invention and the practical application, to thereby enable others skilled in the art to best utilize the invention. The invention is limited only by the claims and their full scope and equivalents.

Claims (7)

1. An IE kernel version control system compatible with a multi-kernel browser is characterized by comprising a request receiving module, an information acquisition module, a version adaptation module, a browser process module, a kernel selection module and a data storage module;
the multi-core browser comprises at least two browser cores, wherein one browser core is an IE core, and the IE core at least comprises two versions of an IE8 core and a new version IE core; the information acquisition module acquires the version identification of the IE kernel; the request receiving module is used for receiving request information for loading a webpage, wherein the request information comprises Uniform Resource Locator (URL) information;
the version adaptation module is used for acquiring the adaptation relation between the webpage requested to be loaded and the browser kernel according to a preset rule, and the concrete adaptation relation determining formula comprises the following steps:
the request receiving module receives request information for loading a webpage; the request information comprises Uniform Resource Locator (URL) information;
the browser process module loads the requested webpage by respectively utilizing different browser kernels according to the uniform resource locator URL information;
acquiring the loading time and the loading information quantity of loading the uniform resource locator URL information into different browser kernels; respectively marked as Ti and Li, wherein i represents a version identifier;
calculating the loading speed Vi of the browser kernel by using a calculation formula, wherein the calculation formula is
Figure FDA0002870726660000011
Wherein α is a correction coefficient;
the loading speed Vi of the browser kernel obtained by calculation is arranged in a descending order, the URL information and the kernel version identification with the maximum loading speed Vi of the browser kernel are bound, and the bound URL information and the kernel version identification with the maximum loading speed Vi of the browser kernel are sent to a data storage module for storage;
the kernel selection module selects a corresponding browser kernel according to the adaptation relation, and when the browser kernel selected by the kernel selection module is an IE kernel, the browser process module selects a currently adapted IE kernel version according to Uniform Resource Locator (URL) information;
if the currently adapted IE kernel version is an IE8 kernel, the browser process module calls a preset IE kernel redirection module, the IE kernel redirection module carries out the operation of redirecting to a corresponding position to load a preset IE8 kernel file, and the preset IE kernel redirection module is a dynamic link library file Trident.
If the currently adapted IE kernel version is a new version IE kernel, the browser process module calls a preset IE kernel redirection module, and the IE kernel redirection module carries out the operation of redirecting to a corresponding position to load a preset new version IE kernel file;
and loading the requested webpage by adopting the currently adapted browser kernel.
2. The system for controlling the version of the IE kernel in the compatible multi-kernel browser of claim 1, wherein the new version IE kernel is IE10 kernel and the new version IE kernel file is IE10 kernel file.
3. The IE kernel version control system in a compatible multi-kernel browser as claimed in claim 1, wherein the IE8 kernel file and the IE10 kernel file include:
dynamic link library DLL of IE8 core and dynamic link library DLL of IE10 core;
data files of IE8 kernel and data files of IE10 kernel;
the language pack file of IE8 kernel and the language pack file of IE10 kernel;
registry configuration file of IE8 kernel and registry configuration file of IE10 kernel.
4. The IE kernel version control system compatible with the multi-kernel browser according to claim 1, wherein the preset IE8 kernel file and the new version IE kernel file are stored in the data storage module, and the specific storage process includes the following steps:
extracting the dynamic link library DLL of the IE8 kernel from the IE8 kernel, and extracting the dynamic link library DLL of the IE10 kernel from the IE10 kernel;
generating a data file and a language package file of an IE8 kernel, a data file of an IE10 kernel and a language package file of an IE10 kernel through debugging analysis;
installing the dynamic link library DLL, the data files and the language package files of the IE10 kernel and the dynamic link library DLL, the data files and the language package files of the IE10 kernel to the designated positions of the data storage module;
registry configuration files of an IE8 kernel and an IE10 kernel are generated and imported into a registry of the data storage module.
5. The IE kernel version control system according to claim 1, wherein the step of extracting the dynamic link library DLL of the IE8 kernel from the IE8 kernel comprises the steps of:
reloading all system application program interface APIs associated with IE8 kernel loading;
acquiring all dynamic link library DLLs loaded by a browser by monitoring a dynamic link library DLL viewing interface;
excluding the dynamic link library DLL of the system bottom layer, extracting the dynamic link library DLL of the IE8 kernel.
6. The IE kernel version control system according to claim 1, wherein the step of extracting the dynamic link library DLL of the IE10 kernel from the IE10 kernel comprises the steps of:
reloading all system application program interface APIs associated with IE10 kernel loading;
acquiring all dynamic link library DLLs loaded by a browser by monitoring a dynamic link library DLL viewing interface;
excluding the dynamic link library DLL of the system bottom layer, extracting the dynamic link library DLL of the IE10 kernel.
7. A control method for IE kernel version compatible with multi-kernel browser is characterized in that the specific method comprises the following steps:
the method comprises the following steps: the request receiving module receives request information for loading a webpage; the request information comprises Uniform Resource Locator (URL) information; the browser process module loads the requested webpage by respectively utilizing different browser kernels according to the uniform resource locator URL information;
step two: if the URL information of the uniform resource locator submitted by the current user is a local area network address, judging that the version number of the currently adapted IE kernel is an IE8 kernel;
if the URL information of the uniform resource locator submitted by the current user contains an IP address, judging that the version number of the IE kernel which is currently adapted is the IE10 kernel; if the uniform resource locator URL information submitted by the current user is contained in an IE8 kernel compatible domain name list, judging that the version number of the current adapted IE kernel is an IE10 kernel;
step three: if the uniform resource locator URL information is not contained in the IE kernel compatible domain name list, acquiring the loading time and the loading information quantity of the uniform resource locator URL information for loading the webpage in different browser kernels; respectively marked as Ti and Li, wherein i represents a version identifier;
calculating the loading speed Vi of the browser kernel by using a calculation formula, wherein the calculation formula is
Figure FDA0002870726660000041
Wherein α is a correction coefficient;
step four: the loading speed Vi of the browser kernel obtained by calculation is arranged in a descending order, the URL information and the kernel version identification with the maximum loading speed Vi of the browser kernel are bound, and the bound URL information and the kernel version identification with the maximum loading speed Vi of the browser kernel are sent to a data storage module for storage;
step five: if the currently adapted IE kernel version is an IE8 kernel, the browser process module calls a preset IE kernel redirection module, the IE kernel redirection module carries out the operation of redirecting to a corresponding position to load a preset IE8 kernel file, and the preset IE kernel redirection module is a dynamic link library file Trident.
If the currently adapted IE kernel version is a new version IE kernel, the browser process module calls a preset IE kernel redirection module, and the IE kernel redirection module carries out the operation of redirecting to a corresponding position to load a preset new version IE kernel file;
and loading the requested webpage by adopting the currently adapted browser kernel.
CN202011599842.5A 2020-12-30 2020-12-30 Method and system compatible with IE (Internet Explorer) kernel version control in multi-kernel browser Pending CN112667947A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202011599842.5A CN112667947A (en) 2020-12-30 2020-12-30 Method and system compatible with IE (Internet Explorer) kernel version control in multi-kernel browser

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202011599842.5A CN112667947A (en) 2020-12-30 2020-12-30 Method and system compatible with IE (Internet Explorer) kernel version control in multi-kernel browser

Publications (1)

Publication Number Publication Date
CN112667947A true CN112667947A (en) 2021-04-16

Family

ID=75410474

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202011599842.5A Pending CN112667947A (en) 2020-12-30 2020-12-30 Method and system compatible with IE (Internet Explorer) kernel version control in multi-kernel browser

Country Status (1)

Country Link
CN (1) CN112667947A (en)

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102968341A (en) * 2012-10-25 2013-03-13 北京奇虎科技有限公司 Method and device for switching different versions of IE (internet explorer) kernels on basis of multi-kernel browser
WO2015039586A1 (en) * 2013-09-17 2015-03-26 北京奇虎科技有限公司 Method, apparatus and browser for webpage loading
US20170371888A1 (en) * 2014-12-27 2017-12-28 Beijing Qihoo Technology Company Limited Method for advertisement interception in dual-kernel browser and browser apparatus

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102968341A (en) * 2012-10-25 2013-03-13 北京奇虎科技有限公司 Method and device for switching different versions of IE (internet explorer) kernels on basis of multi-kernel browser
WO2015039586A1 (en) * 2013-09-17 2015-03-26 北京奇虎科技有限公司 Method, apparatus and browser for webpage loading
US20170371888A1 (en) * 2014-12-27 2017-12-28 Beijing Qihoo Technology Company Limited Method for advertisement interception in dual-kernel browser and browser apparatus

Similar Documents

Publication Publication Date Title
US20210397777A1 (en) System and method for deep linking and search engine support for web sites integrating third party application and components
CN107203555B (en) Page loading processing method and device
US10733259B2 (en) Web page access method and apparatus
US8745341B2 (en) Web server cache pre-fetching
CN110968824B (en) Page data processing method and device
CN110069683B (en) Method and device for crawling data based on browser
CN106294658B (en) Webpage quick display method and device
US20090271690A1 (en) Handling cross-domain web service calls
CN110209966B (en) Webpage refreshing method, webpage system and electronic equipment
CN110647699A (en) Web page rendering method and device, computer equipment and storage medium
CN110647700A (en) Page resource loading method and device, computer equipment and storage medium
EP4198773A1 (en) Image processing method and apparatus, and computer readable storage medium
CN102096582A (en) Off-line gadget integration development environment
CN107798064B (en) Page processing method, electronic device and computer readable storage medium
CN105183890B (en) Webpage loading method based on browser and browser device
CN112612982A (en) Webpage preloading method and device and computer equipment
US9292252B2 (en) Methods and apparatus for voiced-enabling a web application
CN111431767B (en) Multi-browser resource synchronization method and device, computer equipment and storage medium
US11720407B2 (en) Resource pre-fetch using age threshold
US7886227B2 (en) Cross-environment context-sensitive help files
CN114329281A (en) Rendering server, webpage rendering method and webpage rendering device
CN113282354B (en) H5 page loading method, device and equipment of application program and storage medium
CN114003835A (en) Page rendering method, device, equipment and storage medium
CN111679828B (en) Data processing method and device, electronic equipment and storage medium
US20160117392A1 (en) Information search method and apparatus

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
RJ01 Rejection of invention patent application after publication
RJ01 Rejection of invention patent application after publication

Application publication date: 20210416