CN102968341A - Method and device for switching different versions of IE (internet explorer) kernels on basis of multi-kernel browser - Google Patents

Method and device for switching different versions of IE (internet explorer) kernels on basis of multi-kernel browser Download PDF

Info

Publication number
CN102968341A
CN102968341A CN2012104139688A CN201210413968A CN102968341A CN 102968341 A CN102968341 A CN 102968341A CN 2012104139688 A CN2012104139688 A CN 2012104139688A CN 201210413968 A CN201210413968 A CN 201210413968A CN 102968341 A CN102968341 A CN 102968341A
Authority
CN
China
Prior art keywords
kernel
file
browser
dll
dynamic link
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.)
Granted
Application number
CN2012104139688A
Other languages
Chinese (zh)
Other versions
CN102968341B (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.)
Beijing Qihoo Technology Co Ltd
Qizhi Software Beijing Co Ltd
Original Assignee
Beijing Qihoo Technology Co Ltd
Qizhi Software Beijing 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 Beijing Qihoo Technology Co Ltd, Qizhi Software Beijing Co Ltd filed Critical Beijing Qihoo Technology Co Ltd
Priority to CN201210413968.8A priority Critical patent/CN102968341B/en
Publication of CN102968341A publication Critical patent/CN102968341A/en
Application granted granted Critical
Publication of CN102968341B publication Critical patent/CN102968341B/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Abstract

The invention discloses a method and a device for switching different versions of IE (internet explorer) kernels on the basis of a multi-kernel browser. The browser comprises at least two kernels, wherein one kernel is the IE kernel. The method comprises the following steps of: receiving request information of a loaded webpage, wherein the request information comprises URL (uniform resource locator) information; learning the adaptation relationship between the requested webpage and a browser kernel; selecting the corresponding browser kernel; when the selected browser kernel is the IE kernel, judging the version of the current adaptive IE kernel; if the current adaptive IE kernel is the IE6 kernel, invoking the redirected module of the IE kernel to load a preset IE6 kernel file; and if the current adaptive IE kernel is a novel IE kernel, invoking the redirected module of the IE kernel to load a preset novel IE kernel file. According to the invention, the problems of compatibility and suitability of the IE6 kernel browser and the IE8 kernel browser when the browser comprises the at least two kernels and one of the kernels is the IE kernel can be solved.

Description

