CN102968448B - A kind of browser - Google Patents
A kind of browser Download PDFInfo
- Publication number
- CN102968448B CN102968448B CN201210413741.3A CN201210413741A CN102968448B CN 102968448 B CN102968448 B CN 102968448B CN 201210413741 A CN201210413741 A CN 201210413741A CN 102968448 B CN102968448 B CN 102968448B
- Authority
- CN
- China
- Prior art keywords
- kernel
- browser
- file
- 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
Landscapes
- Information Transfer Between Computers (AREA)
Abstract
The invention discloses a kind of browser, described browser 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 includes asking receiver module;Fitting relation acquisition module;Kernel selection module;IE kernel redirects module;Internal memory writing module.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 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
Ground is divided to solve a kind of browser of the problems referred to above.
According to the present invention, it is provided that a kind of browser, wherein said browser includes that at least two is clear
Looking at device 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 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;
Internal memory writing module, in being suitable to write described IE6 kernel file and novel I E kernel file
Deposit.
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 default IE kernel redirects module is dynamic link library file
Tridentcore.dll。
Alternatively, described browser also includes:
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.
Compared with prior art, the invention have the advantages that
According to a kind of browser, by least two kernel integrated in same browser, based on every kind
Kernel has the pluses and minuses of himself, and therefore, this many kernel browsers are relative to single kernel browser
For, to a certain extent, enhance browser and load the success rate of webpage.It is additionally, since this
Many kernel browsers of inventive embodiments, it is possible to active is the webpage that user accesses according to presetting rule
Select adaptive kernel rather than blindly selected to load the kernel of webpage completely by user oneself, because of
This avoids the blindness of user oneself selection to a certain extent (because most users is not very
Understand which kernel of which webpage fit), further improve the success rate loading webpage.Thus
Visible, the embodiment of the present invention can carry out intelligent selection to each kernel in browser, makes full use of
The advantage of each kernel, the shortcoming as far as possible avoiding each kernel loads the impact of webpage to user,
And then ground reached browser between multiple kernels the carrying out of intelligence have complementary advantages, to a certain degree
On improve the effect being browsed webpage by browser.
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
CoGetClassObject: 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 (8)
1. a browser device, wherein said browser device includes at least two browser kernel,
One of which browser kernel is IE kernel, and described IE kernel at least includes IE6 kernel and novel I E
Two versions of kernel:
Described browser 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;Clear
Look at device process, be suitable to when selected browser kernel is IE kernel, according to described unified resource
Finger URL URL information judges current adaptive IE kernel version, and calls default IE kernel weight
Orientation module;
Internal memory writing module, in being suitable to write described IE6 kernel file and novel I E kernel file
Deposit;
IE kernel redirects module, is suitable to when current adaptive IE kernel version is IE6 kernel,
The relevant position being redirected in internal memory loads preset IE6 kernel file;And, current adaptive
IE kernel version when being novel I E kernel, the relevant position being redirected in internal memory loads preset
Novel I E kernel file, it is dynamic link library file that described default IE kernel redirects module
Tridentcore.dll;
Webpage load-on module, is suitable for use with current adaptive browser kernel and loads the net of described request
Page;
Wherein, described novel I E kernel is IE8 kernel, in described novel I E kernel file is IE8
Core 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.
2. browser device as claimed in claim 1, described IE6 kernel file and IE8 kernel
File includes:
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.
3. browser device as claimed in claim 2, described preset IE6 kernel file is with new
Type IE kernel file is stored in client, realizes 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 it is all dynamic that browser device loads
State chained library 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 it is all dynamic that browser device loads
State chained library DLL;
The dynamic link library (DLL) of removal system bottom, extracts the dynamic link library (DLL) of IE8 kernel.
4. browser device as described in claim any one of claim 13, described clear
Device process of looking at 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.
5. browser device as claimed in claim 4, 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.
6. browser device as claimed in claim 2 or claim 3, described default IE kernel redirects
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.
7. browser device as claimed in claim 1, 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.
8. the browser device as described in claim 1 or 7, described presetting rule includes preset
Specific adaptation rule and/or General adaptive rule, wherein, described preset specific adaptation rule bag
Fitting relation between purse rope page and kernel, described General adaptive rule includes selecting averagely for user
Browser kernel that loading velocity is the fastest or in selecting the browser adaptive to network standard for user
Core.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201210413741.3A CN102968448B (en) | 2012-10-25 | 2012-10-25 | A kind of browser |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201210413741.3A CN102968448B (en) | 2012-10-25 | 2012-10-25 | A kind of browser |
Publications (2)
Publication Number | Publication Date |
---|---|
CN102968448A CN102968448A (en) | 2013-03-13 |
CN102968448B true CN102968448B (en) | 2016-09-28 |
Family
ID=47798586
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201210413741.3A Expired - Fee Related CN102968448B (en) | 2012-10-25 | 2012-10-25 | A kind of browser |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN102968448B (en) |
Families Citing this family (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN103500194A (en) * | 2013-09-17 | 2014-01-08 | 北京奇虎科技有限公司 | Method, device and browser for loading webpage |
CN105279195B (en) * | 2014-07-23 | 2019-11-26 | 腾讯科技(深圳)有限公司 | The method and device of web application calling browser function |
CN108073654A (en) * | 2016-11-18 | 2018-05-25 | 天津嘉深保科技发展有限公司 | A kind of market survey logins technology with web browsing |
CN108614762A (en) * | 2016-12-09 | 2018-10-02 | 武汉斗鱼网络科技有限公司 | A kind of browser testing method and device |
CN108334382A (en) * | 2018-01-30 | 2018-07-27 | 美通云动(北京)科技有限公司 | Control method, device, electronic equipment and the computer-readable medium of browser |
CN112347405B (en) * | 2020-11-06 | 2021-11-26 | 的卢技术有限公司 | Control method and system for realizing universal browser |
CN112887408B (en) * | 2021-01-27 | 2022-11-01 | 合肥大多数信息科技有限公司 | System and method for solving data state sharing of multi-kernel browser |
Citations (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 |
CN102156709A (en) * | 2011-02-28 | 2011-08-17 | 奇智软件(北京)有限公司 | Browser engine mode switching method |
CN102508710A (en) * | 2011-09-28 | 2012-06-20 | 奇智软件(北京)有限公司 | Method and system for switching between IE6 kernel and novel IE kernel |
-
2012
- 2012-10-25 CN CN201210413741.3A patent/CN102968448B/en not_active Expired - Fee Related
Patent Citations (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 |
CN102156709A (en) * | 2011-02-28 | 2011-08-17 | 奇智软件(北京)有限公司 | Browser engine mode switching method |
CN102508710A (en) * | 2011-09-28 | 2012-06-20 | 奇智软件(北京)有限公司 | Method and system for switching between IE6 kernel and novel IE kernel |
Also Published As
Publication number | Publication date |
---|---|
CN102968448A (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 | |
US7134076B2 (en) | Method and apparatus for portable universal resource locator and coding across runtime environments | |
US5848424A (en) | Data navigator interface with navigation as a function of draggable elements and drop targets | |
US8280884B2 (en) | Exposing rich internet application content to search engines | |
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 | |
US20050246444A1 (en) | Displaying a computer resource through a preferred browser | |
US20230143896A1 (en) | Cross-Platform Module for Loading Across a Plurality of Device Types | |
CA2614725A1 (en) | A computer implemented method for populating graphical topological displays | |
US20100229081A1 (en) | Method for Providing a Navigation Element in an Application | |
US7877434B2 (en) | Method, system and apparatus for presenting forms and publishing form data | |
CN103559097B (en) | The method of interprocess communication, device and browser in a kind of browser | |
US20140201614A1 (en) | Annotating search results with images | |
CN100458782C (en) | Display and installation of portlets on a client platform | |
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 | |
CN107016000A (en) | The method and device of exhibition information |
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 |
Granted publication date: 20160928 Termination date: 20211025 |
|
CF01 | Termination of patent right due to non-payment of annual fee |