CN103595708A - Method and system for processing abnormal closing of browser, browser and server - Google Patents

Method and system for processing abnormal closing of browser, browser and server Download PDF

Info

Publication number
CN103595708A
CN103595708A CN201310500620.7A CN201310500620A CN103595708A CN 103595708 A CN103595708 A CN 103595708A CN 201310500620 A CN201310500620 A CN 201310500620A CN 103595708 A CN103595708 A CN 103595708A
Authority
CN
China
Prior art keywords
browser
information
assembly
extremely
described assembly
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN201310500620.7A
Other languages
Chinese (zh)
Other versions
CN103595708B (en
Inventor
刘庆平
任寰
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Beijing Qihoo Technology Co Ltd
Original Assignee
Beijing Qihoo Technology Co Ltd
Qizhi Software Beijing Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Beijing Qihoo Technology Co Ltd, Qizhi Software Beijing Co Ltd filed Critical Beijing Qihoo Technology Co Ltd
Priority to CN201310500620.7A priority Critical patent/CN103595708B/en
Publication of CN103595708A publication Critical patent/CN103595708A/en
Application granted granted Critical
Publication of CN103595708B publication Critical patent/CN103595708B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Information Transfer Between Computers (AREA)

Abstract

The invention discloses a method and system for processing abnormal closing of a browser, the browser and a server, and the method and system for processing the abnormal closing of the browser are used for solving the problem of the abnormal closing of the browser. The method comprises the steps of reading a preceding browser abnormal closing message recorded by the browser when the browser is restarted after being closed abnormally, wherein the abnormal closing message comprises a message of assemblies causing the abnormal closing, and a message of operation environments of the assemblies; if it is judged that the number of times for the same assembly to cause the abnormal closing of the same type under the same operation environment exceeds a preset threshold value according to the message of the assemblies causing abnormal closing and the message of the operation environments of the assemblies, sending the message of the assemblies to the server; receiving a loading stop instruction issued by the server and generated according to the message of the assemblies; stopping loading the assemblies according to the loading stop instruction. According to the method and system for processing the abnormal closing of the browser, the browser and the server, the browser will not be closed abnormally again for the same reason after being restarted, and the problem of the abnormal closing of the browser is solved fundamentally.

Description

The processing method that browser cuts out extremely, system, browser and server
Technical field
The present invention relates to browser technology field, be specifically related to processing method, the treatment system that a kind of browser cuts out extremely, a kind of browser and a kind of server that a kind of browser cuts out extremely.
Background technology
Day by day universal along with the Internet, the routine work that people are a lot of and amusement are all carried out on network, and this work and amusement that web browser is people provide convenient way.Web browser refer to can display web page server or archives economy in file, and allow a kind of software of user and these file interactions.It is used for being presented at word, image and other information in World Wide Web (WWW) or local LAN etc., and these words or image can be the hyperlink that connects other network address, can be rapidly and browse easily various information by web browser user.
But, using web browser browsing page, carrying out in the process of webpage loading, usually make for various reasons web browser reaction become very slow, or cause web browser to lose response, finally cause browser extremely to be closed, and then may related whole system all cannot carry out other operation.The reason that causes browser extremely to be closed is a lot, for example, third party's plug-in unit is installed in browser, because the compatibility of third party's plug-in unit and browser software is not that fine will going wrong causes extremely closing of browser; Or because making browser, third-party fail-safe software occurred extremely closing; Or the assembly of browser self or module (for example GPU(Graphic Processing Unit, graphic process unit) acceleration component) cause browser to occur extremely closing.
Processing method while extremely closing for browser is at present mainly: when browser occurs extremely to cut out, obtain abnormal closing information, and during abnormal closing information is uploaded onto the server, then restart browser.
But said method is only during abnormal closing information is uploaded onto the server, therefore after restarting, browser still may cause by the same token again extremely closing, and said method cannot fundamentally solve the problem that browser cuts out extremely.
Summary of the invention
In view of the above problems, the present invention has been proposed to provide processing method that a kind of a kind of browser that overcomes the problems referred to above or address the above problem at least in part cuts out extremely and treatment system that corresponding a kind of browser cuts out extremely, and a kind of browser and corresponding a kind of server.
According to one aspect of the present invention, the processing method that provides a kind of browser extremely to close, comprising:
While restarting, read the formerly abnormal closing information of described browser sidelights record after browser cuts out extremely; Described abnormal closing information comprises module information and the running environment information thereof that exception throw is closed;
If module information and the running environment information thereof of closing according to described exception throw, judge that being caused the number of times that same type closes extremely under identical running environment by same assembly surpasses predetermined threshold value, is sent to server side by the information of described assembly;
That reception server side issues, according to the prevention load instructions of the Information generation of described assembly, according to described prevention load instructions, stop and load described assembly.
Alternatively, described prevention load instructions is, the prevention load instructions that described server side generates when judging described assembly as non-critical component according to the information of described assembly.
Alternatively, described method also comprises:
The instruction of prompting version updating that reception server side issues, that generate when judging described assembly as key component according to the information of described assembly, according to assembly described in the instruction load of described prompting version updating, and show the information that described component version upgrades.
Alternatively, described method also comprises:
Blacklist that reception server side issues, that generate when judging described assembly as dangerous assembly according to the information of described assembly writes instruction, according to described blacklist, write instruction and stop the described assembly of loading, and described assembly is write to the blacklist of browser side.
Alternatively, described browser extremely cuts out and comprises by Flash, third party's security component or browser intraware and provide program LSP, plug-in unit, expansion, graphic process unit GPU any one or more extremely the cutting out of causing in accelerating for third party software, hierarchical service.
Alternatively, described method also comprises:
When browser cuts out extremely, the external file of browser side and/or in the registration table of browser side recording exceptional closing information.
Alternatively, before the step of formerly abnormal closing information that reads described browser sidelights record, also comprise:
Load and play the information whether window demonstration enters safe mode;
When user confirms to enter after safe mode, read the formerly step of abnormal closing information of described browser sidelights record described in execution.
Alternatively, the module information that described exception throw is closed comprises: the MD5 value of the title of described assembly, the version of described assembly and described assembly; The running environment information of the assembly that described exception throw is closed comprises: browser kernel version when operating system version during described assembly operating and described assembly operating.
Alternatively, described abnormal closing information also comprises, the type of extremely closing and anomaly parameter value, and described type of extremely closing comprises access violation EXCEPTION_ACCESS_VIOLATION, described anomaly parameter value comprises memory address side-play amount.
Alternatively, described type of extremely closing also comprises: except zero error, internal memory exhausts and debug breakpoint.
According to a further aspect in the invention, the processing method that provides a kind of browser extremely to close, comprising:
The information of the assembly that reception browser side is uploaded; Described assembly surpasses a certain assembly of predetermined threshold value for cause number of times that same type closes extremely under identical running environment, describedly under identical running environment, cause the number of times that same type closes extremely and obtain from the formerly abnormal closing information of described browser sidelights record, described abnormal closing information comprises module information and the running environment information thereof that exception throw is closed; Describedly formerly when restarting after described browser cuts out extremely, reads abnormal closing information;
Information generation according to described assembly stops load instructions;
Described prevention load instructions is issued to browser side, and described browser side is for stoping and load described assembly according to described prevention load instructions.
Alternatively, the Information generation of the described assembly of described foundation stops the step of load instructions to comprise:
Information according to described assembly judges whether described assembly is non-critical component;
If so, generate and stop load instructions.
Alternatively, described method also comprises:
When judging described assembly as key component according to the information of described assembly, generate the instruction of prompting version updating;
The instruction of described prompting version updating is issued to browser side, and described browser side is also for according to assembly described in the instruction load of described prompting version updating, and shows the information that described component version upgrades.
Alternatively, described method also comprises:
When judging described assembly as dangerous assembly according to the information of described assembly, generate blacklist and write instruction;
Described blacklist is write to instruction and be issued to browser side, described browser side also stops the described assembly of loading for write instruction according to described blacklist, and described assembly is write to the blacklist of browser side.
Alternatively, described method also comprises:
When judging described assembly as dangerous assembly according to the information of described assembly, described assembly is write to the blacklist of server side, described browser side also loads described assembly for stoping.
Alternatively, the information of the described assembly of described foundation judges that whether described assembly comprises as the step of non-critical component:
Search the information that whether has described assembly in pre-configured unstable assembly list;
If exist, determine that described assembly is non-critical component;
If do not exist, determine that described assembly is key component.
According to a further aspect in the invention, provide a kind of browser, having comprised:
Read module, while being suitable for restarting after browser cuts out extremely, reads the formerly abnormal closing information of described browser sidelights record; Described abnormal closing information comprises module information and the running environment information thereof that exception throw is closed;
Sending module, be suitable in module information and the running environment information thereof of closing according to described exception throw, when judgement is caused number of times that same type closes extremely and surpasses predetermined threshold value under identical running environment by same assembly, the information of described assembly is sent to server side;
The first receiver module, be suitable for that reception server side issues, according to the prevention load instructions of the Information generation of described assembly;
Stop module, be suitable for stoping and loading described assembly according to described prevention load instructions.
Alternatively, described prevention load instructions is, the prevention load instructions that described server side generates when judging described assembly as non-critical component according to the information of described assembly.
Alternatively, described browser also comprises:
The second receiver module, is suitable for the instruction of prompting version updating that reception server side issues, that generate when judging described assembly as key component according to the information of described assembly;
Loaded and displayed module, is suitable for according to assembly described in the instruction load of described prompting version updating, and shows the information that described component version upgrades.
Alternatively, described browser also comprises:
The 3rd receiver module, is suitable for blacklist that reception server side issues, that generate when judging described assembly as dangerous assembly according to the information of described assembly and writes instruction;
Stop writing module, be suitable for writing instruction according to described blacklist and stop the described assembly of loading, and described assembly is write to the blacklist of browser side.
Alternatively, described browser extremely cuts out and comprises by Flash, third party's security component or browser intraware and provide program LSP, plug-in unit, expansion, graphic process unit GPU any one or more extremely the cutting out of causing in accelerating for third party software, hierarchical service.
Alternatively, described browser also comprises:
Logging modle, is suitable for when browser cuts out extremely, the external file of browser side and/or in the registration table of browser side recording exceptional closing information.
Alternatively, described browser also comprises:
Play window display module, be suitable for, before described read module reads the formerly abnormal closing information of described browser sidelights record, loading bullet window and showing the information that whether enters safe mode; And confirm to enter after safe mode user, call described read module.
Alternatively, the module information that described exception throw is closed comprises: the MD5 value of the title of described assembly, the version of described assembly and described assembly; The running environment information of the assembly that described exception throw is closed comprises: browser kernel version when operating system version during described assembly operating and described assembly operating.
Alternatively, described abnormal closing information also comprises, the type of extremely closing and anomaly parameter value, and described type of extremely closing comprises access violation EXCEPTION_ACCESS_VIOLATION, described anomaly parameter value comprises memory address side-play amount.
Alternatively, described type of extremely closing also comprises: except zero error, internal memory exhausts and debug breakpoint.
According to a further aspect in the invention, provide a kind of server, having comprised:
Receiver module, is suitable for receiving the information of the assembly that browser side uploads; Described assembly surpasses a certain assembly of predetermined threshold value for cause number of times that same type closes extremely under identical running environment, describedly under identical running environment, cause the number of times that same type closes extremely and obtain from the formerly abnormal closing information of described browser sidelights record, described abnormal closing information comprises module information and the running environment information thereof that exception throw is closed; Describedly formerly when restarting after described browser cuts out extremely, reads abnormal closing information;
The first generation module, is suitable for stoping load instructions according to the Information generation of described assembly;
First issues module, is suitable for described prevention load instructions to be issued to browser side, and described browser side is for stoping and load described assembly according to described prevention load instructions.
Alternatively, described the first generation module is also suitable for:
Information according to described assembly judges whether described assembly is non-critical component; If so, generate and stop load instructions.
Alternatively, described server also comprises:
The second generation module, is suitable for, when judging described assembly as key component according to the information of described assembly, generating the instruction of prompting version updating;
Second issues module, is suitable for the instruction of described prompting version updating to be issued to browser side, and described browser side is also for according to assembly described in the instruction load of described prompting version updating, and shows the information that described component version upgrades.
Alternatively, described server also comprises:
The 3rd generation module, is suitable for, when judging described assembly as dangerous assembly according to the information of described assembly, generating blacklist and writing instruction;
The 3rd issues module, is suitable for that described blacklist is write to instruction and is issued to browser side, and described browser side also stops the described assembly of loading for write instruction according to described blacklist, and described assembly is write to the blacklist of browser side.
Alternatively, described server also comprises:
Writing module, is suitable for, when judging described assembly as dangerous assembly according to the information of described assembly, described assembly being write to the blacklist of server side, and described browser side also loads described assembly for stoping.
Alternatively, described the first generation module is also suitable for:
Search the information that whether has described assembly in pre-configured unstable assembly list;
If exist, determine that described assembly is non-critical component;
If do not exist, determine that described assembly is key component.
According to a further aspect in the invention, the treatment system that provides a kind of browser extremely to close, comprises browser as above and server as above.
In the present invention, while restarting, first read the formerly abnormal closing information of browser sidelights record after browser cuts out extremely; Then in the module information of closing according to exception throw and running environment information thereof, while judging that being caused number of times that same type closes extremely under identical running environment by same assembly surpasses predetermined threshold value, the information of assembly is sent to server side; That last reception server side issues, according to the prevention load instructions of the Information generation of assembly, and according to stoping load instructions to stop charging assembly.By carrying out aforesaid operations, can when browser is restarted, stop and before loading, under identical running environment, cause the assembly that number of times that same type closes extremely surpasses predetermined threshold value, thereby after browser is restarted, can not cause by the same token more again extremely closing, fundamentally solve the problem that browser cuts out extremely.
Above-mentioned explanation is only the general introduction of technical solution of the present invention, in order to better understand technological means of the present invention, and can be implemented according to the content of specification, and for above and other objects of the present invention, feature and advantage can be become apparent, below especially exemplified by the specific embodiment of the present invention.
Accompanying drawing explanation
By reading below detailed description of the preferred embodiment, various other advantage and benefits will become cheer and bright for those of ordinary skills.Accompanying drawing is only for the object of preferred implementation is shown, and do not think limitation of the present invention.And in whole accompanying drawing, by identical reference symbol, represent identical parts.In the accompanying drawings:
Fig. 1 shows the flow chart of steps of the processing method embodiment 1 that a kind of according to an embodiment of the invention browser cuts out extremely;
Fig. 2 shows the flow chart of steps of the processing method embodiment 2 that a kind of according to an embodiment of the invention browser cuts out extremely;
Fig. 3 shows the flow chart of steps of the processing method embodiment 3 that a kind of according to an embodiment of the invention browser cuts out extremely;
Fig. 4 shows the processing scheme schematic diagram of extremely closing that server side causes for different reasons;
Fig. 5 shows the structured flowchart of a kind of according to an embodiment of the invention browser embodiment 1;
Fig. 6 shows a kind of according to an embodiment of the invention structured flowchart of server example 1;
Fig. 7 shows the flow chart of steps of the processing method embodiment 4 that a kind of according to an embodiment of the invention browser cuts out extremely;
Fig. 8 shows the flow chart of steps of the processing method embodiment 5 that a kind of according to an embodiment of the invention browser cuts out extremely;
Fig. 9 shows the flow chart of steps of the processing method embodiment 6 that a kind of according to an embodiment of the invention browser cuts out extremely;
Figure 10 shows a kind of according to an embodiment of the invention structured flowchart of server example 2;
Figure 11 shows the structured flowchart of a kind of according to an embodiment of the invention browser embodiment 2.
Embodiment
Exemplary embodiment of the present disclosure is described below with reference to accompanying drawings in more detail.Although shown exemplary embodiment of the present disclosure in accompanying drawing, yet should be appreciated that and can realize the disclosure and the embodiment that should do not set forth limits here with various forms.On the contrary, it is in order more thoroughly to understand the disclosure that these embodiment are provided, and can by the scope of the present disclosure complete convey to those skilled in the art.
With reference to Fig. 1, show the flow chart of steps of the processing method embodiment 1 that browser cuts out extremely according to an embodiment of the invention, specifically can comprise the following steps:
Step 101, while restarting after browser cuts out extremely, reads the formerly abnormal closing information of described browser sidelights record.
In the embodiment of the present invention, can recording exceptional closing information in browser side, while restarting, first can read the formerly abnormal closing information of browser sidelights record after browser cuts out extremely.Wherein, the reboot operation of browser can, for manually restarting by user, also can be closed autoboot afterwards for browser extremely; The formerly abnormal closing information of browser sidelights records can be also the abnormal closing information recording in Preset Time section formerly for all abnormal closing information of record formerly from browser creates, and the embodiment of the present invention is not limited this.
Step 102, if module information and the running environment information thereof of according to described exception throw, closing, judgement is caused the number of times that same type closes extremely and surpasses predetermined threshold value under identical running environment by same assembly, the information of described assembly is sent to server side.
In specific implementation, abnormal closing information can comprise module information and the running environment information thereof that exception throw is closed.After reading the formerly abnormal closing information of browser sidelights record, if module information and the running environment information thereof of according to the exception throw that formerly abnormal closing information comprises, closing, judgement is caused the number of times that same type closes extremely and surpasses predetermined threshold value under identical running environment by same assembly, can think that this assembly still may affect the operation of browser after browser is restarted, cause browser extremely to be closed, now the information of described assembly can be sent to server side, by server side, for the information of this assembly, analyzed, thereby draw corresponding processing scheme.
Step 103, that reception server side issues, according to the prevention load instructions of the Information generation of described assembly, according to described prevention load instructions, stop and load described assembly.
Server side is after receiving the information of the assembly that browser side uploads, by generating the information analysis of this assembly, stop load instructions and be issued to browser side, browser side reception server side is issued, according to the prevention load instructions of the Information generation of described assembly, browser side will stop and load described assembly according to described prevention load instructions afterwards.
The embodiment of the present invention 1 can stop and under identical running environment, causes the assembly that number of times that same type closes extremely surpasses predetermined threshold value before loading when browser is restarted, thereby after browser is restarted, can not cause by the same token more again extremely closing, fundamentally solve the problem that browser cuts out extremely.
With reference to Fig. 2, show the flow chart of steps of the processing method embodiment 2 that a kind of according to an embodiment of the invention browser cuts out extremely, specifically can comprise the steps:
Step 201, when browser cuts out extremely, the external file of browser side and/or in the registration table of browser side recording exceptional closing information.
In actual applications, the reason that causes browser extremely to be closed is a lot, browser in the embodiment of the present invention extremely cuts out and can comprise that by Flash(Flash be the creation of a kind of animation and application development authoring software), third party's security component or browser intraware be third party software, LSP(Layered Service Provider, hierarchical service provides program), plug-in unit, expansion, GPU any one or more extremely the closing of causing in accelerating.Certainly, can also comprise extremely closing of being caused by other reasons, the embodiment of the present invention is not limited this.
In specific implementation, can the external file of browser side or in the registration table of browser side recording exceptional closing information, can also be in the external file of browser side and the registration table of browser side equal recording exceptional closing informations, certainly can also be at other position recording exceptional closing informations of browser side, the embodiment of the present invention is not limited this.
Wherein, abnormal closing information can comprise module information and the running environment information thereof that exception throw is closed.The module information that described exception throw is closed can comprise: the MD5 value of the title of described assembly, the version of described assembly and described assembly; The running environment information of the assembly that described exception throw is closed can comprise: browser kernel version when operating system version during described assembly operating and described assembly operating.Wherein, operating system version can be windows95, windows2000, windows ME, windows XP, windows2003, windows vista, windows7, Linux, Unix, etc.; Browser kernel version can be IE7, IE8 etc.
It should be noted that, described abnormal closing information can also comprise, the type of extremely closing and anomaly parameter value, wherein, the type of extremely closing can comprise access violation EXCEPTION_ACCESS_VIOLATION, except zero error, internal memory exhausts and debug breakpoint, etc.When the type of extremely closing is access violation, anomaly parameter value can comprise memory address side-play amount.Access violation refers to the skew that memory address has occurred when loading certain assembly, calls in to the code components in internal memory and is offset on memory address.In browser program, there are a lot of assemblies, as while calling a plug-in unit, first need to be read in internal memory, use CPU(Central Processing Unit, central processing unit) remove to call in internal memory, and when calling in internal memory, occur abnormal, as overflow, can show the skew on memory address.
For example, a kind of abnormal closing information can comprise: the name of the assembly that exception throw is closed is called five of superfine product, version is that 4.0.0.950, MD5 value are x, operating system version during this assembly operating is windows XP, browser kernel version is IE7, this type of extremely closing is EXCEPTION_ACCESS_VIOLATION, and anomaly parameter value (being memory address side-play amount) is 20.
Step 202, while restarting after browser cuts out extremely, loads and plays the information whether window demonstration enters safe mode.
Safe mode is a kind of special pattern in Windows operating system, and some mistakes of repair system like a cork under safe mode, play a multiplier effect.The operation principle of safe mode is the in the situation that of loading third-party device driver not, to start computer, make computer operate in system minimal mode, so just the mistake of inspection and repair computer system easily, makes to cause the assembly that operating system is abnormal can not be loaded startup.
The embodiment of the present invention is applied to the safe mode of Windows operating system in browser, and the assembly that may cause browser extremely to be closed for some while restarting after browser cuts out extremely stops it to load startup, thereby avoids browser again extremely to close.
As a kind of preferred exemplary of the concrete application of the present invention, while restarting after browser cuts out extremely, can load and play window and show the information that whether enters safe mode, play and in window, "Yes" can be set and two buttons of "No" are selected for user.After user selects to confirm to enter safe mode (clicking "Yes"), can carry out follow-up step 203; If user does not select to enter safe mode (clicking "No"), do not carry out subsequent step, restart in the conventional mode browser.
Certainly, can also adopt alternate manner to show above-mentioned information, and can not show above-mentioned information in the embodiment of the present invention, while restarting after browser cuts out extremely, browser enters safe mode automatically, and performs step 203.
Step 203, reads the formerly abnormal closing information of described browser sidelights record.
In step 201, described when browser cuts out extremely, the external file of browser side and/or in the registration table of browser side recording exceptional closing information.If only recorded abnormal closing information in the external file of browser side, in this step 203, from said external file, read formerly abnormal closing information; If only recorded abnormal closing information in the registration table of browser side, in this step 203, from above-mentioned registration table, read formerly abnormal closing information; If all recorded abnormal closing information in the external file of browser side and the registration table of browser side, any one that can be from said external file and registration table in this step 203 reads formerly abnormal closing information.
Wherein, the formerly abnormal closing information of browser sidelights records can be also the abnormal closing information recording in Preset Time section formerly for all abnormal closing information of record formerly from browser creates, and the embodiment of the present invention is not limited this.
Step 204, if module information and the running environment information thereof of according to described exception throw, closing, judgement is caused the number of times that same type closes extremely and surpasses predetermined threshold value under identical running environment by same assembly, the information of described assembly is sent to server side.
After reading the formerly abnormal closing information of described browser sidelights record, these abnormal closing informations are analyzed, if module information and the running environment information thereof of according to described exception throw, closing, judgement is caused the number of times that same type closes extremely and surpasses predetermined threshold value (for example 3 times) under identical running environment by same assembly, this assembly is the assembly that possible cause browser extremely to be closed, therefore browser will be sent to server side by the information of this assembly, then can judge this assembly is carried out to which kind of processing by server side.
For example, if module information and the running environment information thereof of according to exception throw in abnormal closing information formerly, closing, judge that abnormal closing information surpasses predetermined threshold value as this number of times of extremely closing of " name of the assembly that exception throw is closed is called five of superfine product, version is x as 4.0.0.950, MD5 value; operating system version during this assembly operating is windows XP; browser kernel version is IE7 ", is sent to server side by the information of assembly " component Name is that five of superfine product, version are that 4.0.0.950, MD5 value are x ".
Certainly, if also comprise type and the anomaly parameter value of extremely closing in abnormal closing information, module information and running environment information, the type of extremely closing and the anomaly parameter value that will close according to exception throw in abnormal closing information are formerly judged.For example judge that abnormal closing information surpasses predetermined threshold value as this number of times of extremely closing of " name of the assembly that exception throw is closed is called five of superfine product, version is x as 4.0.0.950, MD5 value; operating system version during this assembly operating is windows XP; browser kernel version is IE7; this type of extremely closing is EXCEPTION_ACCESS_VIOLATION; anomaly parameter value (memory address side-play amount) is 20 ", is sent to server side by the information of assembly " component Name is that five of superfine product, version are that 4.0.0.950, MD5 value are x ".
Step 205, that reception server side issues, according to the prevention load instructions of the Information generation of described assembly, according to described prevention load instructions, stop and load described assembly.
Server side, after the information of assembly that receives the transmission of browser side, can be analyzed for the information of this assembly, and be issued to browser side according to the corresponding instruction of Information generation of described assembly.For the analysis of server side,, generate the embodiment that the detailed process of instruction will describe from server side below and be introduced, the embodiment of the present invention is discussed no longer in detail at this.
If server side judges that according to the information (i.e. " component Name is that five of superfine product, version are that 4.0.0.950, MD5 value are x ") of described assembly described assembly is as non-critical component, generation is stoped to load instructions and is issued to browser side, be that described prevention load instructions is, the prevention load instructions that described server side generates when judging described assembly as non-critical component according to the information of described assembly.Browser side, after receiving above-mentioned prevention load instructions, can stop load instructions to stop according to this and load described assembly, i.e. the above-mentioned name of prevention loading is called five of superfine product, version is the assembly that 4.0.0.950, MD5 value are x.
Step 206, the instruction of prompting version updating that reception server side issues, that generate when judging described assembly as key component according to the information of described assembly, according to assembly described in the instruction load of described prompting version updating, and show the information that described component version upgrades.
If server side judges that according to the information (i.e. " component Name is that five of superfine product, version are that 4.0.0.950, MD5 value are x ") of described assembly described assembly is as key component, will generate the instruction of prompting version updating and be issued to browser side, be i.e. the instruction of browser side prompting version updating that reception server side is issued, that generate when judging described assembly as key component according to the information of described assembly.Browser side is after receiving the instruction of above-mentioned prompting version updating, can point out assembly described in the instruction load of version updating according to this, load that above-mentioned name is called five of superfine product, version is that 4.0.0.950, MD5 value are the assembly of x, and showing the information that described component version upgrades, user can upgrade according to this information the version of described assembly.
In specific implementation, the information that described component version upgrades can be the information of component version described in prompting customer upgrade, or prompting user changes to the version of described assembly the information of stable release; Can be in browser with the mode display reminding information of yellow prompting bar, or, in browser with the mode display reminding information of prompting message frame.The embodiment of the present invention is not limited this.
Step 207, blacklist that reception server side issues, that generate when judging described assembly as dangerous assembly according to the information of described assembly writes instruction, according to described blacklist, write instruction and stop the described assembly of loading, and described assembly is write to the blacklist of browser side.
If server side judges that according to the information (i.e. " component Name is that five of superfine product, version are that 4.0.0.950, MD5 value are x ") of described assembly described assembly is as dangerous assembly, generation blacklist write to instruction and be issued to browser side, browser side blacklist that reception server side is issued, that generate when judging described assembly as dangerous assembly according to the information of described assembly writes instruction.Browser side is receiving after above-mentioned blacklist writes instruction, can write instruction according to this blacklist and stop the described assembly of loading, the above-mentioned name of i.e. prevention loading is called five of superfine product, version is the assembly that 4.0.0.950, MD5 value are x, and this assembly is write to the blacklist of browser side.
It should be noted that, step 205, step 206 and step 207 do not represent to carry out according to said sequence, and in fact these 3 steps are the step of carrying out side by side.
While restarting after browser cuts out extremely in the embodiment of the present invention 2, can display reminding information, user can select whether to enter safe mode, after confirming to enter safe mode, can carry out follow-up processing procedure.And server side can be different according to the Information generation of different assemblies instruction, the different instruction that browser side issues according to server side is carried out corresponding operation, thereby after browser is restarted, can not cause by the same token more again extremely closing, fundamentally solve the problem that browser cuts out extremely.
Above-described embodiment 1 and embodiment 2 are descriptions that the processing method of extremely closing for browser from browser side is carried out, and below by embodiment 3, from server side, are described.
With reference to Fig. 3, show the flow chart of steps of the processing method embodiment 3 that a kind of according to an embodiment of the invention browser cuts out extremely, specifically can comprise the following steps:
Step 301, the information of the assembly that reception browser side is uploaded.
Wherein, described assembly surpasses a certain assembly of predetermined threshold value for cause number of times that same type closes extremely under identical running environment, describedly under identical running environment, cause the number of times that same type closes extremely and obtain from the formerly abnormal closing information of described browser sidelights record, described abnormal closing information comprises module information and the running environment information thereof that exception throw is closed; Describedly formerly when restarting after described browser cuts out extremely, reads abnormal closing information.
Step 302, according to the Information generation prevention load instructions of described assembly.
Server side, after the information of assembly that receives the transmission of browser side, can be analyzed for the information of this assembly, and be issued to browser side according to the corresponding instruction of Information generation of described assembly.
In a preferred embodiment of the present invention, step 302 specifically can comprise following sub-step:
Sub-step S21, judges according to the information of described assembly whether described assembly is non-critical component; If so, generate and stop load instructions.
If server side judges that described assembly is as non-critical component, illustrate that browser side can stop this assembly of loading, now server side will generate and stop load instructions.
In specific implementation, can at server side, configure unstable assembly list in advance, this unstable assembly list can according to assembly, whether key be configured, and no longer describes in detail for concrete layoutprocedure herein.In this unstable assembly list, can comprise the title of assembly, the information such as MD5 value of the version of assembly, assembly.In a preferred embodiment of the present invention, the decision process of above-mentioned sub-step S21 can be: search the information (information of the assembly that the browser side receiving is uploaded) that whether has described assembly in pre-configured unstable assembly list; If exist, determine that described assembly is non-critical component; If do not exist, determine that described assembly is key component.
Step 303, is issued to browser side by described prevention load instructions, and described browser side is for stoping and load described assembly according to described prevention load instructions.
In a preferred embodiment of the present invention, the processing method that described browser cuts out extremely can also comprise the following steps:
Step 304, when judging described assembly as key component according to the information of described assembly, generates the instruction of prompting version updating.
If server side judges that described assembly is as key component (utilizing the decision process of above-mentioned sub-step S21 to judge that described assembly is as key component), illustrate that browser side can not stop this assembly of loading, now server side will generate the instruction of prompting version updating.
Step 305, is issued to browser side by the instruction of described prompting version updating, and described browser side is also for according to assembly described in the instruction load of described prompting version updating, and shows the information that described component version upgrades.
Step 306, when judging described assembly as dangerous assembly according to the information of described assembly, generates blacklist and writes instruction.
If server side judges that described assembly is as dangerous assembly, illustrate that browser side can stop to load this assembly, and this assembly is unsafe, now server side writes instruction by generation blacklist.
In specific implementation, can at server side, configure dangerous assembly list in advance, whether this dangerous assembly list can exist the situations such as wooden horse, virus to be configured according to assembly, no longer describe in detail for concrete layoutprocedure herein.In this unstable assembly list, also can comprise the title of assembly, the information such as MD5 value of the version of assembly, assembly.In a preferred embodiment of the present invention, above-mentionedly to the decision process of dangerous assembly, can be: search the information (information of the assembly that the browser side receiving is uploaded) that whether has described assembly in pre-configured dangerous assembly list; If exist, determine that described assembly is dangerous assembly; If do not exist, determine that described assembly is security component.
Step 307, writes instruction by described blacklist and is issued to browser side, and described browser side also stops the described assembly of loading for write instruction according to described blacklist, and described assembly is write to the blacklist of browser side.
It should be noted that, step 302, step 304 and step 306 do not represent to carry out according to said sequence, and in fact these 3 steps are the step of carrying out side by side.
In a preferred embodiment of the present invention, when server side is judged described assembly as dangerous assembly according to the information of described assembly, this assembly can also be write to the blacklist of server side, now server side can not carried out above-mentioned steps 306 and step 307, only needing this assembly of notice browser side is dangerous assembly, and browser side also loads this assembly for stoping.Certainly, in this case, server side still can be carried out above-mentioned steps 306 and step 307, and the embodiment of the present invention is not limited this.
In actual applications, the reason that causes browser extremely to be closed is a lot, and the browser in the embodiment of the present invention extremely cuts out and can comprise that by Flash, third party's security component or browser intraware be any one or more extremely the closing of causing in third party software, LSP, plug-in unit, expansion, GPU acceleration.
Fig. 4 is the processing scheme schematic diagram of extremely closing that server side causes for different reasons.First enter safe mode, when being caused by Flash while extremely closing, server side generates the instruction (renewal of Flash stable release) of prompting version updating; When being that third party software causes while extremely closing by third party's security component or browser intraware, server side generates and stops load instructions (the anti-injection of third party's fail-safe software); When being caused by LSP while extremely closing, server side generates and stops load instructions (the anti-injection of LSP); When being caused by plug-in unit while extremely closing, server side generates the blacklist (plug-in unit blacklist) that blacklist writes instruction or described assembly write to server side; When being caused by expansion while extremely closing, server side generates the blacklist (expansion blacklist) that blacklist writes instruction or described assembly write to server side; When accelerated to cause that while extremely closing, server side generates and stops load instructions (GPU accelerates to forbid) by GPU.
Above-described embodiment 1 and embodiment 2 are described from browser side, and embodiment 3 is described from server side.Below, the processing method of browser cutting out extremely from integral body is described, and the method specifically can comprise the following steps:
Step a, browser side when extremely closing, the external file of browser side and/or in the registration table of browser side recording exceptional closing information;
Step b, when browser side is restarted after extremely closing, loads and plays the information whether window demonstration enters safe mode;
When user confirms to enter safe mode, execution step c.
Step c, browser side reads the formerly abnormal closing information of described browser sidelights record;
Steps d, if module information and running environment information thereof that browser side is closed according to described exception throw, judgement is caused the number of times that same type closes extremely and surpasses predetermined threshold value under identical running environment by same assembly, the information of described assembly is sent to server side;
Step e, the information of the assembly that server side reception browser side is uploaded;
Step f, server side stops load instructions according to the Information generation of described assembly, and described prevention load instructions is issued to browser side;
Step g, that browser side reception server side issues, according to the prevention load instructions of the Information generation of described assembly, according to described prevention load instructions, stop and load described assembly;
Step h, server side, when judging described assembly as key component according to the information of described assembly, generates the instruction of prompting version updating, and the instruction of described prompting version updating is issued to browser side;
Step I, the instruction of prompting version updating that browser side reception server side issues, that generate when judging described assembly as key component according to the information of described assembly, according to assembly described in the instruction load of described prompting version updating, and show the information that described component version upgrades;
Step j, server side, when judging described assembly as dangerous assembly according to the information of described assembly, generates blacklist and writes instruction, and described blacklist is write to instruction is issued to browser side;
In a preferred embodiment of the present invention, when server side is judged described assembly as dangerous assembly according to the information of described assembly, this assembly can also be write to the blacklist of server side, now server side can not write instruction by described blacklist and be issued to browser side, only needing this assembly of notice browser side is dangerous assembly, and browser side also loads this assembly for stoping.Certainly, in this case, server side still can write instruction by described blacklist and be issued to browser side, and the embodiment of the present invention is not limited this.
Step k, blacklist that browser side reception server side issues, that generate when judging described assembly as dangerous assembly according to the information of described assembly writes instruction, according to described blacklist, write instruction and stop the described assembly of loading, and described assembly is write to the blacklist of browser side.
For aforementioned approaches method embodiment, for simple description, therefore it is all expressed as to a series of combination of actions, but those skilled in the art should know, the embodiment of the present invention is not subject to the restriction of described sequence of movement, because according to the embodiment of the present invention, some step can adopt other orders or carry out simultaneously.Secondly, those skilled in the art also should know, the embodiment described in specification all belongs to preferred embodiment, and related action might not be that the embodiment of the present invention is necessary.
With reference to Fig. 5, show the structured flowchart of a kind of according to an embodiment of the invention browser embodiment 1, described browser and server communication, described browser can comprise as lower module:
Logging modle 501, is suitable for when browser cuts out extremely, the external file of browser side and/or in the registration table of browser side recording exceptional closing information;
Play window display module 502, be suitable for, before described read module reads the formerly abnormal closing information of described browser sidelights record, loading bullet window and showing the information that whether enters safe mode;
And confirm to enter after safe mode user, call described read module.
Read module 503, while being suitable for restarting after browser cuts out extremely, reads the formerly abnormal closing information of described browser sidelights record; Described abnormal closing information comprises module information and the running environment information thereof that exception throw is closed;
Sending module 504, be suitable in module information and the running environment information thereof of closing according to described exception throw, when judgement is caused number of times that same type closes extremely and surpasses predetermined threshold value under identical running environment by same assembly, the information of described assembly is sent to server side;
The first receiver module 505, be suitable for that reception server side issues, according to the prevention load instructions of the Information generation of described assembly;
In a preferred embodiment of the present invention, described prevention load instructions is, the prevention load instructions that described server side generates when judging described assembly as non-critical component according to the information of described assembly.
Stop module 506, be suitable for stoping and loading described assembly according to described prevention load instructions.
The second receiver module 507, is suitable for the instruction of prompting version updating that reception server side issues, that generate when judging described assembly as key component according to the information of described assembly;
Loaded and displayed module 508, is suitable for according to assembly described in the instruction load of described prompting version updating, and shows the information that described component version upgrades.
The 3rd receiver module 509, is suitable for blacklist that reception server side issues, that generate when judging described assembly as dangerous assembly according to the information of described assembly and writes instruction;
Stop writing module 510, be suitable for writing instruction according to described blacklist and stop the described assembly of loading, and described assembly is write to the blacklist of browser side.
In a preferred embodiment of the present invention, described browser extremely cuts out and comprises by Flash, third party's security component or browser intraware and provide program LSP, plug-in unit, expansion, graphic process unit GPU any one or more extremely the cutting out of causing in accelerating for third party software, hierarchical service.
The module information that described exception throw is closed comprises: the MD5 value of the title of described assembly, the version of described assembly and described assembly; The running environment information of the assembly that described exception throw is closed comprises: browser kernel version when operating system version during described assembly operating and described assembly operating.In a preferred embodiment of the present invention, described abnormal closing information also comprises, the type of extremely closing and anomaly parameter value, described type of extremely closing comprise access violation EXCEPTION_ACCESS_VIOLATION, except zero error, internal memory exhausts and debug breakpoint.When the type of extremely closing is access violation, described anomaly parameter value comprises memory address side-play amount.
For above-mentioned browser embodiment 1, because it is substantially similar to embodiment of the method, so description is fairly simple, relevant part is referring to the part explanation of embodiment of the method shown in Fig. 1, Fig. 2 and Fig. 3.
With reference to Fig. 6, show a kind of according to an embodiment of the invention structured flowchart of server example 1, described server is communicated by letter with browser, and described server can comprise as lower module:
Receiver module 601, is suitable for receiving the information of the assembly that browser side uploads;
The first generation module 602, is suitable for stoping load instructions according to the Information generation of described assembly;
First issues module 603, is suitable for described prevention load instructions to be issued to browser side, and described browser side is for stoping and load described assembly according to described prevention load instructions;
The second generation module 604, is suitable for, when judging described assembly as key component according to the information of described assembly, generating the instruction of prompting version updating;
Second issues module 605, is suitable for the instruction of described prompting version updating to be issued to browser side, and described browser side is also for according to assembly described in the instruction load of described prompting version updating, and shows the information that described component version upgrades;
The 3rd generation module 606, is suitable for, when judging described assembly as dangerous assembly according to the information of described assembly, generating blacklist and writing instruction;
The 3rd issues module 607, is suitable for that described blacklist is write to instruction and is issued to browser side, and described browser side also stops the described assembly of loading for write instruction according to described blacklist, and described assembly is write to the blacklist of browser side;
Writing module 608, is suitable for, when judging described assembly as dangerous assembly according to the information of described assembly, described assembly being write to the blacklist of server side, and described browser side also loads described assembly for stoping.
In a preferred embodiment of the present invention, described assembly surpasses a certain assembly of predetermined threshold value for cause number of times that same type closes extremely under identical running environment, describedly under identical running environment, cause the number of times that same type closes extremely and obtain from the formerly abnormal closing information of described browser sidelights record, described abnormal closing information comprises module information and the running environment information thereof that exception throw is closed; Describedly formerly when restarting after described browser cuts out extremely, reads abnormal closing information.
In a preferred embodiment of the present invention, described the first generation module is also suitable for: the information according to described assembly judges whether described assembly is non-critical component; If so, generate and stop load instructions.Described the first generation module is also suitable for: search the information that whether has described assembly in pre-configured unstable assembly list; If exist, determine that described assembly is non-critical component; If do not exist, determine that described assembly is key component.
For above-mentioned server example 1, because it is substantially similar to embodiment of the method, so description is fairly simple, relevant part is referring to the part explanation of embodiment of the method shown in Fig. 1, Fig. 2 and Fig. 3.
The treatment system that the present invention also provides a kind of browser extremely to close, specifically can comprise browser and server, wherein, and for the part explanation of the browser embodiment 1 shown in above-mentioned Fig. 5 of description reference of browser; Part explanation for the server example 1 shown in above-mentioned Fig. 6 of description reference of server.
In the present invention, while restarting, first read the formerly abnormal closing information of browser sidelights record after browser cuts out extremely; Then in the module information of closing according to exception throw and running environment information thereof, while judging that being caused number of times that same type closes extremely under identical running environment by same assembly surpasses predetermined threshold value, the information of assembly is sent to server side; That last reception server side issues, according to the prevention load instructions of the Information generation of assembly, and according to stoping load instructions to stop charging assembly.The present invention can stop and under identical running environment, causes the assembly that number of times that same type closes extremely surpasses predetermined threshold value before loading when browser is restarted, thereby after browser is restarted, can not cause by the same token more again extremely closing, fundamentally solve the problem that browser cuts out extremely.
In above-mentioned each embodiment, formerly abnormal closing information is recorded in browser side, for the judgement of extremely closing number of times, by browser, is carried out.In the present invention, formerly abnormal closing information also can be recorded in server side, for the judgement of extremely closing number of times, also can be carried out by server, below, by following each embodiment, the situation that formerly abnormal closing information is recorded in server side is described.
With reference to Fig. 7, show the flow chart of steps of the processing method embodiment 4 that browser cuts out extremely according to an embodiment of the invention, specifically can comprise the following steps:
Step 701, the restarting information of the described browser of uploading when reception browser side is restarted after extremely closing, the formerly abnormal closing information of the described browser of recording according to described restarting information querying server sidelights.
In the embodiment of the present invention, when browser side is restarted after extremely closing, side can upload onto the server the restarting information of described browser, the restarting information of the described browser that server side reception browser side is uploaded, the formerly abnormal closing information of the described browser that then can record according to described restarting information querying server sidelights.
Wherein, wherein, the reboot operation of browser can, for manually restarting by user, also can be closed autoboot afterwards for browser extremely; The formerly abnormal closing information of server side record can be also the abnormal closing information recording in Preset Time section formerly for all abnormal closing information of record formerly from server creates, and the embodiment of the present invention is not limited this.
Step 702, if module information and running environment information thereof that server side is closed according to described exception throw, judgement is caused the number of times that same type closes extremely and surpasses predetermined threshold value under identical running environment by same assembly, the Information generation according to described assembly stops load instructions.
In specific implementation, abnormal closing information can comprise module information and the running environment information thereof that exception throw is closed.Inquire the formerly abnormal closing information of server side record according to described restarting information after, if module information and the running environment information thereof of according to the exception throw that formerly abnormal closing information comprises, closing, judgement is caused the number of times that same type closes extremely and surpasses predetermined threshold value under identical running environment by same assembly, can think that this assembly still may affect the operation of browser after browser is restarted, cause browser extremely to be closed, now can analyze the information of described assembly, and stop load instructions according to the Information generation of described assembly.
Step 703, is issued to browser side by described prevention load instructions, and described browser side is for stoping and load described assembly according to described prevention load instructions.
The embodiment of the present invention 4 can stop and under identical running environment, causes the assembly that number of times that same type closes extremely surpasses predetermined threshold value before loading when browser is restarted, thereby after browser is restarted, can not cause by the same token more again extremely closing, fundamentally solve the problem that browser cuts out extremely.
With reference to Fig. 8, show the flow chart of steps of the processing method embodiment 5 that browser cuts out extremely according to an embodiment of the invention, specifically can comprise the following steps:
Step 801, receives and records the abnormal closing information of the described browser that browser side uploads when extremely closing.
In actual applications, the reason that causes browser extremely to be closed is a lot, browser in the embodiment of the present invention extremely cuts out and can comprise that by Flash(Flash be the creation of a kind of animation and application development authoring software), third party's security component or browser intraware be third party software, LSP(Layered Service Provider, hierarchical service provides program), plug-in unit, expansion, GPU any one or more extremely the closing of causing in accelerating.Certainly, can also comprise extremely closing of being caused by other reasons, the embodiment of the present invention is not limited this.
When browser side is closed extremely, the side of abnormal closing information can being uploaded onto the server, after server side receives described abnormal closing information, can carry out interpretation of records, for subsequent query, uses.For example, can be in the external file of server side or the registration table at server side recording exceptional closing information, can also be in the external file of server side and the registration table of server side equal recording exceptional closing informations, certainly can also be at other position recording exceptional closing informations of server side, the embodiment of the present invention is not limited this.
Wherein, abnormal closing information can comprise module information and the running environment information thereof that exception throw is closed.The module information that described exception throw is closed can comprise: the MD5 value of the title of described assembly, the version of described assembly and described assembly; The running environment information of the assembly that described exception throw is closed can comprise: browser kernel version when operating system version during described assembly operating and described assembly operating.Wherein, operating system version can be windows95, windows2000, windows ME, windows XP, windows2003, windows vista, windows7, Linux, Unix, etc.; Browser kernel version can be IE7, IE8 etc.
It should be noted that, described abnormal closing information can also comprise, the type of extremely closing and anomaly parameter value, wherein, the type of extremely closing can comprise access violation EXCEPTION_ACCESS_VIOLATION, except zero error, internal memory exhausts and debug breakpoint, etc.When the type of extremely closing is access violation, anomaly parameter value can comprise memory address side-play amount.Access violation refers to the skew that memory address has occurred when loading certain assembly, calls in to the code components in internal memory and is offset on memory address.In browser program, there are a lot of assemblies, as while calling a plug-in unit, first need to be read in internal memory, use CPU(Central Processing Unit, central processing unit) remove to call in internal memory, and when calling in internal memory, occur abnormal, as overflow, can show the skew on memory address.
For example, a kind of abnormal closing information can comprise: the name of the assembly that exception throw is closed is called five of superfine product, version is that 4.0.0.950, MD5 value are x, operating system version during this assembly operating is windows XP, browser kernel version is IE7, this type of extremely closing is EXCEPTION_ACCESS_VIOLATION, and anomaly parameter value (being memory address side-play amount) is 20.
Step 802, the restarting information of the described browser of uploading when reception browser side is restarted after extremely closing, the formerly abnormal closing information of the described browser of recording according to described restarting information querying server sidelights.
When browser side is restarted after extremely closing, can upload the restarting information of described browser to browser side.Server side can receive the restarting information of the described browser that browser side uploads, and according to the formerly abnormal closing information of the described browser of described restarting information querying server sidelights record.
In step 801, described can be in the external file of server side or the registration table at server side recording exceptional closing information, can also be in the external file of server side and the registration table of server side equal recording exceptional closing informations.If only recorded abnormal closing information in the external file of server side, in this step 802, from said external file, read formerly abnormal closing information; If only recorded abnormal closing information in the registration table of server side, in this step 802, from above-mentioned registration table, read formerly abnormal closing information; If all recorded abnormal closing information in the external file of server side and the registration table of browser side, any one that can be from said external file and registration table in this step 802 reads formerly abnormal closing information.
In a kind of specific implementation, described restarting information can comprise the version information (such as IE7, IE8 etc.) of described browser kernel and the facility information at described browser place (such as device id etc.), server side is when recording the abnormal closing information that browser side uploads, can be by the facility information at the version information of browser kernel and browser place, with the abnormal closing information record that matches.Therefore, according to the formerly abnormal closing information of the described browser of the described server side record of described restarting information inquiry, be the formerly abnormal closing information matching with the version information of described browser kernel and the facility information at described browser place.
Step 803, if module information and running environment information thereof that server side is closed according to described exception throw, judgement is caused the number of times that same type closes extremely and surpasses predetermined threshold value under identical running environment by same assembly, the Information generation according to described assembly stops load instructions, and described prevention load instructions is issued to browser side, described browser side is for stoping and load described assembly according to described prevention load instructions.
Server side is after the formerly abnormal closing information of described browser that inquires server side record, these abnormal closing informations are analyzed, if module information and the running environment information thereof of according to described exception throw, closing, judgement is caused the number of times that same type closes extremely and surpasses predetermined threshold value under identical running environment by same assembly, this assembly is the assembly that possible cause browser extremely to be closed, therefore server side can stop load instructions according to the Information generation of described assembly, and described prevention load instructions is issued to browser side, described browser side is for stoping and load described assembly according to described prevention load instructions.
In a preferred embodiment of the present invention, step 803 specifically can comprise following sub-step:
Sub-step S31, judges according to the information of described assembly whether described assembly is non-critical component; If so, generate and stop load instructions.
If server side judges that described assembly is as non-critical component, illustrate that browser side can stop this assembly of loading, now server side will generate and stop load instructions.
In specific implementation, can at server side, configure unstable assembly list in advance, this unstable assembly list can according to assembly, whether key be configured, and no longer describes in detail for concrete layoutprocedure herein.In this unstable assembly list, can comprise the title of assembly, the information such as MD5 value of the version of assembly, assembly.In a preferred embodiment of the present invention, the decision process of above-mentioned sub-step S31 can be: search the information that whether has described assembly in pre-configured unstable assembly list; If exist, determine that described assembly is non-critical component; If do not exist, determine that described assembly is key component.
For example, if module information and the running environment information thereof of according to exception throw in abnormal closing information formerly, closing, judge that abnormal closing information is as " name of the assembly that exception throw is closed is called five of superfine product, version is 4.0.0.950, MD5 value is x, operating system version during this assembly operating is windows XP, browser kernel version is IE7 " this number of times of extremely closing surpass predetermined threshold value, and the information according to described assembly judges that described assembly is as non-critical component, can according to the information of this assembly, " component Name be five of superfine product, version is 4.0.0.950, MD5 value is x " generation prevention load instructions.
Certainly, if also comprise type and the anomaly parameter value of extremely closing in abnormal closing information, module information and running environment information, the type of extremely closing and the anomaly parameter value that will close according to exception throw in abnormal closing information are formerly judged.For example judge that abnormal closing information is as " name of the assembly that exception throw is closed is called five of superfine product, version is 4.0.0.950, MD5 value is x, operating system version during this assembly operating is windows XP, browser kernel version is IE7, this type of extremely closing is EXCEPTION_ACCESS_VIOLATION, anomaly parameter value (memory address side-play amount) is 20 " this number of times of extremely closing surpass predetermined threshold value, and the information according to described assembly judges that described assembly is as non-critical component, can stop load instructions according to the Information generation of this assembly.
Browser side, after receiving above-mentioned prevention load instructions, can stop load instructions to stop according to this and load described assembly, i.e. the above-mentioned name of prevention loading is called five of superfine product, version is the assembly that 4.0.0.950, MD5 value are x.
Step 804, when judging described assembly as key component according to the information of described assembly, generates the instruction of prompting version updating.
If server side judges that described assembly is as key component (utilizing the decision process of above-mentioned sub-step S31 to judge that described assembly is as key component), for example according to the information " component Name is that five of superfine product, version are that 4.0.0.950, MD5 value are x " of described assembly, judge that described assembly is as key component, illustrate that browser side can not stop this assembly of loading, now server side will generate the instruction of prompting version updating.
Step 805, is issued to browser side by the instruction of described prompting version updating, and described browser side is also for according to assembly described in the instruction load of described prompting version updating, and shows the information that described component version upgrades.
Server side is issued to browser side by the instruction of the prompting version updating of generation, browser side can be pointed out assembly described in the instruction load of version updating according to this, load that above-mentioned name is called five of superfine product, version is that 4.0.0.950, MD5 value are the assembly of x, and showing the information that described component version upgrades, user can upgrade according to this information the version of described assembly.
Step 806, when judging described assembly as dangerous assembly according to the information of described assembly, generates blacklist and writes instruction.
If server side judges that described assembly is as dangerous assembly, for example according to the information " component Name is that five of superfine product, version are that 4.0.0.950, MD5 value are x " of described assembly, judge that described assembly is as dangerous assembly, illustrate that browser side can stop this assembly of loading, and this assembly is unsafe, now server side writes instruction by generation blacklist.
In specific implementation, can at server side, configure dangerous assembly list in advance, whether this dangerous assembly list can exist the situations such as wooden horse, virus to be configured according to assembly, no longer describe in detail for concrete layoutprocedure herein.In this unstable assembly list, also can comprise the title of assembly, the information such as MD5 value of the version of assembly, assembly.In a preferred embodiment of the present invention, above-mentionedly to the decision process of dangerous assembly, can be: search the information that whether has described assembly in pre-configured dangerous assembly list; If exist, determine that described assembly is dangerous assembly; If do not exist, determine that described assembly is security component.
Step 807, writes instruction by described blacklist and is issued to browser side, and described browser side also stops the described assembly of loading for write instruction according to described blacklist, and described assembly is write to the blacklist of browser side.
Server side writes instruction by described blacklist and is issued to browser side, browser side can write instruction according to this blacklist and stop the described assembly of loading, the above-mentioned name of i.e. prevention loading is called five of superfine product, version is the assembly that 4.0.0.950, MD5 value are x, and this assembly is write to the blacklist of browser side.
It should be noted that, step 803, step 804 and step 806 do not represent to carry out according to said sequence, and in fact these 3 steps are the step of carrying out side by side.
In a preferred embodiment of the present invention, when server side is judged described assembly as dangerous assembly according to the information of described assembly, this assembly can also be write to the blacklist of server side, now server side can not carried out above-mentioned steps 806 and step 807, only needing this assembly of notice browser side is dangerous assembly, and browser side also loads this assembly for stoping.Certainly, in this case, server side still can be carried out above-mentioned steps 806 and step 807, and the embodiment of the present invention is not limited this.
Above-described embodiment 4 and embodiment 5 are descriptions that the processing method of extremely closing from server side pin browser is carried out, and below by embodiment 6, from browser side, are described.
With reference to Fig. 9, show the flow chart of steps of the processing method embodiment 6 that a kind of according to an embodiment of the invention browser cuts out extremely, specifically can comprise the following steps:
Step 901, when browser cuts out extremely, by the abnormal closing information of the described browser side that uploads onto the server.
Wherein, described abnormal closing information can comprise module information and the running environment information thereof that exception throw is closed.
Step 902, while restarting after browser cuts out extremely, loads and plays the information whether window demonstration enters safe mode.
In embodiments of the present invention, while restarting after browser cuts out extremely, can load and play window and show the information that whether enters safe mode, play and in window, "Yes" can be set and two buttons of "No" are selected for user.After user selects to confirm to enter safe mode (clicking "Yes"), can carry out follow-up step 903; If user does not select to enter safe mode (clicking "No"), do not carry out subsequent step, restart in the conventional mode browser.
Certainly, can also adopt alternate manner to show above-mentioned information, and can not show above-mentioned information in the embodiment of the present invention, while restarting after browser cuts out extremely, browser enters safe mode automatically, and performs step 903.
Step 903, by the restarting information of the described browser side that uploads onto the server.
Wherein, described restarting information can comprise the version information of described browser kernel and the facility information at described browser place.
Step 904, the prevention load instructions that reception server side issues.
Described prevention load instructions is that described server side is according to the instruction of the Information generation of assembly, described assembly surpasses the assembly of predetermined threshold value for cause number of times that same type closes extremely under identical running environment, describedly under identical running environment, cause the number of times that same type closes extremely and obtain from the formerly abnormal closing information of the described browser of described server side record; Described formerly abnormal closing information is obtained according to described restarting information inquiry by described server side, the formerly abnormal closing information of the described browser of described server side record can be, the formerly abnormal closing information matching with the version information of described browser kernel and the facility information at described browser place.
Step 905, stops and loads described assembly according to described prevention load instructions.
Described prevention load instructions can be, the prevention load instructions that described server side generates when judging described assembly as non-critical component according to the information of described assembly.
Step 906, the instruction of prompting version updating that reception server side issues, that generate when judging described assembly as key component according to the information of described assembly, according to assembly described in the instruction load of described prompting version updating, and show the information that described component version upgrades.
In specific implementation, the information that described component version upgrades can be the information of component version described in prompting customer upgrade, or prompting user changes to the version of described assembly the information of stable release; Can be in browser with the mode display reminding information of yellow prompting bar, or, in browser with the mode display reminding information of prompting message frame.The embodiment of the present invention is not limited this.
Step 907, blacklist that reception server side issues, that generate when judging described assembly as dangerous assembly according to the information of described assembly writes instruction, according to described blacklist, write instruction and stop the described assembly of loading, and described assembly is write to the blacklist of browser side.
It should be noted that, step 904, step 906 and step 907 do not represent to carry out according to said sequence, and in fact these 3 steps are the step of carrying out side by side.
While restarting after browser cuts out extremely in the embodiment of the present invention 6, can display reminding information, user can select whether to enter safe mode, after confirming to enter safe mode, can carry out follow-up processing procedure.And server side can be different according to the Information generation of different assemblies instruction, the different instruction that browser side issues according to server side is carried out corresponding operation, thereby after browser is restarted, can not cause by the same token more again extremely closing, fundamentally solve the problem that browser cuts out extremely.
Above-described embodiment 4 and embodiment 5 are described from server side, and embodiment 6 is described from browser side.Below, the processing method of browser cutting out extremely from integral body is described, and the method specifically can comprise the following steps:
Steps A, browser side is when extremely closing, by the abnormal closing information of the described browser side that uploads onto the server;
Step B, server side receives and records the abnormal closing information of the described browser that browser side uploads when extremely closing;
Step C, when browser side is restarted after extremely closing, loads and plays the information whether window demonstration enters safe mode;
When user confirms to enter safe mode, carry out follow-up step D.
Step D, browser side is by the restarting information of the described browser side that uploads onto the server;
Step e, server side receives the restarting information of the described browser of uploading when browser side is restarted after extremely closing, the formerly abnormal closing information of the described browser of recording according to described restarting information querying server sidelights;
Step F, if module information and running environment information thereof that server side is closed according to described exception throw, judgement is caused the number of times that same type closes extremely and surpasses predetermined threshold value under identical running environment by same assembly, the Information generation according to described assembly stops load instructions, and described prevention load instructions is issued to browser side;
Step G, the prevention load instructions that browser side reception server side issues, and stop and load described assembly according to described prevention load instructions;
Step H, server side, when judging described assembly as key component according to the information of described assembly, generates the instruction of prompting version updating, and the instruction of described prompting version updating is issued to browser side;
Step I, the instruction of prompting version updating that browser side reception server side issues, that generate when judging described assembly as key component according to the information of described assembly, according to assembly described in the instruction load of described prompting version updating, and show the information that described component version upgrades;
Step J, server side, when judging described assembly as dangerous assembly according to the information of described assembly, generates blacklist and writes instruction, and described blacklist is write to instruction is issued to browser side;
In a preferred embodiment of the present invention, when server side is judged described assembly as dangerous assembly according to the information of described assembly, this assembly can also be write to the blacklist of server side, now server side can not write instruction by described blacklist and be issued to browser side, only needing this assembly of notice browser side is dangerous assembly, and browser side also loads this assembly for stoping.Certainly, in this case, server side still can write instruction by described blacklist and be issued to browser side, and the embodiment of the present invention is not limited this.
Step K, blacklist that browser side reception server side issues, that generate when judging described assembly as dangerous assembly according to the information of described assembly writes instruction, according to described blacklist, write instruction and stop the described assembly of loading, and described assembly is write to the blacklist of browser side.
For aforementioned approaches method embodiment, for simple description, therefore it is all expressed as to a series of combination of actions, but those skilled in the art should know, the embodiment of the present invention is not subject to the restriction of described sequence of movement, because according to the embodiment of the present invention, some step can adopt other orders or carry out simultaneously.Secondly, those skilled in the art also should know, the embodiment described in specification all belongs to preferred embodiment, and related action might not be that the embodiment of the present invention is necessary.
With reference to Figure 10, show a kind of according to an embodiment of the invention structured flowchart of server example 2, described server is communicated by letter with browser, and described server can comprise as lower module:
Receiving record module 1001, is suitable for receiving and record the abnormal closing information of the described browser that browser side uploads when extremely closing.
Receive enquiry module 1002, be suitable for receiving the restarting information of the described browser of uploading when browser side is restarted after extremely closing, the formerly abnormal closing information of the described browser of recording according to described restarting information querying server sidelights;
In a preferred embodiment of the present invention, described restarting information comprises the version information of described browser kernel and the facility information at described browser place; The formerly abnormal closing information of the described browser of described server side record is, the formerly abnormal closing information matching with the version information of described browser kernel and the facility information at described browser place.
The first generation module 1003, be suitable for module information and the running environment information thereof of at server side, according to described exception throw, closing, when judgement is caused number of times that same type closes extremely and surpasses predetermined threshold value under identical running environment by same assembly, according to the Information generation of described assembly, stop load instructions;
First issues module 1004, is suitable for described prevention load instructions to be issued to browser side, and described browser side is for stoping and load described assembly according to described prevention load instructions;
The second generation module 1005, is suitable for, when judging described assembly as key component according to the information of described assembly, generating the instruction of prompting version updating;
Second issues module 1006, is suitable for the instruction of described prompting version updating to be issued to browser side, and described browser side is also for according to assembly described in the instruction load of described prompting version updating, and shows the information that described component version upgrades;
The 3rd generation module 1007, is suitable for, when judging described assembly as dangerous assembly according to the information of described assembly, generating blacklist and writing instruction;
The 3rd issues module 1008, is suitable for that described blacklist is write to instruction and is issued to browser side, and described browser side also stops the described assembly of loading for write instruction according to described blacklist, and described assembly is write to the blacklist of browser side.
Writing module 1009, is suitable for, when judging described assembly as dangerous assembly according to the information of described assembly, described assembly being write to the blacklist of server side, and described browser side also loads described assembly for stoping.
In a preferred embodiment of the present invention, described the first generation module is also suitable for: the information according to described assembly judges whether described assembly is non-critical component; If so, generate and stop load instructions.Described the first generation module is also suitable for: search the information that whether has described assembly in pre-configured unstable assembly list; If exist, determine that described assembly is non-critical component; If do not exist, determine that described assembly is key component.
In a preferred embodiment of the present invention, described browser extremely cuts out and can comprise by Flash, third party's security component or browser intraware and provide program LSP, plug-in unit, expansion, graphic process unit GPU any one or more extremely the cutting out of causing in accelerating for third party software, hierarchical service.
Described abnormal closing information can comprise module information and the running environment information thereof that exception throw is closed.The module information that described exception throw is closed can comprise: the MD5 value of the title of described assembly, the version of described assembly and described assembly; The running environment information of the assembly that described exception throw is closed can comprise: browser kernel version when operating system version during described assembly operating and described assembly operating.Described abnormal closing information can also comprise, the type of extremely closing and anomaly parameter value, described type of extremely closing can comprise access violation EXCEPTION_ACCESS_VIOLATION, except zero error, internal memory exhausts and debug breakpoint; When the type of extremely closing is access violation, described anomaly parameter value can comprise memory address side-play amount.
For above-mentioned server example 2, because it is substantially similar to embodiment of the method, so description is fairly simple, relevant part is referring to the part explanation of embodiment of the method shown in Fig. 7, Fig. 8 and Fig. 9.
With reference to Figure 11, show the structured flowchart of a kind of according to an embodiment of the invention browser embodiment 2, described browser and server communication, described browser can comprise as lower module:
On second, transmission module 1101, are suitable for when browser cuts out extremely, by the abnormal closing information of the described browser side that uploads onto the server;
Play window display module 1102, be suitable on first transmission module restarting information is uploaded onto the server before side, load and play window and show the information that whether enters safe mode;
And confirm to enter after safe mode user, call transmission module on described first.
On first, transmission module 1103, while being suitable for restarting after browser cuts out extremely, by the restarting information of the described browser side that uploads onto the server;
The first receiver module 1104, is suitable for the prevention load instructions that reception server side issues;
Stop module 1105, be suitable for stoping and loading described assembly according to described prevention load instructions;
The second receiver module 1106, is suitable for the instruction of prompting version updating that reception server side issues, that generate when judging described assembly as key component according to the information of described assembly;
Loaded and displayed module 1107, is suitable for according to assembly described in the instruction load of described prompting version updating, and shows the information that described component version upgrades;
The 3rd receiver module 1108, is suitable for blacklist that reception server side issues, that generate when judging described assembly as dangerous assembly according to the information of described assembly and writes instruction;
Stop writing module 1109, be suitable for writing instruction according to described blacklist and stop the described assembly of loading, and described assembly is write to the blacklist of browser side.
In a preferred embodiment of the present invention, described restarting information can comprise the version information of described browser kernel and the facility information at described browser place; The formerly abnormal closing information of the described browser of described server side record can be, the formerly abnormal closing information matching with the version information of described browser kernel and the facility information at described browser place.
Described prevention load instructions be described server side according to the instruction of the Information generation of assembly, be specially the prevention load instructions that described server side generates when judging described assembly as non-critical component according to the information of described assembly.Described assembly surpasses the assembly of predetermined threshold value for cause number of times that same type closes extremely under identical running environment, describedly under identical running environment, cause the number of times that same type closes extremely and obtain from the formerly abnormal closing information of the described browser of described server side record, described abnormal closing information comprises module information and the running environment information thereof that exception throw is closed; Described formerly abnormal closing information is obtained according to described restarting information inquiry by described server side.
For above-mentioned browser embodiment 2, because it is substantially similar to embodiment of the method, so description is fairly simple, relevant part is referring to the part explanation of embodiment of the method shown in Fig. 7, Fig. 8 and Fig. 9.
The treatment system that the present invention also provides a kind of browser extremely to close, specifically can comprise browser and server, wherein, and for the part explanation of the processing server embodiment 2 shown in above-mentioned Figure 10 of description reference of server; Part explanation for the browser embodiment 2 shown in above-mentioned Figure 11 of description reference of browser.
In the present invention, while restarting, first read the formerly abnormal closing information of browser sidelights record after browser cuts out extremely; Then in the module information of closing according to exception throw and running environment information thereof, while judging that being caused number of times that same type closes extremely under identical running environment by same assembly surpasses predetermined threshold value, the information of assembly is sent to server side; That last reception server side issues, according to the prevention load instructions of the Information generation of assembly, and according to stoping load instructions to stop charging assembly.The present invention can stop and under identical running environment, causes the assembly that number of times that same type closes extremely surpasses predetermined threshold value before loading when browser is restarted, thereby after browser is restarted, can not cause by the same token more again extremely closing, fundamentally solve the problem that browser cuts out extremely.
The algorithm providing at this is intrinsic not relevant to any certain computer, virtual system or miscellaneous equipment with demonstration.Various general-purpose systems also can with based on using together with this teaching.According to description above, it is apparent constructing the desired structure of this type systematic.In addition, the present invention is not also for any certain programmed language.It should be understood that and can utilize various programming languages to realize content of the present invention described here, and the description of above language-specific being done is in order to disclose preferred forms of the present invention.
In the specification that provided herein, a large amount of details have been described.Yet, can understand, embodiments of the invention can not put into practice in the situation that there is no these details.In some instances, be not shown specifically known method, structure and technology, so that not fuzzy understanding of this description.
Similarly, be to be understood that, in order to simplify the disclosure and to help to understand one or more in each inventive aspect, in the above in the description of exemplary embodiment of the present invention, each feature of the present invention is grouped together into single embodiment, figure or sometimes in its description.Yet, the method for the disclosure should be construed to the following intention of reflection: the present invention for required protection requires than the more feature of feature of clearly recording in each claim.Or rather, as reflected in claims below, inventive aspect is to be less than all features of disclosed single embodiment above.Therefore, claims of following embodiment are incorporated to this embodiment thus clearly, and wherein each claim itself is as independent embodiment of the present invention.
Those skilled in the art are appreciated that and can the module in the equipment in embodiment are adaptively changed and they are arranged in one or more equipment different from this embodiment.Module in embodiment or unit or assembly can be combined into a module or unit or assembly, and can put them into a plurality of submodules or subelement or sub-component in addition.At least some in such feature and/or process or unit are mutually repelling, and can adopt any combination to combine all processes or the unit of disclosed all features in this specification (comprising claim, summary and the accompanying drawing followed) and disclosed any method like this or equipment.Unless clearly statement in addition, in this specification (comprising claim, summary and the accompanying drawing followed) disclosed each feature can be by providing identical, be equal to or the alternative features of similar object replaces.
In addition, those skilled in the art can understand, although embodiment more described herein comprise some feature rather than further feature included in other embodiment, the combination of the feature of different embodiment means within scope of the present invention and forms different embodiment.For example, in the following claims, the one of any of embodiment required for protection can be used with compound mode arbitrarily.
All parts embodiment of the present invention can realize with hardware, or realizes with the software module moved on one or more processor, or realizes with their combination.It will be understood by those of skill in the art that the some or all functions that can use in practice microprocessor or digital signal processor (DSP) to realize the some or all parts in processing method, system, server and the browser of extremely closing according to the browser of the embodiment of the present invention.The present invention for example can also be embodied as, for carrying out part or all equipment or device program (, computer program and computer program) of method as described herein.Realizing program of the present invention and can be stored on computer-readable medium like this, or can there is the form of one or more signal.Such signal can be downloaded and obtain from internet website, or provides on carrier signal, or provides with any other form.
It should be noted above-described embodiment the present invention will be described rather than limit the invention, and those skilled in the art can design alternative embodiment in the situation that do not depart from the scope of claims.In the claims, any reference symbol between bracket should be configured to limitations on claims.Word " comprises " not to be got rid of existence and is not listed as element or step in the claims.Being positioned at word " " before element or " one " does not get rid of and has a plurality of such elements.The present invention can be by means of including the hardware of some different elements and realizing by means of the computer of suitably programming.In having enumerated the unit claim of some devices, several in these devices can be to carry out imbody by same hardware branch.The use of word first, second and C grade does not represent any order.Can be title by these word explanations.
The invention discloses the processing method that A1, a kind of browser close extremely, comprising:
While restarting, read the formerly abnormal closing information of described browser sidelights record after browser cuts out extremely; Described abnormal closing information comprises module information and the running environment information thereof that exception throw is closed;
If module information and the running environment information thereof of closing according to described exception throw, judge that being caused the number of times that same type closes extremely under identical running environment by same assembly surpasses predetermined threshold value, is sent to server side by the information of described assembly;
That reception server side issues, according to the prevention load instructions of the Information generation of described assembly, according to described prevention load instructions, stop and load described assembly.
A2, the method as described in A1, is characterized in that, described prevention load instructions is, the prevention load instructions that described server side generates when judging described assembly as non-critical component according to the information of described assembly.
A3, the method as described in A1 or A2, is characterized in that, also comprises:
The instruction of prompting version updating that reception server side issues, that generate when judging described assembly as key component according to the information of described assembly, according to assembly described in the instruction load of described prompting version updating, and show the information that described component version upgrades.
A4, the method as described in A1 or A2 or A3, is characterized in that, also comprises:
Blacklist that reception server side issues, that generate when judging described assembly as dangerous assembly according to the information of described assembly writes instruction, according to described blacklist, write instruction and stop the described assembly of loading, and described assembly is write to the blacklist of browser side.
A5, the method as described in A1, it is characterized in that, described browser extremely cuts out and comprises by Flash, third party's security component or browser intraware and provide program LSP, plug-in unit, expansion, graphic process unit GPU any one or more extremely the cutting out of causing in accelerating for third party software, hierarchical service.
A6, the method as described in A1, is characterized in that, also comprises:
When browser cuts out extremely, the external file of browser side and/or in the registration table of browser side recording exceptional closing information.
A7, the method as described in A1, is characterized in that, before the step of formerly abnormal closing information that reads described browser sidelights record, also comprises:
Load and play the information whether window demonstration enters safe mode;
When user confirms to enter after safe mode, read the formerly step of abnormal closing information of described browser sidelights record described in execution.
A8, the method as described in A1, is characterized in that, the module information that described exception throw is closed comprises: the MD5 value of the title of described assembly, the version of described assembly and described assembly; The running environment information of the assembly that described exception throw is closed comprises: browser kernel version when operating system version during described assembly operating and described assembly operating.
A9, the method as described in A1 or A8, it is characterized in that, described abnormal closing information also comprises, the type of extremely closing and anomaly parameter value, described type of extremely closing comprises access violation EXCEPTION_ACCESS_VIOLATION, and described anomaly parameter value comprises memory address side-play amount.
A10, the method as described in A9, is characterized in that, described type of extremely closing also comprises: except zero error, internal memory exhausts and debug breakpoint.
The invention also discloses the processing method that B11, a kind of browser close extremely, comprising:
The information of the assembly that reception browser side is uploaded; Described assembly surpasses a certain assembly of predetermined threshold value for cause number of times that same type closes extremely under identical running environment, describedly under identical running environment, cause the number of times that same type closes extremely and obtain from the formerly abnormal closing information of described browser sidelights record, described abnormal closing information comprises module information and the running environment information thereof that exception throw is closed; Describedly formerly when restarting after described browser cuts out extremely, reads abnormal closing information;
Information generation according to described assembly stops load instructions;
Described prevention load instructions is issued to browser side, and described browser side is for stoping and load described assembly according to described prevention load instructions.
B12, the method as described in B11, is characterized in that, the Information generation of the described assembly of described foundation stops the step of load instructions to comprise:
Information according to described assembly judges whether described assembly is non-critical component;
If so, generate and stop load instructions.
B13, the method as described in B11 or B12, is characterized in that, also comprises:
When judging described assembly as key component according to the information of described assembly, generate the instruction of prompting version updating;
The instruction of described prompting version updating is issued to browser side, and described browser side is also for according to assembly described in the instruction load of described prompting version updating, and shows the information that described component version upgrades.
B14, the method as described in B11 or B12 or B13, is characterized in that, also comprises:
When judging described assembly as dangerous assembly according to the information of described assembly, generate blacklist and write instruction;
Described blacklist is write to instruction and be issued to browser side, described browser side also stops the described assembly of loading for write instruction according to described blacklist, and described assembly is write to the blacklist of browser side.
B15, the method as described in B11, is characterized in that, also comprises:
When judging described assembly as dangerous assembly according to the information of described assembly, described assembly is write to the blacklist of server side, described browser side also loads described assembly for stoping.
Method described in B16, B12, is characterized in that, the information of the described assembly of described foundation judges that whether described assembly comprises as the step of non-critical component:
Search the information that whether has described assembly in pre-configured unstable assembly list;
If exist, determine that described assembly is non-critical component;
If do not exist, determine that described assembly is key component.
The invention also discloses C17, a kind of browser, comprising:
Read module, while being suitable for restarting after browser cuts out extremely, reads the formerly abnormal closing information of described browser sidelights record; Described abnormal closing information comprises module information and the running environment information thereof that exception throw is closed;
Sending module, be suitable in module information and the running environment information thereof of closing according to described exception throw, when judgement is caused number of times that same type closes extremely and surpasses predetermined threshold value under identical running environment by same assembly, the information of described assembly is sent to server side;
The first receiver module, be suitable for that reception server side issues, according to the prevention load instructions of the Information generation of described assembly;
Stop module, be suitable for stoping and loading described assembly according to described prevention load instructions.
C18, the browser as described in C17, is characterized in that, described prevention load instructions is, the prevention load instructions that described server side generates when judging described assembly as non-critical component according to the information of described assembly.
C19, the browser as described in C17 or C18, is characterized in that, also comprises:
The second receiver module, is suitable for the instruction of prompting version updating that reception server side issues, that generate when judging described assembly as key component according to the information of described assembly;
Loaded and displayed module, is suitable for according to assembly described in the instruction load of described prompting version updating, and shows the information that described component version upgrades.
C20, the browser as described in C17 or C18 or C19, is characterized in that, also comprises:
The 3rd receiver module, is suitable for blacklist that reception server side issues, that generate when judging described assembly as dangerous assembly according to the information of described assembly and writes instruction;
Stop writing module, be suitable for writing instruction according to described blacklist and stop the described assembly of loading, and described assembly is write to the blacklist of browser side.
C21, the browser as described in C17, it is characterized in that, described browser extremely cuts out and comprises by Flash, third party's security component or browser intraware and provide program LSP, plug-in unit, expansion, graphic process unit GPU any one or more extremely the cutting out of causing in accelerating for third party software, hierarchical service.
C22, the browser as described in C17, is characterized in that, also comprises:
Logging modle, is suitable for when browser cuts out extremely, the external file of browser side and/or in the registration table of browser side recording exceptional closing information.
C23, the browser as described in C17, is characterized in that, also comprises:
Play window display module, be suitable for, before described read module reads the formerly abnormal closing information of described browser sidelights record, loading bullet window and showing the information that whether enters safe mode;
And confirm to enter after safe mode user, call described read module.
C24, the browser as described in C17, is characterized in that, the module information that described exception throw is closed comprises: the MD5 value of the title of described assembly, the version of described assembly and described assembly; The running environment information of the assembly that described exception throw is closed comprises: browser kernel version when operating system version during described assembly operating and described assembly operating.
C25, the browser as described in C17 or C24, it is characterized in that, described abnormal closing information also comprises, the type of extremely closing and anomaly parameter value, described type of extremely closing comprises access violation EXCEPTION_ACCESS_VIOLATION, and described anomaly parameter value comprises memory address side-play amount.
C26, the browser as described in C25, is characterized in that, described type of extremely closing also comprises: except zero error, internal memory exhausts and debug breakpoint.
The invention also discloses D27, a kind of server, comprising:
Receiver module, is suitable for receiving the information of the assembly that browser side uploads; Described assembly surpasses a certain assembly of predetermined threshold value for cause number of times that same type closes extremely under identical running environment, describedly under identical running environment, cause the number of times that same type closes extremely and obtain from the formerly abnormal closing information of described browser sidelights record, described abnormal closing information comprises module information and the running environment information thereof that exception throw is closed; Describedly formerly when restarting after described browser cuts out extremely, reads abnormal closing information;
The first generation module, is suitable for stoping load instructions according to the Information generation of described assembly;
First issues module, is suitable for described prevention load instructions to be issued to browser side, and described browser side is for stoping and load described assembly according to described prevention load instructions.
D28, the server as described in D27, is characterized in that, described the first generation module is also suitable for:
Information according to described assembly judges whether described assembly is non-critical component; If so, generate and stop load instructions.
D29, the server as described in D27 or D28, is characterized in that, also comprises:
The second generation module, is suitable for, when judging described assembly as key component according to the information of described assembly, generating the instruction of prompting version updating;
Second issues module, is suitable for the instruction of described prompting version updating to be issued to browser side, and described browser side is also for according to assembly described in the instruction load of described prompting version updating, and shows the information that described component version upgrades.
D30, the server as described in D27 or D28 or D29, is characterized in that, also comprises:
The 3rd generation module, is suitable for, when judging described assembly as dangerous assembly according to the information of described assembly, generating blacklist and writing instruction;
The 3rd issues module, is suitable for that described blacklist is write to instruction and is issued to browser side, and described browser side also stops the described assembly of loading for write instruction according to described blacklist, and described assembly is write to the blacklist of browser side.
D31, the server as described in D27, is characterized in that, also comprises:
Writing module, is suitable for, when judging described assembly as dangerous assembly according to the information of described assembly, described assembly being write to the blacklist of server side, and described browser side also loads described assembly for stoping.
D32, the server as described in D28, is characterized in that, described the first generation module is also suitable for:
Search the information that whether has described assembly in pre-configured unstable assembly list;
If exist, determine that described assembly is non-critical component;
If do not exist, determine that described assembly is key component.
The invention also discloses the treatment system that E33, a kind of browser close extremely, comprise the server as described in any one in browser as described in any one in C17 to C26 and D27 to D32.

