Detailed Description
Exemplary embodiments of the present disclosure will be described in more detail below with reference to the accompanying drawings. While exemplary embodiments of the present disclosure are shown in the drawings, it should be understood that the present disclosure may be embodied in various forms and should not be limited to the embodiments set forth herein. Rather, these embodiments are provided so that this disclosure will be thorough and complete, and will fully convey the scope of the disclosure to those skilled in the art.
Example one
Referring to fig. 1, a flowchart illustrating steps of a browser repairing method according to a first embodiment of the present invention is shown.
The browser repairing method of the embodiment comprises the following steps:
step S102: and determining that the browser cannot normally open the webpage.
Step S104: calling a scanning plug-in arranged in a browser or a scanning plug-in arranged in a virus searching and killing tool through a calling interface to carry out webpage abnormal scanning, judging whether the reason causing the webpage to be incapable of being normally opened is the plug-in fault of the browser or not, and if yes, executing the step S106; if not, go to step S108.
The scanning plug-in is used for webpage exception scanning of non-virus reasons, wherein the scanning plug-in is used for scanning the browser plug-in to determine whether the browser plug-in is a fault functional module or unit. The browser or the virus searching and killing tool in the related technology is not provided with such plug-ins, so that the webpage abnormity caused by non-virus reasons, especially the webpage abnormity caused by the fault reason of the browser plug-in, cannot be checked and processed.
Step S106: and determining that the reason causing the webpage to be incapable of being opened normally is the plug-in fault of the browser, repairing the plug-in of the browser, and ending the processing flow.
For example, when the browser has too many plug-ins, which may cause the browser to be abnormal, the plug-in modification of the browser mainly includes cleaning up the plug-ins of the browser.
Step S108: and determining that the reason causing the webpage to be incapable of being opened normally is not the plug-in fault of the browser, performing abnormal scanning on other webpages, determining the reason of the webpage abnormality, performing corresponding processing, and ending the processing flow.
For example, the reason why the web page cannot be opened normally may also be an HTTP protocol configuration problem, or an IE cache file problem, or other problems, and corresponding processing may be performed.
According to the browser repairing scheme, when the browser cannot normally open the webpage, whether the reason causing the webpage to be normally opened is a plug-in fault is determined by calling the scanning plug-in arranged in the browser or calling the scanning plug-in a virus checking and killing tool outside the browser, and if the reason is the plug-in fault, corresponding plug-in repairing is carried out. Compared with the prior art, when the webpage cannot be normally opened, the virus searching and killing tool can only be manually used for searching and killing the virus, and the existing scheme that the webpage cannot be opened cannot be solved by means of virus searching and killing, so that the problem of webpage opening abnormity caused by non-virus reasons can be effectively solved, manual operation of a user is not needed, the efficiency of searching and identifying the webpage abnormity reasons is improved, and the user experience is also improved.
Example two
Referring to fig. 2, a flowchart illustrating steps of a browser repairing method according to a second embodiment of the present invention is shown.
The browser repairing method of the embodiment comprises the following steps:
step S202: the browser determines that the web page cannot be opened normally.
Step S204: the browser determines that the other web client application is in normal use.
That is, other web client applications than the browser can normally use the web to perform corresponding functions.
The browser can simulate and call other network clients in the background, and then the network clients can be normally used; or the browser calls brief functions of other network clients in the background to determine whether the network clients can be normally used; or, the user operates other network clients and reports the operation result to the browser, or the browser obtains the operation results of other network clients in a proper mode and determines whether the network clients can be normally used. But not limited thereto, in practical use, those skilled in the art may adopt any appropriate manner to enable the browser to know whether other network clients can be normally used, and the present invention is not limited thereto.
In addition, the step is optional, and in practical application, the step can be skipped, and when the webpage cannot be normally opened, the scanning plug-in is called to carry out webpage abnormal scanning. But whether the network connection has a fault can be determined firstly by using the steps, then the subsequent processing is carried out, if the network connection has the fault, the network connection is directly repaired, and by adopting the method, the abnormal scanning efficiency of the webpage can be improved, and the fault checking and processing speed can be improved.
Step S206: and the browser calls the scanning plug-in arranged in the browser or the scanning plug-in arranged in the virus searching and killing tool through the calling interface.
Preferably, when the browser is provided with the scanning plug-in, the scanning plug-in may be loaded and run together with the running of the browser, and then the browser may directly call the loaded scanning plug-in itself through the call interface to perform the web page exception scanning. The scanning plug-in is arranged in the browser, so that the calling is convenient, and the abnormal scanning speed and efficiency of the webpage are improved.
Preferably, when the virus searching and killing tool is provided with the scanning plug-in, the browser can call the scanning plug-in the virus searching and killing tool to perform webpage exception scanning by calling the interface; or the browser provides a prompt for the user to use the scanning plug-in the virus searching and killing tool to perform webpage exception scanning, and calls the scanning plug-in the virus searching and killing tool to perform webpage exception scanning through a calling interface after receiving the positive information returned by the user. The scanning plug-in is arranged in the virus checking and killing tool, so that the operation burden of a browser is reduced, and in practical application, the scanning plug-in can be combined with other virus checking and killing functions of the virus checking and killing tool for use, so that the abnormal reasons of the webpage can be comprehensively screened.
Step S208: a scanning plug-in the browser or the virus searching and killing tool calls a browser process to open a set webpage, whether the set webpage can be normally opened is judged, and if the set webpage cannot be normally opened, the step S210 is executed; and if the webpage can be normally opened, returning to the browser to retry opening the webpage.
According to the method, a webpage address can be selected as a webpage address of a set webpage when needed according to certain rules, such as random selection rules, sequential selection rules and the like, and the webpage address is connected to try to open a corresponding webpage, so that whether the webpage can be normally opened or not is judged.
Step S210: if the set webpage cannot be normally opened by the scanning plug-in and the network connection is determined to be normal, the set webpage is opened by using a no-loading plug-in mode, whether the set webpage can be opened by using the no-loading plug-in mode or not is judged, if yes, the reason that the webpage cannot be normally opened is determined to be the plug-in fault of the browser, and step S212 is executed; if not, it is determined that the reason for the failure of the normal opening of the web page is not the failure of the plug-in of the browser, and step S214 is executed.
Step S212: and scanning the plug-in unit to determine that the reason for the abnormal opening of the webpage is the plug-in unit fault of the browser, repairing the plug-in unit of the browser, and ending the process.
Step S214: the browser further determines the reason why the webpage cannot be normally opened by using other tools, and performs system repair on the browser according to the determined reason to finish the process.
For example, repairing the IE system may include repairing registry settings associated with the IE, and/or re-registering components of the IE, and so forth.
It should be noted that, in the present embodiment, a separate scanning plug-in is taken as an example to perform the web page exception scanning, but it should be understood by those skilled in the art that, in practical applications, the scanning plug-in may be used in combination with other tools, for example, a network connection checking tool, a virus scanning tool, and the like. For example, a network connection check tool may be used to perform network connection detection; if the network connection is determined to be normal, screening the browser plug-in faults by using the scanning plug-in; and if the browser plug-in has no fault, then using a virus scanning tool to scan viruses and the like. Of course, without limitation, one skilled in the art may combine the various tools in any suitable manner according to actual needs.
Through this embodiment, can carry out comprehensive screening and processing to the unable reason of normally opening the webpage of browser, can effectively solve the webpage and open unusual problem, improve the unusual reason of webpage and seek recognition efficiency, promote user and use experience.
EXAMPLE III
Referring to fig. 3, a flowchart illustrating steps of a browser repairing method according to a third embodiment of the present invention is shown.
In this embodiment, a browser calls 360 a scanning plug-in antivirus software to perform browser plug-in fault scanning, which is taken as an example to describe the browser repair of the present invention.
The browser repairing method of the embodiment comprises the following steps:
step S302: a scanning plug-in is set in 360 the antivirus software.
In this embodiment, the scanning plug-in for scanning the browser plug-in fault is in the form of a dynamic link library DLL.
When the antivirus software is installed, a directory is preset, the directory comprises all DLL of the scanning plug-ins in the antivirus software, and the written DLL of the scanning plug-ins for scanning the faults of the browser plug-ins is put into the directory. On one hand, a DLL of a scanning plug-in used for browser plug-in fault scanning is placed in a antivirus directory, and the plug-in can be started and loaded during antivirus software scanning; on the other hand, the antivirus software can provide an external calling interface, so that the plug-in can be called by a third-party application other than the antivirus software, such as a browser.
Step S304: and the browser determines that the webpage cannot be normally opened, calls 360 a scanning plug-in unit set in the antivirus software through a calling interface, and performs abnormal scanning on the webpage so as to determine whether the reason for the webpage being unable to be normally opened is the plug-in unit fault of the browser.
The browser and the 360 antivirus software are both provided with calling interfaces, so that calling and interaction between the browser and the 360 antivirus software are realized.
Step S306: the scanning plug-in used for the browser plug-in fault scanning calls a browser process and tries to open a set webpage in the background.
When the scanning plug-in of the 360 antivirus software scans the abnormal web page, the IE process is opened in the background 360rp. The preset web pages to be opened can be randomly acquired from some common web pages stored in a preset list, such as 100 web addresses selected from the home page of hao.360. cn.
Step S308: the scanning plug-in judges whether the set webpage can be normally opened or not, if so, the webpage which cannot be normally opened in the previous time is considered to be temporarily abnormal, and the scanning plug-in returns to the browser to re-open the webpage to be opened; if not, step S310 is executed.
Step S310: the scanning plug-in judges whether a return value for setting the webpage opening failure is received in a set time period, if not, the step S312 is executed; if yes, go to step S314.
If the scanning plug-in can open the set webpage, the webpage is considered to be temporarily abnormal, and the webpage is still normally opened; if the scanning plug-in cannot open the set webpage, acquiring a failed return value, and if the return value is not received within a predetermined time period, for example, 20 seconds, the 360-degree antivirus software background considers that the networking is unsuccessful and the webpage cannot be opened, and then step S312 is executed.
Step S312: 360 the antivirus software detects the network connection, judges whether the network connection is normal, if so, executes step S314; and if not, processing the network connection abnormity.
The processing of the network connection exception includes prompting the user for the network connection exception, or attempting to reconnect the network, or checking the network connection configuration, etc.
For example, detecting the TCP protocol connection of the user, if it can be detected that the TCP protocol connection is normal, proving that the instant messaging software such as QQ can be accessed, at this time, step S314 needs to be executed.
Step S314: the scanning plug-in tries to open the set webpage by using a no-loading plug-in mode, whether the set webpage can be opened by using the no-loading plug-in mode is judged, and if yes, the step S316 is executed; if not, go to step S318.
Step S316: and scanning the plug-in unit to determine that the reason for the abnormal opening of the webpage is the plug-in unit fault of the browser, repairing the plug-in unit of the browser, and ending the process.
If the IE browser is not bad and the plug-in of the IE browser is bad, so that the randomly selected webpage cannot be normally opened, the webpage is started in a non-loading plug-in mode after a certain time, for example, after the 20-second overtime, and if the webpage is opened and the plug-in of the IE browser is described to be in fault, a corresponding repair tool, such as the plug-in repair tool of the IE browser in the 360 guard repair tool, can be called to repair the plug-in.
Step S318: and scanning the plug-in to determine that the reason causing the webpage to be incapable of being opened normally is not the plug-in fault of the browser, using other tools to check the webpage abnormal reason and carry out corresponding processing, and ending the process.
There are various situations when a web page cannot be opened, including a browser plug-in failure, a browser failure, an HTTP protocol configuration failure, and the like. At this time, other functions of the antivirus software may be called 360, or other tools may be called to check the reason why the browser cannot open the web page normally, so as to perform corresponding processing.
For example, calling 360 the computer outpatient service function module in the antivirus software to determine the reason of the abnormal webpage opening, and further processing the reason according to the problem solving function module, such as repairing the network, using the system default DNS, checking the HTTP protocol, cleaning the IE cache file, re-registering the important component of the ID, and the like, to perform system repair.
Through this embodiment, make the browser call multiple functions in the antivirus software carry out comprehensive screening and processing to the reason that can't open the webpage normally, make full use of the resource outside the browser, not only can open the unusual reason to the webpage and carry out professional detection and restoration, expanded browser function moreover, in addition, browser itself does not set up scanning plug-in, has alleviateed browser and has realized the burden, has improved the operating efficiency of browser.
Example four
Referring to fig. 4, a block diagram of a browser repairing apparatus according to a fourth embodiment of the present invention is shown.
The browser repairing device of the embodiment comprises: a determining module 402, adapted to determine that a browser cannot normally open a web page; the fault judgment module 404 is adapted to call a scanning plug-in set in the browser or a scanning plug-in set in a virus searching and killing tool through a call interface to perform abnormal scanning of a webpage, and judge whether a reason causing the webpage to be unable to be normally opened is a plug-in fault of the browser; and the repairing module 406 is adapted to repair the plug-in to the browser if the determination result of the fault determining module 404 is yes.
Preferably, the repairing module 406 is further adapted to perform system repair on the browser for the reason if the failure determining module 404 determines that the reason causing the webpage to be unable to be opened normally is not a plug-in failure of the browser.
Preferably, the failure determining module 404 is adapted to call a scanning plug-in set in a browser or a scanning plug-in set in a virus searching and killing tool through a call interface; calling a browser process to open a set webpage through a scanning plug-in, and judging whether the set webpage can be normally opened or not; if the webpage cannot be normally opened and the network connection is normal, judging whether the set webpage can be opened by using a plug-in mode without loading; if the set webpage can be opened in a plug-in-free mode, determining that the reason causing the webpage to be incapable of being opened normally is plug-in faults of the browser; otherwise, determining that the reason for the webpage being unable to be opened normally is not the plug-in failure of the browser.
Preferably, the determining module 402 is further adapted to determine that the other web client applications except the browser are normally used before the failure determining module 404 calls the scanning plug-in set in the browser or the scanning plug-in set in the virus searching and killing tool through the call interface.
Preferably, when the fault determining module 404 calls a scanning plug-in set in the browser through the call interface to perform abnormal web page scanning, the browser directly calls the loaded scanning plug-in of the browser through the call interface to perform abnormal web page scanning; when the fault judgment module 404 calls a scanning plug-in unit arranged in the virus searching and killing tool through the calling interface to perform webpage exception scanning, the browser calls the scanning plug-in unit in the virus searching and killing tool through the calling interface to perform webpage exception scanning; or the browser provides a prompt for the user to use the scanning plug-in the virus searching and killing tool to perform webpage exception scanning, and calls the scanning plug-in the virus searching and killing tool to perform webpage exception scanning through the calling interface after receiving the positive information returned by the user.
The browser repairing apparatus of this embodiment may be disposed in a browser or a virus killing tool or other suitable third-party application, and is configured to implement the corresponding browser repairing method in the foregoing method embodiments, and has the beneficial effects of the corresponding method embodiments, which are not described herein again.
The browser remediation scheme provided herein is not inherently related to any particular computer, virtual system, or other apparatus. Various general purpose systems may also be used with the teachings herein. The structure required to construct a system incorporating aspects of the present invention will be apparent from the description above. Moreover, the present invention is not directed to any particular programming language. It is appreciated that a variety of programming languages may be used to implement the teachings of the present invention as described herein, and any descriptions of specific languages are provided above to disclose the best mode of the invention.
In the description provided herein, numerous specific details are set forth. It is understood, however, that embodiments of the invention may be practiced without these specific details. In some instances, well-known methods, structures and techniques have not been shown in detail in order not to obscure an understanding of this description.
Similarly, it should be appreciated that in the foregoing description of exemplary embodiments of the invention, various features of the invention are sometimes grouped together in a single embodiment, figure, or description thereof for the purpose of streamlining the disclosure and aiding in the understanding of one or more of the various inventive aspects. However, the disclosed method should not be interpreted as reflecting an intention that: that the invention as claimed requires more features than are expressly recited in each claim. Rather, as the following claims reflect, inventive aspects lie in less than all features of a single foregoing disclosed embodiment. Thus, the claims following the detailed description are hereby expressly incorporated into this detailed description, with each claim standing on its own as a separate embodiment of this invention.
Those skilled in the art will appreciate that the modules in the device in an embodiment may be adaptively changed and disposed in one or more devices different from the embodiment. The modules or units or components of the embodiments may be combined into one module or unit or component, and furthermore they may be divided into a plurality of sub-modules or sub-units or sub-components. All of the features disclosed in this specification (including any accompanying claims, abstract and drawings), and all of the processes or elements of any method or apparatus so disclosed, may be combined in any combination, except combinations where at least some of such features and/or processes or elements are mutually exclusive. Each feature disclosed in this specification (including any accompanying claims, abstract and drawings) may be replaced by alternative features serving the same, equivalent or similar purpose, unless expressly stated otherwise.
Furthermore, those skilled in the art will appreciate that while some embodiments described herein include some features included in other embodiments, rather than other features, combinations of features of different embodiments are meant to be within the scope of the invention and form different embodiments. For example, in the claims, any of the claimed embodiments may be used in any combination.
The various component embodiments of the invention may be implemented in hardware, or in software modules running on one or more processors, or in a combination thereof. Those skilled in the art will appreciate that a microprocessor or Digital Signal Processor (DSP) may be used in practice to implement some or all of the functions of some or all of the components in a browser repair scheme according to embodiments of the present invention. The present invention may also be embodied as apparatus or device programs (e.g., computer programs and computer program products) for performing a portion or all of the methods described herein. Such programs implementing the present invention may be stored on computer-readable media or may be in the form of one or more signals. Such a signal may be downloaded from an internet website or provided on a carrier signal or in any other form.
It should be noted that the above-mentioned embodiments illustrate rather than limit the invention, and that those skilled in the art will be able to design alternative embodiments without departing from the scope of the appended claims. In the claims, any reference signs placed between parentheses shall not be construed as limiting the claim. The word "comprising" does not exclude the presence of elements or steps not listed in a claim. The word "a" or "an" preceding an element does not exclude the presence of a plurality of such elements. The invention may be implemented by means of hardware comprising several distinct elements, and by means of a suitably programmed computer. In the unit claims enumerating several means, several of these means may be embodied by one and the same item of hardware. The usage of the words first, second and third, etcetera do not indicate any ordering. These words may be interpreted as names.