CN105224592B - Method and device for improving browser compatibility and electronic equipment - Google Patents
Method and device for improving browser compatibility and electronic equipment Download PDFInfo
- Publication number
- CN105224592B CN105224592B CN201510522468.1A CN201510522468A CN105224592B CN 105224592 B CN105224592 B CN 105224592B CN 201510522468 A CN201510522468 A CN 201510522468A CN 105224592 B CN105224592 B CN 105224592B
- Authority
- CN
- China
- Prior art keywords
- browser
- kernels
- compatibility
- compatible
- view list
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Active
Links
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F16/00—Information retrieval; Database structures therefor; File system structures therefor
- G06F16/90—Details of database functions independent of the retrieved data types
- G06F16/95—Retrieval from the web
- G06F16/957—Browsing optimisation, e.g. caching or content distillation
- G06F16/9577—Optimising the visualization of content, e.g. distillation of HTML documents
Landscapes
- Engineering & Computer Science (AREA)
- Databases & Information Systems (AREA)
- Theoretical Computer Science (AREA)
- Data Mining & Analysis (AREA)
- Physics & Mathematics (AREA)
- General Engineering & Computer Science (AREA)
- General Physics & Mathematics (AREA)
- Information Transfer Between Computers (AREA)
- Stored Programmes (AREA)
Abstract
The invention provides a method and a device for improving browser compatibility and electronic equipment. Wherein, the method comprises the following steps: acquiring the updating time of a browser, wherein the browser is provided with a plurality of kernels, the plurality of kernels comprise IE kernels, and the updating time is the updating time of a compatible view list in the IE kernels; if the time length from the current time to the update time is longer than the preset time length, downloading a compatibility view list update file from a preset address; and loading the compatibility view list updating file and updating the updating time. The method for improving the compatibility of the browser realizes that the browser supports more compatible view websites, reduces the trouble of manually adding website compatible views when a user uses the browser, improves the compatibility of the browser and enhances the user experience.
Description
Technical field
The present invention relates to Internet technical field more particularly to a kind of method, apparatus and electricity improving browser compatibility
Sub- equipment.
Background technology
IE browser (Internet Explorer, a web browser that Microsoft releases) provides access net
Compatible view when page so that show more attractive exclusively for the website of legacy version browser design, correct in a browser
The problem of menu, image or text position in website contraindicate.It is regarded in addition, IE browser has provided compatibility to the user
The menu option for scheming setting, allows user that can voluntarily add the network address for showing problematic webpage, and IE browser uses compatibility
View accesses these network address, opens corresponding webpage.In addition to this, it can also safeguard that one compatibility of update regards inside IE browser
Figure List, Microsoft can periodically being arranged into list with the incompatible website of current IE browser, user by choose " from
Microsoft downloads newer compatibility list ", to be downloaded in IE browser and update compatible view list.
Currently, domestic third party's browser generally use integrates the mode of IE controls to allow the browser of oneself to support IE
Kernel, but IE controls itself will not automatically update compatibility list.User only after starting IE browser, passes through IE
Browser updates compatible view list.Since many users are after installing third party's browser, IE just will not be reused
Browser, in this case compatible view list just will not be updated.Therefore, the update of compatible view list only according to
By user when using IE browser, compatible view list is pulled down by IE browser, if user is in installation third party's browsing
IE browser is not used after device, compatible view list just cannot be updated forever, when leading to browser access webpage
Poor compatibility, user experience are simultaneously bad.
Invention content
The present invention is directed to the compatible view lists for solving at least to a certain extent in the related technology to automatically update
The technical issues of.
For this purpose, first purpose of the present invention is to propose that a kind of method improving browser compatibility, this method are realized
Browser supports more compatible view network address, reduces user and adds compatible Website manually when using browser and regards
The trouble of figure improves the compatibility of browser, enhances user experience.
Second object of the present invention is to propose a kind of device improving browser compatibility.
Third object of the present invention is to propose a kind of electronic equipment.
In order to achieve the above object, first aspect present invention embodiment proposes a kind of method improving browser compatibility, packet
It includes:Obtain the renewable time of browser, wherein the browser has multiple kernels, and the multiple kernel includes IE kernels, institute
State the renewable time that renewable time is compatible view list in the IE kernels;If the renewable time is apart from current time
Duration be more than preset duration, then downloading compatible view list from preset address updates file;And the load compatibility
View list updates file, and updates the renewable time.
The method of the raising browser compatibility of the embodiment of the present invention, browser are simultaneous in judging upper primary update IE kernels
It is pre- by what is obtained from IE kernels when the renewable time of capacitive view list is more than preset duration apart from the duration at current time
If the update file of compatible view list is downloaded in address so that browser can be that its IE kernel updates initiatively, in real time
Compatible view list supports more compatible view network address to realize browser, reduces user using browsing
The trouble for adding compatible Website view when device manually, improves the compatibility of browser, enhances user experience.
In one embodiment of the invention, the preset address is obtained from the ierutil.dll files of IE browser.
In one embodiment of the invention, the load compatible view list update file specifically includes:It will
Specified directory in the compatibility view list update file copy to the IE kernels, and by the compatible view list
The filename of update file is revised as iecompatdata.xml.
In one embodiment of the invention, the preset address stored in the IE kernels be it is multiple, it is each described default
Address is corresponding with the version number of IE kernels, wherein downloads compatible view list update file from preset address described
Before, further include:Obtain the version number of the IE kernels;The preset address is determined according to the version number of the IE kernels.
In order to achieve the above object, second aspect of the present invention embodiment proposes a kind of device improving browser compatibility, packet
It includes:First acquisition module, the renewable time for obtaining browser, wherein the browser has multiple kernels, the multiple
Kernel includes IE kernels, and the renewable time is the renewable time of compatible view list in the IE kernels;Download module is used
In when the renewable time is more than preset duration apart from the duration at current time, compatible view list is downloaded from preset address
Update file;And load-on module, file is updated for loading the compatible view list, and update the renewable time.
The device of the raising browser compatibility of the embodiment of the present invention, compatibility regards in judging upper primary update IE kernels
When the renewable time of Figure List is more than preset duration apart from the duration at current time, pass through the preset address obtained from IE kernels
Download the update file of compatible view list so that browser can initiatively, in real time update compatible for its IE kernel
View list supports more compatible view network address to realize browser, reduces user's hand when using browser
The trouble of dynamic addition compatible Website view, improves the compatibility of browser, enhances user experience.
In one embodiment of the invention, the preset address is obtained from the ierutil.dll files of IE browser.
In one embodiment of the invention, the load-on module is specifically used for:The compatible view list is updated
Specified directory in file copy to the IE kernels, and the filename that the compatible view list updates file is revised as
iecompatdata.xml。
In one embodiment of the invention, the preset address stored in the IE kernels be it is multiple, it is each described default
Address is corresponding with the version number of IE kernels, and described device further includes:Second acquisition module, for obtaining the IE kernels
Version number;And determining module, for determining the preset address according to the version number of the IE kernels.
In order to achieve the above object, third aspect present invention embodiment proposes a kind of electronic equipment, including:Shell, screen, place
Manage device and circuit board;On the housing, the circuit board is placed in the space interior that the shell surrounds for the screen placement,
The processor is arranged on the circuit board;The processor is specifically used for for handling data:Obtain the update of browser
Moment, wherein it includes IE kernels that the browser, which has multiple kernels, the multiple kernel, and the renewable time is the IE
The renewable time of compatible view list in kernel;If the renewable time is more than default apart from the duration at current time
It is long, then it downloads compatible view list from preset address and updates file;And the load compatible view list updates file,
And update the renewable time.
The electronic equipment of the embodiment of the present invention, in the update of compatible view list in judging upper primary update IE kernels
When quarter is more than preset duration apart from the duration at current time, passes through the preset address obtained from IE kernels and download compatible view
The update file of list so that browser can be that its IE kernel updates compatible view list initiatively, in real time, to real
Browser is showed and has supported more compatible view network address, has reduced user and add compatible Website manually when using browser
The trouble of view improves the compatibility of browser, enhances user experience.
The additional aspect of the present invention and advantage will be set forth in part in the description, and will partly become from the following description
Obviously, or practice through the invention is recognized.
Description of the drawings
Above-mentioned and/or additional aspect and advantage of the invention will become from the following description of the accompanying drawings of embodiments
Obviously and it is readily appreciated that, wherein:
Fig. 1 is the flow chart of the method for the raising browser compatibility of one embodiment of the invention;
Fig. 2 is the flow chart of the method for the raising browser compatibility of one specific embodiment of the present invention;And
Fig. 3 is the structural schematic diagram of the device of the raising browser compatibility of one embodiment of the invention.
Specific implementation mode
The embodiment of the present invention is described below in detail, examples of the embodiments are shown in the accompanying drawings, wherein from beginning to end
Same or similar label indicates same or similar element or element with the same or similar functions.Below with reference to attached
The embodiment of figure description is exemplary, it is intended to for explaining the present invention, and is not considered as limiting the invention.
In addition, term " first ", " second " are used for description purposes only, it is not understood to indicate or imply relative importance
Or implicitly indicate the quantity of indicated technical characteristic.Define " first " as a result, the feature of " second " can be expressed or
Implicitly include one or more this feature.In the description of the present invention, the meaning of " plurality " is two or more,
Unless otherwise specifically defined.
Any process described otherwise above or method description are construed as in flow chart or herein, and expression includes
It is one or more for realizing specific logical function or process the step of executable instruction code module, segment or portion
Point, and the range of the preferred embodiment of the present invention includes other realization, wherein can not press shown or discuss suitable
Sequence, include according to involved function by it is basic simultaneously in the way of or in the opposite order, to execute function, this should be of the invention
Embodiment person of ordinary skill in the field understood.
Fig. 1 is the flow chart of the method for the raising browser compatibility of one embodiment of the invention.
As shown in Figure 1, the method for improving browser compatibility includes:
S101 obtains the renewable time of browser, wherein and browser has multiple kernels, and multiple kernels include IE kernels,
Renewable time is the renewable time of compatible view list in IE kernels.
In one embodiment of the invention, browser is third party's browser in addition to IE browser, and the third
Square browser includes multiple kernels.For example, third party's browser is dual core browser, wherein dual core browser includes
One IE kernel and a non-IE kernel.
Specifically, the renewable time that third party's browser updates compatible view list every time can be recorded in registration table,
After the startup of third party's browser, third party's browser obtains the compatible view list of last update more from registration table
The new moment, and judge whether duration of the renewable time between current time is more than preset duration.If third party browses
Device judge duration of the renewable time between current time be not more than preset duration, then need not to compatible view list into
Row update.In other words, since the compatible view list in IE browser will not be frequently updated, third party's browsing
Device is just updated the compatible view list of itself every preset time, and doing so can be to avoid frequently to compatible view
List is updated the load for increasing server.
S102 is downloaded if duration of the renewable time between current time is more than preset duration from preset address
Compatible view list updates file.
In one embodiment of the invention, preset address can be obtained from the ierutil.dll files of IE browser.
Specifically, if third party's browser judges that duration of the renewable time between current time is more than preset duration, third
Square browser obtains preset download address, from the update file of the compatible view list of preset address download to temporary file
In catalogue.Wherein, preset address is stored in a manner of hard coded in the assembly module ierutil.dll of IE browser,
Therefore by reverse mode, third party's browser can be got from the ierutil.dll files of IE browser for the IE
Download address corresponding to the version of browser.It, should since IE browser itself preserves download address by the way of hard coded
Download address is substantially that will not change, therefore also there is no need to solve the problems, such as that download address changes.That is, from IE
Different download address is got in the ierutil.dll of browser, which is stored in matching for third party's browser
It sets and is used as preset address in file, so that third party's browser judges that duration of the renewable time between current time is more than in advance
If duration obtains preset address from configuration file, realized by the URLDownloadToCacheFileW interfaces in system
Download the update file of compatible view list.
It should be understood that if user uses IE browser, IE browser itself can download automatically and
The compatible view list of update updates file, however Microsoft does not provide the download address of the update file and update connects
Mouthful.Third party's browser is realized in the present invention can also be as IE browser, the recently newer compatible view row of use
Table.
Furthermore, third party's browser can by http agreements from preset address by the update file of xml formats
(iecompatdata.xml) locally downloading.Wherein, the IE kernels of third party's browser can be by reading the update downloaded
File obtains current compatible view list, and compatible view mould is enabled so that third party's browser can identify needs
The network address of formula.
S103 loads compatible view list and updates file, and updates renewable time.
In one embodiment of the invention, in third party's browser property of would be compatible with view list update file copy to IE
Specified directory in core, and the filename of the property of would be compatible with view list update file is revised as iecompatdata.xml.Specifically
Ground, since the IE kernels of third party's browser can only read the update file of particular path, third party's browser can will under
The update file of load is saved on following particular category position:
%localappdata% Microsoft Internet Explorer IECompatData
iecompatdata.xml
Meanwhile the update file being saved on directory location is renamed into iecompatdata.xml by third party's browser,
And this newer renewable time is recorded in registration table.Then, the compatible view list update of third party's browser load
File synchronizes compatible view list.
The method of the raising browser compatibility of the embodiment of the present invention, browser are simultaneous in judging upper primary update IE kernels
It is pre- by what is obtained from IE kernels when the renewable time of capacitive view list is more than preset duration apart from the duration at current time
If the update file of compatible view list is downloaded in address so that browser can be that its IE kernel updates initiatively, in real time
Compatible view list supports more compatible view network address to realize browser, reduces user using browsing
The trouble for adding compatible Website view when device manually, improves the compatibility of browser, enhances user experience.
Fig. 2 is the flow chart of the method for the raising browser compatibility of one specific embodiment of the present invention.
As shown in Fig. 2, the method for improving browser compatibility includes:
S201 obtains the renewable time of browser, wherein and browser has multiple kernels, and multiple kernels include IE kernels,
Renewable time is the renewable time of compatible view list in IE kernels.
In one embodiment of the invention, browser is third party's browser in addition to IE browser, and the third
Square browser includes multiple kernels.For example, third party's browser is dual core browser, wherein dual core browser includes
One IE kernel and a non-IE kernel.
Specifically, the renewable time that third party's browser updates compatible view list every time can be recorded in registration table,
After the startup of third party's browser, third party's browser obtains the compatible view list of last update more from registration table
The new moment, and judge whether duration of the renewable time between current time is more than preset duration.If third party browses
Device judge duration of the renewable time between current time be not more than preset duration, then need not to compatible view list into
Row update.In other words, since the compatible view list in IE browser will not be frequently updated, third party's browsing
Device is just updated the compatible view list of itself every preset time, and doing so can be to avoid frequently to compatible view
List is updated the load for increasing server.
S202 obtains the version of IE kernels if duration of the renewable time between current time is more than preset duration
This number.
Specifically, the IE kernels in third party's browser can have a different versions, and the IE kernels of each version have pair
The version number answered, for example, IE9, IE10 or IE11 etc..Third party's browser is judging renewable time between current time
Duration be more than preset duration, determine the version number of the IE kernels in third party's browser.
S203 determines preset address according to the version number of IE kernels.
In one embodiment of the invention, preset address can be obtained from the ierutil.dll files of IE browser.
Specifically, preset address is to be stored in a manner of hard coded in the assembly module ierutil.dll of IE browser, therefore lead to
Reverse mode is crossed, third party's browser can get the IE kernels of different editions number from the ierutil.dll of IE browser
The download address of corresponding update file.Wherein, since IE browser itself preserves download address by the way of hard coded,
The download address substantially will not change, therefore also there is no need to solve the problems, such as that preset address changes.That is, from difference
Different download address is got in the ierutil.dll of the IE browser of kernel version, which is stored in third
Preset address is used as in the configuration file of square browser, so that third party's browser obtains preset download ground from configuration file
Download update file in location.
For example, the IE kernel versions of third party's browser are different (for example, IE9, IE10 or IE11 etc.), then update
The download address of file also differs, that is, updates file and need to download from different URL network address.For in the IE of different editions
Core, it is as follows that third party's browser downloads the corresponding download address of update file:
IE9:http://ie9cvlist.ie.microsoft.com/IE9CompatViewList.xml
IE10:https://iecvlist.microsoft.com/IE10/1152921505002013023/ iecompatviewlist.xml
E11:https://iecvlist.microsoft.com/IE11/1375395130872/ iecompatviewlist.xml
Wherein, the function that compatible view list is updated due to being introduced since IE9, for the IE kernels before IE9
Version is not provided with corresponding download address, and therefore, third party's browser of IE kernel versions will not pass through before having
The mode for reading update file decides whether to enable compatible view mode.
S204 downloads compatible view list from preset address and updates file.
Specifically, if third party's browser judges that duration of the renewable time between current time is more than default
Long, then third party's browser obtains preset download address according to the version number of IE kernels, passes through in system from the download address
URLDownloadToCacheFileW interfaces download the update file of compatible view list to temporary file mesh to realize
In record.
Furthermore, third party's browser can by http agreements from preset address by the update file of xml formats
(iecompatdata.xml) locally downloading.Wherein, the IE kernels of third party's browser can be by reading the update downloaded
File obtains the current compatible view list of browser, and compatibility is enabled so that third party's browser can identify needs
The network address of property view mode.
S205 loads compatible view list and updates file, and updates renewable time.
In one embodiment of the invention, in third party's browser property of would be compatible with view list update file copy to IE
Specified directory in core, and the filename of the property of would be compatible with view list update file is revised as iecompatdata.xml.Specifically
Ground, since the IE kernels of third party's browser can only read the update file of particular path, third party's browser can will under
The update file of load is saved on following particular category position:
%localappdata% Microsoft Internet Explorer IECompatData
iecompatdata.xml
Meanwhile the update file being saved on directory location is renamed into iecompatdata.xml by third party's browser,
And this newer renewable time is recorded in registration table.Then, third party's browser loads compatible view list more
New file synchronizes compatible view list.
The method of the raising browser compatibility of the embodiment of the present invention, browser are simultaneous in judging upper primary update IE kernels
When the renewable time of capacitive view list is more than preset duration apart from the duration at current time, the kernel version according to IE kernels is true
Determine preset address, and from the update file download of the preset address property of would be compatible with view list to designated position so that browser energy
The compatible view list enough crossed using real-time update is supported more compatible view network address to realize browser, subtracted
The trouble that user adds compatible Website view manually when using browser is lacked, has improved the compatibility of browser, has enhanced
User experience.
In order to realize that above-described embodiment, the present invention also propose a kind of device improving browser compatibility.
Fig. 3 is the structural schematic diagram of the device of the raising browser compatibility of one embodiment of the invention.
As shown in figure 3, the device for improving browser compatibility includes:First acquisition module 100, download module 200, load
Module 300, the second acquisition module 400 and determining module 500.
Specifically, the first acquisition module 100 is used to obtain the renewable time of browser, wherein browser has in multiple
Core, multiple kernels include IE kernels, and renewable time is the renewable time of compatible view list in IE kernels.Wherein, browser
For third party's browser in addition to IE browser, and third party's browser includes multiple kernels.For example, third party's browser
For dual core browser, wherein dual core browser includes an IE kernel and a non-IE kernel.Specifically, registration
The renewable time that third party's browser updates compatible view list every time can be recorded in table, start it in third party's browser
Afterwards, the first acquisition module 100 obtains the renewable time of the compatible view list of last update from registration table, and judges this more
Whether duration of the new moment between current time is more than preset duration.If the first acquisition module 100 judges renewable time
Duration between current time is not more than preset duration, then need not be updated to compatible view list.In other words,
Since the compatible view list in IE browser will not be frequently updated, third party's browser is every preset time
Just the compatible view list of itself is updated, do so can be to avoid being frequently updated increasing to compatible view list
Add the load of server.
The duration that download module 200 is used to carve between current time when updated is more than preset duration, from default
It downloads compatible view list and updates file in location.Wherein, preset address can be obtained from the ierutil.dll files of IE browser
.Specifically, if the first acquisition module 100 judges that duration of the renewable time between current time is more than preset duration,
Then download module 200 obtains preset download address, and the update file of compatible view list is downloaded to facing from the preset address
When file directory in.Wherein, preset address is the assembly module ierutil.dll that IE browser is stored in a manner of hard coded
In, therefore by reverse mode, download module 200 can get from the ierutil.dll files of IE browser and be directed to
Download address corresponding to the version of the IE browser.Since IE browser itself preserves download ground by the way of hard coded
Location, the download address are substantially that will not change, therefore also there is no need to solve the problems, such as that download address changes.Namely
It says, different download address is got from the ierutil.dll of IE browsers, it is clear which is stored in third party
It lookes at and is used as preset address in the configuration file of device, so that the first acquisition module 100 judges renewable time between current time
Duration be more than preset duration when, download module 200 obtains preset address from configuration file, by system
URLDownloadToCacheFileW interfaces download the update file of compatible view list to realize.
Furthermore, download module 200 can by http agreements from preset address by the update file of xml formats
(iecompatdata.xml) locally downloading.Wherein, the IE kernels of third party's browser can be by reading the update downloaded
File obtains current compatible view list, and compatible view mould is enabled so that third party's browser can identify needs
The network address of formula.
In one embodiment of the invention, the device for improving browser compatibility further includes 400 He of the second acquisition module
Determining module 500.
Specifically, the second acquisition module 400 is used to obtain the version number of IE kernels.Determining module 500 is used for according in IE
The version number of core determines preset address.Specifically, the IE kernels in third party's browser can have different versions, each version
IE kernels have corresponding version number, for example, IE9, IE10 or IE11 etc..First acquisition module 100 is when judging to update
When carving the duration between current time more than preset duration, the second acquisition module 400 determines the IE in third party's browser
The version number of kernel.
In one embodiment of the invention, preset address can be obtained from the ierutil.dll files of IE browser.
That is, different download address is got from the ierutil.dll of the IE browser of different kernel versions, by the download
Address is stored in the configuration file of third party's browser, so that download module 200 obtains preset download from configuration file
Download update file in address.
For example, the IE kernel versions of third party's browser are different (for example, IE9, IE10 or IE11 etc.), then update
The download address of file also differs, that is, updates file and need to download from different URL network address.For example, for different versions
This IE kernels, determining module 500 determine that the corresponding download address of download update file is as follows:
IE9:http://ie9cvlist.ie.microsoft.com/IE9CompatViewList.xml
IE10:https://iecvlist.microsoft.com/IE10/1152921505002013023/ iecompatviewlist.xml
E11:https://iecvlist.microsoft.com/IE11/1375395130872/ iecompatviewlist.xml
Wherein, the function that compatible view list is updated due to being introduced since IE9, for the IE kernels before IE9
Version is not provided with corresponding download address, and therefore, third party's browser of IE kernel versions will not pass through before having
The mode for reading update file decides whether to enable compatible view mode.
Load-on module 300 updates renewable time for loading compatible view list update file.Wherein, mould is loaded
Block 300 is specifically used for the specified directory in the property of would be compatible with view list update file copy to IE kernels, and the property of would be compatible with view
The filename of list update file is revised as iecompatdata.xml.Specifically, since load-on module 300 can only read spy
Determine the update file in path, therefore, the update file of download is saved on following particular category position by load-on module 300:
%localappdata% Microsoft Internet Explorer IECompatData
iecompatdata.xml
Meanwhile the update file being saved on directory location is renamed into iecompatdata.xml by load-on module 300, and
This newer renewable time is recorded in registration table.Then, load-on module 300 loads compatible view list update text
Part synchronizes compatible view list.
The device of the raising browser compatibility of the embodiment of the present invention, compatibility regards in judging upper primary update IE kernels
When the renewable time of Figure List is more than preset duration apart from the duration at current time, determined according to the kernel version of IE kernels default
Address, and from the update file download of the preset address property of would be compatible with view list to designated position so that browser can use
The compatible view list that real-time update is crossed supports more compatible view network address to realize browser, reduces use
The trouble of compatible Website view is added at family manually when using browser, is improved the compatibility of browser, is enhanced user
Experience.
In order to realize that above-described embodiment, the present invention also propose a kind of electronic equipment.
A kind of electronic equipment, including:Shell, screen, processor and circuit board;Screen disposes on the shell, circuit board peace
The space interior surrounded in shell is set, processor is arranged on circuit boards;Processor is specifically used for for handling data:
S101 obtains the renewable time of browser, wherein and browser has multiple kernels, and multiple kernels include IE kernels,
Renewable time is the renewable time of compatible view list in IE kernels.
In one embodiment of the invention, browser is third party's browser in addition to IE browser, and the third
Square browser includes multiple kernels.For example, third party's browser is dual core browser, wherein dual core browser includes
One IE kernel and a non-IE kernel.
Specifically, the renewable time that third party's browser updates compatible view list every time can be recorded in registration table,
After the startup of third party's browser, when processor obtains the update of the compatible view list of last update from registration table
It carves, and judges whether duration of the renewable time between current time is more than preset duration.If third party's browser is sentenced
Duration of the disconnected renewable time between current time is not more than preset duration, then need not be carried out more to compatible view list
Newly.In other words, since the compatible view list in IE browser will not be frequently updated, third party's browser is every
Just the compatible view list of itself is updated every preset time, doing so can be to avoid frequently to compatible view list
It is updated the load for increasing server.
S102 is downloaded if duration of the renewable time between current time is more than preset duration from preset address
Compatible view list updates file.
In one embodiment of the invention, preset address can be obtained from the ierutil.dll files of IE browser.
Specifically, if processor judges that duration of the renewable time between current time is more than preset duration, processor obtains
Preset download address, from the update file to temporary file directory of the compatible view list of preset address download.Wherein,
Preset address is stored in a manner of hard coded in the assembly module ierutil.dll of IE browser, therefore by reverse
Mode, processor can be got from the ierutil.dll files of IE browser corresponding to the version for the IE browser
Download address.Since IE browser itself preserves download address by the way of hard coded, the download address is substantially not
It can change, therefore also there is no need to solve the problems, such as that download address changes.That is, from IE browser
Different download address is got in ierutil.dll, which is stored in the configuration file of third party's browser
As preset address, when so that processor judging that duration of the renewable time between current time is more than preset duration, from
It sets and obtains preset address in file, compatibility is downloaded to realize by the URLDownloadToCacheFileW interfaces in system
The update file of view list.
It should be understood that if user uses IE browser, IE browser itself can download automatically and
The compatible view list of update updates file, however Microsoft does not provide the download address of the update file and update connects
Mouthful.Third party's browser is realized in the present invention can also be as IE browser, the recently newer compatible view row of use
Table.
Furthermore, processor can by http agreements from preset address by the update file of xml formats
(iecompatdata.xml) locally downloading.Wherein, the IE kernels of third party's browser can be by reading the update downloaded
File obtains current compatible view list, and compatible view mould is enabled so that third party's browser can identify needs
The network address of formula.
S103 loads compatible view list and updates file, and updates renewable time.
In one embodiment of the invention, in the processor property of would be compatible with view list update file copy to IE kernels
Specified directory, and the filename of the property of would be compatible with view list update file is revised as iecompatdata.xml.Specifically, due to
The IE kernels of third party's browser can only read the update file of particular path, and therefore, processor can be by the update file of download
It is saved on following particular category position:
%localappdata% Microsoft Internet Explorer IECompatData
iecompatdata.xml
Meanwhile the update file being saved on directory location is renamed into iecompatdata.xml by third party's browser,
And this newer renewable time is recorded in registration table.Then, the compatible view list of processor load updates file, together
The compatible view list of step.
The electronic equipment of the embodiment of the present invention, in the update of compatible view list in judging upper primary update IE kernels
When quarter is more than preset duration apart from the duration at current time, passes through the preset address obtained from IE kernels and download compatible view
The update file of list so that browser can be that its IE kernel updates compatible view list initiatively, in real time, to real
Browser is showed and has supported more compatible view network address, has reduced user and add compatible Website manually when using browser
The trouble of view improves the compatibility of browser, enhances user experience.
In the description of this specification, reference term " one embodiment ", " some embodiments ", " example ", " specifically show
The description of example " or " some examples " etc. means specific features, structure, material or spy described in conjunction with this embodiment or example
Point is included at least one embodiment or example of the invention.In the present specification, schematic expression of the above terms are not
It must be directed to identical embodiment or example.Moreover, particular features, structures, materials, or characteristics described can be in office
It can be combined in any suitable manner in one or more embodiments or example.In addition, without conflicting with each other, the skill of this field
Art personnel can tie the feature of different embodiments or examples described in this specification and different embodiments or examples
It closes and combines.
Although the embodiments of the present invention has been shown and described above, it is to be understood that above-described embodiment is example
Property, it is not considered as limiting the invention, those skilled in the art within the scope of the invention can be to above-mentioned
Embodiment is changed, changes, replacing and modification.
Claims (9)
1. a kind of method improving browser compatibility, which is characterized in that include the following steps:
Obtaining the renewable time of browser, wherein the browser has multiple kernels, and the multiple kernel includes IE kernels,
The renewable time is the renewable time of compatible view list in the IE kernels;
If duration of the renewable time apart from current time is more than preset duration, compatible view is downloaded from preset address
List update file;And
The compatible view list update file is loaded, and updates the renewable time.
2. the method for improving browser compatibility as described in claim 1, which is characterized in that the preset address is browsed from IE
It is obtained in the ierutil.dll files of device.
3. the method for improving browser compatibility as described in claim 1, which is characterized in that the load compatibility regards
Figure List update file specifically includes:
By the specified directory in the compatible view list update file copy to the IE kernels, and the compatibility is regarded
The filename of Figure List update file is revised as iecompatdata.xml.
4. the method for improving browser compatibility as described in claim 1, which is characterized in that stored in the IE kernels pre-
If address is multiple, each preset address is corresponding with the version number of IE kernels, wherein described under preset address
Before carrying compatible view list update file, further include:
Obtain the version number of the IE kernels;
The preset address is determined according to the version number of the IE kernels.
5. a kind of device improving browser compatibility, which is characterized in that including:
First acquisition module, the renewable time for obtaining browser, wherein the browser has multiple kernels, described more
A kernel includes IE kernels, and the renewable time is the renewable time of compatible view list in the IE kernels;
Download module is used for when the renewable time is more than preset duration apart from the duration at current time, under preset address
It carries compatible view list and updates file;And
Load-on module updates file for loading the compatible view list, and updates the renewable time.
6. improving the device of browser compatibility as claimed in claim 5, which is characterized in that the preset address is browsed from IE
It is obtained in the ierutil.dll files of device.
7. improving the device of browser compatibility as claimed in claim 5, which is characterized in that the load-on module is specifically used
In:
By the specified directory in the compatible view list update file copy to the IE kernels, and the compatibility is regarded
The filename of Figure List update file is revised as iecompatdata.xml.
8. improving the device of browser compatibility as claimed in claim 5, which is characterized in that stored in the IE kernels pre-
If address is multiple, each preset address is corresponding with the version number of IE kernels, and described device further includes:
Second acquisition module, the version number for obtaining the IE kernels;And
Determining module, for determining the preset address according to the version number of the IE kernels.
9. a kind of electronic equipment, which is characterized in that including:Shell, screen, processor and circuit board;
On the housing, the circuit board is placed in the space interior that the shell surrounds, the processing for the screen placement
Device is arranged on the circuit board;
The processor is specifically used for for handling data:
Obtaining the renewable time of browser, wherein the browser has multiple kernels, and the multiple kernel includes IE kernels,
The renewable time is the renewable time of compatible view list in the IE kernels;
If duration of the renewable time apart from current time is more than preset duration, compatible view is downloaded from preset address
List update file;And
The compatible view list update file is loaded, and updates the renewable time.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201510522468.1A CN105224592B (en) | 2015-08-24 | 2015-08-24 | Method and device for improving browser compatibility and electronic equipment |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201510522468.1A CN105224592B (en) | 2015-08-24 | 2015-08-24 | Method and device for improving browser compatibility and electronic equipment |
Publications (2)
Publication Number | Publication Date |
---|---|
CN105224592A CN105224592A (en) | 2016-01-06 |
CN105224592B true CN105224592B (en) | 2018-09-11 |
Family
ID=54993560
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201510522468.1A Active CN105224592B (en) | 2015-08-24 | 2015-08-24 | Method and device for improving browser compatibility and electronic equipment |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN105224592B (en) |
Citations (7)
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 |
US7934210B1 (en) * | 2004-03-26 | 2011-04-26 | Adobe Systems Incorporated | System and method for updating one or more programs and their environment |
CN102156709A (en) * | 2011-02-28 | 2011-08-17 | 奇智软件(北京)有限公司 | Browser engine mode switching method |
CN102385614A (en) * | 2011-09-29 | 2012-03-21 | 奇智软件(北京)有限公司 | Terminal file updating management method and system |
CN102385594A (en) * | 2010-08-31 | 2012-03-21 | 腾讯科技(深圳)有限公司 | Method and device for controlling inner cores of multi-core browser |
CN103631955A (en) * | 2013-12-12 | 2014-03-12 | 北京奇虎科技有限公司 | Method and device for updating browser kernel switching matching bank data |
CN103995894A (en) * | 2011-09-29 | 2014-08-20 | 北京奇虎科技有限公司 | Terminal file updating management method and system |
-
2015
- 2015-08-24 CN CN201510522468.1A patent/CN105224592B/en active Active
Patent Citations (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US7934210B1 (en) * | 2004-03-26 | 2011-04-26 | Adobe Systems Incorporated | System and method for updating one or more programs and their environment |
CN101655863A (en) * | 2009-04-24 | 2010-02-24 | 北京搜狗科技发展有限公司 | Method for loading web pages in browser and browser |
CN102385594A (en) * | 2010-08-31 | 2012-03-21 | 腾讯科技(深圳)有限公司 | Method and device for controlling inner cores of multi-core browser |
CN102156709A (en) * | 2011-02-28 | 2011-08-17 | 奇智软件(北京)有限公司 | Browser engine mode switching method |
CN102385614A (en) * | 2011-09-29 | 2012-03-21 | 奇智软件(北京)有限公司 | Terminal file updating management method and system |
CN103995894A (en) * | 2011-09-29 | 2014-08-20 | 北京奇虎科技有限公司 | Terminal file updating management method and system |
CN103631955A (en) * | 2013-12-12 | 2014-03-12 | 北京奇虎科技有限公司 | Method and device for updating browser kernel switching matching bank data |
Also Published As
Publication number | Publication date |
---|---|
CN105224592A (en) | 2016-01-06 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN104866341B (en) | Component upgrading method and device and terminal | |
CN110221860B (en) | Configuration file processing method, device, terminal and medium | |
US20190013993A1 (en) | Updating Web Resources | |
EP2916243B1 (en) | Method, apparatus, server and system for implementing web application | |
US11553035B2 (en) | Cross-platform module for loading across a plurality of device types | |
US9258357B2 (en) | Method for accessing plural cloud storages, electronic apparatus and non-transitory computer readable medium | |
US20150074561A1 (en) | Customizable themes for browsers and web content | |
CN102999578B (en) | Page elements treatment process and device | |
CN104765816B (en) | Browser upgrading method and device and electronic equipment | |
CN106598673B (en) | Application program upgrading method and system | |
CN102520987A (en) | Online experience and installation method, device, server and management system of application program | |
CN103838573A (en) | Application program generation method and device | |
US8914742B2 (en) | Display method, display apparatus and electronic device | |
CN105630932B (en) | A kind of file management method and device of intelligent terminal | |
CN103645923B (en) | A kind of plug-in unit installation method and system | |
CN101183975B (en) | Distributed heat dispositions method of cluster application server | |
CN105512294A (en) | Multi-media file update prompting method and device | |
CN102567352A (en) | Prompt method for application provided by websites and terminal equipment utilizing same | |
CN103605538A (en) | Method and device for installing software | |
Kaar | An introduction to Widgets with particular emphasis on Mobile Widgets | |
CN105224592B (en) | Method and device for improving browser compatibility and electronic equipment | |
WO2008082360A1 (en) | Dynamic launcher | |
CN105955980B (en) | File downloading device and method | |
CN103530155A (en) | Method and device for installing application program | |
CN102681848A (en) | Method, device, terminal and system for developing and accessing web page by Widget method |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant | ||
TR01 | Transfer of patent right | ||
TR01 | Transfer of patent right |
Effective date of registration: 20181210 Address after: 519030 Room 105-53967, No. 6 Baohua Road, Hengqin New District, Zhuhai City, Guangdong Province Patentee after: Zhuhai Leopard Fun Technology Co.,Ltd. Address before: 100085 East District, Second Floor, 33 Xiaoying West Road, Haidian District, Beijing Co-patentee before: CONEW NETWORK TECHNOLOGY (BEIJING) Co.,Ltd. Patentee before: BEIJING KINGSOFT INTERNET SECURITY SOFTWARE Co.,Ltd. |