Claims (10)

1. the processing method that browser cuts out extremely, comprising:
While restarting, read the formerly abnormal closing information of described browser sidelights record after browser cuts out extremely; Described abnormal closing information comprises module information and the running environment information thereof that exception throw is closed;
If module information and the running environment information thereof of closing according to described exception throw, judge that being caused the number of times that same type closes extremely under identical running environment by same assembly surpasses predetermined threshold value, is sent to server side by the information of described assembly;
That reception server side issues, according to the prevention load instructions of the Information generation of described assembly, according to described prevention load instructions, stop and load described assembly.
2. the method for claim 1, is characterized in that, described prevention load instructions is, the prevention load instructions that described server side generates when judging described assembly as non-critical component according to the information of described assembly.
3. method as claimed in claim 1 or 2, is characterized in that, also comprises:
The instruction of prompting version updating that reception server side issues, that generate when judging described assembly as key component according to the information of described assembly, according to assembly described in the instruction load of described prompting version updating, and show the information that described component version upgrades.
4. the method as described in claim 1 or 2 or 3, is characterized in that, also comprises:
Blacklist that reception server side issues, that generate when judging described assembly as dangerous assembly according to the information of described assembly writes instruction, according to described blacklist, write instruction and stop the described assembly of loading, and described assembly is write to the blacklist of browser side.
5. the processing method that browser cuts out extremely, comprising:
The information of the assembly that reception browser side is uploaded; Described assembly surpasses a certain assembly of predetermined threshold value for cause number of times that same type closes extremely under identical running environment, describedly under identical running environment, cause the number of times that same type closes extremely and obtain from the formerly abnormal closing information of described browser sidelights record, described abnormal closing information comprises module information and the running environment information thereof that exception throw is closed; Describedly formerly when restarting after described browser cuts out extremely, reads abnormal closing information;
Information generation according to described assembly stops load instructions;
Described prevention load instructions is issued to browser side, and described browser side is for stoping and load described assembly according to described prevention load instructions.
6. method as claimed in claim 5, is characterized in that, also comprises:
When judging described assembly as dangerous assembly according to the information of described assembly, described assembly is write to the blacklist of server side, described browser side also loads described assembly for stoping.
7. a browser, comprising:
Read module, while being suitable for restarting after browser cuts out extremely, reads the formerly abnormal closing information of described browser sidelights record; Described abnormal closing information comprises module information and the running environment information thereof that exception throw is closed;
Sending module, be suitable in module information and the running environment information thereof of closing according to described exception throw, when judgement is caused number of times that same type closes extremely and surpasses predetermined threshold value under identical running environment by same assembly, the information of described assembly is sent to server side;
The first receiver module, be suitable for that reception server side issues, according to the prevention load instructions of the Information generation of described assembly;
Stop module, be suitable for stoping and loading described assembly according to described prevention load instructions.
8. browser as claimed in claim 7, is characterized in that, described prevention load instructions is, the prevention load instructions that described server side generates when judging described assembly as non-critical component according to the information of described assembly.
9. a server, comprising:
Receiver module, is suitable for receiving the information of the assembly that browser side uploads; Described assembly surpasses a certain assembly of predetermined threshold value for cause number of times that same type closes extremely under identical running environment, describedly under identical running environment, cause the number of times that same type closes extremely and obtain from the formerly abnormal closing information of described browser sidelights record, described abnormal closing information comprises module information and the running environment information thereof that exception throw is closed; Describedly formerly when restarting after described browser cuts out extremely, reads abnormal closing information;
The first generation module, is suitable for stoping load instructions according to the Information generation of described assembly;
First issues module, is suitable for described prevention load instructions to be issued to browser side, and described browser side is for stoping and load described assembly according to described prevention load instructions.
10. the treatment system that browser cuts out extremely, comprises browser and server as claimed in claim 9 as described in any one in claim 7 to 8.
CN201310500620.7A 2013-10-22 2013-10-22 The browser processing method of closing, system, browser and server extremely Active CN103595708B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201310500620.7A CN103595708B (en) 2013-10-22 2013-10-22 The browser processing method of closing, system, browser and server extremely

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201310500620.7A CN103595708B (en) 2013-10-22 2013-10-22 The browser processing method of closing, system, browser and server extremely