The method and apparatus that switches based on the different editions IE kernel of many kernel browsers
Technical field
The present invention relates to the technical field of browser, particularly relate to a kind of method of switching based on the different editions IE kernel of many kernel browsers, a kind of device that switches based on the different editions IE kernel of many kernel browsers, and, a kind of browser.
Background technology
The most important part of browser is " Rendering Engine ", can probably be translated into " rendering engine ", and general custom is called it " browser kernel ".Browser kernel is responsible for the explanation (such as HTML, JavaScript) of webpage grammer and is played up (demonstration) webpage.So the engine that common so-called browser kernel is namely downloaded, resolves, carries out, played up the page, this engine have determined the browser how content of display web page and the format information of the page.
More common browser kernel has the IE kernel (Trident kernel) that the IE browser of Microsoft uses at present, the Gecko kernel that the Firefox browser uses, the Webkit kernel that the Safari browser of apple and the Chrome browser of Google use, and, the Presto kernel that the Opera browser adopts.These common browsers can be done following division by implementation:
The first, the developer of browser had both carried out the exploitation of browser kernel, also carried out the exploitation of navigator product.As: chrome browser, firefox browser, Safari browser, Internet Explore browser etc.
The second, the developer of browser only carries out the exploitation of navigator product, the kernel that uses other browser manufacturers to realize.Kernel is embedded in the own browser uses.As: 360 secure browsers, the browser of roaming, Window on the World browser, search dog browser etc.This browser adopts Internet Explorer browser kernel usually, namely adopts the browser of IE kernel.
When the user initiated the request of a browsing page by browser, browser was by the content of kernel from the targeted website downloading web pages, and then the analyzing web page content is carried out script, calculates and sets type, and outputs at last display and is shown to the user.Each browser has a kernel, no matter what webpages the user opens by a browser process, browser all uses same kernel to explain and carries out.
But, this single kernel browser has significant limitation, because the network standard that webpage is supported according to certain kernel is often made, for the network standard that certain particular core is supported, other kernels possibly can't be supported (even can't support) well.For example, the user uses Firefox browser browsing page, and the kernel of Firefox can be supported the W3C standard well, therefore uses this browser can browse the webpage of making according to the W3C standard.If use the Internet bank but the user wants to browse China Merchants Bank's webpage, the Firefox browser just can't satisfy this user's request.Because Internet bank's function of China Merchants Bank website needs the ActiveX pin function, and this function only has the browser of IE kernel to support, the user just can't use Internet bank's function of China Merchants Bank in the situation of using the Firefox browser like this.
Moreover the browser of common use IE kernel comprises the browser that adopts IE6 (Internetexplorer 6) kernel and the browser that adopts IE8 (Internetexplorer 8) kernel.Particularly, Internetexplorer 6 is in October calendar year 2001 issue, has a surplus in 10 years apart from the present.But adopt the browser of IE6 kernel still to occupy so far China main flow browser market 50% above share, because environmental change, the problem such as of the remote past, adopt the browser of IE6 kernel in the face of instantly using in a large number the environment performance performance of the materials such as scripts, picture, Flash low in the internet, can't make the user obtain Flow Experience.Internetexplorer 8 has obtained considerable application since issue in 2008, the browser that nowadays adopts the IE8 kernel has replaced the market share of the browser that adopts the IE6 kernel gradually, becomes the web browser of user's main flow.The system that Windows Vista is above even directly cancelled support to the following version of IE8, but based on the comparatively complicated formation in China internet, obviously the user can face problems.Wherein comparatively typically be exactly since two thousand one, a large amount of individuals, team have made up website, the service that can only normally move in a large number based on the not rigorous standard criterion of IE6 under the browser that adopts the IE6 kernel.So, just directly cause the user when enjoying browser brand new technical of new generation, can't normally realize the demands such as work, amusement of oneself.
In a word, need the urgent technical matters that solves of those skilled in the art to be exactly: the advantage that how to take full advantage of various browser kernels, avoid the shortcoming of various browser kernels on the impact of Web page loading, and, how to solve at browser and comprise at least two kinds of browser kernels, and wherein a kind of browser kernel is in the situation of IE kernel, and the compatibility of IE6 kernel browser and IE8 kernel browser and suitability problem are experienced thereby make the user obtain better web page browsing.
Summary of the invention
In view of the above problems, the present invention has been proposed in order to a kind of a kind of method of switching based on the different editions IE kernel of many kernel browsers that overcomes the problems referred to above or address the above problem at least in part is provided, a kind of device that switches based on the different editions IE kernel of many kernel browsers, and, a kind of browser.
According to one aspect of the present invention, provide 1, a kind of method of switching based on the different editions IE kernel of many kernel browsers, wherein said browser comprises at least two kinds of browser kernels, wherein a kind of browser kernel is the IE kernel, and described IE kernel comprises IE6 kernel and two versions of novel I E kernel at least:
Described method comprises:
Receive the solicited message of Web page loading, comprise uniform resource position mark URL information in the described request information;
Know the webpage of described request loading and the fitting relation between the browser kernel according to presetting rule;
Select corresponding browser kernel according to described fitting relation, when selected browser kernel was the IE kernel, browser process was judged current adaptive IE kernel version according to described uniform resource position mark URL information;
If current adaptive IE kernel version is the IE6 kernel, then browser process is called default IE kernel and is redirected module, is redirected to the relevant position and loads the IE6 kernel file that presets;
If current adaptive IE kernel version is novel I E kernel, then browser process is called default IE kernel and is redirected module, is redirected to the relevant position and loads the novel I E kernel file that presets.
Alternatively, described novel I E kernel is the IE8 kernel, and described novel I E kernel file is the IE8 kernel file;
Perhaps, the IE kernel that described novel I E kernel is the above version of IE8, the IE kernel file that described novel I E kernel file is the above version of IE8.
Alternatively, described IE6 kernel file and IE8 kernel file comprise:
The dynamic link library (DLL) of the dynamic link library (DLL) of IE6 kernel and IE8 kernel;
The data file of the data file of IE6 kernel and IE8 kernel;
The language pack file of IE6 kernel and the language pack file of IE8 kernel;
And, the registration table configuration file of IE6 kernel and the registration table configuration file of IE8 kernel.
Alternatively, the described IE6 kernel file that presets and novel I E kernel file are stored in the client, specifically realize by following substep:
From the dynamic link library (DLL) of IE6 kernel extraction IE6 kernel, extract the dynamic link library (DLL) of IE8 kernel from the IE8 kernel;
Through data file and the language pack file of Commissioning Analysis generation IE6 kernel, and, the language pack file of the data file of IE8 kernel and IE8 kernel;
With dynamic link library (DLL), data file and the language pack file of described IE6 kernel, and the dynamic link library (DLL) of IE8 kernel, data file and language pack file are mounted to the assigned address of client;
Generate the registration table configuration file of IE6 kernel and IE8 kernel, and import in the registration table of described client.
Alternatively, described dynamic link library (DLL) from IE6 kernel extraction IE6 kernel, the substep that extracts the dynamic link library (DLL) of IE8 kernel from the IE8 kernel comprises:
All system application interface APIs relevant with the IE6 kernel loads of heavy duty;
Check interface, all dynamic link library (DLL)s that the acquisition browser loads by monitoring dynamic link library (DLL);
The dynamic link library (DLL) of removal system bottom, the dynamic link library (DLL) of extraction IE6 kernel;
And,
All system application interface APIs relevant with the IE8 kernel loads of heavy duty;
Check interface, all dynamic link library (DLL)s that the acquisition browser loads by monitoring dynamic link library (DLL);
The dynamic link library (DLL) of removal system bottom, the dynamic link library (DLL) of extraction IE8 kernel.
Alternatively, the uniform resource position mark URL information that described browser process User is submitted to, judge that the step of current adaptive IE kernel version number further comprises:
If the uniform resource position mark URL information that the active user submits to is lan address, judge that then current adaptive IE kernel version number is the IE6 kernel;
If the uniform resource position mark URL information that the active user submits to comprises the IP address, judge that then current adaptive IE kernel version number is the IE6 kernel;
If the uniform resource position mark URL information that the active user submits to is included in the compatible domain name tabulation of IE8 kernel, judge that then current adaptive IE kernel version number is the IE8 kernel.
Alternatively, the uniform resource position mark URL information that described browser process User is submitted to, judge that the step of current adaptive IE kernel version number also comprises:
If the uniform resource position mark URL information that the active user submits to is included in the compatible domain name tabulation of novel I E kernel, judge that then current adaptive IE kernel version number is the novel I E kernel of correspondence.
Alternatively, described default IE kernel is redirected module and is redirected to the operation that the relevant position loads the IE6 kernel file that presets by following substep execution:
When monitoring browser process access registration table, if access IE configuration item then guides browser process to read and write the registration table configuration file of IE6 kernel; If the information of the client assigned address that the IE6 kernel file imports is then returned in the path of inquiry IE kernel file;
When monitoring browser process access dynamic link library (DLL), version number according to current adaptive IE6 kernel, navigate to the client assigned address that corresponding IE6 kernel file imports, and to the dynamic link library (DLL) of this location lookup same names, if find, then guide browser process to load this dynamic link library (DLL);
When monitoring browser process visit data file, language pack file, version number according to current adaptive IE6 kernel, navigate to the client assigned address that corresponding IE6 kernel file imports, and to data file and the language pack file of this location lookup same names, if find, then guide browser process to load this data file and language pack file;
When monitoring browser process establishment com object, from the registration table of described client, search the dynamic link library (DLL) of realizing this com object, then call described processing substep when monitoring browser process access dynamic link library (DLL);
When monitoring browser process access DLL kernel handler, call described processing substep when monitoring browser process access dynamic link library (DLL).
Alternatively, described default IE kernel is redirected module and is redirected to the operation that the relevant position loads the IE8 kernel file that presets by following substep execution:
When monitoring browser process access registration table, if access IE configuration item then guides browser process to read and write the registration table configuration file of IE8 kernel; If the information of the client assigned address that the IE8 kernel file imports is then returned in the path of inquiry IE kernel file;
When monitoring browser process access dynamic link library (DLL), version number according to current adaptive IE8 kernel, navigate to the client assigned address that corresponding IE8 kernel file imports, and to the dynamic link library (DLL) of this location lookup same names, if find, then guide browser process to load this dynamic link library (DLL);
When monitoring browser process visit data file, language pack file, version number according to current adaptive IE8 kernel, navigate to the client assigned address that corresponding IE8 kernel file imports, and to data file and the language pack file of this location lookup same names, if find, then guide browser process to load this data file and language pack file;
When monitoring browser process establishment com object, from the registration table of described client, search the dynamic link library (DLL) of realizing this com object, then call described processing substep when monitoring browser process access dynamic link library (DLL);
When monitoring browser process access DLL kernel handler, call described processing substep when monitoring browser process access dynamic link library (DLL).
Alternatively, described method also comprises:
With described IE6 kernel file and novel I E kernel file write memory;
It is described that to be redirected to the step that the relevant position loads the IE6 kernel file preset be that the relevant position that is redirected in the internal memory loads the described IE6 kernel file that presets;
It is described that to be redirected to the step that the relevant position loads the IE8 kernel file preset be that the relevant position that is redirected in the internal memory loads the described IE8 kernel file that presets.
Alternatively, the redirected module of described default IE kernel is dynamic link library file Tridentcore.dll.
Alternatively, described method also comprises:
Adopt current adaptive browser kernel to load the webpage of described request.
Alternatively, describedly know that according to presetting rule the webpage that described request loads comprises with the step of the fitting relation between the described browser kernel: know the described browser kernel adaptive with the webpage of described request loading according to presetting rule;
Described step according to browser kernel corresponding to fitting relation selection comprises: select the browser kernel adaptive with the webpage of described request loading;
And/or,
Describedly know that according to presetting rule the webpage that described request loads comprises with the step of the fitting relation between the described browser kernel: know the browser kernel not adaptive with the webpage of described request loading according to presetting rule;
Describedly select the step of corresponding browser kernel to comprise according to fitting relation: to select browser kernel outside the described not adaptive kernel to load the webpage of described request loading;
And/or,
Describedly know that according to presetting rule the webpage that described request loads comprises with the step of the fitting relation between the described browser kernel: know the fitting relation between the browser kernel of the webpage of described request loading and current acquiescence according to presetting rule;
Described step according to browser kernel corresponding to fitting relation selection comprises: if the browser kernel of the webpage that described request loads and current acquiescence is adaptive, then select the browser kernel of described current acquiescence to load; Otherwise, select the browser kernel outside the current acquiescence kernel.
Alternatively, described presetting rule comprises specific adaptation rule and/or the General adaptive rule that presets, wherein, the described specific adaptation rule that presets comprises the fitting relation between webpage and the kernel, and described General adaptive rule is included as the fastest browser kernel of the average loading velocity of user selection or is the user selection browser kernel adaptive to network standard.
According to a further aspect in the invention, a kind of device that switches based on the different editions IE kernel of many kernel browsers is provided, wherein said browser comprises at least two kinds of browser kernels, wherein a kind of browser kernel is the IE kernel, and described IE kernel comprises IE6 kernel and two versions of novel I E kernel at least:
Described device comprises:
The request receiving module is suitable for receiving the solicited message of Web page loading, comprises uniform resource position mark URL information in the described request information;
The fitting relation acquisition module is suitable for knowing the webpage of described request loading and the fitting relation between the browser kernel according to presetting rule;
The Core Choice module is suitable for selecting corresponding browser kernel according to described fitting relation,
Browser process is suitable for when selected browser kernel is the IE kernel, judges current adaptive IE kernel version according to described uniform resource position mark URL information;
The IE kernel is redirected module, is suitable for when current adaptive IE kernel version is the IE6 kernel, is redirected to the relevant position and loads the IE6 kernel file that presets; And, when current adaptive IE kernel version is novel I E kernel, is redirected to the relevant position and loads the novel I E kernel file that presets.
Alternatively, described novel I E kernel is the IE8 kernel, and described novel I E kernel file is the IE8 kernel file;
Perhaps, the IE kernel that described novel I E kernel is the above version of IE8, the IE kernel file that described novel I E kernel file is the above version of IE8.
Alternatively, described IE6 kernel file and IE8 kernel file comprise:
The dynamic link library (DLL) of the dynamic link library (DLL) of IE6 kernel and IE8 kernel;
The data file of the data file of IE6 kernel and IE8 kernel;
The language pack file of IE6 kernel and the language pack file of IE8 kernel;
And, the registration table configuration file of IE6 kernel and the registration table configuration file of IE8 kernel.
Alternatively, the described IE6 kernel file that presets and novel I E kernel file are stored in the client, specifically realize by following substep:
From the dynamic link library (DLL) of IE6 kernel extraction IE6 kernel, extract the dynamic link library (DLL) of IE8 kernel from the IE8 kernel;
Through data file and the language pack file of Commissioning Analysis generation IE6 kernel, and, the language pack file of the data file of IE8 kernel and IE8 kernel;
With dynamic link library (DLL), data file and the language pack file of described IE6 kernel, and the dynamic link library (DLL) of IE8 kernel, data file and language pack file are mounted to the assigned address of client;
Generate the registration table configuration file of IE6 kernel and IE8 kernel, and import in the registration table of described client;
Wherein, described dynamic link library (DLL) from IE6 kernel extraction IE6 kernel, the substep that extracts the dynamic link library (DLL) of IE8 kernel from the IE8 kernel comprises:
All system application interface APIs relevant with the IE6 kernel loads of heavy duty;
Check interface, all dynamic link library (DLL)s that the acquisition browser loads by monitoring dynamic link library (DLL);
The dynamic link library (DLL) of removal system bottom, the dynamic link library (DLL) of extraction IE6 kernel;
And,
All system application interface APIs relevant with the IE8 kernel loads of heavy duty;
Check interface, all dynamic link library (DLL)s that the acquisition browser loads by monitoring dynamic link library (DLL);
The dynamic link library (DLL) of removal system bottom, the dynamic link library (DLL) of extraction IE8 kernel.
Alternatively, described browser process comprises:
First judges submodule, is suitable for judging that current adaptive IE kernel version number is the IE6 kernel when the uniform resource position mark URL information that the active user submits to is lan address;
Second judges submodule, is suitable for judging that current adaptive IE kernel version number is the IE6 kernel when the uniform resource position mark URL information that the active user submits to comprises the IP address;
The 3rd judges submodule, is suitable for judging that current adaptive IE kernel version number is the IE8 kernel when the uniform resource position mark URL information that the active user submits to is included in the compatible domain name tabulation of IE8 kernel.
Alternatively, described browser process also comprises:
The 4th judges submodule, is suitable for when the uniform resource position mark URL information that the active user submits to is included in the compatible domain name tabulation of novel I E kernel, judges that current adaptive IE kernel version number is the novel I E kernel of correspondence.
Alternatively, the redirected module of described default IE kernel comprises:
The first registry operations submodule is suitable for when monitoring browser process access registration table, if access IE configuration item then guides browser process to read and write the registration table configuration file of IE6 kernel; If the information of the client assigned address that the IE6 kernel file imports is then returned in the path of inquiry IE kernel file;
The one DLL operates submodule, be suitable for when monitoring browser process access dynamic link library (DLL), version number according to current adaptive IE6 kernel, navigate to the client assigned address that corresponding IE6 kernel file imports, and to the dynamic link library (DLL) of this location lookup same names, if find, then guide browser process to load this dynamic link library (DLL);
The first relevant file operation submodule, be suitable for when monitoring browser process visit data file, language pack file, version number according to current adaptive IE6 kernel, navigate to the client assigned address that corresponding IE6 kernel file imports, and to data file and the language pack file of this location lookup same names, if find, then guide browser process to load this data file and language pack file;
The first com object creates submodule, is suitable for from the registration table of described client, searching the dynamic link library (DLL) of realizing this com object when monitoring browser process establishment com object, then calls described DLL operation submodule;
The one DLL kernel handler operation submodule is suitable for calling described DLL operation submodule when monitoring browser process access DLL kernel handler;
The second registry operations submodule is suitable for when monitoring browser process access registration table, if access IE configuration item then guides browser process to read and write the registration table configuration file of IE8 kernel; If the information of the client assigned address that the IE8 kernel file imports is then returned in the path of inquiry IE kernel file;
The 2nd DLL operates submodule, be suitable for when monitoring browser process access dynamic link library (DLL), version number according to current adaptive IE8 kernel, navigate to the client assigned address that corresponding IE8 kernel file imports, and to the dynamic link library (DLL) of this location lookup same names, if find, then guide browser process to load this dynamic link library (DLL);
The second relevant file operation submodule, be suitable for when monitoring browser process visit data file, language pack file, version number according to current adaptive IE8 kernel, navigate to the client assigned address that corresponding IE8 kernel file imports, and to data file and the language pack file of this location lookup same names, if find, then guide browser process to load this data file and language pack file;
The second com object creates submodule, is suitable for from the registration table of described client, searching the dynamic link library (DLL) of realizing this com object when monitoring browser process establishment com object, then calls described the 2nd DLL operation submodule;
The 2nd DLL kernel handler operation submodule is suitable for calling described the 2nd DLL operation submodule when monitoring browser process access DLL kernel handler.
Alternatively, described device also comprises:
The internal memory writing module is suitable for described IE6 kernel file and novel I E kernel file write memory.
Alternatively, the redirected module of described default IE kernel is dynamic link library file Tridentcore.dll.
Alternatively, described device also comprises:
The webpage load-on module is suitable for adopting current adaptive browser kernel to load the webpage of described request.
Alternatively, described fitting relation acquisition module comprises:
First obtains submodule, is suitable for knowing the adaptive described browser kernel of webpage that loads with described request according to presetting rule;
Described Core Choice module comprises:
The first chooser module is suitable for selecting the browser kernel adaptive with the webpage of described request loading;
And/or,
Described fitting relation acquisition module comprises:
Second obtains submodule, is suitable for knowing the not adaptive browser kernel of webpage that loads with described request according to presetting rule;
Described Core Choice module comprises:
The second chooser module is suitable for selecting the browser kernel outside the described not adaptive kernel to load the webpage that described request loads;
And/or,
Described fitting relation acquisition module comprises:
The 3rd obtains submodule, is suitable for knowing fitting relation between the browser kernel of webpage that described request loads and current acquiescence according to presetting rule;
Described Core Choice module comprises:
The 3rd chooser module if it is adaptive with the browser kernel of current acquiescence to be suitable for the webpage that described request loads, is then selected the browser kernel loading of described current acquiescence; Otherwise, select the browser kernel outside the current acquiescence kernel.
Alternatively, described presetting rule comprises specific adaptation rule and/or the General adaptive rule that presets, wherein, the described specific adaptation rule that presets comprises the fitting relation between webpage and the kernel, and described General adaptive rule is included as the fastest browser kernel of the average loading velocity of user selection or is the user selection browser kernel adaptive to network standard.
According to a further aspect in the invention, provide a kind of browser, wherein said browser comprises at least two kinds of browser kernels, and wherein a kind of browser kernel is the IE kernel, and described IE kernel comprises IE6 kernel and two versions of novel I E kernel at least:
Described browser comprises:
The request receiving module is suitable for receiving the solicited message of Web page loading, comprises uniform resource position mark URL information in the described request information;
The fitting relation acquisition module is suitable for knowing the webpage of described request loading and the fitting relation between the browser kernel according to presetting rule;
The Core Choice module is suitable for selecting corresponding browser kernel according to described fitting relation,
Browser process is suitable for when selected browser kernel is the IE kernel, judges current adaptive IE kernel version according to described uniform resource position mark URL information;
The IE kernel is redirected module, is suitable for when current adaptive IE kernel version is the IE6 kernel, is redirected to the relevant position and loads the IE6 kernel file that presets; And, when current adaptive IE kernel version is novel I E kernel, is redirected to the relevant position and loads the novel I E kernel file that presets.
Compared with prior art, the present invention has the following advantages:
According to a kind of method of switching based on the different editions IE kernel of many kernel browsers, a kind of device that switches based on the different editions IE kernel of many kernel browsers, and, a kind of browser by integrated at least two kinds of kernels in same browser, has the relative merits of himself based on every kind of kernel, therefore, this many kernel browsers to a certain extent, have strengthened the success ratio of browser Web page loading for single kernel browser.And, because many kernel browsers of the embodiment of the invention, can initiatively select adaptive kernel according to presetting rule for the webpage of user's access, rather than the complete kernel of blindly being selected Web page loading by user oneself, therefore avoid to a certain extent the blindness (because most users is not to know very much adaptive which kernel of which webpage) of user oneself selection, further improved the success ratio of Web page loading.This shows, the embodiment of the invention can be carried out Intelligence Selection to each kernel in the browser, take full advantage of the advantage of each kernel, avoided the shortcoming of each kernel on the impact of user's Web page loading as far as possible, and then ground reached in the browser having complementary advantages of intelligence between a plurality of kernels, improved to a certain extent the effect by the browser browsing page.
A preferred embodiment of the present invention is to provide a kind of double-core browser, and wherein a kind of browser kernel is the IE kernel.Problem for the many versions switchings of IE kernel, described double-core browser can be judged current adaptive IE kernel version by URL information, and call respectively default IE kernel for adaptive IE kernel version and be redirected module, be redirected to the IE kernel file that the relevant position loads the respective version that presets.The realization of this double-core browser can be under the prerequisite that does not affect user IE use, the page loading IE6 kernel that shows being fit to IE6, and the page that is fit to the IE8 demonstration loads the IE8 kernel, and the user browses most complete compatibility and suitability under the complex environment to reach.
And, this double-core browser fully combine IE6 to generally the supporting of bank/large-scale portal website, IE8 safely, play up, advantage that the speed aspect promotes, realized a kind of IE6 kernel and the most complete compatibility mode of IE8 kernel.Moreover, by intelligent decision automatic switchover kernel, need not restart browser, need not change operating system or upgrading IE or many moneys software is installed, easy to use.In addition, favorable expandability of the present invention can support other version kernel of IE to automatically switch.
Description of drawings
By reading hereinafter detailed description of the preferred embodiment, various other advantage and benefits will become cheer and bright for those of ordinary skills.Accompanying drawing only is used for the purpose of preferred implementation is shown, and does not think limitation of the present invention.And in whole accompanying drawing, represent identical parts with identical reference symbol.In the accompanying drawings:
Fig. 1 shows the flow chart of steps of the embodiment of the method 1 that a kind of according to an embodiment of the invention different editions IE kernel based on many kernel browsers switches;
Fig. 2 shows the flow chart of steps of the embodiment of the method 2 that a kind of according to an embodiment of the invention different editions IE kernel based on many kernel browsers switches;
Fig. 3 shows the structured flowchart of the system embodiment 1 that a kind of according to an embodiment of the invention different editions IE kernel based on many kernel browsers switches;
Fig. 4 shows the structured flowchart of the system embodiment 2 that a kind of according to an embodiment of the invention different editions IE kernel based on many kernel browsers switches;
Fig. 5 shows the structured flowchart that a kind of according to an embodiment of the invention IE kernel is redirected module;
Fig. 6 shows according to an embodiment of the invention a kind of structured flowchart of browser.
Embodiment
Exemplary embodiment of the present disclosure is described below with reference to accompanying drawings in more detail.Although shown exemplary embodiment of the present disclosure in the accompanying drawing, yet should be appreciated that and to realize the disclosure and the embodiment that should do not set forth limits here with various forms.On the contrary, it is in order to understand the disclosure more thoroughly that these embodiment are provided, and can with the scope of the present disclosure complete convey to those skilled in the art.
Core idea of the present invention is, by integrated at least two kernels in same browser, make browser initiatively select adaptive kernel according to presetting rule for the webpage of user's access, rather than the complete kernel of blindly being selected Web page loading by user oneself, and under the prerequisite that does not affect user IE use, the page loading IE6 kernel that shows being fit to IE6, the page that is fit to the IE8 demonstration loads the IE8 kernel, and the user browses most complete compatibility and suitability under the complex environment to reach.
With reference to figure 1, show the flow chart of steps of the embodiment of the method 1 that a kind of different editions IE kernel based on many kernel browsers of the present invention switches, specifically can may further comprise the steps:
Step 101, the solicited message of reception Web page loading comprises URL information in the described request information;
As a kind of example, the indication of the loading webpage that the solicited message of described Web page loading can be sent for the user, for example, the user can fetch and opens a webpage by clicking certain chain, perhaps opens a webpage in address field input network address.When the user clicks the indication of certain link, just be equivalent to receive the solicited message of user's Web page loading; Equally, when inputting certain network address at address field and clicking confirming button or press enter key, also be equivalent to receive the solicited message of user's Web page loading.
URL (Uniform Resoure Locator uniform resource locator) is the address of WWW webpage, and URL uses numeral and letter to arrange in certain sequence to determine an address.First part of URL Http: //Expression be the type of the file that will access.On the net, this almost always uses http (meaning is Hypertext Transfer Protocol(HTTP), and hypertext transfer protocol is because it is the agreement of changing webpage.)
URL from left to right is comprised of following part:
Internet resource type (scheme): point out that the WWW CLIENT PROGRAM is used for the instrument that C does.As " Http: //" the expression www server, " ftp: // " the expression ftp server, " gopher: // " expression Gopher server, and " new: " expression Newgroup newsgroup.
Server address (host): the server domain name of pointing out WWW webpage place.
Port (port): sometimes (being not always like this) concerning the access of some resource, need provide corresponding server port numbers is provided.
Path (path): the position (its form is the same with form in the DOS system, usually is comprised of the such structure of catalogue/sub-directory/filename) that indicates certain resource on the server.The same with port, the path is not always to need.
The URL address format is arranged as: scheme: //host:port/path, for example Http:// www.maogoo.com/bbsIt is exactly a typical URL address.Browser is at first seen http (HTTP), and what just know processing is html link.Ensuing Www.maogoo.comBeing site address, is catalogue/bbs at last.
Step 102 is known the webpage of described request loading and the fitting relation between the browser kernel according to presetting rule;
Step 103 is selected corresponding browser kernel according to described fitting relation;
In a preferred embodiment of the present invention, described according to presetting rule know webpage that described request loads and the fitting relation between the described browser kernel step can for, know the described browser kernel adaptive with the webpage of described request loading according to presetting rule; In this case, described according to fitting relation select corresponding browser kernel step can for, select the adaptive browser kernel of webpage that loads with described request.
In another kind of preferred embodiment of the present invention, described according to presetting rule know webpage that described request loads and the fitting relation between the described browser kernel step can for, know the browser kernel not adaptive with the webpage of described request loading according to presetting rule; Described according to fitting relation select corresponding browser kernel step can for, selects browser kernel outside the described not adaptive kernel to load the webpage of described request loading.For example, browser has core A, B, C, knows that the webpage of request of loading and core A are not adaptive, and then optional kernel loads this webpage and gets final product in kernel B, C]; Perhaps, know the adaptive browser kernel of webpage that loads with described request according to presetting rule, select described adaptive browser kernel (for example to load webpage that described request loads, browser has core A, B, C, webpage and the core A of knowing request of loading are not adaptive, and know that C kernel and webpage are adaptive, get final product so select the C kernel to load this webpage.
In another preferred embodiment of the present invention, described according to presetting rule know webpage that described request loads and the fitting relation between the described browser kernel step can for, know the fitting relation between the browser kernel of the webpage of described request loading and current acquiescence according to presetting rule; Described armpit according to fitting relation select corresponding browser kernel step can for, if the webpage that described request loads is adaptive with the browser kernel of current acquiescence, then select the browser kernel loading of described current acquiescence; Otherwise, select the browser kernel outside the current acquiescence kernel.
(kernel of this acquiescence can be that the user arranges because many kernel browsers may have the kernel of a current acquiescence, also can be that browser arranges voluntarily), namely in the situation of not doing any operation, browser uses the kernel loads webpage of this current acquiescence.In this embodiment, what know according to presetting rule is fitting relation between the browser kernel of the webpage that loads of described request and current acquiescence, namely, whether the browser kernel that can judge webpage that described request loads and current acquiescence is adaptive, if adaptive, then select the browser kernel of described current acquiescence to load the webpage that described request loads; Otherwise, select the browser kernel outside the current acquiescence kernel to load the webpage that described request loads., can have multiple about knowing webpage that described request loads and the concrete grammar of the fitting relation between the described browser kernel, for example, can according to the specific adaptation rule that presets and/or General adaptive rule, know the webpage of described request loading and the fitting relation between the described browser kernel; Wherein, the described specific adaptation rule that presets comprises the fitting relation between webpage and the kernel, and described General adaptive rule is included as the fastest browser kernel of the average loading velocity of user selection or is the user selection browser kernel adaptive to network standard.Certainly, said method is only as example, it all is feasible that those skilled in the art adopt any webpage of knowing that described request loads and the method for the fitting relation between the browser kernel according to actual conditions, for example, being pursuant to browser sends about loading the new solicited message of described webpage according to the server of the described request information that receives to correspondence, server can return response message for described new solicited message, in response message, can carry the information such as content of pages of some webpages, therefore under this method, can also be according to the content and the presetting rule that obtain for the response message of described new solicited message returned from server, again know the adaptive modes such as browser kernel of webpage that load with described request, the present invention need not this to be limited.
Step 104, when selected browser kernel was the IE kernel, browser process was judged current adaptive IE kernel version according to described URL information;
In embodiments of the present invention, described IE kernel refers to adopt IE (Internet Explorer) browser kernel, the IE6 kernel namely refers to adopt the browser kernel of IE6 (Internet Explorer 6), novel I E kernel comprises the IE kernel of IE8 kernel and the above version of IE8, the IE8 kernel namely refers to adopt the browser kernel of IE8 (Internet Explorer 8), and the IE kernel of the above version of IE8 namely refers to adopt the browser kernel of the more highest version that IE9, IE10 etc. may occur.
For making those skilled in the art understand better the present invention, in this manual, a kind of example of IE8 kernel as novel I E kernel described.
Be well known that process is a program of carrying out, the program example that is namely moving in the computing machine; It can be distributed to processor and be carried out by processor as an entity.From the user point of view, browser process can be understood as the process of the browser representative that starts in task manager.
In a preferred embodiment of the present invention, described step 104 specifically can comprise following substep:
If the uniform resource position mark URL information that substep S121 active user submits to is lan address, judge that then current adaptive IE kernel version number is the IE6 kernel;
If the uniform resource position mark URL information that substep S122 active user submits to comprises the IP address, judge that then current adaptive IE kernel version number is the IE6 kernel;
If the uniform resource position mark URL information that substep S123 active user submits to is included in the compatible domain name tabulation of IE8 kernel, judge that then current adaptive IE kernel version number is the IE8 kernel.
Be that browser process can be judged the information of access domain name before each page began to connect, if lan address or be that the HTTP of pure IP address asks is then opened the IE6 pattern; According to the compatible domain name tabulation of IE8 kernel in the reality, judge the IE8 pattern of opening.In specific implementation, for other situation, other IE kernel that can the use system carries.
Need to prove, above-mentioned substep S121---S123 only be used for to describe browser process is judged current adaptive IE kernel version according to URL information several processing modes, be not subjected to the restriction of described sequence of movement, it will be appreciated by persons skilled in the art that some step can adopt other the order or carry out simultaneously.
In practice, if novel I E kernel is the IE kernel of the above version of IE8, then described step 104 can also comprise following substep:
If the uniform resource position mark URL information that the active user submits to is included in the compatible domain name tabulation of novel I E kernel, judge that then current adaptive IE kernel version number is the novel I E kernel of correspondence.
In specific implementation, can preset IE6 kernel file and novel I E kernel file in client, in a preferred embodiment of the present invention, described novel I E kernel file can be the IE8 kernel file, and then described IE6 kernel file and IE8 kernel file can comprise:
The dynamic link library (DLL) of the dynamic link library (DLL) of IE6 kernel and IE8 kernel;
The data file of the data file of IE6 kernel and IE8 kernel;
The language pack file of IE6 kernel and the language pack file of IE8 kernel;
And, the registration table configuration file of IE6 kernel and the registration table configuration file of IE8 kernel.
Wherein, dynamic link library (DLL) is the abbreviated form of Dynamic Link Library, and DLL is one and comprises the code that can be used simultaneously by a plurality of programs and the storehouse of data that DLL is not executable file.Dynamic link provides a kind of method, makes process can call the function that does not belong to its executable code.The executable code of function is arranged in a DLL, and this DLL comprises and one or morely is compiled, links and separate the function of storing with the process of using them.DLL also helps to share data and resource.A plurality of application programs are the content of single DLL copy in the access memory simultaneously.By using DLL, program can realize modularization, is comprised of relatively independent assembly.
In the present embodiment, can IE6 kernel file and the novel I E kernel file that preset be stored in the client by following substep:
Substep S01, extract the dynamic link library (DLL) of IE6 kernel from the IE6 kernel, extract the dynamic link library (DLL) of IE8 kernel from the IE8 kernel;
Substep S02, generate data file and the language pack file of IE6 kernel through Commissioning Analysis, and, the language pack file of the data file of IE8 kernel and IE8 kernel;
Substep S03, the dynamic link library (DLL) with described IE6 kernel, data file and language pack file, and the dynamic link library (DLL) of IE8 kernel, data file and language pack file are mounted to the assigned address of client;
For example, with dynamic link library (DLL), data file and the language pack file of described IE6 kernel, and the dynamic link library (DLL) of IE8 kernel, data file and language pack file are mounted under certain catalogue of client.
In specific implementation, the associated documents of above-mentioned IE6 kernel, and the associated documents of IE8 kernel can be stored in respectively under the different directories of client; Perhaps, can be stored to same catalogue yet, but mark respectively its version number's sign for each file, the present invention is not restricted this.
The registration table configuration file of substep S04, generation IE6 kernel and IE8 kernel, and import in the registration table of described client.
Browser based on the IE kernel, very many by kernel DLL static, that dynamical fashion loads, these DLL may be relevant with the operating system bottom, may also need to quote some registry entries, data file or language pack file, needs progressively to analyze generation by debugging.
More preferably, described substep S01 may further include following substep:
Substep S01-11, all system application interface APIs relevant with the IE6 kernel loads of heavy duty;
Substep S01-12, check interface by monitoring dynamic link library (DLL), obtain all dynamic link library (DLL)s that browser loads;
For example, by monitoring LoadLibrary interface (or other module reader), obtain all DLL that browser loads.
The dynamic link library (DLL) of substep S01-13, removal system bottom, the dynamic link library (DLL) of extraction IE6 kernel.
And,
Substep S01-21, all system application interface APIs relevant with the IE8 kernel loads of heavy duty;
Substep S01-22, check interface by monitoring dynamic link library (DLL), obtain all dynamic link library (DLL)s that browser loads;
The dynamic link library (DLL) of substep S01-23, removal system bottom, the dynamic link library (DLL) of extraction IE8 kernel.
Need to prove, above-mentioned substep is only exemplarily described the IE6 kernel file that will preset and novel I E kernel file and is stored in processing procedure in the client, be not subjected to the restriction of described sequence of movement, it will be appreciated by persons skilled in the art that some step can adopt other the order or carry out simultaneously.
If the current adaptive IE kernel version number of step 105 is the IE6 kernel, then browser process is called default IE kernel and is redirected module, is redirected to the relevant position and loads the IE6 kernel file that presets;
Be redirected, literal being directly transferred to the B file to the operation of certain A file.Such as reading and writing, attribute or even the deletion actions such as length or end-of-file (EOF) pointer are set.
In a kind of preferential embodiment of the present invention, described default IE kernel is redirected module can be redirected to the operation that the relevant position loads the IE6 kernel file that presets by following substep execution:
Substep S11, when monitoring browser process access registration table, if access IE configuration item then guides the registration table configuration file of browser process read-write IE6 kernel; If the information of the client assigned address that the IE6 kernel file imports is then returned in the path of inquiry IE kernel file;
Substep S12, when monitoring browser process access dynamic link library (DLL), version number according to current adaptive IE6 kernel, navigate to the client assigned address that corresponding IE6 kernel file imports, and to the dynamic link library (DLL) of this location lookup same names, if find, then guide browser process to load this dynamic link library (DLL);
Substep S13, when monitoring browser process visit data file, language pack file, version number according to current adaptive IE6 kernel, navigate to the client assigned address that corresponding IE6 kernel file imports, and to data file and the language pack file of this location lookup same names, if find, then guide browser process to load this data file and language pack file;
Substep S14, when monitoring browser process and create com object, from the registration table of described client, search the dynamic link library (DLL) of realizing this com object, then call described substep S12;
Wherein, com object (The Component Object Model the Component Object Model) be follow the COM standard write, with the binary code carried out of Win32 dynamic link library (DLL) or executable file (EXE) form issue, can satisfy all demands to component architecture.Follow the codes and standards of COM, can interoperability between assembly and application, assembly and the assembly, set up extremely easily telescopic application system.Com object be one use the COM specification can reusable component software.Use the COM specification can guarantee that com object well works, and be attached to easily in your application program.In fact, COM is equivalent to a black box substantially, and this black box can be finished a lot of work for your application program.Com object generally uses dynamic link libraries (DLL) to realize.The same with common DLL, com object exposes certain methods, and application program can be called out it, in order to finish the operation of any support.
Substep S15, when monitoring browser process access DLL kernel handler, call described substep S12.
Wherein, handle is unique integer that windows is used for setting up in the signage applications program or that use, and windows has used a large amount of handles to indicate a lot of objects.But handle is not a pointer, and program can not utilize its handle to come information in the direct reading file.
Need to prove, above-mentioned substep S11-S15 only is used for describing default IE kernel and is redirected several modes that module is carried out redirect operation, be not subjected to the restriction of described sequence of movement, it will be appreciated by persons skilled in the art that some step can adopt other the order or carry out simultaneously.
If the current adaptive IE kernel version of step 106 is novel I E kernel, then browser process is called default IE kernel and is redirected module, is redirected to the relevant position and loads the novel I E kernel file that presets.
In a kind of preferential embodiment of the present invention, described default IE kernel is redirected module can be redirected to the operation that the relevant position loads the IE8 kernel file that presets by following substep execution:
Substep S21, when monitoring browser process access registration table, if access IE configuration item then guides the registration table configuration file of browser process read-write IE8 kernel; If the information of the client assigned address that the IE8 kernel file imports is then returned in the path of inquiry IE kernel file;
Substep S22, when monitoring browser process access dynamic link library (DLL), version number according to current adaptive IE8 kernel, navigate to the client assigned address that corresponding IE8 kernel file imports, and to the dynamic link library (DLL) of this location lookup same names, if find, then guide browser process to load this dynamic link library (DLL);
Substep S23, when monitoring browser process visit data file, language pack file, version number according to current adaptive IE8 kernel, navigate to the client assigned address that corresponding IE8 kernel file imports, and to data file and the language pack file of this location lookup same names, if find, then guide browser process to load this data file and language pack file;
Substep S24, when monitoring browser process and create com object, from the registration table of described client, search the dynamic link library (DLL) of realizing this com object, then call described substep S22;
Substep S25, when monitoring browser process access DLL kernel handler, call described substep S22.
Need to prove, above-mentioned substep S21-S25 only is used for describing default IE kernel and is redirected several modes that module is carried out redirect operation, be not subjected to the restriction of described sequence of movement, it will be appreciated by persons skilled in the art that some step can adopt other the order or carry out simultaneously.
Particularly, in embodiments of the present invention, being redirected of described IE kernel file refers to mainly that when browser creates steering program specified path load document mainly comprises:
1, the IE kernel is redirected.Make browser load the indicated release kernel objects, the heavily loaded realization API of system, specifically can adopt:
CoCreateInstance: create document and frame assembly
CoGetClassO bject: create script engine and scripting object
CoCreateInstanceEx: create the expansion interfaces such as writing system
2, DLL is redirected.Some functional modules may realize in the DLL mode, also need heavily loaded system API to be redirected, and specifically can adopt:
LoadLibrary/LoadLibrary: realize that DLL loads
FreeLibrary: realize that DLL discharges
3, registration table is redirected.Make browser load/preserve the configuration data of indicated release, the heavily loaded realization API of system, specifically can adopt:
RegOpenKeyEx: open the registration table key assignments with read-write
Certainly, said method is only as example, in specific implementation, those skilled in the art adopt default IE kernel to be redirected module to use the IE kernel file that method that other kernel is redirected loads corresponding version all be feasible, the present invention need not this to be limited.
As the concrete a kind of example used of the embodiment of the invention, described default IE kernel is redirected module can be dynamic link library file Tridentcore.dll.
In embodiments of the present invention, can also comprise the steps:
Adopt current adaptive browser kernel to load the webpage of described request.
Because what know according to presetting rule is the adaptive described browser kernel of webpage that loads with described request, therefore, can directly call the adaptive browser kernel of webpage that loads with described request and load the webpage that described request loads.The described browser of the embodiment of the invention is many kernel browsers, namely comprises at least two kinds of kernels in the browser.Because every kind of corresponding a code of kernel, therefore many kernel browsers are realized many parts of codes in browser, when selecting certain kernel loads webpage, call corresponding code and get final product.
With reference to figure 2, show the flow chart of steps of the changing method embodiment 2 of a kind of IE6 kernel of the application and novel I E kernel, wherein said browser comprises at least two kinds of browser kernels, wherein a kind of browser kernel is the IE kernel, described IE kernel comprises IE6 kernel and two versions of novel I E kernel at least, and present embodiment specifically can may further comprise the steps:
The solicited message of step 201, reception Web page loading comprises URL information in the described request information;
Step 202, know webpage that described request loads and the fitting relation between the browser kernel according to presetting rule;
Step 203, select corresponding browser kernel according to described fitting relation;
Step 204, when selected browser kernel is the IE kernel, when browser process starts, with described IE6 kernel file and IE8 kernel file write memory; And browser process is judged current adaptive IE kernel version according to described URL information;
If the current adaptive IE kernel version of step 205 is the IE6 kernel, then browser process is called default IE kernel and is redirected module, and the relevant position that is redirected in the client internal memory loads the IE6 kernel file that presets;
If the current adaptive IE kernel version of step 206 is novel I E kernel, then browser process is called default IE kernel and is redirected module, and the position of answering that is redirected in the phase client internal memory loads the novel I E kernel file that presets.
For making those skilled in the art understand better the present invention, below by a complete example handoff procedure of IE6 kernel of the present invention and IE8 kernel is described.
Steps A, with the main modular file of IE6 kernel and the main modular file of IE8 kernel, be installed in the assigned catalogue of client;
Wherein, the main modular file of the main modular file of described IE6 kernel and IE8 kernel comprises: the dynamic link library (DLL) of the dynamic link library (DLL) of IE6 kernel and IE8 kernel; The data file of the data file of IE6 kernel and IE8 kernel; The language pack file of IE6 kernel and the language pack file of IE8 kernel etc.
Step B, with the registration table configuration file of IE6 kernel and the registration table configuration file of IE8 kernel, import in the registration table of client;
When step C, browser startup, carry out following substep:
The access of substep C1, supervision registration table, DLL, internal memory, webpage (user's input or the URL that clicks);
The main modular file of substep C2, the main modular file that loads the IE6 kernel and IE8 kernel is in internal memory;
Step D, when browser receives the URL that the user submits to, calculate in the following manner the IE kernel version number that is fit to this URL:
If URL is lan address, then returning IE kernel version number is IE6 (using the IE6 kernel);
If URL comprises the IP address, then returning IE kernel version number is IE6 (using the IE6 kernel);
If it is IE8 (using the IE8 kernel) that URL in the compatible domain name tabulation of IE8, then returns IE kernel version number;
Other situation is returned 0 (the IE kernel that the use system is own).
Step e, browser begin to load kernel, when creating the page, can read and write registration table, loading DLL and data file, establishment com object, are specifically related to following operation:
1, when monitoring the browser access registration table, if access IE configuration item then guides the respective items that imports among its read-write step B; If the internal memory assigned address among the step C is then returned in inquiry IE kernel module path;
2, when monitoring browser access DLL, according to the IE kernel version number of calculating among the step D, navigate in the internal memory corresponding kernel file catalogue, search the DLL of same names in this kernel catalogue, if find, then guide browser process to load corresponding kernel file; Otherwise, the default module of guiding browser loading system;
3, when monitoring browser access data file, language pack file, according to the IE kernel version number of calculating among the step D, search corresponding document in the corresponding kernel file catalogue in the internal memory;
4, when monitoring browser establishment com object, from the registration table of step B, search the DLL that realizes this com object, carry out above step 2;
5, when monitoring browser access DLL kernel handler, carry out above step 2.
In this example, steps A, B can finish in installation process, carry out the C item when each browser process starts, and step D, E all carry out when each browsing pages.
Need to prove, for embodiment of the method, for simple description, so it all is expressed as a series of combination of actions, but those skilled in the art should know, the present invention is not subjected to the restriction of described sequence of movement, because according to the present invention, some step can adopt other orders or carry out simultaneously.Secondly, those skilled in the art also should know, the embodiment described in the instructions all belongs to preferred embodiment, and related action and module might not be that the present invention is necessary.
With reference to figure 3, show the structured flowchart of the system embodiment 1 that a kind of different editions IE kernel based on many kernel browsers of the present invention switches, wherein said browser comprises at least two kinds of browser kernels, wherein a kind of browser kernel is the IE kernel, and described IE kernel comprises IE6 kernel and two versions of novel I E kernel at least:
Described device specifically can comprise such as lower module:
Request receiving module 301 is suitable for receiving the solicited message of Web page loading, comprises uniform resource position mark URL information in the described request information;
Fitting relation acquisition module 302 is suitable for knowing the webpage of described request loading and the fitting relation between the browser kernel according to presetting rule;
Core Choice module 303 is suitable for selecting corresponding browser kernel according to described fitting relation,
Browser process 304 is suitable for when selected browser kernel is the IE kernel, judges current adaptive IE kernel version according to described uniform resource position mark URL information;
The IE kernel is redirected module 305, is suitable for when current adaptive IE kernel version is the IE6 kernel, is redirected to the relevant position and loads the IE6 kernel file that presets; And, when current adaptive IE kernel version is novel I E kernel, is redirected to the relevant position and loads the novel I E kernel file that presets.
In specific implementation, described novel I E kernel can be the IE8 kernel, and described novel I E kernel file can be the IE8 kernel file;
Perhaps, described novel I E kernel can be the IE kernel of the above version of IE8, and described novel I E kernel file can be the IE kernel file of the above version of IE8.
In a preferred embodiment of the present invention, described IE6 kernel file and IE8 kernel file can comprise following content:
The dynamic link library (DLL) of the dynamic link library (DLL) of IE6 kernel and IE8 kernel;
The data file of the data file of IE6 kernel and IE8 kernel;
The language pack file of IE6 kernel and the language pack file of IE8 kernel;
And, the registration table configuration file of IE6 kernel and the registration table configuration file of IE8 kernel.
As the concrete a kind of example used of the present invention, the described IE6 kernel file that presets and novel I E kernel file are stored in the client, specifically realize in the following manner:
From the dynamic link library (DLL) of IE6 kernel extraction IE6 kernel, extract the dynamic link library (DLL) of IE8 kernel from the IE8 kernel;
Through data file and the language pack file of Commissioning Analysis generation IE6 kernel, and, the language pack file of the data file of IE8 kernel and IE8 kernel;
With dynamic link library (DLL), data file and the language pack file of described IE6 kernel, and the dynamic link library (DLL) of IE8 kernel, data file and language pack file are mounted to the assigned address of client;
Generate the registration table configuration file of IE6 kernel and IE8 kernel, and import in the registration table of described client;
Wherein, described dynamic link library (DLL) from IE6 kernel extraction IE6 kernel, the substep that extracts the dynamic link library (DLL) of IE8 kernel from the IE8 kernel further comprises:
All system application interface APIs relevant with the IE6 kernel loads of heavy duty;
Check interface, all dynamic link library (DLL)s that the acquisition browser loads by monitoring dynamic link library (DLL);
The dynamic link library (DLL) of removal system bottom, the dynamic link library (DLL) of extraction IE6 kernel;
And,
All system application interface APIs relevant with the IE8 kernel loads of heavy duty;
Check interface, all dynamic link library (DLL)s that the acquisition browser loads by monitoring dynamic link library (DLL);
The dynamic link library (DLL) of removal system bottom, the dynamic link library (DLL) of extraction IE8 kernel.
With reference to figure 4, show the structured flowchart of the system embodiment 2 that a kind of different editions IE kernel based on many kernel browsers of the present invention switches, wherein said browser comprises at least two kinds of browser kernels, wherein a kind of browser kernel is the IE kernel, and described IE kernel comprises IE6 kernel and two versions of novel I E kernel at least:
Described device specifically can comprise such as lower module:
Request receiving module 401 is suitable for receiving the solicited message of Web page loading, comprises uniform resource position mark URL information in the described request information;
Fitting relation acquisition module 402 is suitable for knowing the webpage of described request loading and the fitting relation between the browser kernel according to presetting rule;
Core Choice module 403 is suitable for selecting corresponding browser kernel according to described fitting relation,
Internal memory writing module 404 is suitable for described IE6 kernel file and novel I E kernel file write memory;
Browser process 405 is suitable for when selected browser kernel is the IE kernel, judges current adaptive IE kernel version according to described uniform resource position mark URL information;
In a preferred embodiment of the present invention, described browser process 405 can comprise following submodule:
First judges submodule 4051, is suitable for judging that current adaptive IE kernel version number is the IE6 kernel when the uniform resource position mark URL information that the active user submits to is lan address;
Second judges submodule 4052, is suitable for judging that current adaptive IE kernel version number is the IE6 kernel when the uniform resource position mark URL information that the active user submits to comprises the IP address;
The 3rd judges submodule 4053, is suitable for judging that current adaptive IE kernel version number is the IE8 kernel when the uniform resource position mark URL information that the active user submits to is included in the compatible domain name tabulation of IE8 kernel.
More preferably, described browser process can also comprise following submodule:
The 4th judges submodule 4054, is suitable for when the uniform resource position mark URL information that the active user submits to is included in the compatible domain name tabulation of novel I E kernel, judges that current adaptive IE kernel version number is the novel I E kernel of correspondence.
The IE kernel is redirected module 406, is suitable for when current adaptive IE kernel version is the IE6 kernel, is redirected to the relevant position and loads the IE6 kernel file that presets; And, when current adaptive IE kernel version is novel I E kernel, is redirected to the relevant position and loads the novel I E kernel file that presets.
With reference to figure 5, show in a preferred embodiment of the present invention, described IE kernel is redirected the submodule that module 406 comprises:
The first registry operations submodule 4061 is suitable for when monitoring browser process access registration table, if access IE configuration item then guides browser process to read and write the registration table configuration file of IE6 kernel; If the information of the client assigned address that the IE6 kernel file imports is then returned in the path of inquiry IE kernel file;
The one DLL operates submodule 4062, be suitable for when monitoring browser process access dynamic link library (DLL), version number according to current adaptive IE6 kernel, navigate to the client assigned address that corresponding IE6 kernel file imports, and to the dynamic link library (DLL) of this location lookup same names, if find, then guide browser process to load this dynamic link library (DLL);
The first relevant file operation submodule 4063, be suitable for when monitoring browser process visit data file, language pack file, version number according to current adaptive IE6 kernel, navigate to the client assigned address that corresponding IE6 kernel file imports, and to data file and the language pack file of this location lookup same names, if find, then guide browser process to load this data file and language pack file;
The first com object creates submodule 4064, is suitable for from the registration table of described client, searching the dynamic link library (DLL) of realizing this com object when monitoring browser process establishment com object, then calls described DLL operation submodule 4062;
The one DLL kernel handler operation submodule 4065 is suitable for calling described DLL operation submodule 4062 when monitoring browser process access DLL kernel handler;
The second registry operations submodule 4066 is suitable for when monitoring browser process access registration table, if access IE configuration item then guides browser process to read and write the registration table configuration file of IE8 kernel; If the information of the client assigned address that the IE8 kernel file imports is then returned in the path of inquiry IE kernel file;
The 2nd DLL operates submodule 4067, be suitable for when monitoring browser process access dynamic link library (DLL), version number according to current adaptive IE8 kernel, navigate to the client assigned address that corresponding IE8 kernel file imports, and to the dynamic link library (DLL) of this location lookup same names, if find, then guide browser process to load this dynamic link library (DLL);
The second relevant file operation submodule 4068, be suitable for when monitoring browser process visit data file, language pack file, version number according to current adaptive IE8 kernel, navigate to the client assigned address that corresponding IE8 kernel file imports, and to data file and the language pack file of this location lookup same names, if find, then guide browser process to load this data file and language pack file;
The second com object creates submodule 4069, is suitable for from the registration table of described client, searching the dynamic link library (DLL) of realizing this com object when monitoring browser process establishment com object, then calls described the 2nd DLL operation submodule 4067;
The 2nd DLL kernel handler operation submodule 4070 is suitable for calling described the 2nd DLL operation submodule 4067 when monitoring browser process access DLL kernel handler.
As the concrete a kind of example used of the embodiment of the invention, described default IE kernel is redirected module can be dynamic link library file Tridentcore.dll.
In embodiments of the present invention, can also comprise the webpage load-on module, be suitable for adopting current adaptive browser kernel to load the webpage of described request.
In a preferred embodiment of the present invention, described fitting relation acquisition module 402 can comprise following submodule:
First obtains submodule, is suitable for knowing the adaptive described browser kernel of webpage that loads with described request according to presetting rule;
Described Core Choice module 403 can comprise following submodule:
The first chooser module is suitable for selecting the browser kernel adaptive with the webpage of described request loading;
And/or,
Described fitting relation acquisition module 402 can comprise following submodule:
Second obtains submodule, is suitable for knowing the not adaptive browser kernel of webpage that loads with described request according to presetting rule;
Described Core Choice module 403 can comprise following submodule:
The second chooser module is suitable for selecting the browser kernel outside the described not adaptive kernel to load the webpage that described request loads;
And/or,
Described fitting relation acquisition module 402 can comprise following submodule:
The 3rd obtains submodule, is suitable for knowing fitting relation between the browser kernel of webpage that described request loads and current acquiescence according to presetting rule;
Described Core Choice module 403 can comprise following submodule:
The 3rd chooser module if it is adaptive with the browser kernel of current acquiescence to be suitable for the webpage that described request loads, is then selected the browser kernel loading of described current acquiescence; Otherwise, select the browser kernel outside the current acquiescence kernel.
As a kind of example, described presetting rule can comprise specific adaptation rule and/or the General adaptive rule that presets, wherein, the described specific adaptation rule that presets comprises the fitting relation between webpage and the kernel, and described General adaptive rule is included as the fastest browser kernel of the average loading velocity of user selection or is the user selection browser kernel adaptive to network standard.
For device embodiment because itself and preceding method embodiment basic simlarity, so describe fairly simple, relevant part gets final product referring to the part explanation of embodiment of the method.
With reference to figure 6, show the structured flowchart of a kind of browser of the present invention, wherein said browser 50 comprises at least two kinds of browser kernels, wherein a kind of browser kernel is IE kernel 51, another kind of browser kernel is other kernel 52 except the IE kernel, and described IE kernel comprises IE6 kernel and two versions of novel I E kernel at least: described browser comprises:
Request receiving module 501 is suitable for receiving the solicited message of Web page loading, comprises uniform resource position mark URL information in the described request information;
Fitting relation acquisition module 502 is suitable for knowing the webpage of described request loading and the fitting relation between the browser kernel according to presetting rule;
Core Choice module 503 is suitable for selecting corresponding browser kernel according to described fitting relation,
Browser process 504 is suitable for when selected browser kernel is the IE kernel, judges current adaptive IE kernel version according to described uniform resource position mark URL information;
The IE kernel is redirected module 505, is suitable for when current adaptive IE kernel version is the IE6 kernel, is redirected to the relevant position and loads the IE6 kernel file that presets; And, when current adaptive IE kernel version is novel I E kernel, is redirected to the relevant position and loads the novel I E kernel file that presets.
For above-described embodiment because itself and preceding method embodiment basic simlarity, so describe fairly simple, relevant part gets final product referring to the part explanation of embodiment of the method.
Each embodiment in this instructions all adopts the mode of going forward one by one to describe, and what each embodiment stressed is and the difference of other embodiment that identical similar part is mutually referring to getting final product between each embodiment.
Intrinsic not relevant with any certain computer, virtual system or miscellaneous equipment with demonstration at this algorithm that provides.Various general-purpose systems also can be with using based on the teaching at this.According to top description, it is apparent constructing the desired structure of this type systematic.In addition, the present invention is not also for any certain programmed language.Should be understood that and to utilize various programming languages to realize content of the present invention described here, and the top description that language-specific is done is in order to disclose preferred forms of the present invention.
In the instructions that provides herein, a large amount of details have been described.Yet, can understand, embodiments of the invention can be put into practice in the situation of these details not having.In some instances, be not shown specifically known method, structure and technology, so that not fuzzy understanding of this description.
Similarly, be to be understood that, in order to simplify the disclosure and to help to understand one or more in each inventive aspect, in the description to exemplary embodiment of the present invention, each feature of the present invention is grouped together in single embodiment, figure or the description to it sometimes in the above.Yet the method for the disclosure should be construed to the following intention of reflection: namely the present invention for required protection requires the more feature of feature clearly put down in writing than institute in each claim.Or rather, as following claims reflected, inventive aspect was to be less than all features of the disclosed single embodiment in front.Therefore, follow claims of embodiment and incorporate clearly thus this embodiment into, wherein each claim itself is as independent embodiment of the present invention.
Those skilled in the art are appreciated that and can adaptively change and they are arranged in one or more equipment different from this embodiment the module in the equipment among the embodiment.Can be combined into a module or unit or assembly to the module among the embodiment or unit or assembly, and can be divided into a plurality of submodules or subelement or sub-component to them in addition.In such feature and/or process or unit at least some are mutually repelling, and can adopt any combination to disclosed all features in this instructions (comprising claim, summary and the accompanying drawing followed) and so all processes or the unit of disclosed any method or equipment make up.Unless in addition clearly statement, disclosed each feature can be by providing identical, being equal to or the alternative features of similar purpose replaces in this instructions (comprising claim, summary and the accompanying drawing followed).
In addition, those skilled in the art can understand, although embodiment more described herein comprise some feature rather than further feature included among other embodiment, the combination of the feature of different embodiment means and is within the scope of the present invention and forms different embodiment.For example, in the following claims, the one of any of embodiment required for protection can be used with array mode arbitrarily.
All parts embodiment of the present invention can realize with hardware, perhaps realizes with the software module of moving at one or more processor, and perhaps the combination with them realizes.It will be understood by those of skill in the art that and to use in practice microprocessor or digital signal processor (DSP) to realize according to some or all some or repertoire of parts in the terminal security service equipment of the embodiment of the invention.The present invention can also be embodied as be used to part or all equipment or the device program (for example, computer program and computer program) of carrying out method as described herein.Such realization program of the present invention can be stored on the computer-readable medium, perhaps can have the form of one or more signal.Such signal can be downloaded from internet website and obtain, and perhaps provides at carrier signal, perhaps provides with any other form.
It should be noted above-described embodiment the present invention will be described rather than limit the invention, and those skilled in the art can design alternative embodiment in the situation of the scope that does not break away from claims.In the claims, any reference symbol between bracket should be configured to limitations on claims.Word " comprises " not to be got rid of existence and is not listed in element or step in the claim.Being positioned at word " " before the element or " one " does not get rid of and has a plurality of such elements.The present invention can realize by means of the hardware that includes some different elements and by means of the computing machine of suitably programming.In having enumerated the unit claim of some devices, several in these devices can be to come imbody by same hardware branch.The use of word first, second and C grade does not represent any order.Can be title with these word explanations.

Claims (27)

1. method of switching based on the different editions IE kernel of many kernel browsers, wherein said browser comprises at least two kinds of browser kernels, wherein a kind of browser kernel is the IE kernel, and described IE kernel comprises IE6 kernel and two versions of novel I E kernel at least:
Described method comprises:
Receive the solicited message of Web page loading, comprise uniform resource position mark URL information in the described request information;
Know the webpage of described request loading and the fitting relation between the browser kernel according to presetting rule;
Select corresponding browser kernel according to described fitting relation, when selected browser kernel was the IE kernel, browser process was judged current adaptive IE kernel version according to described uniform resource position mark URL information;
If current adaptive IE kernel version is the IE6 kernel, then browser process is called default IE kernel and is redirected module, is redirected to the relevant position and loads the IE6 kernel file that presets;
If current adaptive IE kernel version is novel I E kernel, then browser process is called default IE kernel and is redirected module, is redirected to the relevant position and loads the novel I E kernel file that presets.
2. the method for claim 1, described novel I E kernel is the IE8 kernel, described novel I E kernel file is the IE8 kernel file;
Perhaps, the IE kernel that described novel I E kernel is the above version of IE8, the IE kernel file that described novel I E kernel file is the above version of IE8.
3. method as claimed in claim 2, described IE6 kernel file and IE8 kernel file comprise:
The dynamic link library (DLL) of the dynamic link library (DLL) of IE6 kernel and IE8 kernel;
The data file of the data file of IE6 kernel and IE8 kernel;
The language pack file of IE6 kernel and the language pack file of IE8 kernel;
And, the registration table configuration file of IE6 kernel and the registration table configuration file of IE8 kernel.
4. method as claimed in claim 3, the described IE6 kernel file that presets and novel I E kernel file are stored in the client, specifically realize by following substep:
From the dynamic link library (DLL) of IE6 kernel extraction IE6 kernel, extract the dynamic link library (DLL) of IE8 kernel from the IE8 kernel;
Through data file and the language pack file of Commissioning Analysis generation IE6 kernel, and, the language pack file of the data file of IE8 kernel and IE8 kernel;
With dynamic link library (DLL), data file and the language pack file of described IE6 kernel, and the dynamic link library (DLL) of IE8 kernel, data file and language pack file are mounted to the assigned address of client;
Generate the registration table configuration file of IE6 kernel and IE8 kernel, and import in the registration table of described client.
5. method as claimed in claim 4 is describedly extracted the dynamic link library (DLL) of IE6 kernel from the IE6 kernel, and the substep that extracts the dynamic link library (DLL) of IE8 kernel from the IE8 kernel comprises:
All system application interface APIs relevant with the IE6 kernel loads of heavy duty;
Check interface, all dynamic link library (DLL)s that the acquisition browser loads by monitoring dynamic link library (DLL);
The dynamic link library (DLL) of removal system bottom, the dynamic link library (DLL) of extraction IE6 kernel;
And,
All system application interface APIs relevant with the IE8 kernel loads of heavy duty;
Check interface, all dynamic link library (DLL)s that the acquisition browser loads by monitoring dynamic link library (DLL);
The dynamic link library (DLL) of removal system bottom, the dynamic link library (DLL) of extraction IE8 kernel.
6. such as claim 1---the described method of each claim in 5, the uniform resource position mark URL information that described browser process User is submitted to, judge that the step of current adaptive IE kernel version number further comprises:
If the uniform resource position mark URL information that the active user submits to is lan address, judge that then current adaptive IE kernel version number is the IE6 kernel;
If the uniform resource position mark URL information that the active user submits to comprises the IP address, judge that then current adaptive IE kernel version number is the IE6 kernel;
If the uniform resource position mark URL information that the active user submits to is included in the compatible domain name tabulation of IE8 kernel, judge that then current adaptive IE kernel version number is the IE8 kernel.
7. such as claim 1---the described method of each claim in 5, the uniform resource position mark URL information that described browser process User is submitted to, judge that the step of current adaptive IE kernel version number also comprises:
If the uniform resource position mark URL information that the active user submits to is included in the compatible domain name tabulation of novel I E kernel, judge that then current adaptive IE kernel version number is the novel I E kernel of correspondence.
8. such as claim 3,4 or 5 described methods, described default IE kernel is redirected module and is redirected to the operation that the relevant position loads the IE6 kernel file that presets by following substep execution:
When monitoring browser process access registration table, if access IE configuration item then guides browser process to read and write the registration table configuration file of IE6 kernel; If the information of the client assigned address that the IE6 kernel file imports is then returned in the path of inquiry IE kernel file;
When monitoring browser process access dynamic link library (DLL), version number according to current adaptive IE6 kernel, navigate to the client assigned address that corresponding IE6 kernel file imports, and to the dynamic link library (DLL) of this location lookup same names, if find, then guide browser process to load this dynamic link library (DLL);
When monitoring browser process visit data file, language pack file, version number according to current adaptive IE6 kernel, navigate to the client assigned address that corresponding IE6 kernel file imports, and to data file and the language pack file of this location lookup same names, if find, then guide browser process to load this data file and language pack file;
When monitoring browser process establishment com object, from the registration table of described client, search the dynamic link library (DLL) of realizing this com object, then call described processing substep when monitoring browser process access dynamic link library (DLL);
When monitoring browser process access DLL kernel handler, call described processing substep when monitoring browser process access dynamic link library (DLL).
9. such as claim 3,4 or 5 described methods, described default IE kernel is redirected module and is redirected to the operation that the relevant position loads the IE8 kernel file that presets by following substep execution:
When monitoring browser process access registration table, if access IE configuration item then guides browser process to read and write the registration table configuration file of IE8 kernel; If the information of the client assigned address that the IE8 kernel file imports is then returned in the path of inquiry IE kernel file;
When monitoring browser process access dynamic link library (DLL), version number according to current adaptive IE8 kernel, navigate to the client assigned address that corresponding IE8 kernel file imports, and to the dynamic link library (DLL) of this location lookup same names, if find, then guide browser process to load this dynamic link library (DLL);
When monitoring browser process visit data file, language pack file, version number according to current adaptive IE8 kernel, navigate to the client assigned address that corresponding IE8 kernel file imports, and to data file and the language pack file of this location lookup same names, if find, then guide browser process to load this data file and language pack file;
When monitoring browser process establishment com object, from the registration table of described client, search the dynamic link library (DLL) of realizing this com object, then call described processing substep when monitoring browser process access dynamic link library (DLL);
When monitoring browser process access DLL kernel handler, call described processing substep when monitoring browser process access dynamic link library (DLL).
10. the method for claim 1 also comprises:
With described IE6 kernel file and novel I E kernel file write memory;
It is described that to be redirected to the step that the relevant position loads the IE6 kernel file preset be that the relevant position that is redirected in the internal memory loads the described IE6 kernel file that presets;
It is described that to be redirected to the step that the relevant position loads the IE8 kernel file preset be that the relevant position that is redirected in the internal memory loads the described IE8 kernel file that presets.
11. the method for claim 1, it is dynamic link library file Tridentcore.dll that described default IE kernel is redirected module.
12. the method for claim 1 also comprises:
Adopt current adaptive browser kernel to load the webpage of described request.
13. the method for claim 1 describedly knows that according to presetting rule the webpage that described request loads comprises with the step of the fitting relation between the described browser kernel: know the described browser kernel adaptive with the webpage of described request loading according to presetting rule;
Described step according to browser kernel corresponding to fitting relation selection comprises: select the browser kernel adaptive with the webpage of described request loading;
And/or,
Describedly know that according to presetting rule the webpage that described request loads comprises with the step of the fitting relation between the described browser kernel: know the browser kernel not adaptive with the webpage of described request loading according to presetting rule;
Describedly select the step of corresponding browser kernel to comprise according to fitting relation: to select browser kernel outside the described not adaptive kernel to load the webpage of described request loading;
And/or,
Describedly know that according to presetting rule the webpage that described request loads comprises with the step of the fitting relation between the described browser kernel: know the fitting relation between the browser kernel of the webpage of described request loading and current acquiescence according to presetting rule;
Described step according to browser kernel corresponding to fitting relation selection comprises: if the browser kernel of the webpage that described request loads and current acquiescence is adaptive, then select the browser kernel of described current acquiescence to load; Otherwise, select the browser kernel outside the current acquiescence kernel.
14. such as claim 1 or 13 described methods, described presetting rule comprises specific adaptation rule and/or the General adaptive rule that presets, wherein, the described specific adaptation rule that presets comprises the fitting relation between webpage and the kernel, and described General adaptive rule is included as the fastest browser kernel of the average loading velocity of user selection or is the user selection browser kernel adaptive to network standard.
15. device that switches based on the different editions IE kernel of many kernel browsers, wherein said browser comprises at least two kinds of browser kernels, wherein a kind of browser kernel is the IE kernel, and described IE kernel comprises IE6 kernel and two versions of novel I E kernel at least:
Described device comprises:
The request receiving module is suitable for receiving the solicited message of Web page loading, comprises uniform resource position mark URL information in the described request information;
The fitting relation acquisition module is suitable for knowing the webpage of described request loading and the fitting relation between the browser kernel according to presetting rule;
The Core Choice module is suitable for selecting corresponding browser kernel according to described fitting relation,
Browser process is suitable for when selected browser kernel is the IE kernel, judges current adaptive IE kernel version according to described uniform resource position mark URL information;
The IE kernel is redirected module, is suitable for when current adaptive IE kernel version is the IE6 kernel, is redirected to the relevant position and loads the IE6 kernel file that presets; And, when current adaptive IE kernel version is novel I E kernel, is redirected to the relevant position and loads the novel I E kernel file that presets.
16. device as claimed in claim 15, described novel I E kernel is the IE8 kernel, and described novel I E kernel file is the IE8 kernel file;
Perhaps, the IE kernel that described novel I E kernel is the above version of IE8, the IE kernel file that described novel I E kernel file is the above version of IE8.
17. device as claimed in claim 16, described IE6 kernel file and IE8 kernel file comprise:
The dynamic link library (DLL) of the dynamic link library (DLL) of IE6 kernel and IE8 kernel;
The data file of the data file of IE6 kernel and IE8 kernel;
The language pack file of IE6 kernel and the language pack file of IE8 kernel;
And, the registration table configuration file of IE6 kernel and the registration table configuration file of IE8 kernel.
18. device as claimed in claim 17, the described IE6 kernel file that presets and novel I E kernel file are stored in the client, specifically realize by following substep:
From the dynamic link library (DLL) of IE6 kernel extraction IE6 kernel, extract the dynamic link library (DLL) of IE8 kernel from the IE8 kernel;
Through data file and the language pack file of Commissioning Analysis generation IE6 kernel, and, the language pack file of the data file of IE8 kernel and IE8 kernel;
With dynamic link library (DLL), data file and the language pack file of described IE6 kernel, and the dynamic link library (DLL) of IE8 kernel, data file and language pack file are mounted to the assigned address of client;
Generate the registration table configuration file of IE6 kernel and IE8 kernel, and import in the registration table of described client;
Wherein, described dynamic link library (DLL) from IE6 kernel extraction IE6 kernel, the substep that extracts the dynamic link library (DLL) of IE8 kernel from the IE8 kernel comprises:
All system application interface APIs relevant with the IE6 kernel loads of heavy duty;
Check interface, all dynamic link library (DLL)s that the acquisition browser loads by monitoring dynamic link library (DLL);
The dynamic link library (DLL) of removal system bottom, the dynamic link library (DLL) of extraction IE6 kernel;
And,
All system application interface APIs relevant with the IE8 kernel loads of heavy duty;
Check interface, all dynamic link library (DLL)s that the acquisition browser loads by monitoring dynamic link library (DLL);
The dynamic link library (DLL) of removal system bottom, the dynamic link library (DLL) of extraction IE8 kernel.
19. such as claim 15---the described device of each claim in 18, described browser process comprises:
First judges submodule, is suitable for judging that current adaptive IE kernel version number is the IE6 kernel when the uniform resource position mark URL information that the active user submits to is lan address;
Second judges submodule, is suitable for judging that current adaptive IE kernel version number is the IE6 kernel when the uniform resource position mark URL information that the active user submits to comprises the IP address;
The 3rd judges submodule, is suitable for judging that current adaptive IE kernel version number is the IE8 kernel when the uniform resource position mark URL information that the active user submits to is included in the compatible domain name tabulation of IE8 kernel.
20. device as claimed in claim 19, described browser process also comprises:
The 4th judges submodule, is suitable for when the uniform resource position mark URL information that the active user submits to is included in the compatible domain name tabulation of novel I E kernel, judges that current adaptive IE kernel version number is the novel I E kernel of correspondence.
21. such as claim 17 or 18 described devices, described default IE kernel is redirected module and comprises:
The first registry operations submodule is suitable for when monitoring browser process access registration table, if access IE configuration item then guides browser process to read and write the registration table configuration file of IE6 kernel; If the information of the client assigned address that the IE6 kernel file imports is then returned in the path of inquiry IE kernel file;
The one DLL operates submodule, be suitable for when monitoring browser process access dynamic link library (DLL), version number according to current adaptive IE6 kernel, navigate to the client assigned address that corresponding IE6 kernel file imports, and to the dynamic link library (DLL) of this location lookup same names, if find, then guide browser process to load this dynamic link library (DLL);
The first relevant file operation submodule, be suitable for when monitoring browser process visit data file, language pack file, version number according to current adaptive IE6 kernel, navigate to the client assigned address that corresponding IE6 kernel file imports, and to data file and the language pack file of this location lookup same names, if find, then guide browser process to load this data file and language pack file;
The first com object creates submodule, is suitable for from the registration table of described client, searching the dynamic link library (DLL) of realizing this com object when monitoring browser process establishment com object, then calls described DLL operation submodule;
The one DLL kernel handler operation submodule is suitable for calling described DLL operation submodule when monitoring browser process access DLL kernel handler;
The second registry operations submodule is suitable for when monitoring browser process access registration table, if access IE configuration item then guides browser process to read and write the registration table configuration file of IE8 kernel; If the information of the client assigned address that the IE8 kernel file imports is then returned in the path of inquiry IE kernel file;
The 2nd DLL operates submodule, be suitable for when monitoring browser process access dynamic link library (DLL), version number according to current adaptive IE8 kernel, navigate to the client assigned address that corresponding IE8 kernel file imports, and to the dynamic link library (DLL) of this location lookup same names, if find, then guide browser process to load this dynamic link library (DLL);
The second relevant file operation submodule, be suitable for when monitoring browser process visit data file, language pack file, version number according to current adaptive IE8 kernel, navigate to the client assigned address that corresponding IE8 kernel file imports, and to data file and the language pack file of this location lookup same names, if find, then guide browser process to load this data file and language pack file;
The second com object creates submodule, is suitable for from the registration table of described client, searching the dynamic link library (DLL) of realizing this com object when monitoring browser process establishment com object, then calls described the 2nd DLL operation submodule;
The 2nd DLL kernel handler operation submodule is suitable for calling described the 2nd DLL operation submodule when monitoring browser process access DLL kernel handler.
22. device as claimed in claim 15 also comprises:
The internal memory writing module is suitable for described IE6 kernel file and novel I E kernel file write memory.
23. device as claimed in claim 15, it is dynamic link library file Tridentcore.dll that described default IE kernel is redirected module.
24. device as claimed in claim 15 also comprises:
The webpage load-on module is suitable for adopting current adaptive browser kernel to load the webpage of described request.
25. device as claimed in claim 15, described fitting relation acquisition module comprises:
First obtains submodule, is suitable for knowing the adaptive described browser kernel of webpage that loads with described request according to presetting rule;
Described Core Choice module comprises:
The first chooser module is suitable for selecting the browser kernel adaptive with the webpage of described request loading;
And/or,
Described fitting relation acquisition module comprises:
Second obtains submodule, is suitable for knowing the not adaptive browser kernel of webpage that loads with described request according to presetting rule;
Described Core Choice module comprises:
The second chooser module is suitable for selecting the browser kernel outside the described not adaptive kernel to load the webpage that described request loads;
And/or,
Described fitting relation acquisition module comprises:
The 3rd obtains submodule, is suitable for knowing fitting relation between the browser kernel of webpage that described request loads and current acquiescence according to presetting rule;
Described Core Choice module comprises:
The 3rd chooser module if it is adaptive with the browser kernel of current acquiescence to be suitable for the webpage that described request loads, is then selected the browser kernel loading of described current acquiescence; Otherwise, select the browser kernel outside the current acquiescence kernel.
26. such as claim 15 or 25 described devices, described presetting rule comprises specific adaptation rule and/or the General adaptive rule that presets, wherein, the described specific adaptation rule that presets comprises the fitting relation between webpage and the kernel, and described General adaptive rule is included as the fastest browser kernel of the average loading velocity of user selection or is the user selection browser kernel adaptive to network standard.
27. a browser, wherein said browser comprises at least two kinds of browser kernels, and wherein a kind of browser kernel is the IE kernel, and described IE kernel comprises IE6 kernel and two versions of novel I E kernel at least:
Described browser comprises:
The request receiving module is suitable for receiving the solicited message of Web page loading, comprises uniform resource position mark URL information in the described request information;
The fitting relation acquisition module is suitable for knowing the webpage of described request loading and the fitting relation between the browser kernel according to presetting rule;
The Core Choice module is suitable for selecting corresponding browser kernel according to described fitting relation,
Browser process is suitable for when selected browser kernel is the IE kernel, judges current adaptive IE kernel version according to described uniform resource position mark URL information;
The IE kernel is redirected module, is suitable for when current adaptive IE kernel version is the IE6 kernel, is redirected to the relevant position and loads the IE6 kernel file that presets; And, when current adaptive IE kernel version is novel I E kernel, is redirected to the relevant position and loads the novel I E kernel file that presets.
CN201210413968.8A 2012-10-25 2012-10-25 The method and apparatus of different editions IE kernels based on many kernel browsers switching Expired - Fee Related CN102968341B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201210413968.8A CN102968341B (en) 2012-10-25 2012-10-25 The method and apparatus of different editions IE kernels based on many kernel browsers switching

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201210413968.8A CN102968341B (en) 2012-10-25 2012-10-25 The method and apparatus of different editions IE kernels based on many kernel browsers switching

Publications (2)

Publication Number Publication Date
CN102968341A true CN102968341A (en) 2013-03-13
CN102968341B CN102968341B (en) 2016-09-28

Family

ID=47798495

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201210413968.8A Expired - Fee Related CN102968341B (en) 2012-10-25 2012-10-25 The method and apparatus of different editions IE kernels based on many kernel browsers switching

Country Status (1)

Country Link
CN (1) CN102968341B (en)

Cited By (16)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103559024A (en) * 2013-10-17 2014-02-05 常熟市华安电子工程有限公司 Browser
CN105607928A (en) * 2015-12-18 2016-05-25 北京奇虎科技有限公司 Supporting method for browser kernel and webpage display method and apparatus
CN105843626A (en) * 2016-04-12 2016-08-10 无锡天脉聚源传媒科技有限公司 Page loading method and device based on multi-version coexistence
CN106446305A (en) * 2016-12-23 2017-02-22 网际傲游(北京)科技有限公司 System and method for Linux browser to realize Webkit/IE dual-core seamless browsing
CN104156307B (en) * 2014-07-03 2017-04-05 安徽景行信息科技有限公司 A kind of browser compatibility detection method and system
CN106708967A (en) * 2016-11-30 2017-05-24 北京小米移动软件有限公司 Page display method and device
CN110247966A (en) * 2019-06-12 2019-09-17 深圳市酷开网络科技有限公司 Kernel creation method, smart television and computer readable storage medium
CN111639278A (en) * 2020-05-26 2020-09-08 北京三快在线科技有限公司 Webpage loading method and device
CN111859216A (en) * 2020-07-01 2020-10-30 天津赢达信科技有限公司 Method for dynamically adapting different IE kernels to browser client
CN112118285A (en) * 2020-07-31 2020-12-22 山东鲁能软件技术有限公司 Data transmission method and system suitable for client full-version browser
CN112667947A (en) * 2020-12-30 2021-04-16 合肥大多数信息科技有限公司 Method and system compatible with IE (Internet Explorer) kernel version control in multi-kernel browser
CN112738191A (en) * 2020-12-23 2021-04-30 国家电网有限公司大数据中心 Method and system for automatically switching compatible types and versions of browsers
CN113591000A (en) * 2021-07-13 2021-11-02 青岛海信移动通信技术股份有限公司 Browser engine switching method, device and equipment
CN113868570A (en) * 2021-08-16 2021-12-31 北京国电通网络技术有限公司 Kernel switching method of multi-core browser and related equipment
CN113946378A (en) * 2020-06-30 2022-01-18 北京奇虎科技有限公司 Method, system, equipment and storage medium for browser to support multi-type control
CN114546479A (en) * 2022-04-25 2022-05-27 云账户技术(天津)有限公司 Method and device for prompting incompatibility of browsers

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101655863A (en) * 2009-04-24 2010-02-24 北京搜狗科技发展有限公司 Method for loading web pages in browser and browser
CN102156709A (en) * 2011-02-28 2011-08-17 奇智软件(北京)有限公司 Browser engine mode switching method
CN102508710A (en) * 2011-09-28 2012-06-20 奇智软件(北京)有限公司 Method and system for switching between IE6 kernel and novel IE kernel

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101655863A (en) * 2009-04-24 2010-02-24 北京搜狗科技发展有限公司 Method for loading web pages in browser and browser
CN102156709A (en) * 2011-02-28 2011-08-17 奇智软件(北京)有限公司 Browser engine mode switching method
CN102508710A (en) * 2011-09-28 2012-06-20 奇智软件(北京)有限公司 Method and system for switching between IE6 kernel and novel IE kernel

Cited By (24)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103559024A (en) * 2013-10-17 2014-02-05 常熟市华安电子工程有限公司 Browser
CN104156307B (en) * 2014-07-03 2017-04-05 安徽景行信息科技有限公司 A kind of browser compatibility detection method and system
CN105607928A (en) * 2015-12-18 2016-05-25 北京奇虎科技有限公司 Supporting method for browser kernel and webpage display method and apparatus
CN105607928B (en) * 2015-12-18 2019-03-01 北京奇虎科技有限公司 For the support method of browser kernel and the display methods and device of webpage
CN105843626A (en) * 2016-04-12 2016-08-10 无锡天脉聚源传媒科技有限公司 Page loading method and device based on multi-version coexistence
CN106708967B (en) * 2016-11-30 2020-06-02 北京小米移动软件有限公司 Page display method and device
CN106708967A (en) * 2016-11-30 2017-05-24 北京小米移动软件有限公司 Page display method and device
CN106446305A (en) * 2016-12-23 2017-02-22 网际傲游(北京)科技有限公司 System and method for Linux browser to realize Webkit/IE dual-core seamless browsing
CN110247966A (en) * 2019-06-12 2019-09-17 深圳市酷开网络科技有限公司 Kernel creation method, smart television and computer readable storage medium
CN110247966B (en) * 2019-06-12 2021-12-14 深圳市酷开网络科技股份有限公司 Kernel creation method, smart television and computer-readable storage medium
CN111639278A (en) * 2020-05-26 2020-09-08 北京三快在线科技有限公司 Webpage loading method and device
CN111639278B (en) * 2020-05-26 2024-03-08 北京三快在线科技有限公司 Webpage loading method and device
CN113946378A (en) * 2020-06-30 2022-01-18 北京奇虎科技有限公司 Method, system, equipment and storage medium for browser to support multi-type control
CN111859216A (en) * 2020-07-01 2020-10-30 天津赢达信科技有限公司 Method for dynamically adapting different IE kernels to browser client
CN112118285B (en) * 2020-07-31 2022-05-20 山东鲁能软件技术有限公司 Data transmission method and system suitable for client full-version browser
CN112118285A (en) * 2020-07-31 2020-12-22 山东鲁能软件技术有限公司 Data transmission method and system suitable for client full-version browser
CN112738191A (en) * 2020-12-23 2021-04-30 国家电网有限公司大数据中心 Method and system for automatically switching compatible types and versions of browsers
CN112738191B (en) * 2020-12-23 2023-05-23 国家电网有限公司大数据中心 Method and system for automatically switching compatible types and versions of browser
CN112667947A (en) * 2020-12-30 2021-04-16 合肥大多数信息科技有限公司 Method and system compatible with IE (Internet Explorer) kernel version control in multi-kernel browser
CN113591000A (en) * 2021-07-13 2021-11-02 青岛海信移动通信技术股份有限公司 Browser engine switching method, device and equipment
CN113591000B (en) * 2021-07-13 2024-04-19 青岛海信移动通信技术有限公司 Browser engine switching method, device and equipment
CN113868570A (en) * 2021-08-16 2021-12-31 北京国电通网络技术有限公司 Kernel switching method of multi-core browser and related equipment
CN114546479A (en) * 2022-04-25 2022-05-27 云账户技术(天津)有限公司 Method and device for prompting incompatibility of browsers
CN114546479B (en) * 2022-04-25 2022-07-29 云账户技术(天津)有限公司 Method and device for prompting incompatibility of browsers

Also Published As

Publication number Publication date
CN102968341B (en) 2016-09-28

Similar Documents

Publication Publication Date Title
CN102968341A (en) Method and device for switching different versions of IE (internet explorer) kernels on basis of multi-kernel browser
CN102508710B (en) Method and system for switching between IE6 kernel and novel IE kernel
CN102968448A (en) Browser
CN100421375C (en) Data sharing system, method and software tool
EP2724251B1 (en) Methods for making ajax web applications bookmarkable and crawlable and devices thereof
US7496847B2 (en) Displaying a computer resource through a preferred browser
US9747117B2 (en) System and methods for loading an application and its modules in a client device
CN100367276C (en) Method and appts for searching within a computer network
US11553035B2 (en) Cross-platform module for loading across a plurality of device types
CN103605688A (en) Intercept method and intercept device for homepage advertisements and browser
US20050223029A1 (en) Recognition and referencing method for access to dynamic objects in pages to be browsed on internet
CN102096582A (en) Off-line gadget integration development environment
CN103177115A (en) Method and device of extracting page link of webpage
CN103077349B (en) A kind of method of browser side prompting access secure information and device
CN100458782C (en) Display and installation of portlets on a client platform
CN104182229A (en) Callback display method and device and callback method and device
CN103617079A (en) Method and system for switching between IE6 kernel and novel IE kernel
CN103631906A (en) Method and device for recognizing page number identification in webpage URL
CN106484741A (en) The method and device that a kind of single page application accesses data collection and sends
KR20110123027A (en) Searching method using smart toolbar system
Salama “Down With Regression!”–Generating Test Suites for the Web
KR20170027230A (en) The technique to replace ActiveX using local server
CN113076291A (en) File positioning method, device, equipment and storage medium
Udell Netvibes
Rahmel et al. Using JavaScript and Ajax to Dynamically Load Page Elements

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C14 Grant of patent or utility model
GR01 Patent grant
CF01 Termination of patent right due to non-payment of annual fee
CF01 Termination of patent right due to non-payment of annual fee

Granted publication date: 20160928