CN102968341B - The method and apparatus of different editions IE kernels based on many kernel browsers switching - Google Patents
The method and apparatus of different editions IE kernels based on many kernel browsers switching Download PDFInfo
- Publication number
- CN102968341B CN102968341B CN201210413968.8A CN201210413968A CN102968341B CN 102968341 B CN102968341 B CN 102968341B CN 201210413968 A CN201210413968 A CN 201210413968A CN 102968341 B CN102968341 B CN 102968341B
- 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.)
- Expired - Fee Related
Links
- 238000000034 method Methods 0.000 title claims abstract description 200
- 230000003044 adaptive effect Effects 0.000 claims abstract description 128
- 230000008569 process Effects 0.000 claims description 154
- 238000012544 monitoring process Methods 0.000 claims description 70
- 239000000284 extract Substances 0.000 claims description 27
- 230000006978 adaptation Effects 0.000 claims description 25
- 239000008186 active pharmaceutical agent Substances 0.000 claims description 15
- 230000008676 import Effects 0.000 claims description 7
- 238000000605 extraction Methods 0.000 claims 2
- 239000000203 mixture Substances 0.000 description 10
- 230000006870 function Effects 0.000 description 8
- 230000008901 benefit Effects 0.000 description 7
- 230000009471 action Effects 0.000 description 3
- 238000005516 engineering process Methods 0.000 description 3
- 230000004044 response Effects 0.000 description 3
- VYZAMTAEIAYCRO-UHFFFAOYSA-N Chromium Chemical compound [Cr] VYZAMTAEIAYCRO-UHFFFAOYSA-N 0.000 description 2
- 238000004590 computer program Methods 0.000 description 2
- 238000012806 monitoring device Methods 0.000 description 2
- 238000012545 processing Methods 0.000 description 2
- 238000009877 rendering Methods 0.000 description 2
- 238000012546 transfer Methods 0.000 description 2
- 201000004569 Blindness Diseases 0.000 description 1
- BQCADISMDOOEFD-UHFFFAOYSA-N Silver Chemical compound [Ag] BQCADISMDOOEFD-UHFFFAOYSA-N 0.000 description 1
- 238000004458 analytical method Methods 0.000 description 1
- 238000013459 approach Methods 0.000 description 1
- 238000004422 calculation algorithm Methods 0.000 description 1
- 238000004364 calculation method Methods 0.000 description 1
- 230000008859 change Effects 0.000 description 1
- 238000006243 chemical reaction Methods 0.000 description 1
- 230000000295 complement effect Effects 0.000 description 1
- 150000001875 compounds Chemical class 0.000 description 1
- 238000012217 deletion Methods 0.000 description 1
- 230000037430 deletion Effects 0.000 description 1
- 238000013461 design Methods 0.000 description 1
- 238000010586 diagram Methods 0.000 description 1
- 238000001035 drying Methods 0.000 description 1
- 230000000694 effects Effects 0.000 description 1
- 230000007613 environmental effect Effects 0.000 description 1
- 230000002349 favourable effect Effects 0.000 description 1
- 238000011900 installation process Methods 0.000 description 1
- PWPJGUXAGUPAHP-UHFFFAOYSA-N lufenuron Chemical compound C1=C(Cl)C(OC(F)(F)C(C(F)(F)F)F)=CC(Cl)=C1NC(=O)NC(=O)C1=C(F)C=CC=C1F PWPJGUXAGUPAHP-UHFFFAOYSA-N 0.000 description 1
- 238000012423 maintenance Methods 0.000 description 1
- 239000000463 material Substances 0.000 description 1
- 229910052709 silver Inorganic materials 0.000 description 1
- 239000004332 silver Substances 0.000 description 1
- 230000003068 static effect Effects 0.000 description 1
- 238000012360 testing method Methods 0.000 description 1
Landscapes
- Information Transfer Between Computers (AREA)
Abstract
The method and apparatus that the invention discloses the switching of a kind of different editions IE kernels based on many kernel browsers, wherein said browser includes at least two kernel, one of which kernel is IE kernel, and described method includes: receiving the solicited message loading webpage, described solicited message includes URL information;Know the fitting relation between web page and the browser kernel of described request, select corresponding browser kernel, when being chosen as IE kernel, it is judged that current adaptive IE kernel version;If IE6 kernel, then call IE kernel and redirect the IE6 kernel file that module loading is preset;If novel I E kernel, then call IE kernel and redirect the novel I E kernel file that module loading is preset.In the case of the present invention can solve to include at least two kernel at browser, and one of which is IE kernel, IE6 kernel browser and the compatibility of IE8 kernel browser and suitability problem.
Description
Technical field
The present invention relates to the technical field of browser, particularly relate to a kind of based on many kernel browsers
The method of different editions IE kernel switching, a kind of different editions IE kernels based on many kernel browsers
The device of switching, and, a kind of browser.
Background technology
The most important part of browser is " Rendering Engine ", can probably be translated into " rendering engine ",
General custom will be referred to as " browser kernel ".The responsible explanation to webpage grammer of browser kernel (as
HTML, JavaScript) and render (display) webpage.So, in commonly referred browser
The engine that the page is namely downloaded, resolves, performs, renders by core, this engine determines clear
How device of looking at shows the content of webpage and the format information of the page.
The most relatively common browser kernel has the IE kernel that the IE browser of Microsoft uses
(Trident kernel), the Gecko kernel that Firefox browser uses, the Safari browser of Fructus Mali pumilae
The Webkit kernel used with the Chrome browser of Google, and, Opera browser is adopted
Presto kernel.These common browsers can be done by implementation and divide as follows:
The first, the developer of browser had both carried out the exploitation of browser kernel, was also carried out browser
The exploitation of product.As: chrome browser, firefox browser, Safari browser, Internet
Explore browser etc..
The second, the developer of browser, only carry out the exploitation of navigator product, use other clear
The kernel that Lan Qi manufacturer realizes.Use in kernel is embedded into oneself browser.As: 360 safety
Browser, browser of roaming, Window on the World browser, search dog browser etc..This browser leads to
Frequently with Internet Explorer browser kernel, i.e. use the browser of IE kernel.
When user by browser initiate a request browsing webpage time, browser by kernel from
The content of webpage is downloaded in targeted website, then analyzes web page contents, performs script, calculates typesetting,
It is finally output to display and is shown to user.Each browser has a kernel, and no matter user is led to
Crossing a browser process and open how many webpages, browser all uses same kernel to explain and performs.
But, this single kernel browser has significant limitation, because webpage is often according to certain
The network standard that individual kernel is supported makes, the network standard supported for certain particular core, its
He possibly cannot support (even cannot support) by kernel well.Such as, user uses Firefox
Browser browses webpage, and the kernel of Firefox can support W3C standard well, and therefore using should
Browser may browse through the webpage made according to W3C standard.If but user wants to browse trade and investment promotion silver
Row webpage uses the Internet bank, and Firefox browser just cannot meet this user's request.Because recruiting
Internet bank's function of business's website of bank needs ActiveX pin function, and in this function only has IE
The browser of core could be supported, such user just cannot make in the case of using Firefox browser
By Internet bank's function of China Merchants Bank.
Furthermore, in the browser of commonly used IE kernel includes using IE6 (Internetexplorer 6)
The browser of core and the browser of employing IE8 (Internetexplorer 8) kernel.Specifically,
Internetexplorer 6 issued October calendar year 2001, had a surplus away from 10 years the present.But use IE6 kernel
Browser the most still occupies China's major browsers market more than 50% share, due to environmental change,
The problem such as of the remote past, uses the browser of IE6 kernel using foot in a large number in the Internet instantly
In the environment of the materials such as basis, picture, Flash, performance is low, it is impossible to make user obtain smooth body
Test.Internetexplorer 8 has obtained considerable application since 2008 issue, and nowadays uses IE8 kernel
Browser the most gradually replace the market share of browser using IE6 kernel, become user's main flow
Web browser.The system of more than Windows Vista the most directly eliminates below IE8 version
Support, but based on the complex composition in China the Internet, it is clear that user can face problems.
Being exactly the most typically since two thousand one, a large amount of individuals, team are based on mark the most rigorous for IE6
Quasi-specification constructs in a large number can only properly functioning website, service under the browser using IE6 kernel.
So, just directly results in user enjoy a new generation browser brand new technical while, nothing
Method normally realizes the demands such as the work of oneself, amusement.
In a word, need those skilled in the art urgently to solve the technical problem that to be exactly: the most fully profit
Advantage with various browser kernels, it is to avoid the shortcoming of the various browser kernels shadow to loading webpage
Ring, and, how to solve to include at least two browser kernel, and one of which at browser
In the case of browser kernel is IE kernel, IE6 kernel browser and the compatibility of IE8 kernel browser
With suitability problem so that user obtains more preferable web browsing experience.
Summary of the invention
In view of the above problems, it is proposed that the present invention is to provide one to overcome the problems referred to above or at least portion
The side that a kind of based on many kernel browsers the different editions IE kernels dividing ground to solve the problems referred to above switch
Method, the device of a kind of different editions IE kernels based on many kernel browsers switching, and, a kind of
Browser.
According to one aspect of the present invention, it is provided that 1, a kind of different versions based on many kernel browsers
The method of this IE kernel switching, wherein said browser includes at least two browser kernel, wherein
A kind of browser kernel is IE kernel, in described IE kernel at least includes IE6 kernel and novel I E
Two versions of core:
Described method includes:
Receiving the solicited message loading webpage, described solicited message includes URL
URL information;
The adaptive pass between webpage and the browser kernel of described request of loading is known according to presetting rule
System;
Corresponding browser kernel is selected, when selected browser kernel according to described fitting relation
During for IE kernel, browser process is according to described uniform resource position mark URL information, it is judged that current
Adaptive IE kernel version;
If current adaptive IE kernel version is IE6 kernel, then browser process calls default IE
Kernel redirects module, is redirected to relevant position and loads preset IE6 kernel file;
If current adaptive IE kernel version is novel I E kernel, then browser process is called default
IE kernel redirects module, is redirected to relevant position and loads preset novel I E kernel file.
Alternatively, described novel I E kernel is IE8 kernel, and described novel I E kernel file is IE8
Kernel file;
Or, described novel I E kernel is the IE kernel of more than IE8 version, in described novel I E
Core file is the IE kernel file of more than IE8 version.
Alternatively, described IE6 kernel file and IE8 kernel file include:
The dynamic link library (DLL) of IE6 kernel and the dynamic link library (DLL) of IE8 kernel;
The data file of IE6 kernel and the data file of 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, described preset IE6 kernel file and novel I E kernel file are stored in client
In, realize especially by following sub-step:
Extract the dynamic link library (DLL) of IE6 kernel from IE6 kernel, extract IE8 from IE8 kernel
The dynamic link library (DLL) of kernel;
It is adapted and analyzes data file and the language pack file generating IE6 kernel, and, IE8 kernel
Data file and the language pack file of IE8 kernel;
By 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 install the appointment to client
Position;
Generate IE6 kernel and the registration table configuration file of IE8 kernel, and import the note of described client
In volume table.
Alternatively, the described dynamic link library (DLL) extracting IE6 kernel from IE6 kernel, from IE8
The sub-step of the dynamic link library (DLL) that kernel extracts IE8 kernel includes:
The all system application interface APIs relevant to IE6 kernel loads of heavy duty;
By monitoring that dynamic link library (DLL) checks interface, it is thus achieved that all dynamic chain that browser loads
Meet storehouse DLL;
The dynamic link library (DLL) of removal system bottom, extracts the dynamic link library (DLL) of IE6 kernel;
And,
The all system application interface APIs relevant to IE8 kernel loads of heavy duty;
By monitoring that dynamic link library (DLL) checks interface, it is thus achieved that all dynamic chain that browser loads
Meet storehouse DLL;
The dynamic link library (DLL) of removal system bottom, extracts the dynamic link library (DLL) of IE8 kernel.
Alternatively, the uniform resource position mark URL information that described browser process is submitted to according to user,
Judge that the step of current adaptive IE kernel version number farther includes:
If the uniform resource position mark URL information that active user submits to is lan address, then judge
Current adaptive IE kernel version number is IE6 kernel;
If the uniform resource position mark URL information that active user submits to comprises IP address, then judge to work as
The IE kernel version number of front adaptation is IE6 kernel;
If the uniform resource position mark URL information that active user submits to is included in IE8 kernel compatibility territory
In list of file names, then judge that current adaptive IE kernel version number is as IE8 kernel.
Alternatively, the uniform resource position mark URL information that described browser process is submitted to according to user,
Judge that the step of current adaptive IE kernel version number also includes:
If it is compatible that the uniform resource position mark URL information that active user submits to is included in novel I E kernel
In domain name list, then judge that current adaptive IE kernel version number is as corresponding novel I E kernel.
Alternatively, described default IE kernel redirects module and performs redirection by following sub-step
The operation of preset IE6 kernel file is loaded to relevant position:
When monitoring browser process and accessing registration table, if accessing IE configuration item, then guide and browse
The registration table configuration file of device process read-write IE6 kernel;If the path of inquiry IE kernel file, then
Return the information of the client appointment position that IE6 kernel file is imported;
When monitoring browser process and accessing dynamic link library (DLL), according to current adaptive IE6
The version number of kernel, navigates to the client appointment position that the IE6 kernel file of correspondence is imported, and
To the dynamic link library (DLL) of this location lookup same names, if finding, then guide browser process
Load this dynamic link library (DLL);
When monitoring browser process and accessing data file, language pack file, according to current adaptive
The version number of IE6 kernel, navigate to the client specific bit that the IE6 kernel file of correspondence is imported
Putting, and arrive data file and the language pack file of this location lookup same names, if finding, then drawing
Lead browser process and load this data file and language pack file;
When monitoring browser process and creating com object, from the registration table of described client,
Search and realize the dynamic link library (DLL) of this com object, then call and described monitoring browser
Process accesses process sub-step during dynamic link library (DLL);
When monitoring browser process and accessing DLL kernel handler, call and described browse monitoring
Device process accesses process sub-step during dynamic link library (DLL).
Alternatively, described default IE kernel redirects module and performs redirection by following sub-step
The operation of preset IE8 kernel file is loaded to relevant position:
When monitoring browser process and accessing registration table, if accessing IE configuration item, then guide and browse
The registration table configuration file of device process read-write IE8 kernel;If the path of inquiry IE kernel file, then
Return the information of the client appointment position that IE8 kernel file is imported;
When monitoring browser process and accessing dynamic link library (DLL), according to current adaptive IE8
The version number of kernel, navigates to the client appointment position that the IE8 kernel file of correspondence is imported, and
To the dynamic link library (DLL) of this location lookup same names, if finding, then guide browser process
Load this dynamic link library (DLL);
When monitoring browser process and accessing data file, language pack file, according to current adaptive
The version number of IE8 kernel, navigate to the client specific bit that the IE8 kernel file of correspondence is imported
Putting, and arrive data file and the language pack file of this location lookup same names, if finding, then drawing
Lead browser process and load this data file and language pack file;
When monitoring browser process and creating com object, from the registration table of described client,
Search and realize the dynamic link library (DLL) of this com object, then call and described monitoring browser
Process accesses process sub-step during dynamic link library (DLL);
When monitoring browser process and accessing DLL kernel handler, call and described browse monitoring
Device process accesses process sub-step during dynamic link library (DLL).
Alternatively, described method, also include:
Described IE6 kernel file and novel I E kernel file are write internal memory;
The described step being redirected to the preset IE6 kernel file of relevant position loading is to be redirected to
Relevant position in internal memory loads described preset IE6 kernel file;
The described step being redirected to the preset IE8 kernel file of relevant position loading is to be redirected to
Relevant position in internal memory loads described preset IE8 kernel file.
Alternatively, described default IE kernel redirects module is dynamic link library file
Tridentcore.dll。
Alternatively, described method, also include:
Current adaptive browser kernel is used to load the webpage of described request.
Alternatively, described the webpage of described request of loading and described browser are known according to presetting rule
The step of the fitting relation between kernel includes: know and described request of loading according to presetting rule
The described browser kernel of webpage fit;
The step of the described browser kernel selecting correspondence according to fitting relation includes: select with described
The browser kernel of the webpage fit of request of loading;
And/or,
Described know between the webpage of described request of loading and described browser kernel according to presetting rule
The step of fitting relation include: know that the webpage with described request of loading is uncomfortable according to presetting rule
The browser kernel joined;
The step of the described browser kernel selecting correspondence according to fitting relation includes: described in selection not
The adaptive browser kernel outside kernel loads the webpage of described request of loading;
And/or,
Described know between the webpage of described request of loading and described browser kernel according to presetting rule
The step of fitting relation include: know that the webpage of described request of loading is with current according to presetting rule
Fitting relation between the browser kernel of acquiescence;
The step of the described browser kernel selecting correspondence according to fitting relation includes: please if described
The webpage asking loading is adaptive with the browser kernel of current default, then select the clear of described current default
Look at device kernel loads;Otherwise, the browser kernel outside current default kernel is selected.
Alternatively, described presetting rule includes preset specific adaptation rule and/or General adaptive rule
Then, wherein, described preset specific adaptation rule includes the fitting relation between webpage and kernel,
Described General adaptive rule includes selecting the fastest browser kernel of average loading velocity for user or being
User selects the browser kernel adaptive to network standard.
According to a further aspect in the invention, it is provided that a kind of different editions based on many kernel browsers
The device of IE kernel switching, wherein said browser includes at least two browser kernel, Qi Zhongyi
Planting browser kernel is IE kernel, and described IE kernel at least includes IE6 kernel and novel I E kernel
Two versions:
Described device includes:
Request receiver module, is suitable to receive the solicited message loading webpage, wraps in described solicited message
Include uniform resource position mark URL information;
Fitting relation acquisition module, be suitable to according to presetting rule know the webpage of described request of loading with
Fitting relation between browser kernel;
Kernel selection module, is suitable to select corresponding browser kernel according to described fitting relation,
Browser process, is suitable to when selected browser kernel is IE kernel, according to described system
One URLs URL information judges current adaptive IE kernel version;
IE kernel redirects module, is suitable to when current adaptive IE kernel version is IE6 kernel,
It is redirected to relevant position and loads preset IE6 kernel file;And, in current adaptive IE
When core version is novel I E kernel, it is redirected to relevant position and loads preset novel I E kernel file.
Alternatively, described novel I E kernel is IE8 kernel, and described novel I E kernel file is IE8
Kernel file;
Or, described novel I E kernel is the IE kernel of more than IE8 version, in described novel I E
Core file is the IE kernel file of more than IE8 version.
Alternatively, described IE6 kernel file and IE8 kernel file include:
The dynamic link library (DLL) of IE6 kernel and the dynamic link library (DLL) of IE8 kernel;
The data file of IE6 kernel and the data file of 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, described preset IE6 kernel file and novel I E kernel file are stored in client
In, realize especially by following sub-step:
Extract the dynamic link library (DLL) of IE6 kernel from IE6 kernel, extract IE8 from IE8 kernel
The dynamic link library (DLL) of kernel;
It is adapted and analyzes data file and the language pack file generating IE6 kernel, and, IE8 kernel
Data file and the language pack file of IE8 kernel;
By 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 install the appointment to client
Position;
Generate IE6 kernel and the registration table configuration file of IE8 kernel, and import the note of described client
In volume table;
Wherein, the described dynamic link library (DLL) extracting IE6 kernel from IE6 kernel, in IE8
The sub-step of the dynamic link library (DLL) that core extracts IE8 kernel includes:
The all system application interface APIs relevant to IE6 kernel loads of heavy duty;
By monitoring that dynamic link library (DLL) checks interface, it is thus achieved that all dynamic chain that browser loads
Meet storehouse DLL;
The dynamic link library (DLL) of removal system bottom, extracts the dynamic link library (DLL) of IE6 kernel;
And,
The all system application interface APIs relevant to IE8 kernel loads of heavy duty;
By monitoring that dynamic link library (DLL) checks interface, it is thus achieved that all dynamic chain that browser loads
Meet storehouse DLL;
The dynamic link library (DLL) of removal system bottom, extracts the dynamic link library (DLL) of IE8 kernel.
Alternatively, described browser process includes:
First judges submodule, is suitable to the uniform resource position mark URL information submitted to active user
During for lan address, it is determined that current adaptive IE kernel version number is IE6 kernel;
Second judges submodule, is suitable to the uniform resource position mark URL information submitted to active user
When comprising IP address, it is determined that current adaptive IE kernel version number is IE6 kernel;
3rd judges submodule, is suitable to the uniform resource position mark URL information submitted to active user
When being included in IE8 kernel compatibility domain name list, it is determined that current adaptive IE kernel version number is IE8
Kernel.
Alternatively, described browser process also includes:
4th judges submodule, is suitable to the uniform resource position mark URL information submitted to active user
When being included in the kernel compatibility domain name list of novel I E, it is determined that current adaptive IE kernel version number is
Corresponding novel I E kernel.
Alternatively, described default IE kernel redirection module includes:
First registry operations submodule, is suitable to when monitoring browser process and accessing registration table,
If accessing IE configuration item, then guide the registration table configuration file of browser process read-write IE6 kernel;
If the path of inquiry IE kernel file, then return the client specific bit that IE6 kernel file is imported
The information put;
Oneth DLL operator module, is suitable to monitoring browser process access dynamic link library
During DLL, according to the version number of current adaptive IE6 kernel, navigate to the IE6 kernel literary composition of correspondence
The client that part is imported specifies position, and to the dynamic link library of this location lookup same names
DLL, if finding, then guides browser process to load this dynamic link library (DLL);
First associated documents operator module, be suitable to monitor browser process access data file,
During language pack file, according to the version number of current adaptive IE6 kernel, navigate to the IE6 of correspondence
The client that kernel file is imported specifies position, and to the data literary composition of this location lookup same names
Part and language pack file, if finding, then guide browser process to load this data file and language pack
File;
First com object creates submodule, is suitable to monitoring browser process establishment COM pair
As time, from the registration table of described client, search and realize the dynamic link library of this com object
DLL, then calls a described DLL operator module;
Oneth DLL kernel handler operator module, is suitable to when monitoring browser process access DLL
During kernel handler, call a described DLL operator module;
Second registry operations submodule, is suitable to when monitoring browser process and accessing registration table,
If accessing IE configuration item, then guide the registration table configuration file of browser process read-write IE8 kernel;
If the path of inquiry IE kernel file, then return the client specific bit that IE8 kernel file is imported
The information put;
2nd DLL operator module, is suitable to monitoring browser process access dynamic link library
During DLL, according to the version number of current adaptive IE8 kernel, navigate to the IE8 kernel literary composition of correspondence
The client that part is imported specifies position, and to the dynamic link library of this location lookup same names
DLL, if finding, then guides browser process to load this dynamic link library (DLL);
Second associated documents operator module, be suitable to monitor browser process access data file,
During language pack file, according to the version number of current adaptive IE8 kernel, navigate to the IE8 of correspondence
The client that kernel file is imported specifies position, and to the data literary composition of this location lookup same names
Part and language pack file, if finding, then guide browser process to load this data file and language pack
File;
Second com object creates submodule, is suitable to monitoring browser process establishment COM pair
As time, from the registration table of described client, search and realize the dynamic link library of this com object
DLL, then calls described 2nd DLL operator module;
2nd DLL kernel handler operator module, is suitable to when monitoring browser process access DLL
During kernel handler, call described 2nd DLL operator module.
Alternatively, described device, also include:
Internal memory writing module, in being suitable to write described IE6 kernel file and novel I E kernel file
Deposit.
Alternatively, described default IE kernel redirects module is dynamic link library file
Tridentcore.dll。
Alternatively, described device, also include:
Webpage load-on module, is suitable for use with current adaptive browser kernel and loads the net of described request
Page.
Alternatively, described fitting relation acquisition module includes:
First obtains submodule, is suitable to know that the webpage with described request of loading is fitted according to presetting rule
The described browser kernel joined;
Described kernel selection module includes:
First select submodule, be suitably selected for in the browser of the webpage fit of described request of loading
Core;
And/or,
Described fitting relation acquisition module includes:
Second obtains submodule, is suitable to know the webpage with described request of loading not according to presetting rule
Adaptive browser kernel;
Described kernel selection module includes:
Second selects submodule, be suitably selected for described in browser kernel outside the most adaptive kernel add
Carry the webpage of described request of loading;
And/or,
Described fitting relation acquisition module includes:
3rd obtains submodule, is suitable to know the webpage of described request of loading according to presetting rule and work as
Fitting relation between the browser kernel of front acquiescence;
Described kernel selection module includes:
3rd selects submodule, if being suitable to the webpage of described request of loading and browsing of current default
Device kernel is adaptive, then select the browser kernel of described current default to load;Otherwise, select currently
Browser kernel outside acquiescence kernel.
Alternatively, described presetting rule includes preset specific adaptation rule and/or General adaptive rule
Then, wherein, described preset specific adaptation rule includes the fitting relation between webpage and kernel,
Described General adaptive rule includes selecting the fastest browser kernel of average loading velocity for user or being
User selects the browser kernel adaptive to network standard.
According to a further aspect in the invention, it is provided that a kind of browser, wherein said browser includes
At least two browser kernel, one of which browser kernel is IE kernel, and described IE kernel is at least
Including IE6 kernel and two versions of novel I E kernel:
Described browser includes:
Request receiver module, is suitable to receive the solicited message loading webpage, wraps in described solicited message
Include uniform resource position mark URL information;
Fitting relation acquisition module, be suitable to according to presetting rule know the webpage of described request of loading with
Fitting relation between browser kernel;
Kernel selection module, is suitable to select corresponding browser kernel according to described fitting relation,
Browser process, is suitable to when selected browser kernel is IE kernel, according to described system
One URLs URL information judges current adaptive IE kernel version;
IE kernel redirects module, is suitable to when current adaptive IE kernel version is IE6 kernel,
It is redirected to relevant position and loads preset IE6 kernel file;And, in current adaptive IE
When core version is novel I E kernel, it is redirected to relevant position and loads preset novel I E kernel file.
Compared with prior art, the invention have the advantages that
According to the method for a kind of different editions IE kernels based on many kernel browsers switching, Yi Zhongji
In the device that the different editions IE kernel of many kernel browsers switches, and, a kind of browser is logical
Cross integrated at least two kernel in same browser, have the pluses and minuses of himself based on every kind of kernel,
Therefore, this many kernel browsers are for single kernel browser, to a certain extent, increase
Strong browser loads the success rate of webpage.The many kernels being additionally, since the embodiment of the present invention browse
Device, it is possible to actively according to presetting rule be the webpage that user accesses select adaptive kernel rather than
Blindly selected to load the kernel of webpage completely by user oneself, avoid use the most to a certain extent
The blindness that family oneself selects is (because most users is not to will be apparent from which webpage fit in which
Core), further improve the success rate loading webpage.As can be seen here, the embodiment of the present invention can
Each kernel in browser is carried out intelligent selection, the advantage making full use of each kernel, keep away as far as possible
The shortcoming having exempted from each kernel loads the impact of webpage to user, so ground reached browser in many
Between individual kernel, the carrying out of intelligence is had complementary advantages, and improves to a certain extent and is browsed by browser
The effect of webpage.
A preferred embodiment of the present invention is to provide a kind of double-core browser, and one of which is clear
Device kernel of looking at is IE kernel.For the problem of IE kernel multi version switching, described double-core browser can
To judge current adaptive IE kernel version by URL information, and for adaptive IE kernel version
This calls default IE kernel respectively and redirects module, is redirected to relevant position and loads preset phase
Answer the IE kernel file of version.The realization of this double-core browser can use not affecting user IE
On the premise of, the page showing applicable IE6 loads IE6 kernel, and the page that applicable IE8 shows adds
Carry IE8 kernel, browse most complete compatibility and suitability reaching user under complex environment.
Further, this double-core browser fully combines universal to bank/large-scale portal website of IE6
Support, IE8 safely, render, advantage that speed aspect promotes, it is achieved that a kind of IE6 kernel with
The most complete compatibility mode of IE8 kernel.Furthermore, by intelligent decision automatic switchover kernel, Wu Xuchong
Newly start browser, without replacement operation system or upgrading IE or install many moneys software, use
Convenient.Additionally, the favorable expandability of the present invention, can support that other version kernel of IE automatically switches.
Accompanying drawing explanation
By reading the detailed description of hereafter preferred implementation, various other advantage and benefit pair
Will be clear from understanding in those of ordinary skill in the art.Accompanying drawing is only used for illustrating preferred implementation
Purpose, and be not considered as limitation of the present invention.And in whole accompanying drawing, with identical
Reference marks represents identical parts.In the accompanying drawings:
Fig. 1 shows a kind of difference based on many kernel browsers
The flow chart of steps of the embodiment of the method 1 of version IE kernel switching;
Fig. 2 shows a kind of difference based on many kernel browsers
The flow chart of steps of the embodiment of the method 2 of version IE kernel switching;
Fig. 3 shows a kind of difference based on many kernel browsers
The structured flowchart of the system embodiment 1 of version IE kernel switching;
Fig. 4 shows a kind of difference based on many kernel browsers
The structured flowchart of the system embodiment 2 of version IE kernel switching;
Fig. 5 shows that a kind of IE kernel redirects the structure of module
Block diagram;
Fig. 6 shows the structured flowchart of a kind of browser.
Detailed description of the invention
It is more fully described the exemplary embodiment of the disclosure below with reference to accompanying drawings.Although in accompanying drawing
Show the exemplary embodiment of the disclosure, it being understood, however, that may be realized in various forms this
Disclose and should not limited by embodiments set forth here.On the contrary, it is provided that these embodiments be in order to
The disclosure can be best understood from, and complete for the scope of the present disclosure can be conveyed to ability
The technical staff in territory.
The core idea of the present invention is, by least two kernel integrated in same browser,
Enable the browser to actively according to the kernel that presetting rule is the webpage selection adaptation that user accesses, and
It not the kernel blindly being selected to load webpage completely by user oneself, and use not affecting user IE
On the premise of, the page showing applicable IE6 loads IE6 kernel, and the page that applicable IE8 shows adds
Carry IE8 kernel, browse most complete compatibility and suitability reaching user under complex environment.
With reference to Fig. 1, it is shown that in a kind of based on many kernel browsers the different editions IE of the present invention
The flow chart of steps of the embodiment of the method 1 of core switching, specifically may comprise steps of:
Step 101, receives the solicited message loading webpage, and described solicited message includes that URL believes
Breath;
As a kind of example, the solicited message of described loading webpage can be the loading that user sends
The instruction of webpage, such as, user can fetch open a webpage by clicking on certain chain, or
Address field input network address opens a webpage.When user clicks on the instruction of certain link, the most quite
In the solicited message that have received user and load webpage;Equally, when inputting certain network address also at address field
When clicking on confirming button or press enter key, also correspond to have received user and load the request of webpage
Information.
URL (Uniform Resoure Locator uniform resource locator) is the ground of WWW webpage
Location, URL uses numeral and letter to arrange in certain sequence to determine an address.The first of URL
Individual parthttp://The type of the file being intended to access represented.On the net, this most always uses http
(meaning is Hypertext Transfer Protocol(HTTP), hypertext transfer protocol, because it is used to conversion
The agreement of webpage.)
URL is from left to right made up of following part:
Internet resource type (scheme): point out the instrument that WWW CLIENT PROGRAM is made for C.
As "http://" represent www server, " ftp: // " represent ftp server, " gopher: // " represent
Gopher server, and " new: " represents Newgroup newsgroup.
Server address (host): point out the server domain name at WWW webpage place.
Port (port): sometimes (and the most so), for the access of some resource, need to give
Go out corresponding server and port numbers is provided.
Path (path): indicate that the position of certain resource on server is (in its form and DOS system
Form is the same, is generally made up of catalogue/this spline structure of subdirectory/filename).As port, road
Footpath also not always needs.
URL address format is arranged as: scheme: //host:port/path, such ashttp://www.maogoo.com/bbsIt it is exactly a typical URL address.Browser looks first at
To http (HTTP), just know process is html link.Ensuingwww.maogoo.comIt is site address, is finally catalogue/bbs.
Step 102, knows according to presetting rule between webpage and the browser kernel of described request of loading
Fitting relation;
Step 103, selects corresponding browser kernel according to described fitting relation;
In one preferred embodiment of the invention, described know that described request adds according to presetting rule
The step of the fitting relation between the webpage and the described browser kernel that carry can be, according to preset rule
Then know the described browser kernel with the webpage fit of described request of loading;In this case,
The described step selecting corresponding browser kernel according to fitting relation can be to select to ask with described
Seek the browser kernel of the webpage fit of loading.
In another preferred embodiment of the invention, described described request is known according to presetting rule
The step of the fitting relation between the webpage and the described browser kernel that load can be, according to preset
Rule knows the browser kernel the most adaptive with the webpage of described request of loading;Described according to adaptation pass
The step of the browser kernel that system's selection is corresponding can be, outside kernel the most adaptive described in selection
Browser kernel loads the webpage of described request of loading.Such as, browser has core A, B, C,
Know that the webpage of request of loading is the most adaptive with core A, then an optional kernel in kernel B, C
Load this webpage];Or, know that the webpage with described request of loading is fitted according to presetting rule
The browser kernel joined, selects the browser kernel of described adaptation to load the webpage of described request of loading
(such as, browser has core A, B, C, knows that the webpage of request of loading is the most adaptive with core A,
And know C kernel and webpage fit, then select C kernel to load this webpage.
In another preferred embodiment of the present invention, described know described request according to presetting rule
The step of the fitting relation between the webpage and the described browser kernel that load can be, according to preset
Rule knows the adaptive pass between webpage and the browser kernel of current default of described request of loading
System;Described armpit according to the step of the browser kernel of fitting relation selection correspondence can be, if described
The webpage of request of loading is adaptive with the browser kernel of current default, then select described current default
Browser kernel loads;Otherwise, the browser kernel outside current default kernel is selected.
Due to many kernel browsers may have a current default kernel (this acquiescence interior
Core can be user setup, it is also possible to is that browser is arranged voluntarily), i.e. do not doing any operation
In the case of, browser uses the kernel loads webpage of this current default.In this embodiment, press
According to presetting rule know be described request of loading webpage and the browser kernel of current default between
Fitting relation, i.e. in may determine that the webpage of described request of loading and the browser of current default
Core is the most adaptive, if adaptive, then selects the browser kernel of described current default to load described asking
Seek the webpage of loading;Otherwise, the browser kernel outside current default kernel is selected to load described asking
Seek the webpage of loading., about knowing between the webpage of described request of loading and described browser kernel
The concrete grammar of fitting relation can have multiple, for example, it is possible to according to preset specific adaptation rule
And/or General adaptive rule, know between the webpage of described request of loading and described browser kernel
Fitting relation;Wherein, described preset specific adaptation rule includes fitting between webpage and kernel
Joining relation, described General adaptive rule includes selecting the fastest browser of average loading velocity for user
Kernel or select the browser kernel adaptive to network standard for user.Certainly, said method is only
As example, those skilled in the art use any one to know described request of loading according to practical situation
Webpage and browser kernel between the method for fitting relation be all feasible, such as, according in
Browser sends about loading described net to corresponding server according to the described solicited message received
The newly requested information of page, server can return response message for described newly requested information, in response
The information such as the content of pages that can carry some webpages in information, the most under this approach, it is also possible to
The content that obtains according to the response message for described newly requested information returned from server and pre-
Put rule, again know the mode such as browser kernel of webpage fit with described request of loading, this
Invent this without being any limitation as.
Step 104, when selected browser kernel is IE kernel, browser process is according to institute
State URL information, it is judged that current adaptive IE kernel version;
In embodiments of the present invention, described IE kernel refers to use IE (Internet Explorer) to browse
Device kernel, IE6 kernel i.e. refers to use the browser kernel of IE6 (Internet Explorer 6), newly
Type IE kernel includes the IE kernel of IE8 kernel and more than IE8 version, and IE8 kernel i.e. refers to use
The browser kernel of IE8 (Internet Explorer 8), the IE kernel of more than IE8 version i.e. refers to adopt
With the browser kernel of the more highest version that IE9, IE10 etc. are likely to occur.
For making those skilled in the art be more fully understood that the present invention, in this manual, by IE8 kernel
A kind of example as novel I E kernel illustrates.
It is well known that, process is a program being carrying out, the journey being i.e. currently running in computer
Sequence example;It can be distributed to processor and be performed by processor as an entity.From user angle
From the point of view of Du, the browser that browser process can be understood as being started in task manager represents
Process.
In one preferred embodiment of the invention, described step 104 specifically can include following son
Step:
If the uniform resource position mark URL information that sub-step S121 active user submits to is LAN
Address, then judge that current adaptive IE kernel version number is as IE6 kernel;
If the uniform resource position mark URL information that sub-step S122 active user submits to comprises IP
Address, then judge that current adaptive IE kernel version number is as IE6 kernel;
If the uniform resource position mark URL information that sub-step S123 active user submits to is included in
In IE8 kernel compatibility domain name list, then judge that current adaptive IE kernel version number is as IE8 kernel.
Before the most each page starts to connect, browser process can judge to access the information of domain name, if
Lan address or be the HTTP request of pure IP address, then open IE6 pattern;According in reality
The compatible domain name list of IE8 kernel, it is determined that open IE8 pattern.In implementing, for other
Situation, it is possible to use other IE kernel that system carries.
Depend on it should be noted that above-mentioned sub-step S121 S123 is only used for describing browser process
Several processing modes of current adaptive IE kernel version are judged, not by described according to URL information
The restriction of sequence of movement, it will be appreciated by persons skilled in the art that some step can use
Other sequentially or are carried out simultaneously.
In practice, if the IE kernel that novel I E kernel is more than IE8 version, the most described step
104 can also include following sub-step:
If it is compatible that the uniform resource position mark URL information that active user submits to is included in novel I E kernel
In domain name list, then judge that current adaptive IE kernel version number is as corresponding novel I E kernel.
In implementing, can in client preset IE6 kernel file and novel I E kernel file,
In one preferred embodiment of the invention, described novel I E kernel file can be IE8 kernel literary composition
Part, the most described IE6 kernel file and IE8 kernel file may include that
The dynamic link library (DLL) of IE6 kernel and the dynamic link library (DLL) of IE8 kernel;
The data file of IE6 kernel and the data file of 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, DLL
Being one and comprise the code and the storehouse of data that simultaneously can be used by multiple programs, DLL is not to perform
File.Dynamic link provides a method that, makes process to call and is not belonging to its executable code
Function.The executable code of function is positioned in a DLL, and this DLL comprises one or more
The function being compiled, linking and be stored separately with their process of use.DLL additionally aids altogether
Enjoy data and resource.Multiple application programs can access the content of single DLL copy in internal memory simultaneously.
By using DLL, program can realize modularity, is made up of relatively independent assembly.
In the present embodiment, can be by following sub-step by preset IE6 kernel file and novel
IE kernel file is stored in client:
Sub-step S01, from IE6 kernel extract IE6 kernel dynamic link library (DLL), in IE8
Core extracts the dynamic link library (DLL) of IE8 kernel;
Sub-step S02, the data file being adapted analysis generation IE6 kernel and language pack file, with
And, the data file of IE8 kernel and the language pack file of IE8 kernel;
Sub-step S03, by dynamic link library (DLL), data file and the language pack of described IE6 kernel
File, and, the dynamic link library (DLL) of IE8 kernel, data file and language pack file are installed extremely
The appointment position of client;
Such as, by 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 installed to client
Certain catalogue under.
In implementing, the associated documents of above-mentioned IE6 kernel, and, the relevant literary composition of IE8 kernel
Part can be respectively stored under the different directories of client;Or, it is also possible to store to same catalogue,
But mark its version number mark, the invention is not limited in this regard respectively for each file.
Sub-step S04, generation IE6 kernel and the registration table configuration file of IE8 kernel, and import institute
State in the registration table of client.
Browser based on IE kernel, the kernel DLL loaded by static, dynamical fashion is the most,
These DLL may be relevant to operating system bottom, may also need to quote some registry entries, number
According to file or language pack file, need progressively to analyze generation by debugging.
It is further preferred that described sub-step S01 may further include following sub-step:
Sub-step S01-11, all system application interfaces relevant to IE6 kernel loads of heavy duty
API;
Sub-step S01-12, by monitor dynamic link library (DLL) check interface, it is thus achieved that browser adds
The all dynamic link library (DLL)s carried;
Such as, by monitoring LoadLibrary interface (or other module reader), it is thus achieved that browse
All DLL that device loads.
Sub-step S01-13, the dynamic link library (DLL) of removal system bottom, extract IE6 kernel
Dynamic link library (DLL).
And,
Sub-step S01-21, all system application interfaces relevant to IE8 kernel loads of heavy duty
API;
Sub-step S01-22, by monitor dynamic link library (DLL) check interface, it is thus achieved that browser adds
The all dynamic link library (DLL)s carried;
Sub-step S01-23, the dynamic link library (DLL) of removal system bottom, extract IE8 kernel
Dynamic link library (DLL).
It should be noted that above-mentioned sub-step exemplarily only describes preset IE6 kernel file and
Novel I E kernel file is stored in the processing procedure in client, not by described sequence of movement
Restriction, it will be appreciated by persons skilled in the art that some step can use other order or
Person is carried out simultaneously.
If the current adaptive IE kernel version number of step 105 is IE6 kernel, then browser process
Call default IE kernel and redirect module, be redirected to relevant position and load preset IE6 kernel
File;
Redirect, literal be the operation to certain A file and be transferred directly to B file.Such as read,
Write, attribute, the even deletion action such as length or end-of-file (EOF) pointer are set.
In a kind of preferred embodiments of the present invention, it is permissible that described default IE kernel redirects module
Perform to be redirected to relevant position by following sub-step and load the operation of preset IE6 kernel file:
Sub-step S11, when monitor browser process access registration table time, if access IE configuration item,
Then guide the registration table configuration file of browser process read-write IE6 kernel;If inquiry IE kernel file
Path, then return the client that imported of IE6 kernel file and specify the information of position;
Sub-step S12, when monitor browser process access dynamic link library (DLL) time, according to work as
The version number of the IE6 kernel of front adaptation, navigates to the client that the IE6 kernel file of correspondence is imported
Specify position, and to the dynamic link library (DLL) of this location lookup same names, if finding, then draw
Lead browser process and load this dynamic link library (DLL);
Sub-step S13, when monitor browser process access data file, language pack file time, root
According to the version number of current adaptive IE6 kernel, navigate to the visitor that the IE6 kernel file of correspondence is imported
End appointment position, family, and arrive 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;
Sub-step S14, when monitor browser process create com object time, from described client
Registration table in, search and realize the dynamic link library (DLL) of this com object, then call described son
Step S12;
Wherein, com object (The Component Object Model The Component Object Model) is
Follow COM specification to write, with Win32 dynamic link library (DLL) or executable file (EXE)
The performed binary code that form is issued, it is possible to meet all demands to component architecture.Follow
The codes and standards of COM, can be the most convenient with interoperability between assembly and application, assembly and assembly
Set up telescopic application system.Com object is one and uses can repeating of COM specification
The component software used.COM specification is used to may insure that com object well works, and
It is attached to easily in your application program.It is true that COM substantially corresponds to a black box,
This black box can complete a lot of work for your application program.Com object is typically with dynamically connecting
Connect storehouse (DLL) to realize.The same with common DLL, com object exposes certain methods, applies journey
Sequence can call it, in order to completes the operation of any support.
Sub-step S15, when monitoring browser process and accessing DLL kernel handler, call described
Sub-step S12.
Wherein, handle is windows for indicating set up in application program or use unique
Integer, windows employs substantial amounts of handle to indicate a lot of object.But, handle is not one
Pointer, program can not utilize its handle to carry out the information in direct reading file.
Reset it should be noted that above-mentioned sub-step S11-S15 is only used for describing the IE kernel preset
Perform to redirect the several ways of operation to module, do not limited by described sequence of movement,
It will be appreciated by persons skilled in the art that some step can use other orders or enter simultaneously
OK.
If the current adaptive IE kernel version of step 106 is novel I E kernel, then browser process
Call default IE kernel and redirect module, be redirected to relevant position and load preset novel I E
Kernel file.
In a kind of preferred embodiments of the present invention, it is permissible that described default IE kernel redirects module
Perform to be redirected to relevant position by following sub-step and load the operation of preset IE8 kernel file:
Sub-step S21, when monitor browser process access registration table time, if access IE configuration item,
Then guide the registration table configuration file of browser process read-write IE8 kernel;If inquiry IE kernel file
Path, then return the client that imported of IE8 kernel file and specify the information of position;
Sub-step S22, when monitor browser process access dynamic link library (DLL) time, according to work as
The version number of the IE8 kernel of front adaptation, navigates to the client that the IE8 kernel file of correspondence is imported
Specify position, and to the dynamic link library (DLL) of this location lookup same names, if finding, then draw
Lead browser process and load this dynamic link library (DLL);
Sub-step S23, when monitor browser process access data file, language pack file time, root
According to the version number of current adaptive IE8 kernel, navigate to the visitor that the IE8 kernel file of correspondence is imported
End appointment position, family, and arrive 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;
Sub-step S24, when monitor browser process create com object time, from described client
Registration table in, search and realize the dynamic link library (DLL) of this com object, then call described son
Step S22;
Sub-step S25, when monitoring browser process and accessing DLL kernel handler, call described
Sub-step S22.
Reset it should be noted that above-mentioned sub-step S21-S25 is only used for describing the IE kernel preset
Perform to redirect the several ways of operation to module, do not limited by described sequence of movement,
It will be appreciated by persons skilled in the art that some step can use other orders or enter simultaneously
OK.
Specifically, in embodiments of the present invention, the redirection of described IE kernel file is primarily referred to as
When browser creates, steering program specified path load document, specifically include that
1, IE kernel redirects.Making browser load indicated release kernel objects, heavy duty realizes system
API, specifically can use:
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 redirects.Some functional modules may realize in DLL mode, it is also desirable to heavy duty
System API, to redirect, specifically can use:
LoadLibrary/LoadLibrary: realize DLL and load
FreeLibrary: realize DLL release
3, registration table redirects.Making browser load/preserve the configuration data of indicated release, heavy duty is real
Existing system API, specifically can use:
RegOpenKeyEx: open registration table key assignments with read-write
Certainly, said method is solely for example, and in implementing, those skilled in the art adopt
The method applying other kernel to redirect with default IE kernel redirection module loads corresponding version
IE kernel file is all feasible, the present invention to this without being any limitation as.
A kind of example specifically applied as the embodiment of the present invention, described default IE kernel redirects
Module can be dynamic link library file Tridentcore.dll.
In embodiments of the present invention, it is also possible to comprise the steps:
Current adaptive browser kernel is used to load the webpage of described request.
It is to browse described in the webpage fit of described request of loading due to know according to presetting rule
Device kernel, therefore, it can directly invoke the browser kernel of the webpage fit with described request of loading
Load the webpage of described request of loading.Browser described in the embodiment of the present invention is many kernel browsers,
I.e. including at least two kinds of kernels in browser.Due to every kind of kernel correspondence portion code, interior
Core browser realizes many parts of codes in a browser, when selecting certain kernel loads webpage, calls
Corresponding code.
With reference to Fig. 2, it is shown that a kind of IE6 kernel of the application and the changing method of novel I E kernel
The flow chart of steps of embodiment 2, wherein said browser includes at least two browser kernel, its
Middle a kind of browser kernel is IE kernel, and described IE kernel at least includes IE6 kernel and novel I E
Two versions of kernel, the present embodiment specifically may comprise steps of:
Step 201, reception load the solicited message of webpage, and described solicited message includes that URL believes
Breath;
Step 202, know according to presetting rule between webpage and the browser kernel of described request of loading
Fitting relation;
Step 203, select corresponding browser kernel according to described fitting relation;
Step 204, when selected browser kernel is IE kernel, browser process start
Time, described IE6 kernel file and IE8 kernel file are write internal memory;Further, browser process depends on
According to described URL information, it is judged that current adaptive IE kernel version;
If the current adaptive IE kernel version of step 205 is IE6 kernel, then browser process is adjusted
Redirecting module with default IE kernel, the relevant position being redirected in client internal memory loads pre-
The IE6 kernel file put;
If the current adaptive IE kernel version of step 206 is novel I E kernel, then browser process
Calling default IE kernel and redirect module, the position of answering being redirected in phase client internal memory loads
Preset novel I E kernel file.
For making those skilled in the art be more fully understood that the present invention, say below by way of a complete example
The IE6 kernel of the bright present invention and the handoff procedure of IE8 kernel.
Step A, by the main modular file of IE6 kernel and the main modular file of IE8 kernel, peace
Install in the assigned catalogue of client;
Wherein, the main modular file of described IE6 kernel and the main modular file of IE8 kernel include:
The dynamic link library (DLL) of IE6 kernel and the dynamic link library (DLL) of IE8 kernel;The number of IE6 kernel
According to file and the data file of IE8 kernel;The language pack file of IE6 kernel and the language of IE8 kernel
APMB package etc..
Step B, by 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 start, perform following sub-step:
Sub-step C1, supervision registration table, DLL, internal memory, webpage (user's input or the URL clicked on)
Access;
The main modular literary composition of sub-step C2, the main modular file loading IE6 kernel and IE8 kernel
Part is in internal memory;
Step D, when browser receives the URL that user submits to, calculate suitable as follows
Close the IE kernel version number of this URL:
If URL is lan address, then return IE kernel version number is that IE6 is (in using IE6
Core);
If URL comprises IP address, then return IE kernel version number is that IE6 is (in using IE6
Core);
If URL is in the compatible domain name list of IE8, then return IE kernel version number is that IE8 (makes
Use IE8 kernel);
Other situation returns 0 (using the IE kernel that system is own).
Step E, browser start to load kernel, when creating the page, can read and write registration table, loading
DLL and data file, establishment com object, be specifically related to following operation:
1, when monitoring browser access registration table, if accessing IE configuration item, then it is guided to read and write
The respective items imported in step B;If inquiry IE kernel module path, then return in step C is interior
Deposit appointment position;
2, when monitoring browser access DLL, according to the IE kernel version calculated in step D
Number, navigate to kernel file catalogue corresponding in internal memory, in this kernel catalogue, search same names
DLL, if finding, then guide browser process to load corresponding kernel file;Otherwise, guide
The default module of browser loading system;
3, when monitoring browser access data file, language pack file, fall into a trap according to step D
The IE kernel version number calculated, searches corresponding document in kernel file catalogue corresponding in internal memory;
4, when monitoring browser and creating com object, from the registration table of step B, search
Realize the DLL of this com object, perform above step 2;
5, when monitoring browser access DLL kernel handler, above step 2 is performed.
In this example, step A, B can complete in installation process, and each browser process starts
Shi Zhihang C item, step D, E are performed both by when each browsing pages.
It should be noted that for embodiment of the method, in order to be briefly described, therefore it is all expressed as
A series of combination of actions, but those skilled in the art should know, and the present invention is by being retouched
The restriction of the sequence of movement stated because according to the present invention, some step can use other orders or
Person is carried out simultaneously.Secondly, those skilled in the art also should know, reality described in this description
Executing example and belong to preferred embodiment, involved action and module not necessarily present invention institute is necessary
's.
With reference to Fig. 3, it is shown that in a kind of based on many kernel browsers the different editions IE of the present invention
The structured flowchart of the system embodiment 1 of core switching, wherein said browser includes that at least two browses
Device kernel, one of which browser kernel is IE kernel, and described IE kernel at least includes IE6 kernel
With two versions of novel I E kernel:
Described device specifically can include such as lower module:
Request receiver module 301, is suitable to receive the solicited message loading webpage, in described solicited message
Including uniform resource position mark URL information;
Fitting relation acquisition module 302, is suitable to know the webpage of described request of loading according to presetting rule
And the fitting relation between browser kernel;
Kernel selection module 303, is suitable to select corresponding browser kernel according to described fitting relation,
Browser process 304, is suitable to when selected browser kernel is IE kernel, according to institute
State uniform resource position mark URL information and judge current adaptive IE kernel version;
IE kernel redirects module 305, and being suitable at current adaptive IE kernel version is IE6 kernel
Time, it is redirected to relevant position and loads preset IE6 kernel file;And, in current adaptation
When IE kernel version is novel I E kernel, it is redirected to relevant position and loads in preset novel I E
Core file.
In implementing, described novel I E kernel can be IE8 kernel, described novel I E kernel
File can be IE8 kernel file;
Or, described novel I E kernel can be the IE kernel of more than IE8 version, described novel I E
Kernel file can be the IE kernel file of more than IE8 version.
In one preferred embodiment of the invention, described IE6 kernel file and IE8 kernel file can
To include following content:
The dynamic link library (DLL) of IE6 kernel and the dynamic link library (DLL) of IE8 kernel;
The data file of IE6 kernel and the data file of 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.
A kind of example specifically applied as the present invention, described preset IE6 kernel file and novel
IE kernel file is stored in client, realizes especially by the following manner:
Extract the dynamic link library (DLL) of IE6 kernel from IE6 kernel, extract IE8 from IE8 kernel
The dynamic link library (DLL) of kernel;
It is adapted and analyzes data file and the language pack file generating IE6 kernel, and, IE8 kernel
Data file and the language pack file of IE8 kernel;
By 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 install the appointment to client
Position;
Generate IE6 kernel and the registration table configuration file of IE8 kernel, and import the note of described client
In volume table;
Wherein, the described dynamic link library (DLL) extracting IE6 kernel from IE6 kernel, in IE8
The sub-step of the dynamic link library (DLL) that core extracts IE8 kernel farther includes:
The all system application interface APIs relevant to IE6 kernel loads of heavy duty;
By monitoring that dynamic link library (DLL) checks interface, it is thus achieved that all dynamic chain that browser loads
Meet storehouse DLL;
The dynamic link library (DLL) of removal system bottom, extracts the dynamic link library (DLL) of IE6 kernel;
And,
The all system application interface APIs relevant to IE8 kernel loads of heavy duty;
By monitoring that dynamic link library (DLL) checks interface, it is thus achieved that all dynamic chain that browser loads
Meet storehouse DLL;
The dynamic link library (DLL) of removal system bottom, extracts the dynamic link library (DLL) of IE8 kernel.
With reference to Fig. 4, it is shown that in a kind of based on many kernel browsers the different editions IE of the present invention
The structured flowchart of the system embodiment 2 of core switching, wherein said browser includes that at least two browses
Device kernel, one of which browser kernel is IE kernel, and described IE kernel at least includes IE6 kernel
With two versions of novel I E kernel:
Described device specifically can include such as lower module:
Request receiver module 401, is suitable to receive the solicited message loading webpage, in described solicited message
Including uniform resource position mark URL information;
Fitting relation acquisition module 402, is suitable to know the webpage of described request of loading according to presetting rule
And the fitting relation between browser kernel;
Kernel selection module 403, is suitable to select corresponding browser kernel according to described fitting relation,
Internal memory writing module 404, is suitable to write described IE6 kernel file and novel I E kernel file
Enter internal memory;
Browser process 405, is suitable to when selected browser kernel is IE kernel, according to institute
State uniform resource position mark URL information and judge current adaptive IE kernel version;
In one preferred embodiment of the invention, described browser process 405 can include following
Submodule:
First judges submodule 4051, is suitable to the uniform resource position mark URL submitted to active user
When information is lan address, it is determined that current adaptive IE kernel version number is IE6 kernel;
Second judges submodule 4052, is suitable to the uniform resource position mark URL submitted to active user
When information comprises IP address, it is determined that current adaptive IE kernel version number is IE6 kernel;
3rd judges submodule 4053, is suitable to the uniform resource position mark URL submitted to active user
When information is included in IE8 kernel compatibility domain name list, it is determined that current adaptive IE kernel version number
For IE8 kernel.
It is further preferred that described browser process can also include following submodule:
4th judges submodule 4054, is suitable to the uniform resource position mark URL submitted to active user
When information is included in the kernel compatibility domain name list of novel I E, it is determined that current adaptive IE kernel version
It number it is corresponding novel I E kernel.
IE kernel redirects module 406, and being suitable at current adaptive IE kernel version is IE6 kernel
Time, it is redirected to relevant position and loads preset IE6 kernel file;And, in current adaptation
When IE kernel version is novel I E kernel, it is redirected to relevant position and loads in preset novel I E
Core file.
With reference to Fig. 5, it is shown that in one preferred embodiment of the invention, described IE kernel resets
The submodule included to module 406:
First registry operations submodule 4061, is suitable to monitoring browser process access registration table
Time, if accessing IE configuration item, then guide the registration table configuration literary composition of browser process read-write IE6 kernel
Part;If the path of inquiry IE kernel file, then the client that return IE6 kernel file is imported refers to
The information that location is put;
Oneth DLL operator module 4062, is suitable to monitoring browser process access dynamic link
During the DLL of storehouse, according to the version number of current adaptive IE6 kernel, navigate to the IE6 kernel of correspondence
The client that file is imported specifies position, and to the dynamic link library of this location lookup same names
DLL, if finding, then guides browser process to load this dynamic link library (DLL);
First associated documents operator module 4063, is suitable to monitoring browser process access data
When file, language pack file, according to the version number of current adaptive IE6 kernel, navigate to correspondence
The client that IE6 kernel file is imported specifies position, and to the data of this location lookup same names
File and language pack file, if finding, then guide browser process to load this data file and language
APMB package;
First com object creates submodule 4064, is suitable to monitoring browser process establishment
During com object, from the registration table of described client, search and realize the dynamic of this com object
Chained library DLL, then calls a described DLL operator module 4062;
Oneth DLL kernel handler operator module 4065, is suitable to when monitoring browser process access
During DLL kernel handler, call a described DLL operator module 4062;
Second registry operations submodule 4066, is suitable to monitoring browser process access registration table
Time, if accessing IE configuration item, then guide the registration table configuration literary composition of browser process read-write IE8 kernel
Part;If the path of inquiry IE kernel file, then the client that return IE8 kernel file is imported refers to
The information that location is put;
2nd DLL operator module 4067, is suitable to monitoring browser process access dynamic link
During the DLL of storehouse, according to the version number of current adaptive IE8 kernel, navigate to the IE8 kernel of correspondence
The client that file is imported specifies position, and to the dynamic link library of this location lookup same names
DLL, if finding, then guides browser process to load this dynamic link library (DLL);
Second associated documents operator module 4068, is suitable to monitoring browser process access data
When file, language pack file, according to the version number of current adaptive IE8 kernel, navigate to correspondence
The client that IE8 kernel file is imported specifies position, and to the data of this location lookup same names
File and language pack file, if finding, then guide browser process to load this data file and language
APMB package;
Second com object creates submodule 4069, is suitable to monitoring browser process establishment
During com object, from the registration table of described client, search and realize the dynamic of this com object
Chained library DLL, then calls described 2nd DLL operator module 4067;
2nd DLL kernel handler operator module 4070, is suitable to when monitoring browser process access
During DLL kernel handler, call described 2nd DLL operator module 4067.
A kind of example specifically applied as the embodiment of the present invention, described default IE kernel redirects
Module can be dynamic link library file Tridentcore.dll.
In embodiments of the present invention, it is also possible to include webpage load-on module, it is suitable for use with current adaptation
Browser kernel load described request webpage.
In one preferred embodiment of the invention, described fitting relation acquisition module 402 can wrap
Include following submodule:
First obtains submodule, is suitable to know that the webpage with described request of loading is fitted according to presetting rule
The described browser kernel joined;
Described kernel selection module 403 can include following submodule:
First select submodule, be suitably selected for in the browser of the webpage fit of described request of loading
Core;
And/or,
Described fitting relation acquisition module 402 can include following submodule:
Second obtains submodule, is suitable to know the webpage with described request of loading not according to presetting rule
Adaptive browser kernel;
Described kernel selection module 403 can include following submodule:
Second selects submodule, be suitably selected for described in browser kernel outside the most adaptive kernel add
Carry the webpage of described request of loading;
And/or,
Described fitting relation acquisition module 402 can include following submodule:
3rd obtains submodule, is suitable to know the webpage of described request of loading according to presetting rule and work as
Fitting relation between the browser kernel of front acquiescence;
Described kernel selection module 403 can include following submodule:
3rd selects submodule, if being suitable to the webpage of described request of loading and browsing of current default
Device kernel is adaptive, then select the browser kernel of described current default to load;Otherwise, select currently
Browser kernel outside acquiescence kernel.
As a kind of example, described presetting rule can include preset specific adaptation rule and/or
General adaptive rule, wherein, described preset specific adaptation rule includes between webpage and kernel
Fitting relation, described General adaptive rule includes selecting the fastest the browsing of average loading velocity for user
Device kernel or select the browser kernel adaptive to network standard for user.
For device embodiment, due to itself and preceding method embodiment basic simlarity, so retouching
That states is fairly simple, and relevant part sees the part of embodiment of the method and illustrates.
With reference to Fig. 6, it is shown that the structured flowchart of a kind of browser of the present invention, wherein said browser
50 include that at least two browser kernel, one of which browser kernel are IE kernel 51, another kind of
Browser kernel is other kernel 52 in addition to IE kernel, and described IE kernel at least includes IE6
Kernel and two versions of novel I E kernel: described browser includes:
Request receiver module 501, is suitable to receive the solicited message loading webpage, in described solicited message
Including uniform resource position mark URL information;
Fitting relation acquisition module 502, is suitable to know the webpage of described request of loading according to presetting rule
And the fitting relation between browser kernel;
Kernel selection module 503, is suitable to select corresponding browser kernel according to described fitting relation,
Browser process 504, is suitable to when selected browser kernel is IE kernel, according to institute
State uniform resource position mark URL information and judge current adaptive IE kernel version;
IE kernel redirects module 505, and being suitable at current adaptive IE kernel version is IE6 kernel
Time, it is redirected to relevant position and loads preset IE6 kernel file;And, in current adaptation
When IE kernel version is novel I E kernel, it is redirected to relevant position and loads in preset novel I E
Core file.
For above-described embodiment, due to itself and preceding method embodiment basic simlarity, so retouching
That states is fairly simple, and relevant part sees the part of embodiment of the method and illustrates.
Each embodiment in this specification all uses the mode gone forward one by one to describe, each embodiment emphasis
Illustrate is all the difference with other embodiments, identical similar part between each embodiment
See mutually.
Provided herein algorithm and display not with any certain computer, virtual system or other set
Standby intrinsic relevant.Various general-purpose systems can also be used together with based on teaching in this.According to upper
The description in face, constructs the structure required by this kind of system and is apparent from.Additionally, the present invention is also
It is not for any certain programmed language.It is understood that, it is possible to use various programming languages realize at this
The present disclosure described, and the description above done language-specific is to disclose this
Bright preferred forms.
In description mentioned herein, illustrate a large amount of detail.It is to be appreciated, however, that
Embodiments of the invention can be put into practice in the case of not having these details.In some instances,
It is not shown specifically known method, structure and technology, in order to do not obscure the understanding of this description.
Similarly, it will be appreciated that in order to simplify the disclosure and help to understand in each inventive aspect
One or more, above in the description of the exemplary embodiment of the present invention, each of the present invention
Feature is grouped together in single embodiment, figure or descriptions thereof sometimes.But, and
The method of the disclosure should be construed to reflect an intention that i.e. the present invention for required protection requirement
Than the more feature of feature being expressly recited in each claim.More precisely, it is as follows
As the claims in face are reflected, inventive aspect is less than single enforcement disclosed above
All features of example.Therefore, it then follows claims of detailed description of the invention are thus expressly incorporated in
This detailed description of the invention, the most each claim itself is as the independent embodiment of the present invention.
Those skilled in the art are appreciated that and can enter the module in the equipment in embodiment
Row adaptively changes and they is arranged on the one or more equipment different from this embodiment
In.Module in embodiment or unit or assembly can be combined into a module or unit or assembly,
And multiple submodule or subelement or sub-component can be put them in addition.Except such spy
Levy and/or outside at least some in process or unit excludes each other, any combination can be used
To all features disclosed in this specification (including adjoint claim, summary and accompanying drawing) with
And any method or all processes of equipment or unit are combined disclosed in so.Unless additionally
It is expressly recited, every disclosed in this specification (including adjoint claim, summary and accompanying drawing)
Individual feature can be replaced by the alternative features providing identical, equivalent or similar purpose.
Although additionally, it will be appreciated by those of skill in the art that embodiment bags more described herein
Some feature included by including in other embodiments rather than further feature, but different embodiment
The combination of feature means to be within the scope of the present invention and formed different embodiments.Such as,
In the following claims, embodiment required for protection one of arbitrarily can be with arbitrarily
Compound mode use.
The all parts embodiment of the present invention can realize with hardware, or with at one or more
The software module run on processor realizes, or realizes with combinations thereof.The technology of this area
Personnel should be appreciated that and can use microprocessor or digital signal processor (DSP) in practice
Realize some or all parts in terminal security maintenance equipment according to embodiments of the present invention
Some or all functions.The present invention is also implemented as performing method as described herein
Part or all equipment or device program (such as, computer program and computer program
Product).The program of such present invention of realization can store on a computer-readable medium, or can
To have the form of one or more signal.Such signal can be downloaded from internet website
Obtain, or provide on carrier signal, or provide with any other form.
The present invention will be described rather than limits the present invention to it should be noted above-described embodiment
Make, and those skilled in the art can design without departing from the scope of the appended claims
Go out alternative embodiment.In the claims, any reference marks structure between bracket should not will be located in
Cause limitations on claims.Word " comprises " and does not excludes the presence of the element not arranged in the claims
Or step.Word "a" or "an" before being positioned at element does not excludes the presence of multiple such element.
The present invention can be by means of including the hardware of some different elements and by means of properly programmed meter
Calculation machine realizes.If in the unit claim listing equipment for drying, some in these devices
Individual can be specifically to be embodied by same hardware branch.Word first, second and third
Use do not indicate that any order.Can be title by these word explanations.
Claims (23)
1. the method for different editions IE kernels based on a many kernel browsers switching, wherein said browser includes at least two browser kernel, one of which browser kernel is IE kernel, and described IE kernel at least includes IE6 kernel and two versions of novel I E kernel:
Described method includes:
Receiving the solicited message loading webpage, described solicited message includes uniform resource position mark URL information;
The fitting relation between webpage and the browser kernel of described request of loading is known according to presetting rule;
Selecting corresponding browser kernel according to described fitting relation, when selected browser kernel is IE kernel, browser process is according to described uniform resource position mark URL information, it is judged that current adaptive IE kernel version;
If current adaptive IE kernel version is IE6 kernel, then browser process is called default IE kernel and is redirected module, IE kernel redirects module and performs to be redirected to the operation of the preset IE6 kernel file of relevant position loading, and it is dynamic link library file Tridentcore.dll that described default IE kernel redirects module;
If current adaptive IE kernel version is novel I E kernel, then browser process is called default IE kernel and is redirected module, and IE kernel redirection module performs to be redirected to relevant position and loads the operation of preset novel I E kernel file;
Current adaptive browser kernel is used to load the webpage of described request.
2. the method for claim 1, described novel I E kernel is IE8 kernel, and described novel I E kernel file is IE8 kernel file;
Or, described novel I E kernel is the IE kernel of more than IE8 version, and described novel I E kernel file is the IE kernel file of more than IE8 version.
3. method as claimed in claim 2, described IE6 kernel file and IE8 kernel file include:
The dynamic link library (DLL) of IE6 kernel and the dynamic link library (DLL) of IE8 kernel;
The data file of IE6 kernel and the data file of 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, described preset IE6 kernel file and novel I E kernel file are stored in client, realize especially by following sub-step:
Extract the dynamic link library (DLL) of IE6 kernel from IE6 kernel, extract the dynamic link library (DLL) of IE8 kernel from IE8 kernel;
It is adapted and analyzes data file and the language pack file generating IE6 kernel, and, the data file of IE8 kernel and the language pack file of IE8 kernel;
By 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 install the appointment position to client;
Generate IE6 kernel and the registration table configuration file of IE8 kernel, and import in the registration table of described client.
5. method as claimed in claim 4, the described dynamic link library (DLL) extracting IE6 kernel from IE6 kernel, include from the sub-step of the dynamic link library (DLL) of IE8 kernel extraction IE8 kernel:
The all system application interface APIs relevant to IE6 kernel loads of heavy duty;
By monitoring that dynamic link library (DLL) checks interface, it is thus achieved that all dynamic link library (DLL)s that browser loads;
The dynamic link library (DLL) of removal system bottom, extracts the dynamic link library (DLL) of IE6 kernel;
And,
The all system application interface APIs relevant to IE8 kernel loads of heavy duty;
By monitoring that dynamic link library (DLL) checks interface, it is thus achieved that all dynamic link library (DLL)s that browser loads;
The dynamic link library (DLL) of removal system bottom, extracts the dynamic link library (DLL) of IE8 kernel.
6. method as described in claim any one of claim 15, the uniform resource position mark URL information that described browser process is submitted to according to user, it is judged that the step of current adaptive IE kernel version number farther includes:
If the uniform resource position mark URL information that active user submits to is lan address, then judges that the IE kernel version number of current adaptation is as IE6 kernel;
If the uniform resource position mark URL information that active user submits to comprises IP address, then judges that the IE kernel version number of current adaptation is as IE6 kernel;
If the uniform resource position mark URL information that active user submits to is included in IE8 kernel compatibility domain name list, then judges that the IE kernel version number of current adaptation is as IE8 kernel.
7. method as described in claim any one of claim 15, the uniform resource position mark URL information that described browser process is submitted to according to user, it is judged that the step of current adaptive IE kernel version number also includes:
If the uniform resource position mark URL information that active user submits to is included in the kernel compatibility domain name list of novel I E, then judges the current adaptive IE kernel version number novel I E kernel as correspondence.
8. the method as described in claim 3,4 or 5, described default IE kernel redirects module and performs to be redirected to the operation of the preset IE6 kernel file of relevant position loading by following sub-step:
When monitoring browser process and accessing registration table, if accessing IE configuration item, then guide the registration table configuration file of browser process read-write IE6 kernel;If the path of inquiry IE kernel file, then return the information of the client appointment position that IE6 kernel file is imported;
When monitoring browser process and accessing dynamic link library (DLL), version number according to current adaptive IE6 kernel, navigate to the client appointment position that the IE6 kernel file of correspondence is imported, and to the dynamic link library (DLL) of this location lookup same names, if finding, then browser process is guided to load this dynamic link library (DLL);
When monitoring browser process and accessing data file, language pack file, version number according to current adaptive IE6 kernel, navigate to the client appointment position that the IE6 kernel file of correspondence is imported, and arrive data file and the language pack file of this location lookup same names, if finding, then browser process is guided to load this data file and language pack file;
When monitoring browser process and creating com object, from the registration table of described client, search the dynamic link library (DLL) realizing this com object, then call the described process sub-step when monitoring browser process access dynamic link library (DLL);
When monitoring browser process and accessing DLL kernel handler, call the described process sub-step when monitoring browser process access dynamic link library (DLL).
9. the method as described in claim 3,4 or 5, described default IE kernel redirects module and performs to be redirected to the operation of the preset IE8 kernel file of relevant position loading by following sub-step:
When monitoring browser process and accessing registration table, if accessing IE configuration item, then guide the registration table configuration file of browser process read-write IE8 kernel;If the path of inquiry IE kernel file, then return the information of the client appointment position that IE8 kernel file is imported;
When monitoring browser process and accessing dynamic link library (DLL), version number according to current adaptive IE8 kernel, navigate to the client appointment position that the IE8 kernel file of correspondence is imported, and to the dynamic link library (DLL) of this location lookup same names, if finding, then browser process is guided to load this dynamic link library (DLL);
When monitoring browser process and accessing data file, language pack file, version number according to current adaptive IE8 kernel, navigate to the client appointment position that the IE8 kernel file of correspondence is imported, and arrive data file and the language pack file of this location lookup same names, if finding, then browser process is guided to load this data file and language pack file;
When monitoring browser process and creating com object, from the registration table of described client, search the dynamic link library (DLL) realizing this com object, then call the described process sub-step when monitoring browser process access dynamic link library (DLL);
When monitoring browser process and accessing DLL kernel handler, call the described process sub-step when monitoring browser process access dynamic link library (DLL).
10. the method for claim 1, also includes:
Described IE6 kernel file and novel I E kernel file are write internal memory;
The described step being redirected to the preset IE6 kernel file of relevant position loading is that the relevant position being redirected in internal memory loads described preset IE6 kernel file;
The described step being redirected to the preset IE8 kernel file of relevant position loading is that the relevant position being redirected in internal memory loads described preset IE8 kernel file.
11. the method for claim 1, described know that according to presetting rule the step of the fitting relation between the webpage of described request of loading and described browser kernel includes: know the described browser kernel with the webpage fit of described request of loading according to presetting rule;
The step of the described browser kernel selecting correspondence according to fitting relation includes: the browser kernel of the webpage fit of selection and described request of loading;
And/or,
Described know that according to presetting rule the step of the fitting relation between the webpage of described request of loading and described browser kernel includes: know the browser kernel the most adaptive with the webpage of described request of loading according to presetting rule;
The step of the described browser kernel selecting correspondence according to fitting relation includes: the browser kernel outside kernel the most adaptive described in selection loads the webpage of described request of loading;
And/or,
Described know that according to presetting rule the step of the fitting relation between the webpage of described request of loading and described browser kernel includes: know the fitting relation between webpage and the browser kernel of current default of described request of loading according to presetting rule;
The step of the described browser kernel selecting correspondence according to fitting relation includes: if the webpage of described request of loading is adaptive with the browser kernel of current default, then select the browser kernel of described current default to load;Otherwise, the browser kernel outside current default kernel is selected.
12. methods as described in claim 1 or 11, described presetting rule includes preset specific adaptation rule and/or General adaptive rule, wherein, described preset specific adaptation rule includes the fitting relation between webpage and kernel, described General adaptive rule to include for user selecting the fastest browser kernel of average loading velocity or select the browser kernel adaptive to network standard for user.
The device of 13. 1 kinds of different editions IE kernels based on many kernel browsers switchings, wherein said browser includes at least two browser kernel, one of which browser kernel is IE kernel, and described IE kernel at least includes IE6 kernel and two versions of novel I E kernel:
Described device includes:
Request receiver module, is suitable to receive the solicited message loading webpage, and described solicited message includes uniform resource position mark URL information;
Fitting relation acquisition module, is suitable to the fitting relation knowing between webpage and the browser kernel of described request of loading according to presetting rule;
Kernel selection module, is suitable to select corresponding browser kernel according to described fitting relation,
Browser process, is suitable to when selected browser kernel is IE kernel, judges current adaptive IE kernel version according to described uniform resource position mark URL information;
IE kernel redirects module, is suitable to, when current adaptive IE kernel version is IE6 kernel, be redirected to relevant position and load preset IE6 kernel file;And, when current adaptive IE kernel version is novel I E kernel, it being redirected to relevant position and load preset novel I E kernel file, it is dynamic link library file Tridentcore.dll that described IE kernel redirects module;
Webpage load-on module, is suitable for use with current adaptive browser kernel and loads the webpage of described request.
14. devices as claimed in claim 13, described novel I E kernel is IE8 kernel, and described novel I E kernel file is IE8 kernel file;
Or, described novel I E kernel is the IE kernel of more than IE8 version, and described novel I E kernel file is the IE kernel file of more than IE8 version.
15. devices as claimed in claim 14, described IE6 kernel file and IE8 kernel file include:
The dynamic link library (DLL) of IE6 kernel and the dynamic link library (DLL) of IE8 kernel;
The data file of IE6 kernel and the data file of 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.
16. devices as claimed in claim 15, described preset IE6 kernel file and novel I E kernel file are stored in client, realize especially by following sub-step:
Extract the dynamic link library (DLL) of IE6 kernel from IE6 kernel, extract the dynamic link library (DLL) of IE8 kernel from IE8 kernel;
It is adapted and analyzes data file and the language pack file generating IE6 kernel, and, the data file of IE8 kernel and the language pack file of IE8 kernel;
By 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 install the appointment position to client;
Generate IE6 kernel and the registration table configuration file of IE8 kernel, and import in the registration table of described client;
Wherein, the described dynamic link library (DLL) extracting IE6 kernel from IE6 kernel, include from the sub-step of the dynamic link library (DLL) of IE8 kernel extraction IE8 kernel:
The all system application interface APIs relevant to IE6 kernel loads of heavy duty;
By monitoring that dynamic link library (DLL) checks interface, it is thus achieved that all dynamic link library (DLL)s that browser loads;
The dynamic link library (DLL) of removal system bottom, extracts the dynamic link library (DLL) of IE6 kernel;
And,
The all system application interface APIs relevant to IE8 kernel loads of heavy duty;
By monitoring that dynamic link library (DLL) checks interface, it is thus achieved that all dynamic link library (DLL)s that browser loads;
The dynamic link library (DLL) of removal system bottom, extracts the dynamic link library (DLL) of IE8 kernel.
17. any one of claim 13 16 device as described in claim, described browser process includes:
First judges submodule, is suitable to when the uniform resource position mark URL information that active user submits to is lan address, it is determined that current adaptive IE kernel version number is IE6 kernel;
Second judges submodule, is suitable to when the uniform resource position mark URL information that active user submits to comprises IP address, it is determined that current adaptive IE kernel version number is IE6 kernel;
3rd judges submodule, is suitable to when the uniform resource position mark URL information that active user submits to is included in IE8 kernel compatibility domain name list, it is determined that current adaptive IE kernel version number is IE8 kernel.
18. devices as claimed in claim 17, described browser process also includes:
4th judges submodule, is suitable to when the uniform resource position mark URL information that active user submits to is included in the kernel compatibility domain name list of novel I E, it is determined that current adaptive IE kernel version number is corresponding novel I E kernel.
19. devices as described in claim 15 or 16, described IE kernel redirects module and includes:
First registry operations submodule, is suitable to when monitoring browser process and accessing registration table, if accessing IE configuration item, then guides the registration table configuration file of browser process read-write IE6 kernel;If the path of inquiry IE kernel file, then return the information of the client appointment position that IE6 kernel file is imported;
Oneth DLL operator module, be suitable to when monitoring browser process and accessing dynamic link library (DLL), version number according to current adaptive IE6 kernel, navigate to the client appointment position that the IE6 kernel file of correspondence is imported, and to the dynamic link library (DLL) of this location lookup same names, if finding, then browser process is guided to load this dynamic link library (DLL);
First associated documents operator module, be suitable to when monitoring browser process and accessing data file, language pack file, version number according to current adaptive IE6 kernel, navigate to the client appointment position that the IE6 kernel file of correspondence is imported, and arrive data file and the language pack file of this location lookup same names, if finding, then browser process is guided to load this data file and language pack file;
First com object creates submodule, is suitable to, when monitoring browser process and creating com object, from the registration table of described client, search the dynamic link library (DLL) realizing this com object, then call a described DLL operator module;
Oneth DLL kernel handler operator module, is suitable to, when monitoring browser process and accessing DLL kernel handler, call a described DLL operator module;
Second registry operations submodule, is suitable to when monitoring browser process and accessing registration table, if accessing IE configuration item, then guides the registration table configuration file of browser process read-write IE8 kernel;If the path of inquiry IE kernel file, then return the information of the client appointment position that IE8 kernel file is imported;
2nd DLL operator module, be suitable to when monitoring browser process and accessing dynamic link library (DLL), version number according to current adaptive IE8 kernel, navigate to the client appointment position that the IE8 kernel file of correspondence is imported, and to the dynamic link library (DLL) of this location lookup same names, if finding, then browser process is guided to load this dynamic link library (DLL);
Second associated documents operator module, be suitable to when monitoring browser process and accessing data file, language pack file, version number according to current adaptive IE8 kernel, navigate to the client appointment position that the IE8 kernel file of correspondence is imported, and arrive data file and the language pack file of this location lookup same names, if finding, then browser process is guided to load this data file and language pack file;
Second com object creates submodule, is suitable to, when monitoring browser process and creating com object, from the registration table of described client, search the dynamic link library (DLL) realizing this com object, then call described 2nd DLL operator module;
2nd DLL kernel handler operator module, is suitable to, when monitoring browser process and accessing DLL kernel handler, call described 2nd DLL operator module.
20. devices as claimed in claim 13, also include:
Internal memory writing module, is suitable to described IE6 kernel file and novel I E kernel file are write internal memory.
21. devices as claimed in claim 13, described fitting relation acquisition module includes:
First obtains submodule, is suitable to know the described browser kernel with the webpage fit of described request of loading according to presetting rule;
Described kernel selection module includes:
First selects submodule, is suitably selected for the browser kernel of webpage fit with described request of loading;
And/or,
Described fitting relation acquisition module includes:
Second obtains submodule, is suitable to know the browser kernel the most adaptive with the webpage of described request of loading according to presetting rule;
Described kernel selection module includes:
Second selects submodule, be suitably selected for described in browser kernel outside the most adaptive kernel load the webpage of described request of loading;
And/or,
Described fitting relation acquisition module includes:
3rd obtains submodule, is suitable to the fitting relation knowing between webpage and the browser kernel of current default of described request of loading according to presetting rule;
Described kernel selection module includes:
3rd selects submodule, if the webpage being suitable to described request of loading is adaptive with the browser kernel of current default, then selects the browser kernel of described current default to load;Otherwise, the browser kernel outside current default kernel is selected.
22. devices as described in claim 13 or 21, described presetting rule includes preset specific adaptation rule and/or General adaptive rule, wherein, described preset specific adaptation rule includes the fitting relation between webpage and kernel, described General adaptive rule to include for user selecting the fastest browser kernel of average loading velocity or select the browser kernel adaptive to network standard for user.
23. 1 kinds of browser devices, wherein said browser device includes that at least two browser kernel, one of which browser kernel are IE kernel, and described IE kernel at least includes IE6 kernel and two versions of novel I E kernel:
Described browser device includes:
Request receiver module, is suitable to receive the solicited message loading webpage, and described solicited message includes uniform resource position mark URL information;
Fitting relation acquisition module, is suitable to the fitting relation knowing between webpage and the browser kernel of described request of loading according to presetting rule;
Kernel selection module, is suitable to select corresponding browser kernel according to described fitting relation,
Browser process, is suitable to when selected browser kernel is IE kernel, judges current adaptive IE kernel version according to described uniform resource position mark URL information;
IE kernel redirects module, is suitable to, when current adaptive IE kernel version is IE6 kernel, be redirected to relevant position and load preset IE6 kernel file;And, when current adaptive IE kernel version is novel I E kernel, it being redirected to relevant position and load preset novel I E kernel file, it is dynamic link library file Tridentcore.dll that described IE kernel redirects module;
Webpage load-on module, is suitable for use with current adaptive browser kernel and loads the webpage of described request.
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 CN102968341A (en) | 2013-03-13 |
CN102968341B true 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) |
Families Citing this family (16)
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 |
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 |
CN106446305A (en) * | 2016-12-23 | 2017-02-22 | 网际傲游(北京)科技有限公司 | System and method for Linux browser to realize Webkit/IE dual-core seamless browsing |
CN110247966B (en) * | 2019-06-12 | 2021-12-14 | 深圳市酷开网络科技股份有限公司 | Kernel creation method, smart television and computer-readable storage medium |
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 |
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 |
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 |
CN114546479B (en) * | 2022-04-25 | 2022-07-29 | 云账户技术(天津)有限公司 | Method and device for prompting incompatibility of browsers |
Family Cites Families (3)
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 |
CN102156709B (en) * | 2011-02-28 | 2020-01-03 | 奇智软件(北京)有限公司 | Method for switching browser engine modes |
CN102508710B (en) * | 2011-09-28 | 2014-01-01 | 奇智软件(北京)有限公司 | Method and system for switching between IE6 kernel and novel IE kernel |
-
2012
- 2012-10-25 CN CN201210413968.8A patent/CN102968341B/en not_active Expired - Fee Related
Also Published As
Publication number | Publication date |
---|---|
CN102968341A (en) | 2013-03-13 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN102968341B (en) | The method and apparatus of different editions IE kernels based on many kernel browsers switching | |
CN102508710B (en) | Method and system for switching between IE6 kernel and novel IE kernel | |
CN102968448B (en) | A kind of browser | |
EP2724251B1 (en) | Methods for making ajax web applications bookmarkable and crawlable and devices thereof | |
US9547717B2 (en) | Administration of search results | |
US5848424A (en) | Data navigator interface with navigation as a function of draggable elements and drop targets | |
CN100367276C (en) | Method and appts for searching within a computer network | |
US9747117B2 (en) | System and methods for loading an application and its modules in a client device | |
US8280884B2 (en) | Exposing rich internet application content to search engines | |
US20230143896A1 (en) | Cross-Platform Module for Loading Across a Plurality of Device Types | |
CN104423991B (en) | Webpage, the method and device that web data is provided are loaded in mobile terminal | |
US20100229081A1 (en) | Method for Providing a Navigation Element in an Application | |
CN102096582A (en) | Off-line gadget integration development environment | |
US9465814B2 (en) | Annotating search results with images | |
CN103559097B (en) | The method of interprocess communication, device and browser in a kind of browser | |
CN103617079B (en) | The switching method and system of a kind of IE6 kernels and novel I E kernels | |
CN101231655A (en) | Method and system for processing search engine results | |
US8458146B2 (en) | Accessing data remotely | |
US7469270B1 (en) | Method, system, and apparatus for presenting forms and publishing form data | |
CN107016000A (en) | The method and device of exhibition information | |
CN106484741A (en) | The method and device that a kind of single page application accesses data collection and sends | |
KR100429558B1 (en) | ADE data set component of client computer for transmitting/receiving of data between web servers |
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 |