Publications (2)

Publication Number Publication Date
CN103595708A true CN103595708A (en) 2014-02-19
CN103595708B CN103595708B (en) 2017-08-25

Family

ID=50085690

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201310500620.7A Active CN103595708B (en) 2013-10-22 2013-10-22 The browser processing method of closing, system, browser and server extremely

Country Status (1)

Country Link
CN (1) CN103595708B (en)

Cited By (14)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104615460A (en) * 2015-01-22 2015-05-13 百度在线网络技术(北京)有限公司 Method and device for shielding LSP module injection
CN105302711A (en) * 2014-07-09 2016-02-03 腾讯科技(深圳)有限公司 Application repairing method and apparatus and terminal
CN105446774A (en) * 2015-11-19 2016-03-30 广东欧珀移动通信有限公司 Plug-in processing method and user terminal
CN106201442A (en) * 2016-07-15 2016-12-07 广东欧珀移动通信有限公司 The execution method and device of application program
CN106528079A (en) * 2016-09-23 2017-03-22 北京五八信息技术有限公司 Method and device for monitoring running state of React Native code
CN106776263A (en) * 2015-11-23 2017-05-31 芋头科技(杭州)有限公司 A kind of robot exception handling device and method
CN106776262A (en) * 2015-11-23 2017-05-31 芋头科技(杭州)有限公司 A kind of robot abnormal restoring system and method
CN106919573A (en) * 2015-12-24 2017-07-04 北京奇虎科技有限公司 A kind of method and apparatus for restarting browser
CN106919829A (en) * 2015-12-24 2017-07-04 北京奇虎科技有限公司 The means of defence and device of a kind of browser
CN106919500A (en) * 2015-12-24 2017-07-04 北京奇虎科技有限公司 It is a kind of to position the method and apparatus that browser occurs abnormal root
CN107404594A (en) * 2016-05-20 2017-11-28 京瓷办公信息系统株式会社 The control method of image processing system and image processing system
CN107807828A (en) * 2016-09-05 2018-03-16 腾讯科技(深圳)有限公司 Browse the control method and device of serves kernel loading
CN109343994A (en) * 2018-10-09 2019-02-15 五八有限公司 Self checking method, device, computer equipment and the readable storage medium storing program for executing of functional unit
CN111417019A (en) * 2020-03-09 2020-07-14 深圳市酷开网络科技有限公司 Method and device for processing plug-in abnormity, computer equipment and storage medium

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1391677A (en) * 1999-11-24 2003-01-15 雅劲科技公司 Self-contained network browser with diagnostic abilities
CN101408861A (en) * 2007-10-11 2009-04-15 鸿富锦精密工业(深圳)有限公司 Real time monitoring system and method of application program
CN101573712A (en) * 2006-12-29 2009-11-04 微软公司 Automatic vulnerability detection and response
CN101833497A (en) * 2010-03-30 2010-09-15 山东高效能服务器和存储研究院 Computer fault management system based on expert system method
CN102722559A (en) * 2012-05-31 2012-10-10 奇智软件(北京)有限公司 Method, device and system for controlling processes of abnormal pages

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US9244698B2 (en) * 2010-09-14 2016-01-26 Microsoft Technology Licensing, Llc Download bar user interface control
CN103117893B (en) * 2013-01-22 2018-06-29 北京奇虎科技有限公司 A kind of monitoring method of network access behavior, device and a kind of client device
CN103218554B (en) * 2013-03-18 2015-10-28 卡巴斯基实验室封闭式股份公司 For the system and method based on user behavior Adaptive Control user action

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1391677A (en) * 1999-11-24 2003-01-15 雅劲科技公司 Self-contained network browser with diagnostic abilities
CN101573712A (en) * 2006-12-29 2009-11-04 微软公司 Automatic vulnerability detection and response
CN101408861A (en) * 2007-10-11 2009-04-15 鸿富锦精密工业(深圳)有限公司 Real time monitoring system and method of application program
CN101833497A (en) * 2010-03-30 2010-09-15 山东高效能服务器和存储研究院 Computer fault management system based on expert system method
CN102722559A (en) * 2012-05-31 2012-10-10 奇智软件(北京)有限公司 Method, device and system for controlling processes of abnormal pages

