CN106919500A - It is a kind of to position the method and apparatus that browser occurs abnormal root - Google Patents
It is a kind of to position the method and apparatus that browser occurs abnormal root Download PDFInfo
- Publication number
- CN106919500A CN106919500A CN201510983284.5A CN201510983284A CN106919500A CN 106919500 A CN106919500 A CN 106919500A CN 201510983284 A CN201510983284 A CN 201510983284A CN 106919500 A CN106919500 A CN 106919500A
- Authority
- CN
- China
- Prior art keywords
- unit
- plug
- browser
- abnormal
- running status
- 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.)
- Pending
Links
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F11/00—Error detection; Error correction; Monitoring
- G06F11/36—Preventing errors by testing or debugging software
- G06F11/362—Software debugging
- G06F11/3644—Software debugging by instrumenting at runtime
Abstract
The invention discloses a kind of method and apparatus for positioning the abnormal root of browser generation, including:When it is determined that browser occurs abnormal, at least one plug-in unit and the operational factor of each plug-in unit that the acquisition browser is currently running;According to the operational factor of each plug-in unit, the running status of each plug-in unit that the browser is currently running is determined respectively;According to the running status of each plug-in unit for determining to obtain, positioning causes the browser that abnormal root plug-in unit occurs.When browser occurs abnormal, quickly being positioned by the running status of the plug-in unit for judging to be currently running in browser causes browser that abnormal root plug-in unit occurs, so, when browser is restarted again, the root plug-in unit for avoiding loading from positioning, and then prevent browser from occurring exception again when restarting, improve Consumer's Experience.
Description
Technical field
There is abnormal root the present invention relates to Internet technical field, more particularly to a kind of browser that positions
Method and apparatus.
Background technology
With developing rapidly for Internet technology, various browsers are occurred in that, user can be by clear
Device of looking at is realized accessing internet.For example, user pass through click browser display interface on various chains tap into
Enter corresponding webpage, to realize the access to webpage;Or, user is defeated in the search box that browser is provided
Enter to need the keyword of search, and the access to webpage realized by the corresponding link of the keyword for searching,
The customer access network that appears as of browser brings great convenience.
In order to lift Consumer's Experience, the demand of customer access network is met, often install various in a browser
Third party's plug-in unit of various kinds, and these third party's plug-in units are loaded when browser is started, so, when user is logical
When crossing browser access network, can be realized to network by different third party's plug-in unit of browser loading
Access.For example, when user starts browser, a sudden peal of thunder is loaded in a browser and downloads assistant's plug-in unit, this
Sample, when user needs down loading network resource, can download the download function that assistant's plug-in unit is provided by a sudden peal of thunder
The Internet resources that user needs are downloaded.
With the complication of network and being on the increase for third party's plug number, user is using browser
During occur often browser collapse or stuck phenomenon, for example, browser install third party's plug-in unit
Compatibility with browser is not fine, causes browser loading failure when third party's plug-in unit is loaded, and is entered
And it is abnormal browser is occurred, cause customer access network to fail, have a strong impact on user and use browser
Consumer's Experience.
In actual applications, once exception occurs in browser, user is typically disappeared by the way of browser is restarted
Except abnormal conditions, but, after browser is restarted still there is browser recurs abnormal situation,
User has to repeatedly restart browser, it can be seen that, needing one kind badly can be fast when browser occurs abnormal
Speed positioning causes the method that browser occurs abnormal root, to lift Consumer's Experience.
The content of the invention
In view of this, the embodiment of the invention provides it is a kind of position browser occur the method for abnormal root and
Equipment, for solving poor user experience caused by quickly cannot positioning fault rootstock when browser occurs abnormal
Problem.
The invention provides a kind of method for positioning the abnormal root of browser generation, including:
When it is determined that browser occurs abnormal, obtain at least one plug-in unit that the browser is currently running and
The operational factor of each plug-in unit;
According to the operational factor of each plug-in unit, each for determining that the browser is currently running respectively
The running status of the plug-in unit, wherein, the running status includes normal operation and misoperation;
According to the running status of each plug-in unit for determining to obtain, it is different that positioning causes the browser to occur
Normal root plug-in unit.
The invention provides a kind of equipment for positioning the abnormal root of browser generation, including:
Acquiring unit, for when it is determined that browser occurs abnormal, obtain the browser be currently running to
The operational factor of a few plug-in unit and each plug-in unit;
Determining unit, for the operational factor according to each plug-in unit, is determining the browser just respectively
In the running status of each plug-in unit of operation, wherein, the running status is run and different comprising normal
Often operation;
Positioning unit, the operation shape of each plug-in unit for determining to obtain according to the determining unit
State, positioning causes the browser that abnormal root plug-in unit occurs.
The present invention has the beneficial effect that:
Scheme provided in an embodiment of the present invention, when it is determined that browser occurs abnormal, is obtaining the browser just
In at least one plug-in unit and the operational factor of each plug-in unit of operation;According to each plug-in unit
Operational factor, the running status of each plug-in unit that the browser is currently running is determined respectively, its
In, the running status includes normal operation and misoperation;According to each described plug-in unit that determination is obtained
Running status, positioning causes the browser that abnormal root plug-in unit occurs.When browser occurs abnormal,
Quickly being positioned by the running status of the plug-in unit for judging to be currently running in browser causes browser that exception occurs
Root plug-in unit, so, when browser is restarted again, it is to avoid loading positioning root plug-in unit, and then
Prevent browser from occurring exception again when restarting, improve Consumer's Experience.
Brief description of the drawings
Technical scheme in order to illustrate more clearly the embodiments of the present invention, institute in being described to embodiment below
The accompanying drawing for needing to use is briefly introduced, it should be apparent that, drawings in the following description are only of the invention
Some embodiments, for one of ordinary skill in the art, are not paying the premise of creative labor
Under, other accompanying drawings can also be obtained according to these accompanying drawings.
Fig. 1 is that a kind of method flow for positioning the root that browser occurs exception provided in an embodiment of the present invention shows
It is intended to;
Fig. 2 is that a kind of device structure for positioning the root that browser occurs exception provided in an embodiment of the present invention shows
It is intended to.
Specific embodiment
User is when using access internet through browsers, it is necessary first to start browser, is starting browser
During, browser loads various plug-in units, for example, a browser loading sudden peal of thunder downloads assistant's plug-in unit,
So, in user's webpage various by browser access, a sudden peal of thunder is downloaded assistant's plug-in unit and can be accessed from user
Detected in each webpage, to determine whether video file or download resource etc., in order to pass through
The download function that a sudden peal of thunder downloads the offer of assistant's plug-in unit is downloaded to video file or download resource etc..Also
It is to say, if user is per minute to access a webpage, a sudden peal of thunder is downloaded assistant's plug-in unit and per minute will be performed once
Detecting operation a, if sudden peal of thunder downloads assistant's plug-in unit and mistake occurs during certain is once detected, it is possible to cause
Browser occurs abnormal.
In the prior art, browser is most of all using multithreading, and multithreading can make to browse
Device is loaded by different approach needs the various programs of operation, this way it is possible to avoid browser is due to webpage
It is abnormal caused by the mistake of upper appearance, but for the various plug-in units that browser is loaded, due to the direct quilt of plug-in unit
It is loaded into the main program of browser, therefore, it is clear that the multithreading of browser can not solve that plug-in unit brings
The abnormal problem of device of looking at, once abnormal or collapse occurs in plug-in unit, user's repeatedly restarting of having to is browsed
Device.
Scheme provided in an embodiment of the present invention, can be determined causing browser that abnormal root plug-in unit occurs
Position, poor user experience asks caused by solving that quickly fault rootstock cannot be positioned when browser occurs abnormal
Topic.
A kind of positioning browser is provided in order to realize the purpose of the present invention, in the embodiment of the present invention exception occurs
Root method and apparatus, when it is determined that browser occurs abnormal, obtain what the browser was currently running
The operational factor of at least one plug-in unit and each plug-in unit;Operation ginseng according to each plug-in unit
Number, determines the running status of each plug-in unit that the browser is currently running respectively, wherein, it is described
Running status includes normal operation and misoperation;According to the operation shape of each plug-in unit for determining to obtain
State, positioning causes the browser that abnormal root plug-in unit occurs.When browser occurs abnormal, by sentencing
Quickly positioning causes browser that abnormal root occurs to the running status of the plug-in unit being currently running in disconnected browser
Plug-in unit, so, when browser is restarted again, it is to avoid the root plug-in unit of loading positioning, and then prevent clear
Device of looking at occurs exception when restarting again, improves Consumer's Experience.
Each embodiment of the invention is described in further detail below in conjunction with Figure of description, is shown
So, described embodiment is only a part of embodiment of the invention, rather than whole embodiments.It is based on
Embodiment in the present invention, those of ordinary skill in the art are obtained under the premise of creative work is not made
All other embodiment, belong to the scope of protection of the invention.
Fig. 1 is that a kind of method flow for positioning the root that browser occurs exception provided in an embodiment of the present invention shows
It is intended to, methods described is as described below.
Step 101:When it is determined that browser occurs abnormal, the browser is currently running at least one is obtained
The operational factor of individual plug-in unit and each plug-in unit.
In a step 101, obtain described at least one plug-in unit and at least one being currently running in browser
The operational factor of plug-in unit.
It should be noted that in the embodiment that the present invention is provided, the browser can be Sohu's browser,
Can also be sogou browser, be not specifically limited here.The plug-in unit can be that a sudden peal of thunder small assistant of download inserts
Part, or Yahoo's tool bar plug-in unit, are not specifically limited.The operational factor of the plug-in unit can be institute
Plug-in unit hardware parameter, or the plug-in unit operationally software parameters operationally are stated, is not also done
It is specific to limit.
Generally, when browser is started, or during browser execution, browser can load various
The plug-in unit of various kinds, for example, a sudden peal of thunder downloads small assistant's plug-in unit, Yahoo's tool bar plug-in unit, etc., browser plus
After carrying various plug-in units, the operational order operation of the access network that browser is currently performed according to user is
The plug-in unit of loading, also, these plug-in units produce different operational factors respectively during operation.
The plug-in unit for having loaded, may be due to the various unpredictable problems such as running environment during operation
Cause browser to occur abnormal, can be that the plug number of operation is excessive in the embodiment that the present invention is provided
Caused by causing browser that exception, or plug-in unit and browser-incompatible occur there is exception in browser,
It is not specifically limited.
When it is determined that browser occurs abnormal, cause browser that abnormal root occurs to position, obtain in time
Take the fortune of at least one plug-in unit and each plug-in unit being currently running when the browser occurs abnormal
Line parameter.
The present invention provide embodiment in, can be obtained from the running log of the browser described at least
The operational factor of one plug-in unit and each plug-in unit, it is also possible to from the corresponding cloud service of the browser
At least one plug-in unit and the operational factor of each plug-in unit are obtained in device, is not specifically limited.
Step 102:According to the operational factor of each plug-in unit, determine that the browser is transported respectively
The running status of each capable plug-in unit.
Wherein, the running status includes normal operation and misoperation.
In a step 102, each can be determined according to the operational factor of at least one plug-in unit for getting
The running status of the plug-in unit.
Specifically, for each plug-in unit for getting and the operational factor of each plug-in unit, can be with
The running status of the plug-in unit is determined in the following manner:
First, one of them described plug-in unit is selected;
Secondly, according to the corresponding operational factor of the plug-in unit of selection, it is determined that running what the plug-in unit was consumed
System resource;
Finally, according to the system resource for determining, operation shape of the plug-in unit in the browser is determined
State.
It should be noted that each described plug-in unit can operationally consume a part of system resource, if
The system resource of the plug-in unit consumption is excessive, illustrates that the plug-in unit is likely to occur exception, that is to say, that may
Cause browser to occur abnormal, therefore, it can the system by judging to be consumed described in each described plug-in unit and provide
Source determines the running status of each plug-in unit.
In the embodiment that the present invention is provided, the plug-in unit institute can be determined by the operational factor of the plug-in unit
The system resource of consumption, and the operation shape of the plug-in unit is determined according to the system resource that the plug-in unit is consumed
State.
Specifically, for plug-in unit each described, the method that can be recorded by above-mentioned steps 101 is got
The operational factor of each plug-in unit, selects one of them described plug-in unit, is getting the fortune of the plug-in unit
After line parameter, can by the plug-in component operation when hardware parameter analysis obtain what the plug-in unit was consumed
System resource, it is also possible to which software parameters analysis during by the plug-in component operation obtains what the plug-in unit was consumed
System resource, can also be obtained by hardware parameter and the software parameters analysis simultaneously to the plug-in component operation
The system resource that the plug-in unit is consumed, is not specifically limited here.
It is determined that after the system resource that is consumed of the plug-in unit, it may be determined that the running status of the plug-in unit, tool
Body ground, the system resource that can be operationally consumed the plug-in unit is compared with the threshold range of setting
It is right, if the system resource that the plug-in unit is consumed is within the threshold range of the setting, it is believed that institute
It is normal operation to state the running status of plug-in unit, if the system resource that the plug-in unit is consumed exceeds the setting
Threshold range, it is believed that the running status of the plug-in unit be misoperation.
Wherein, the threshold range of the setting can be by the browser developers according to actual conditions or reality
Data setting is tested, is not specifically limited here.
It should be noted that in the embodiment that the present invention is provided, each described plug-in unit corresponds to one respectively
The threshold range of setting.
So, for plug-in unit each described, divided by the operational factor to plug-in unit each described
Analysis, and when determining system resource that each described plug-in unit is consumed, can be by by each plug-in unit
The threshold range of the system resource for being consumed setting corresponding with the plug-in unit is compared, and judges that the plug-in unit is disappeared
Whether the system resource of consumption determines the running status of each plug-in unit in the threshold range of setting.
Alternatively, for each plug-in unit and the operational factor of the plug-in unit for getting, can also pass through
In the following manner determines the running status of the plug-in unit:
Select one of them described plug-in unit;
Using the plug-in unit exception rules of setting, the operational factor with the plug-in unit of selection is compared, and root
According to comparison result, running status of the plug-in unit in the browser is determined, wherein, the plug-in unit exception
Operational factor when running status of the rule comprising the plug-in unit is misoperation.
It should be noted that each described plug-in unit is in the process of running, the browser can be by each
The operational factor of the plug-in unit is contrasted with plug-in unit exception rules set in advance, and then according to comparison result
Determine the running status of each plug-in unit.
Specifically, for plug-in unit each described, the method that can be recorded by above-mentioned steps 101 is got
The operational factor of each plug-in unit, selects one of them described plug-in unit, is getting the fortune of the plug-in unit
After line parameter, the operational factor of the plug-in unit can be compared with the plug-in unit exception rules of setting, and lead to
Cross the running status that comparison result determines the plug-in unit.
It should be noted that in the embodiment that the present invention is provided, can in the plug-in unit exception rules of the setting
With comprising the corresponding at least one set of plug-in unit of plug-in unit each described when running status is as misoperation
Operational factor, so, for the plug-in unit of selection, it is determined that the operational factor of the plug-in unit sets with described
When the one of which operational factor of the plug-in unit included in fixed plug-in unit exception rules is consistent, it may be determined that institute
The running status for stating plug-in unit is misoperation.
For plug-in unit each described, by the operational factor of each plug-in unit that will get with it is described
The corresponding at least one set of operational factor of each described plug-in unit included in the plug-in unit exception rules of setting is carried out
Compare, it may be determined that the running status of each plug-in unit.
It should be noted that in the embodiment that the present invention is provided, can be disappeared by plug-in unit each described
The system resource of consumption determines the running status of each plug-in unit, it is also possible to by by each plug-in unit
The method compared with the plug-in unit exception rules of the setting determines the running status of each plug-in unit,
It is not specifically limited.
Step 103:According to the running status of each plug-in unit for determining to obtain, positioning causes described clear
There is abnormal root plug-in unit in device of looking at.
In step 103, each that can be currently running according to the browser for determining to obtain is described slotting
The running status of part, positioning causes the browser that abnormal root plug-in unit occurs.
Specifically, it is abnormal by running status according to the running status of each plug-in unit for determining to obtain
The plug-in unit of operation is orientated as causes the browser that abnormal root plug-in unit occurs.
That is, it is determined that the browser occurs extremely, and it is determined that what the browser was currently running
When the running status of at least one plug-in unit is misoperation, can be described in positioning trip state as misoperation
Plug-in unit is to cause the browser that abnormal root plug-in unit occurs.
Alternatively, the method for the running status of plug-in unit described in the determination according to described in step 102, it is determined that
When the running status of the plug-in unit that the browser is currently running is misoperation, methods described also includes:
When it is determined that the running status of the plug-in unit is misoperation, according to the operational factor of the plug-in unit, really
The fixed plug-in unit causes the browser that abnormal probable value occurs.
When it is determined that the running status of the plug-in unit is misoperation, the plug-in unit may cause the browser
Generation is abnormal, it is also possible to the browser will not be caused to occur abnormal, in the embodiment that the present invention is provided,
Causing the possibility that the browser occurs exception to be referred to as the plug-in unit plug-in unit causes the browser
There is abnormal probable value.
Specifically, can determine that the plug-in unit causes the browser to occur according to the operational factor of the plug-in unit
Abnormal probable value.
It should be noted that the theoretical operational factor of correspondence one when each plug-in unit runs in a browser (and
Normal operational parameters can be referred to as, this operational factor can be obtained by experiment or historical data analysis
To), so, it is determined that the plug-in unit running status be misoperation when, will can get described in
Operational factor of the plug-in unit under abnormal operating condition is compared with the theoretical operational factor of the plug-in unit, and according to than
Determine that the plug-in unit causes the browser that abnormal probable value occurs to result.
Specifically, can be transported with the theory of the plug-in unit according to operational factor of the plug-in unit under misoperation
Difference between line parameter, determines that the plug-in unit causes the browser that abnormal probable value occurs, generally,
The difference is bigger, and the plug-in unit causes the abnormal probable value of the browser generation bigger, wherein, it is described
The size of difference can determine to obtain according to setting rule, and the setting rule is by the browser according to reality
Situation determines that the setting rule is not specifically limited here, the number range of the probable value can also
Determined according to actual needs by the browser, be also not specifically limited.
Alternatively, when it is determined that the plug-in unit causes the browser that abnormal probable value occurs, can also lead to
Crossing following methods positioning causes the browser that abnormal root plug-in unit occurs:
When it is determined that the plug-in unit causes the browser that abnormal probable value occurs more than given threshold, by institute
Stating plug-in unit and orientating as causes the browser that abnormal root plug-in unit occurs.
That is, can cause the browser that abnormal probable value occurs according to the plug-in unit, institute is positioned
State whether plug-in unit is to cause the browser that abnormal root plug-in unit occurs, in the embodiment that the present invention is provided
In, when it is determined that the probable value of the plug-in unit is more than given threshold, the plug-in unit can be positioned to cause
There is abnormal root plug-in unit in the browser, wherein, the given threshold can by the browser according to
Setting is actually needed, is not specifically limited here.
Alternatively, the method for the running status of the determination plug-in unit according to described in step 102, it is determined that described
When the running status of the plug-in unit that browser is currently running is misoperation, methods described also includes:
When it is determined that the running status of the plug-in unit is misoperation, by the plug-in unit and the fortune of the plug-in unit
Line parameter is stored into abnormal plugin library, and updating plug-in unit described in the abnormal plugin library causes browser to be sent out
Raw abnormal number of times.
Wherein, the abnormal plugin library is used to store causes browser that abnormal plug-in unit and the plug-in unit occurs
Cause browser that abnormal number of times occurs.
When it is determined that the running status of the plug-in unit is misoperation, the plug-in unit can be stored slotting to exception
In part storehouse.
It should be noted that under different operational factors, the browser be currently running each described in
The running status of plug-in unit may be differed, that is to say, that for plug-in unit one of them described, in first group of fortune
Under line parameter, the running status of the plug-in unit may be up, described under second group of operational factor
The running status of plug-in unit is probably misoperation, therefore, stored to the abnormal plugin library by the plug-in unit
When middle, while the operational factor of the plug-in unit is stored into the abnormal plugin library, and it is slotting in the exception
The corresponding relation set up in part storehouse between the operational factor of the plug-in unit and the plug-in unit.
Alternatively, the operational factor of the plug-in unit and the plug-in unit is being stored into the abnormal plugin library
When, can also update the plug-in unit stored in the abnormal plugin library causes the browser that exception occurs
Number of times.
For example, when it is determined that the running status under plug-in unit A is a in operational factor is misoperation, can be with
Positioning plug-in unit A is to cause browser that abnormal root plug-in unit occurs, and by plug-in unit A and operational factor a
Store into the abnormal plugin library, now, if it is determined that there is no memory card A in the abnormal plugin library,
So, memory card A causes browser that abnormal number of times occurs for 1 time in the abnormal plugin library,
Determine plug-in unit A when the running status under operational factor is b is misoperation, it is also possible to position plug-in unit A
There is abnormal root plug-in unit to cause browser, and by plug-in unit A and operational factor b storages described different
In normal plugin library, due to memory card A in now described abnormal plugin library, then update in the exception
It is 2 times that the plug-in unit A stored in plugin library causes browser that abnormal number of times occurs.
It should be noted that in the embodiment that provides of the present invention, can be by abnormal plug-in unit and abnormal plug-in unit
Corresponding relation between operational factor is stored into the abnormal plugin library, it is also possible to by abnormal plug-in unit and different
Normal plug-in unit causes the corresponding relation that browser occurs between abnormal number of times to store into the abnormal plugin library,
Can also cause browser that exception occurs abnormal plug-in unit, the operational factor of abnormal plug-in unit and abnormal plug-in unit
Corresponding relation between number of times is stored into the abnormal plugin library, does not do specific limit to specific storage form
It is fixed.
Alternatively, browser is being caused to be sent out the plug-in unit, the operational factor of the plug-in unit and the plug-in unit
Raw abnormal number of times is stored when in the abnormal plugin library, can also be positioned in the following manner described in causing
There is abnormal root plug-in unit in browser:
When it is determined that running status is more than or equal to 2 for the number of the plug-in unit of misoperation, from the exception
The plug-in unit is searched in plugin library causes browser that abnormal number of times occurs;
Number of times is orientated as more than the plug-in unit of setting numerical value causes the browser that abnormal root plug-in unit occurs.
When it is determined that the number of the plug-in unit stored in the abnormal plugin library is more than or equal to 2, can be according to described
The abnormal plug-in unit and the abnormal plug-in unit stored in abnormal plugin library cause between the number of times that browser occurs exception
Corresponding relation, search that each abnormal plug-in unit is corresponding described to cause browser that abnormal number of times, example occur
Such as, the plug-in unit for being stored in the abnormal plugin library is plug-in unit A, plug-in unit B and plug-in unit C, can be searched
Cause browser that abnormal frequency n occurs to plug-in unit A is corresponding1, plug-in unit B is corresponding to cause browser to be sent out
Raw abnormal frequency n2, plug-in unit C is corresponding to cause browser that abnormal frequency n occurs3。
After it is determined that each plug-in unit causes browser that abnormal number of times occurs in the abnormal plugin library, can be with
Number of times is orientated as more than the plug-in unit of setting numerical value causes the browser that abnormal root plug-in unit, example occur
Such as, it is assumed that given threshold is n, and plug-in unit A is corresponding to cause browser that abnormal frequency n occurs1, plug-in unit B
It is corresponding to cause browser that abnormal frequency n occurs2, plug-in unit C is corresponding causes browser to occur abnormal time
Number n3Magnitude relationship with given threshold n is:n2> n > n1> n3, then, by frequency n2It is corresponding to insert
Part B is orientated as causes the browser that abnormal root plug-in unit occurs.
It should be noted that the setting numerical value can according to actual needs be determined by the browser, this hair
Bright embodiment is not specifically limited to the size of the setting numerical value.
Alternatively, when it is determined that obtaining the abnormal plugin library, can also be determined according to the abnormal plugin library
The running status of each plug-in unit, including:
Select one of them described plug-in unit;
The operational factor of the plug-in unit for selecting is compared with abnormal plugin library, and it is true according to comparison result
Fixed running status of the plug-in unit in the browser.
Specifically, it is determined that the plug-in unit included in operational factor and the abnormal plugin library of the plug-in unit
One of which operational factor it is consistent when, determine running status of the plug-in unit in the browser for abnormal
Operation.
Alternatively, in the running status of at least one plug-in unit being currently running according to browser, positioning causes institute
State after the root plug-in unit that browser occurs exception, methods described also includes:
After positioning causes the browser that abnormal root plug-in unit occurs, the browser is restarted.
Wherein, abandoning loading when browser is restarted causes the root of the browser generation exception to be inserted
Part.
After positioning causes browser that abnormal root plug-in unit occurs, in order to avoid the browser again because
There is exception in the root plug-in unit, can restart the browser, and restarting the browser
When, abandon loading the root plug-in unit.
Scheme provided in an embodiment of the present invention, when it is determined that browser occurs abnormal, is obtaining the browser just
In at least one plug-in unit and the operational factor of each plug-in unit of operation;According to each plug-in unit
Operational factor, the running status of each plug-in unit that the browser is currently running is determined respectively, its
In, the running status includes normal operation and misoperation;According to each described plug-in unit that determination is obtained
Running status, positioning causes the browser that abnormal root plug-in unit occurs.When browser occurs abnormal,
Quickly being positioned by the running status of the plug-in unit for judging to be currently running in browser causes browser that exception occurs
Root plug-in unit, so, when browser is restarted again, it is to avoid loading positioning root plug-in unit, and then
Prevent browser from occurring exception again when restarting, improve Consumer's Experience.
Fig. 2 is that a kind of device structure for positioning the root that browser occurs exception provided in an embodiment of the present invention shows
It is intended to.The equipment includes:Acquiring unit 21, determining unit 22, positioning unit 23, memory cell 24
With restarting unit 25, wherein:
Acquiring unit 21, for when it is determined that browser occurs abnormal, obtaining what the browser was currently running
The operational factor of at least one plug-in unit and each plug-in unit;
Determining unit 22, for the operational factor according to each plug-in unit, determines the browser respectively
The running status of each plug-in unit being currently running, wherein, the running status comprising normal operation and
Misoperation;
Positioning unit 23, the fortune of each plug-in unit for determining to obtain according to the determining unit 22
Row state, positioning causes the browser that abnormal root plug-in unit occurs.
Alternatively, the determining unit 22 determines institute respectively according to the operational factor of each plug-in unit
The running status of each plug-in unit that browser is currently running is stated, including:
For plug-in unit each described, following operation is performed respectively:
Select one of them described plug-in unit;
According to the corresponding operational factor of the plug-in unit of selection, it is determined that running the system money that the plug-in unit is consumed
Source;
According to the system resource for determining, running status of the plug-in unit in the browser is determined.
Alternatively, the determining unit 22 determines institute respectively according to the operational factor of each plug-in unit
The running status of each plug-in unit that browser is currently running is stated, including:
For plug-in unit each described, following operation is performed respectively:
Select one of them described plug-in unit;
Using the plug-in unit exception rules of setting, the operational factor with the plug-in unit of selection is compared, and root
According to comparison result, running status of the plug-in unit in the browser is determined, wherein, the plug-in unit exception
Operational factor when running status of the rule comprising the plug-in unit is misoperation.
The operation of each plug-in unit that the positioning unit 23 determines to obtain according to the determining unit 22
State, positioning causes the browser that abnormal root plug-in unit occurs, including:
According to the running status of each plug-in unit for determining to obtain, by running status inserting for misoperation
Part is orientated as causes the browser that abnormal root plug-in unit occurs.
Alternatively, in equipment provided in an embodiment of the present invention,
The determining unit 22, be additionally operable to it is determined that the plug-in unit running status be misoperation when, according to
The operational factor of the plug-in unit, determines that the plug-in unit causes the browser that abnormal probable value occurs;
The operation of each plug-in unit that the positioning unit 23 determines to obtain according to the determining unit 22
State, positioning causes the browser that abnormal root plug-in unit occurs, including:
When it is determined that the plug-in unit causes the browser that abnormal probable value occurs more than given threshold, by institute
Stating plug-in unit and orientating as causes the browser that abnormal root plug-in unit occurs.
Alternatively, the equipment also includes memory cell 24, wherein:
The memory cell 24, the running status for determining the plug-in unit in the determining unit 22 is different
Often during operation, the operational factor of the plug-in unit and the plug-in unit is stored into abnormal plugin library, and updated
Plug-in unit described in the abnormal plugin library causes browser that abnormal number of times occurs, wherein, the abnormal plug-in unit
Storehouse causes browser that exception occurs for storing the plug-in unit and the plug-in unit that cause browser that exception occurs
Number of times;
The operation of each plug-in unit that the positioning unit 23 determines to obtain according to the determining unit 22
State, positioning causes the browser that abnormal root plug-in unit occurs, including:
When it is determined that running status is more than or equal to 2 for the number of the plug-in unit of misoperation, from the exception
The plug-in unit is searched in plugin library causes browser that abnormal number of times occurs;
Number of times is orientated as more than the plug-in unit of setting numerical value causes the browser that abnormal root plug-in unit occurs.
Alternatively, the equipment also includes restarting unit 25, wherein:
The restarting unit 25, for causing the browser to occur in the positioning of the positioning unit 23
After abnormal root plug-in unit, the browser is restarted, wherein, abandoned when browser is restarted
Loading causes the browser that abnormal root plug-in unit occurs.
It should be noted that the equipment that positioning browser provided in an embodiment of the present invention occurs abnormal root can
Realized with by hardware mode, it is also possible to realized by software mode, do not limited here.
It will be understood by those skilled in the art that embodiments of the invention can be provided as method, device (equipment),
Or computer program product.Therefore, the present invention can using complete hardware embodiment, complete software embodiment,
Or the form of the embodiment in terms of combination software and hardware.And, the present invention can use at one or more it
In include computer-usable storage medium (the including but not limited to disk storage of computer usable program code
Device, CD-ROM, optical memory etc.) on implement computer program product form.
The present invention is with reference to method according to embodiments of the present invention, device (equipment) and computer program product
Flow chart and/or block diagram describe.It should be understood that can by computer program instructions realize flow chart and/or
Flow in each flow and/or square frame and flow chart and/or block diagram and/or square frame in block diagram
With reference to.These computer program instructions to all-purpose computer, special-purpose computer, Embedded Processor can be provided
Or the processor of other programmable data processing devices is producing a machine so that by computer or other
The instruction of the computing device of programmable data processing device produce for realizing in one flow of flow chart or
The device of the function of being specified in one square frame of multiple flows and/or block diagram or multiple square frames.
These computer program instructions may be alternatively stored in can guide computer or the treatment of other programmable datas to set
In the standby computer-readable memory for working in a specific way so that storage is in the computer-readable memory
Instruction produce include the manufacture of command device, the command device realization in one flow of flow chart or multiple
The function of being specified in one square frame of flow and/or block diagram or multiple square frames.
These computer program instructions can be also loaded into computer or other programmable data processing devices, made
Obtain and series of operation steps is performed on computer or other programmable devices to produce computer implemented place
Reason, so as to the instruction performed on computer or other programmable devices is provided for realizing in flow chart one
The step of function of being specified in flow or multiple one square frame of flow and/or block diagram or multiple square frames.
, but those skilled in the art once know base although preferred embodiments of the present invention have been described
This creative concept, then can make other change and modification to these embodiments.So, appended right will
Ask and be intended to be construed to include preferred embodiment and fall into having altered and changing for the scope of the invention.
Obviously, those skilled in the art can carry out various changes and modification without deviating from this hair to the present invention
Bright scope.So, if these modifications of the invention and modification belong to the claims in the present invention and its be equal to
Within the scope of technology, then the present invention is also intended to comprising these changes and modification.
Claims (10)
1. it is a kind of to position the method that browser occurs abnormal root, it is characterised in that including:
When it is determined that browser occurs abnormal, obtain at least one plug-in unit that the browser is currently running and
The operational factor of each plug-in unit;
According to the operational factor of each plug-in unit, each for determining that the browser is currently running respectively
The running status of the plug-in unit, wherein, the running status includes normal operation and misoperation;
According to the running status of each plug-in unit for determining to obtain, it is different that positioning causes the browser to occur
Normal root plug-in unit.
2. the method for claim 1, it is characterised in that according to the operation of each plug-in unit
Parameter, determines the running status of each plug-in unit that the browser is currently running respectively, including:
For plug-in unit each described, following operation is performed respectively:
Select one of them described plug-in unit;
According to the corresponding operational factor of the plug-in unit of selection, it is determined that running the system money that the plug-in unit is consumed
Source;
According to the system resource for determining, running status of the plug-in unit in the browser is determined.
3. the method for claim 1, it is characterised in that according to the operation of each plug-in unit
Parameter, determines the running status of each plug-in unit that the browser is currently running respectively, including:
For plug-in unit each described, following operation is performed respectively:
Select one of them described plug-in unit;
Using the plug-in unit exception rules of setting, the operational factor with the plug-in unit of selection is compared, and root
According to comparison result, running status of the plug-in unit in the browser is determined, wherein, the plug-in unit exception
Operational factor when running status of the rule comprising the plug-in unit is misoperation.
4. method as claimed in claim 2 or claim 3, it is characterised in that according to determining each that obtain
The running status of the plug-in unit, positioning causes the browser that abnormal root plug-in unit occurs, including:
According to the running status of each plug-in unit for determining to obtain, by running status inserting for misoperation
Part is orientated as causes the browser that abnormal root plug-in unit occurs.
5. method as claimed in claim 2 or claim 3, it is characterised in that methods described also includes:
When it is determined that the running status of the plug-in unit is misoperation, according to the operational factor of the plug-in unit, really
The fixed plug-in unit causes the browser that abnormal probable value occurs;
According to the running status of each plug-in unit for determining to obtain, it is different that positioning causes the browser to occur
Normal root plug-in unit, including:
When it is determined that the plug-in unit causes the browser that abnormal probable value occurs more than given threshold, by institute
Stating plug-in unit and orientating as causes the browser that abnormal root plug-in unit occurs.
6. method as claimed in claim 2 or claim 3, it is characterised in that methods described also includes:
When it is determined that the running status of the plug-in unit is misoperation, by the plug-in unit and the fortune of the plug-in unit
Line parameter is stored into abnormal plugin library, and updating plug-in unit described in the abnormal plugin library causes browser to be sent out
Raw abnormal number of times, wherein, the abnormal plugin library be used to store cause browser occur abnormal plug-in unit with
And the plug-in unit causes browser that abnormal number of times occurs;
According to the running status of each plug-in unit for determining to obtain, it is different that positioning causes the browser to occur
Normal root plug-in unit, including:
When it is determined that running status is more than or equal to 2 for the number of the plug-in unit of misoperation, from the exception
The plug-in unit is searched in plugin library causes browser that abnormal number of times occurs;
Number of times is orientated as more than the plug-in unit of setting numerical value causes the browser that abnormal root plug-in unit occurs.
7. the method for claim 1, it is characterised in that methods described also includes:
After positioning causes the browser that abnormal root plug-in unit occurs, the browser is restarted,
Wherein, abandoning loading when browser is restarted causes the browser that abnormal root plug-in unit occurs.
8. it is a kind of to position the equipment that browser occurs abnormal root, it is characterised in that including:
Acquiring unit, for when it is determined that browser occurs abnormal, obtain the browser be currently running to
The operational factor of a few plug-in unit and each plug-in unit;
Determining unit, for the operational factor according to each plug-in unit, is determining the browser just respectively
In the running status of each plug-in unit of operation, wherein, the running status is run and different comprising normal
Often operation;
Positioning unit, the operation shape of each plug-in unit for determining to obtain according to the determining unit
State, positioning causes the browser that abnormal root plug-in unit occurs.
9. equipment as claimed in claim 8, it is characterised in that the determining unit is according to each institute
The operational factor of plug-in unit is stated, the operation shape of each plug-in unit that the browser is currently running is determined respectively
State, including:
For plug-in unit each described, following operation is performed respectively:
Select one of them described plug-in unit;
According to the corresponding operational factor of the plug-in unit of selection, it is determined that running the system money that the plug-in unit is consumed
Source;
According to the system resource for determining, running status of the plug-in unit in the browser is determined.
10. equipment as claimed in claim 8, it is characterised in that the determining unit is according to each institute
The operational factor of plug-in unit is stated, the operation shape of each plug-in unit that the browser is currently running is determined respectively
State, including:
For plug-in unit each described, following operation is performed respectively:
Select one of them described plug-in unit;
Using the plug-in unit exception rules of setting, the operational factor with the plug-in unit of selection is compared, and root
According to comparison result, running status of the plug-in unit in the browser is determined, wherein, the plug-in unit exception
Operational factor when running status of the rule comprising the plug-in unit is misoperation.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201510983284.5A CN106919500A (en) | 2015-12-24 | 2015-12-24 | It is a kind of to position the method and apparatus that browser occurs abnormal root |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201510983284.5A CN106919500A (en) | 2015-12-24 | 2015-12-24 | It is a kind of to position the method and apparatus that browser occurs abnormal root |
Publications (1)
Publication Number | Publication Date |
---|---|
CN106919500A true CN106919500A (en) | 2017-07-04 |
Family
ID=59459963
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201510983284.5A Pending CN106919500A (en) | 2015-12-24 | 2015-12-24 | It is a kind of to position the method and apparatus that browser occurs abnormal root |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN106919500A (en) |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN110471832A (en) * | 2019-06-25 | 2019-11-19 | 平安科技(深圳)有限公司 | Processing method, device and the computer readable storage medium of program operation |
Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20100251034A1 (en) * | 2009-03-31 | 2010-09-30 | Alibaba Group Holding Limited | Execution of a plugin according to plugin stability level |
CN103595765A (en) * | 2013-10-22 | 2014-02-19 | 北京奇虎科技有限公司 | Method and system for processing abnormal closing of browser, browser and server |
CN103595708A (en) * | 2013-10-22 | 2014-02-19 | 北京奇虎科技有限公司 | Method and system for processing abnormal closing of browser, browser and server |
CN104361076A (en) * | 2014-11-12 | 2015-02-18 | 腾讯科技(成都)有限公司 | Method and device for processing abnormality of browser |
-
2015
- 2015-12-24 CN CN201510983284.5A patent/CN106919500A/en active Pending
Patent Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20100251034A1 (en) * | 2009-03-31 | 2010-09-30 | Alibaba Group Holding Limited | Execution of a plugin according to plugin stability level |
CN103595765A (en) * | 2013-10-22 | 2014-02-19 | 北京奇虎科技有限公司 | Method and system for processing abnormal closing of browser, browser and server |
CN103595708A (en) * | 2013-10-22 | 2014-02-19 | 北京奇虎科技有限公司 | Method and system for processing abnormal closing of browser, browser and server |
CN104361076A (en) * | 2014-11-12 | 2015-02-18 | 腾讯科技(成都)有限公司 | Method and device for processing abnormality of browser |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN110471832A (en) * | 2019-06-25 | 2019-11-19 | 平安科技(深圳)有限公司 | Processing method, device and the computer readable storage medium of program operation |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US9619275B2 (en) | Data processing method, apparatus and mobile terminal | |
CN106096030A (en) | The method and apparatus that browser execution is optimized | |
EP3588283A1 (en) | System and method for recommending service experience package | |
CN106844314B (en) | A kind of duplicate checking method and device of article | |
CN106598682B (en) | Component upgrade method and device | |
CN104182545A (en) | Application program recommendation method and device | |
CN108851186B (en) | Online error prevention method and system for tobacco shred production quality and electronic equipment | |
CN108388509B (en) | Software testing method, computer readable storage medium and terminal equipment | |
CN102073670B (en) | Method, equipment and system for debugging online webpage template | |
CN104239567B (en) | Dimension treating method and apparatus in data warehouse | |
CN106156355A (en) | Log processing method and device | |
CN108959067A (en) | Test method, device and the computer readable storage medium of search engine | |
CN105930058A (en) | Application starting method and apparatus for mobile terminal and mobile terminal | |
CN106909454A (en) | A kind of rules process method and equipment | |
US20150199262A1 (en) | Runtime code visualization | |
CN106919500A (en) | It is a kind of to position the method and apparatus that browser occurs abnormal root | |
CN106919573A (en) | A kind of method and apparatus for restarting browser | |
CN113641936A (en) | Method and device for page jump, electronic equipment and storage medium | |
CN105630545B (en) | Browser starts method and device | |
US9201573B1 (en) | Adaptive GUI pre-fetching | |
CN104199689B (en) | The installation method and device of comprehensive front-end system | |
CN111399996A (en) | Batch operation method and device of service data and related equipment thereof | |
CN110287182A (en) | A kind of data comparison method, apparatus, equipment and the terminal of big data | |
CN105740666A (en) | Method and device for identifying on-line operational risk | |
CN115480973A (en) | Server performance test method, device and medium |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
RJ01 | Rejection of invention patent application after publication | ||
RJ01 | Rejection of invention patent application after publication |
Application publication date: 20170704 |