Cited By (20)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105302711A (en) * 2014-07-09 2016-02-03 腾讯科技(深圳)有限公司 Application repairing method and apparatus and terminal
CN105302711B (en) * 2014-07-09 2020-08-25 腾讯科技(深圳)有限公司 Application restoration method and device and terminal
CN104615460B (en) * 2015-01-22 2018-03-06 百度在线网络技术(北京)有限公司 The method and apparatus for shielding the injection of LSP modules
CN104615460A (en) * 2015-01-22 2015-05-13 百度在线网络技术(北京)有限公司 Method and device for shielding LSP module injection
CN105446774A (en) * 2015-11-19 2016-03-30 广东欧珀移动通信有限公司 Plug-in processing method and user terminal
CN105446774B (en) * 2015-11-19 2018-11-13 广东欧珀移动通信有限公司 A kind of plug-in unit processing method and user terminal
CN106776263A (en) * 2015-11-23 2017-05-31 芋头科技(杭州)有限公司 A kind of robot exception handling device and method
CN106776262A (en) * 2015-11-23 2017-05-31 芋头科技(杭州)有限公司 A kind of robot abnormal restoring system and method
CN106919573A (en) * 2015-12-24 2017-07-04 北京奇虎科技有限公司 A kind of method and apparatus for restarting browser
CN106919829A (en) * 2015-12-24 2017-07-04 北京奇虎科技有限公司 The means of defence and device of a kind of browser
CN106919500A (en) * 2015-12-24 2017-07-04 北京奇虎科技有限公司 It is a kind of to position the method and apparatus that browser occurs abnormal root
CN107404594A (en) * 2016-05-20 2017-11-28 京瓷办公信息系统株式会社 The control method of image processing system and image processing system
CN107404594B (en) * 2016-05-20 2019-04-26 京瓷办公信息系统株式会社 The control method of image forming apparatus and image forming apparatus
CN106201442A (en) * 2016-07-15 2016-12-07 广东欧珀移动通信有限公司 The execution method and device of application program
CN107807828A (en) * 2016-09-05 2018-03-16 腾讯科技(深圳)有限公司 Browse the control method and device of serves kernel loading
CN107807828B (en) * 2016-09-05 2020-03-17 腾讯科技(深圳)有限公司 Control method and device for browsing service kernel loading
CN106528079A (en) * 2016-09-23 2017-03-22 北京五八信息技术有限公司 Method and device for monitoring running state of React Native code
CN109343994A (en) * 2018-10-09 2019-02-15 五八有限公司 Self checking method, device, computer equipment and the readable storage medium storing program for executing of functional unit
CN111417019A (en) * 2020-03-09 2020-07-14 深圳市酷开网络科技有限公司 Method and device for processing plug-in abnormity, computer equipment and storage medium
CN111417019B (en) * 2020-03-09 2022-09-23 深圳市酷开网络科技股份有限公司 Method and device for processing plug-in abnormity, computer equipment and storage medium

Also Published As

Publication number Publication date
CN103595708B (en) 2017-08-25

Similar Documents

Publication Publication Date Title
CN103595708A (en) Method and system for processing abnormal closing of browser, browser and server
CN103595765A (en) Method and system for processing abnormal closing of browser, browser and server
Distefano et al. Scaling static analyses at Facebook
Ocariza et al. An empirical study of client-side JavaScript bugs
US10261781B2 (en) Correcting non-compliant source code in an integrated development environment
US9430228B2 (en) Verification of backward compatibility of software components
CN103677898A (en) Method for checking loaded extension and/or plug-in on server side and server
CN102831351B (en) A kind of method and apparatus for representing computer graphic target security attribute
CN103645914A (en) Software cleaning method and device
CN105468529A (en) Accurate traversal method and apparatus for UI controls of android application
CN103164654A (en) Method of carrying out information cue on popup window and user interface display device
CN110263546A (en) A kind of pair of container mirror image carries out the method, apparatus and equipment of safety inspection
US20110099431A1 (en) Relocatable interrupt handler for test generation and execution
CN104036019A (en) Method and device for opening webpage links
CN112650658A (en) Application program exception recording and reproduction method, device and storage medium
CN109284126B (en) Automatic class library updating method and device, electronic equipment and storage medium
CN104346206A (en) Method and system for recovering installation of unloaded software
US20170091044A1 (en) Replicating data in a data storage system
US9703848B2 (en) Caching linked queries for optimized compliance management
US9038018B2 (en) Integrating software components
US12014147B2 (en) Comment management method, server and readable storage medium
US11381602B2 (en) Security design planning support device
CN104199774A (en) Program security testing method and device
CN113282371B (en) Performance management method and device for virtualized network equipment
Cutler et al. Practical Programming

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant
TR01 Transfer of patent right

Effective date of registration: 20220727

Address after: Room 801, 8th floor, No. 104, floors 1-19, building 2, yard 6, Jiuxianqiao Road, Chaoyang District, Beijing 100015

Patentee after: BEIJING QIHOO TECHNOLOGY Co.,Ltd.

Address before: 100088 room 112, block D, 28 new street, new street, Xicheng District, Beijing (Desheng Park)

Patentee before: BEIJING QIHOO TECHNOLOGY Co.,Ltd.

Patentee before: Qizhi software (Beijing) Co.,Ltd.

TR01 Transfer of patent right