CN102722559B - A kind of course control method of the abnormal page, device and system - Google Patents

A kind of course control method of the abnormal page, device and system Download PDF

Info

Publication number
CN102722559B
CN102722559B CN201210176651.7A CN201210176651A CN102722559B CN 102722559 B CN102722559 B CN 102722559B CN 201210176651 A CN201210176651 A CN 201210176651A CN 102722559 B CN102722559 B CN 102722559B
Authority
CN
China
Prior art keywords
page
browser
abnormal
address
flash
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active - Reinstated
Application number
CN201210176651.7A
Other languages
Chinese (zh)
Other versions
CN102722559A (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.)
3600 Technology Group 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 CN201210176651.7A priority Critical patent/CN102722559B/en
Publication of CN102722559A publication Critical patent/CN102722559A/en
Application granted granted Critical
Publication of CN102722559B publication Critical patent/CN102722559B/en
Active - Reinstated legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Landscapes

  • Debugging And Monitoring (AREA)
  • Information Transfer Between Computers (AREA)

Abstract

The invention provides a kind of course control method and device of the abnormal page.Described method comprises: the page address list obtaining the abnormal page, and the described abnormal page comprises makes browser collapse and/or the stuck page; Judge that the page address of user's request access is whether in the list of described page address; If so, then create page independence subprocess by browser host process, and play up the page corresponding to page address that described request accesses by described page independence subprocess.When the present invention can avoid user to access the high-risk page, the normal use of browser is affected.

Description

A kind of course control method of the abnormal page, device and system
Technical field
The present invention relates to data processing field, particularly relate to a kind of course control method of the abnormal page, device and system.
Background technology
The render engine that browser kernel i.e. browser adopt, render engine determines the browser how content of display web page and the format information of the page, the kernel of current browser is multithreading, they cooperatively interact to keep synchronous under kernel control, and a browser at least realizes following three resident threads:
1, based on the single-threaded execution of event-driven, JS engine waits for that then the arrival of task in task queue is processed to Javascript engine thread (being called for short JS thread) always;
2, GUI (Graphical User Interface, graphic user interface) play up thread and be responsible for playing up browser interface, when interface needs redraw (repaint) or cause backflow (reflow) due to certain operation, this thread will perform.GUI plays up thread and JS engine is mutual exclusion, and when JS engine performs, GUI thread can be suspended, and GUI renewal can be stored in when JS engine is idle by the time in a queue and be performed immediately;
3, event triggers the tail of the queue that trigger event is added to pending queue by thread, waits for the process of JS thread.
Current internet is highly developed; various webpage emerges in an endless stream; web developer also level is uneven; part webpage is improper to Technology application such as JS, Flash when design; only unilaterally achieve Web demand, the page of working it out and browser-incompatible, and also do not carry out strict compatibility test afterwards; therefore occur a large amount of with Web page that is browser-incompatible, this kind ofly easily cause browser to collapse or the stuck page is referred to as the high-risk page.
Such as, the circulation that in webpage A, JS script is unlimited, takies the GUI that CPU will to hang up browser for a long time and upgrades, and event response below is also come in queue and can not get process, thus causes browser and cannot respond user operation and enter stuck death situation state; And for example, in webpage B, JS script has carried out a large amount of DOM operations, a GUI will be carried out at once play up once JS calls end, then just start to perform next task, so DOM operations a large amount of in JS also can cause event response slowly even real stuck browser.And for example, in webpage C, Flash AS script is absorbed in endless loop and causes system resource exhaustion, and browser is stuck.Access this kind of page to be easy to cause browser collapse stuck, cause whole browser to use.
Summary of the invention
Technical matters to be solved by this invention is to provide a kind of course control method of the abnormal page, and when avoiding user to access the high-risk page, the normal use of browser is affected.
Present invention also offers a kind of progress control unit and system of the abnormal page, in order to ensure said method application in practice and realization.
In order to solve the problem, the invention discloses a kind of course control method of the abnormal page, comprising:
Obtain the page address list of the abnormal page, the described abnormal page comprises makes browser collapse and/or the stuck page;
Judge that the page address of user's request access is whether in the list of described page address;
If so, then create page independence subprocess by browser host process, and play up the page corresponding to page address that described request accesses by described page independence subprocess.
Preferably, the address list of the described abnormal page is stored in browser end or server end.
Preferably, the address list of described server end is collected by least one browser end and end of uploading onto the server.
Preferably, the address list of described browser end is collected by browser end, or downloads from server end, and server end preserves the address list that at least one browser end is collected.
Preferably, the step that described browser end collects the page address list of the abnormal page comprises:
The render time of each page of monitoring browser, invalid handle and null pointer;
If the render time of certain page is greater than the first pre-set threshold value, or the number of times that described invalid handle/null pointer occurs in preset time period is more than the second pre-set threshold value, then judge that this page is as the abnormal page causing browser to collapse;
The address of this page is added in the page address list of the described abnormal page.
Preferably, the step that described browser end collects the page address list of the abnormal page also comprises:
According to each page transmission detect-message of predeterminated frequency to browser;
If do not receive the response of all pages to detect-message, then judge that this page is as the abnormal page causing browser stuck;
The address of the page do not responded is added in the page address list of the described abnormal page.
Preferably, the step that described browser end collects the address list of the abnormal page also comprises:
Reception user is fed back by browser, browser is collapsed and/or stuck page address, and adds in the page address list of the described abnormal page.
Preferably, in the page address list of the described abnormal page, part or all of address includes the abnormal information of the abnormal page further, and described abnormal information indicates it is that Flash exception and/or Javascript are abnormal.
Preferably, described method is by following steps determination abnormal information:
If the render time of this page is greater than the first pre-set threshold value, then described abnormal information is that Javascript is abnormal;
If the number of times that described invalid handle/null pointer occurs in preset time period is more than the second pre-set threshold value, or the Flash of the page is in preset Flash blacklist, then described abnormal information is that Flash is abnormal.
Preferably, if described page address is to having abnormal information, then described page independence subprocess comprises multiple, and the described step by browser host process establishment page independence subprocess comprises:
Page management process is created by browser host process;
Flash managing process and/or Javascript managing process is created according to described abnormal information by described page management process.
Preferably, the step that described page independence subprocess plays up the page comprises:
Described page independence subprocess initialization browser page;
Described browser page obtains content of pages corresponding to the page address of user's request access, and plays up the page corresponding to the page address of described request access according to described content of pages.
Preferably, the step that described page independence subprocess plays up the page comprises:
Described page management process initialization browser page, and send handle information to described Flash managing process and/or Javascript managing process;
Described Flash managing process and/or Javascript managing process according to the main frame of described handle information searching browser page, and determine the loading position of the page that Javascript plays up or Flash;
Described browser page obtains content of pages corresponding to the page address of user's request access, and the page that the position loaded according to described content of pages, Flash and/or Javascript play up carries out page rendering.
Preferably, described method also comprises, and is repaired there is abnormal Flash by following steps:
Judge that whether the version of the Flash of the described abnormal page is consistent with the recommendation version in initialized data base, if inconsistent, then download the Flash recommending version at server end.
Present invention also offers a kind of process control system of the abnormal page, comprising:
One server and at least one browser end;
Described server is configured to: the page address of the abnormal page submitted to by least one browser end described is added in the page address list of the abnormal page;
Described at least one browser end is configured to: the page address obtaining the abnormal page, and be sent to server end, and the page address list of the abnormal page is obtained from server end, and according to described page address list, carried out the Process flowchart of the abnormal page by the course control method of the above-mentioned abnormal page.
Present invention also offers a kind of progress control unit of the abnormal page, comprising:
Page address list acquisition module, for obtaining the page address list of the abnormal page, the described abnormal page comprises makes browser collapse and/or the stuck page;
Page address judge module, for judging that the page address of user's request access is whether in the list of described page address, if so, then executive process creation module;
Process creation module, for creating page independence subprocess by browser host process;
Page rendering module, the page that the page address for being played up described request access by described page independence subprocess is corresponding.
Preferably, described page address list is stored in browser end or server end.
Preferably, the address list of described server end is collected by least one browser end and end of uploading onto the server.
Preferably, the address list of described browser end is collected by browser end, or downloads from server end, and server end preserves the address list that at least one browser end is collected.
Preferably, described page address list acquisition module comprises:
Page rendering monitoring submodule, for monitoring the render time of each page of browser, invalid handle and null pointer;
Browser collapse decision sub-module, if the render time for certain page is greater than the first pre-set threshold value, or the number of times that described invalid handle/null pointer occurs in preset time period is more than the second pre-set threshold value, then judge that this page is as the abnormal page causing browser to collapse;
First object page list adds submodule, for adding the address of this page to described page address list.
Preferably, described page address list is set up module and is also comprised:
Detect-message send submodule, for according to each page from predeterminated frequency to browser send detect-message;
The stuck decision sub-module of browser, if for not receiving the response of all pages to detect-message, then judges that browser is stuck;
Second target pages list adds submodule, for adding the address of the page do not responded to page address list.
Preferably, described page address list is set up module and is also comprised:
Module is added in user feedback, and for receiving, user fed back by browser, browser collapsed and/or stuck page address, and adds in the list of described page address.
Preferably, in the address list of the described abnormal page, part or all of address includes the abnormal information of the abnormal page further, and described abnormal information indicates it is that Flash exception and/or Javascript are abnormal.
Preferably, described device is by following submodule determination abnormal information:
The abnormal submodule of Javascript, if be greater than the first pre-set threshold value for the render time of this page, then described abnormal information is that Javascript is abnormal;
The abnormal submodule of Flash, if the number of times occurred in preset time period for described invalid handle/null pointer is more than the second pre-set threshold value, or the Flash of the page is in preset Flash blacklist, then described abnormal information is that Flash is abnormal.
Preferably, if described page address is to having abnormal information, then described page independence subprocess comprises multiple, and described process creation module comprises:
First process creation submodule, for creating page management process by browser host process;
Second process creation submodule, for creating Flash managing process and/or Javascript managing process by described page management process according to described abnormal information.
Preferably, described page rendering module comprises:
First page initialization submodule, for described page independence subprocess initialization browser page;
First page plays up submodule, the content of pages that the page address for described browser page acquisition user request access is corresponding, and carries out page rendering according to described content of pages.
Preferably, described page rendering module comprises:
Second page initialization submodule, for described page management process initialization browser page, and sends handle information to described Flash managing process and/or Javascript managing process;
Information searching submodule, for described Flash managing process and/or the Javascript managing process main frame according to described handle information searching browser page, and determines the loading position of the page that Javascript plays up or Flash;
Second page rendering submodule, obtains content of pages corresponding to the page address of user's request access for described browser page, and the page that the position loaded according to described content of pages, Flash and/or Javascript play up carries out page rendering.
Preferably, described device also comprises reparation module, for being repaired there is abnormal Flash by following submodule:
Version judges submodule, for judging that whether the version of the Flash of the described abnormal page is consistent with the recommendation version in initialized data base;
Redaction downloads submodule, if for inconsistent, then downloads the Flash recommending version at server end.
Compared with prior art, the present invention has the following advantages:
The present invention is by collecting high-risk page list, for the network address of user's request access, if in described list, then create detached process and play up this page, isolate with browser process, even if thus the high-risk page is collapsed stuckly also can not affect the browser process of just producing, effectively solve the stuck whole browser caused of high-risk page collapse and cannot use problem, increase stability and the ease for use of browser, make good online to user and experience.
In addition; the present invention can when collecting the abnormal page; can also judge that the page is due to Flash exception or Javascript is abnormal; and after setting up page detached process; corresponding managing process is set up again for Flash or Javascript; when Flash or the Javascript collapse in the page is stuck, page process can not be affected, improve the stability of page process.
Accompanying drawing explanation
Fig. 1 is the process flow diagram of the course control method embodiment 1 of a kind of abnormal page of the present invention;
Fig. 2 is the process flow diagram of the course control method embodiment 2 of a kind of abnormal page of the present invention;
Fig. 3 is the structured flowchart of the progress control unit embodiment 1 of a kind of abnormal page of the present invention;
Fig. 4 is the structured flowchart of the progress control unit embodiment 2 of a kind of abnormal page of the present invention;
Fig. 5 is the structured flowchart of the process control system embodiment of a kind of abnormal page of the present invention.
Embodiment
For enabling above-mentioned purpose of the present invention, feature and advantage become apparent more, and below in conjunction with the drawings and specific embodiments, the present invention is further detailed explanation.
With reference to figure 1, show the process flow diagram of the course control method embodiment 1 of a kind of abnormal page of the present invention, specifically can comprise the following steps:
Step 101, obtain the page address list of the abnormal page, the described abnormal page comprises makes browser collapse and/or the stuck page.
In concrete realization, the address list of the described abnormal page can be stored in browser end or server end.
Wherein, the address list of described server end can be collected by least one browser end and end of uploading onto the server.The address list of described browser end can be collected by browser end, or downloads from server end, and server end can preserve the address list that at least one browser end is collected.In one preferred embodiment of the invention, described step 101 can comprise:
The render time of sub-step S11, each page of monitoring browser, invalid handle and null pointer;
If the render time of certain page of sub-step S12 is greater than the first pre-set threshold value, or the number of times that described invalid handle/null pointer occurs in preset time period is more than the second pre-set threshold value, then judge that this page is as the abnormal page causing browser to collapse;
Sub-step S13, the address of this page to be added in the page address list of the described abnormal page.
In the present invention, namely the browser generation abnormal behaviour place page is the high-risk page, monitoring browser abnormal behaviour, comprise collapse and/or stuck, these high-risk pages can be recorded, then add in target pages list.
Wherein, browser collapse can be judged by page rendering process, specifically, the render time of browser when each page of front opening can be monitored, if the render time of certain page exceedes preset value, then can think that browser there occurs collapse, namely described render time is the high-risk page causing browser to collapse more than the page of the first pre-set threshold value, the render time of expectation can be calculated, as the first pre-set threshold value according to user environment and content of pages; Or, also can be judged by the invalid handle of each page and null pointer, if the invalid handle of certain page and null pointer, the number of times occurred within the time period of presetting exceedes preset value, then can think that browser there occurs collapse, so, described invalid handle and null pointer exceed the page of preset value is exactly the high-risk page causing browser to collapse.Further, these high-risk pages can be added in the list of page address.
In concrete realization, the number of invalid handle and null pointer can carry out record by arranging abnormality processing function with SetUnhandledExceptionFilter, once there is invalid handle or null pointer in certain page, abnormality processing function will be recorded, if the number of times that invalid handle or null pointer occur continuously has exceeded the second pre-set threshold value (having occurred 3 times in such as 5 minutes), just think that browser there occurs collapse.
In one preferred embodiment of the invention, described step 101 can also comprise:
Sub-step S21, according to each page from predeterminated frequency to browser send detect-message;
If sub-step S22 does not receive the response of all pages to detect-message, then judge that this page is as the abnormal page causing browser stuck;
Sub-step S23, the address of the page do not responded to be added in the page address list of the described abnormal page.
Because browser is that Effect-based operation drives, each page current opened to browser sends message, if some pages (or GUI graphical user interface window) are not responded message, just mean that GUI thread there occurs stuck, namely think that browser is stuck, so, the page not doing to respond is exactly the high-risk page causing browser stuck.Further, these high-risk pages can be added in the list of page address.
In specific implementation, can according to each page transmission detect-message of predeterminated frequency (such as every 1000ms) to browser.
Due to the abnormal page be due to the Flash exception of this page and/or Javascript is abnormal caused, therefore, in concrete realization, in the address list of the described abnormal page, partly or entirely can include the abnormal information of the abnormal page further in address, described abnormal information can indicate it is that Flash exception and/or Javascript are abnormal.
Concrete, can by following steps determination abnormal information:
If the render time of this page is greater than the first pre-set threshold value, then described abnormal information is that Javascript is abnormal;
If the number of times that described invalid handle/null pointer occurs in preset time period is more than the second pre-set threshold value, or the Flash of the page is in preset Flash blacklist, then described abnormal information is that Flash is abnormal.
Above-mentionedly determining that the step of abnormal information can perform while judging the abnormal page, when being added in the list of page address the page address of the abnormal page, corresponding abnormal information can be added simultaneously.
Step 102, judge that the page address of user's request access is whether in the list of described page address, if so, then performs step 103.
Step 103, create page independence subprocess by browser host process.
If described page address is to having abnormal information, then described page independence subprocess comprises multiple, and the described step by browser host process establishment page independence subprocess comprises:
Sub-step S31, create page management process by browser host process;
Sub-step S32, create Flash managing process and/or Javascript managing process by described page management process according to described abnormal information.
If user asks the page address of opening in the list of described page address, then can create a page independence subprocess for managing this page.If correspondence has abnormal information in this page address, then can manage for causing abnormal Flash or Javascript to set up detached process again.
Detached process is the subprocess of browser host process, function (CreateReaderActiveXProcess) can be created by corresponding detached process to create, such as under Windows operating system, detached process can be created by CreateProcess, under linux operating system, fork () function creation detached process can be passed through.Because detached process is independent of browser host process, therefore, be namely the collapse or stuck of the high-risk page, also only can have influence on detached process, can't have influence on browser process, user can continue normally to use browser.
Step 104, to be played up the page corresponding to the page address of described request access by described page independence subprocess.
If user asks the page address of opening in described target pages list; then illustrate that this page is the high-risk page; browser collapse or stuck may be made, be the process avoiding the high-risk page to affect whole browser, a detached process can be created to play up this page.
Concrete, described step 104 can comprise:
Sub-step S41, described page independence subprocess initialization browser page;
Sub-step S42, described browser page obtain content of pages corresponding to the page address of user request access, and play up the page corresponding to the page address of described request access according to described content of pages.
In the present invention, detached process plays up process exactly, in one the independently page, open the high-risk page.Therefore, first initialization browser page is needed, i.e. initialization WebBrowser control, WebBrowser is a container of Microsoft's encapsulation, be used to be carried on window application and play up document that webpage and other browsers support, a page is exactly a WebBrowser container.The interface that detached process calls WebBrowser control just completes initialization.
After WebBrowser initialization, the content of pages that the played up high-risk page is corresponding can be obtained, concrete, can obtain content of pages by calling the high-risk network address of WebBrowser Navigate interface accessing, then WebBrowser can complete the work of page rendering according to the content of pages obtained.
In another preferred embodiment of the invention, described step 104 can comprise:
Sub-step S51, described page management process initialization browser page, and send handle information to described Flash managing process and/or Javascript managing process;
Sub-step S52, described Flash managing process and/or Javascript managing process according to the main frame of described handle information searching browser page, and determine the loading position of the page that Javascript plays up or Flash;
Sub-step S53, described browser page obtain content of pages corresponding to the page address of user request access, and the page that the position loaded according to described content of pages, Flash and/or Javascript play up carries out page rendering.
If correspondence has abnormal information in the list of page address, then can set up corresponding Flash managing process or Javascript managing process, when playing up the page, page management process, by sending handle information to Flash managing process or Javascript managing process, indicates the position that Flash loads, or the page that Javascript plays up, when carrying out page rendering, according to content of pages, and the page that the position that loads of Flash or Javascript play up, complete page rendering.
In concrete realization, if page address is to having abnormal information, can also repair occurring abnormal Flash.
Concrete, first judge that whether the version of the Flash of the described abnormal page is consistent with the recommendation version in initialized data base, if inconsistent, then download the Flash recommending version at server end.
With reference to figure 2, show the process flow diagram of the course control method embodiment 2 of a kind of abnormal page of the present invention, specifically can comprise the following steps:
Step 201, obtain the page address list of the abnormal page, the described abnormal page comprises makes browser collapse and/or the stuck page;
Step 202, reception user are fed back by browser, make the page address causing browser collapse and/or stuck abnormal behaviour, and add target pages list in the page address list of the described abnormal page to.
The high-risk page can be collected by the abnormal behaviour monitoring browser in step 201, in concrete realization, also can manually collect the high-risk page, can set up in a browser and feed back entrance accordingly, for submitting the high-risk page to; Also can collect user by social network sites, run the feedback of team or technician.
Step 203, judge that the page address of user's request access is whether in the list of described page address, if so, then performs step 204;
Step 204, create page independence subprocess by browser host process;
Step 205, to be played up the page corresponding to the page address of described request access by described page independence subprocess.
In sum, the present invention is by collecting high-risk page list, for the network address of user's request access, if in described list, then create detached process and play up this page, isolate with browser process, thus even if the high-risk page is collapsed stuckly also can not affect the browser process of just producing, the stuck whole browser caused of effective solution high-risk page collapse cannot use problem, increases stability and the ease for use of browser, makes good online experience to user.
In addition, the present invention can when collecting the abnormal page, can also judge that the page is because Flash or Javascript is abnormal, and after setting up page detached process, corresponding managing process is set up again for Flash or Javascript, when Flash or the Javascript collapse in the page is stuck, page process can not be affected, improve the stability of page process.
For embodiment of the method, in order to simple description, therefore it is all expressed as a series of combination of actions, but those skilled in the art should know, the present invention is not by the restriction of described sequence of movement, because according to 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 instructions all belongs to preferred embodiment, and involved action and module might not be that the present invention is necessary.
With reference to figure 3, show the structured flowchart of the progress control unit embodiment 1 of a kind of abnormal page of the present invention, specifically can comprise with lower module:
Page address list acquisition module 301, for obtaining the page address list of the abnormal page, the described abnormal page comprises makes browser collapse and/or the stuck page;
Page address judge module 302, for about judging that the page address of user's request access is whether in the list of described page address, if so, then executive process creation module;
Process creation module 303, for creating page independence subprocess by browser host process;
Page rendering module 304, the page that the page address for being played up described request access by described page detached process is corresponding.
In one preferred embodiment of the invention, described page address list can be stored in browser end or server end.
Wherein, the address list of described server end can be collected by least one browser end and end of uploading onto the server.The address list of described browser end can be collected by browser end, or downloads from server end, and server end preserves the address list that at least one browser end is collected.
In one preferred embodiment of the invention, described page address list acquisition module can comprise:
Page rendering monitoring submodule 3011, for monitoring the render time of each page of browser, invalid handle and null pointer;
Browser collapse decision sub-module 3012, if the render time for certain page is greater than the first pre-set threshold value, or the number of times that described invalid handle/null pointer occurs in preset time period is more than the second pre-set threshold value, then judge that this page is as the abnormal page causing browser to collapse;
First adds submodule 3013, for adding the address of this page to described page address list.
In one preferred embodiment of the invention, described target pages list is set up module and can also be comprised:
Detect-message send submodule 3014, for according to each page from predeterminated frequency to browser send detect-message;
The stuck decision sub-module 3015 of browser, if for not receiving the response of all pages to detect-message, then judges that browser is stuck;
Second adds submodule 3016, for adding the address of the page do not responded to page address list.
In one preferred embodiment of the invention, in the address list of the described abnormal page, part or all of address may further include the abnormal information of the abnormal page, and described abnormal information can indicate it is that Flash exception and/or Javascript are abnormal.
Concrete, can by following submodule determination abnormal information:
The abnormal submodule of Javascript, if be greater than the first pre-set threshold value for the render time of this page, then described abnormal information is that Javascript is abnormal;
The abnormal submodule of Flash, if the number of times occurred in preset time period for described invalid handle/null pointer is more than the second pre-set threshold value, or the Flash of the page is in preset Flash blacklist, then described abnormal information is that Flash is abnormal.
In one preferred embodiment of the invention, if described page address is to having abnormal information, then described page independence subprocess comprises multiple, and described process creation module 303 can comprise:
First process creation submodule 3031, for creating page management process by browser host process;
Second process creation submodule 3032, for creating Flash managing process and/or Javascript managing process by described page management process according to described abnormal information.
In one preferred embodiment of the invention, described page rendering module can comprise:
First page initialization submodule 3033, for described page independence subprocess initialization browser page;
First page plays up submodule 3034, the content of pages that the page address for described browser page acquisition user request access is corresponding, and carries out page rendering according to described content of pages.
In one preferred embodiment of the invention, described page rendering module 304 can comprise:
Second page initialization submodule 3041, for described page management process initialization browser page, and sends handle information to described Flash managing process and/or Javascript managing process;
Information searching submodule 3042, for described Flash managing process and/or the Javascript managing process main frame according to described handle information searching browser page, and determines the loading position of the page that Javascript plays up or Flash;
Second page rendering submodule 3043, obtains content of pages corresponding to the page address of user's request access for described browser page, and the page that the position loaded according to described content of pages, Flash and/or Javascript play up carries out page rendering.
In one preferred embodiment of the invention, described device can also comprise reparation module, for being repaired there is abnormal Flash by following submodule:
Version judges submodule, for judging that whether the version of the Flash of the described abnormal page is consistent with the recommendation version in initialized data base;
Redaction downloads submodule, if for inconsistent, then downloads the Flash recommending version at server end.
With reference to figure 4, show the structured flowchart of the progress control unit embodiment 2 of a kind of abnormal page of the present invention, specifically can comprise with lower module:
Page address list acquisition module 401, for obtaining the page address list of the abnormal page, the described abnormal page comprises makes browser collapse and/or the stuck page.
User feedback adds module 402, and for receiving, user fed back by browser, causes the page address of browser abnormal behaviour, and adds in the list of described page address.
Page address judge module 403, for about judging that the page address of user's request access is whether in the list of described page address, if so, then executive process creation module.
Process creation module 404, for creating page independence subprocess by browser host process;
Page rendering module 405, the page that the page address for being played up described request access by described page detached process is corresponding.
The progress control unit embodiment 2 of the abnormal page of the invention described above is preferably implemented in browser program, can process the abnormal page process in browser.
With reference to figure 5, show the structured flowchart of the process control system embodiment of a kind of abnormal page of the present invention, specifically can comprise:
One server 501 and at least one browser end 502;
Described server is configured to: the page address of the abnormal page submitted to by least one browser end described is added in the page address list of the abnormal page;
Described at least one browser end is configured to: the page address obtaining the abnormal page, and be sent to server end, and the page address list of the abnormal page is obtained from server end, and according to described page address list, carried out the Process flowchart of the abnormal page by the course control method of the above-mentioned abnormal page.
Because described device embodiment and system embodiment are substantially corresponding to the embodiment of the method shown in earlier figures 1 and Fig. 2, therefore not detailed part in the description of the present embodiment, see the related description in previous embodiment, just can not repeat at this.
The present invention can be used in numerous general or special purpose computing system environment or configuration.Such as: personal computer, server computer, handheld device or portable set, laptop device, multicomputer system, system, set top box, programmable consumer-elcetronics devices, network PC, small-size computer, mainframe computer, the distributed computing environment comprising above any system or equipment etc. based on microprocessor.
The present invention can describe in the general context of computer executable instructions, such as program module.Usually, program module comprises the routine, program, object, assembly, data structure etc. that perform particular task or realize particular abstract data type.Also can put into practice the present invention in a distributed computing environment, in these distributed computing environment, be executed the task by the remote processing devices be connected by communication network.In a distributed computing environment, program module can be arranged in the local and remote computer-readable storage medium comprising memory device.
In this article, term " comprises ", " comprising " or its any other variant are intended to contain comprising of nonexcludability, thus make to comprise the process of a series of key element, method, article or equipment and not only comprise those key elements, but also comprise other key elements clearly do not listed, or also comprise by the intrinsic key element of this process, method, article or equipment.When not more restrictions, the key element limited by statement " comprising ... ", and be not precluded within process, method, article or the equipment comprising described key element and also there is other identical element.
Above to the course control method of a kind of abnormal page provided by the present invention, a kind of progress control unit of the abnormal page, and, a kind of process control system of the abnormal page is described in detail, apply specific case herein to set forth principle of the present invention and embodiment, the explanation of above embodiment just understands method of the present invention and core concept thereof for helping; Meanwhile, for one of ordinary skill in the art, according to thought of the present invention, all will change in specific embodiments and applications, in sum, this description should not be construed as limitation of the present invention.

Claims (27)

1. a course control method for the abnormal page, is characterized in that, comprising:
Obtain the page address list of the abnormal page, the described abnormal page comprises makes browser collapse and/or the stuck page;
Judge that the page address of user's request access is whether in the list of described page address;
If so, then create page independence subprocess by browser host process, and the page independence subprocess created by described browser host process plays up the page corresponding to page address that described request accesses, and the described page is managed.
2. the method for claim 1, is characterized in that, the address list of the described abnormal page is stored in browser end or server end.
3. method as claimed in claim 2, it is characterized in that, when the address list of the described abnormal page is stored in server end, the address list of described server end is collected by least one browser end and end of uploading onto the server.
4. method as claimed in claim 2, it is characterized in that, when the address list of the described abnormal page is stored in browser end, the address list of described browser end is collected by browser end, or download from server end, server end preserves the address list that at least one browser end is collected.
5. the method as described in claim 3 or 4, is characterized in that, the step that described browser end collects the page address list of the abnormal page comprises:
The render time of each page of monitoring browser, invalid handle and null pointer;
If the render time of certain page is greater than the first pre-set threshold value, or the number of times that described invalid handle/null pointer occurs in preset time period is more than the second pre-set threshold value, then judge that this page is as the abnormal page causing browser to collapse;
The address of this page is added in the page address list of the described abnormal page.
6. method as claimed in claim 5, it is characterized in that, the step that described browser end collects the page address list of the abnormal page also comprises:
According to each page transmission detect-message of predeterminated frequency to browser;
If do not receive the response of certain page to detect-message, then judge that this page is as the abnormal page causing browser stuck;
The address of the page do not responded is added in the page address list of the described abnormal page.
7. method as claimed in claim 6, it is characterized in that, the step that described browser end collects the address list of the abnormal page also comprises:
Reception user is fed back by browser, browser is collapsed and/or stuck page address, and adds in the page address list of the described abnormal page.
8. method as claimed in claim 7, it is characterized in that, in the page address list of the described abnormal page, part or all of address includes the abnormal information of the abnormal page further, and described abnormal information indicates it is that Flash exception and/or Javascript are abnormal.
9. method as claimed in claim 8, is characterized in that, by following steps determination abnormal information:
If the render time of this page is greater than the first pre-set threshold value, then described abnormal information is that Javascript is abnormal;
If the number of times that described invalid handle/null pointer occurs in preset time period is more than the second pre-set threshold value, or the Flash of the page is in preset Flash blacklist, then described abnormal information is that Flash is abnormal.
10. method as claimed in claim 8, it is characterized in that, if described page address is to having abnormal information, then described page independence subprocess comprises multiple, and the described step by browser host process establishment page independence subprocess comprises:
Page management process is created by browser host process;
Flash managing process and/or Javascript managing process is created according to described abnormal information by described page management process.
11. the method for claim 1, is characterized in that, the step that described page independence subprocess plays up the page comprises:
Described page independence subprocess initialization browser page;
Described browser page obtains content of pages corresponding to the page address of user's request access, and plays up the page corresponding to the page address of described request access according to described content of pages.
12. methods as claimed in claim 10, is characterized in that, the step that described page independence subprocess plays up the page comprises:
Described page management process initialization browser page, and send handle information to described Flash managing process and/or Javascript managing process;
Described Flash managing process and/or Javascript managing process according to the main frame of described handle information searching browser page, and determine the loading position of the page that Javascript plays up or Flash;
Described browser page obtains content of pages corresponding to the page address of user's request access, and the page that the position loaded according to described content of pages, Flash and/or Javascript play up carries out page rendering.
13. methods as claimed in claim 8, is characterized in that, also comprise, and are repaired there is abnormal Flash by following steps:
Judge that whether the version of the Flash of the described abnormal page is consistent with the recommendation version in initialized data base, if inconsistent, then download the Flash recommending version at server end.
The process control system of 14. 1 kinds of abnormal pages, is characterized in that, comprising:
One server and at least one browser end;
Wherein, described browser end carries out the Process flowchart of the abnormal page by the method according to any one of claim 1-13.
The progress control unit of 15. 1 kinds of abnormal pages, is characterized in that, comprising:
Page address list acquisition module, for obtaining the page address list of the abnormal page, the described abnormal page comprises makes browser collapse and/or the stuck page;
Page address judge module, for judging that the page address of user's request access is whether in the list of described page address;
Process creation module, for when the judged result of described page address judge module is for being, creates page independence subprocess by browser host process;
Page rendering module, the page that the page address for being played up described request access by the page independence subprocess of described browser host process establishment is corresponding, and the described page is managed.
16. devices as claimed in claim 15, it is characterized in that, described page address list is stored in browser end or server end.
17. devices as claimed in claim 16, is characterized in that, when the address list of the described abnormal page is stored in server end, the address list of described server end is collected by least one browser end and end of uploading onto the server.
18. devices as claimed in claim 16, it is characterized in that, when the address list of the described abnormal page is stored in browser end, the address list of described browser end is collected by browser end, or download from server end, server end preserves the address list that at least one browser end is collected.
19. devices as described in claim 17 or 18, it is characterized in that, described page address list acquisition module comprises:
Page rendering monitoring submodule, for monitoring the render time of each page of browser, invalid handle and null pointer;
Browser collapse decision sub-module, if the render time for certain page is greater than the first pre-set threshold value, or the number of times that described invalid handle/null pointer occurs in preset time period is more than the second pre-set threshold value, then judge that this page is as the abnormal page causing browser to collapse;
First object page list adds submodule, for adding the address of this page to described page address list.
20. devices as claimed in claim 19, is characterized in that, described page address list acquisition module also comprises:
Detect-message send submodule, for according to each page from predeterminated frequency to browser send detect-message;
The stuck decision sub-module of browser, if for not receiving the response of a certain page to detect-message, then judges that browser is stuck;
Second target pages list adds submodule, for adding the address of the page do not responded to page address list.
21. devices as claimed in claim 20, is characterized in that, described page address list acquisition module also comprises:
Module is added in user feedback, and for receiving, user fed back by browser, browser collapsed and/or stuck page address, and adds in the list of described page address.
22. devices as claimed in claim 21, it is characterized in that, in the address list of the described abnormal page, part or all of address includes the abnormal information of the abnormal page further, and described abnormal information indicates it is that Flash exception and/or Javascript are abnormal.
23. devices as claimed in claim 22, is characterized in that, by following submodule determination abnormal information:
The abnormal submodule of Javascript, if be greater than the first pre-set threshold value for the render time of this page, then described abnormal information is that Javascript is abnormal;
The abnormal submodule of Flash, if the number of times occurred in preset time period for described invalid handle/null pointer is more than the second pre-set threshold value, or the Flash of the page is in preset Flash blacklist, then described abnormal information is that Flash is abnormal.
24. devices as claimed in claim 22, is characterized in that, if described page address is to having abnormal information, then described page independence subprocess comprises multiple, and described process creation module comprises:
First process creation submodule, for creating page management process by browser host process;
Second process creation submodule, for creating Flash managing process and/or Javascript managing process by described page management process according to described abnormal information.
25. devices as claimed in claim 15, it is characterized in that, described page rendering module comprises:
First page initialization submodule, for described page independence subprocess initialization browser page;
First page plays up submodule, the content of pages that the page address for described browser page acquisition user request access is corresponding, and carries out page rendering according to described content of pages.
26. devices as claimed in claim 24, it is characterized in that, described page rendering module comprises:
Second page initialization submodule, for described page management process initialization browser page, and sends handle information to described Flash managing process and/or Javascript managing process;
Information searching submodule, for described Flash managing process and/or the Javascript managing process main frame according to described handle information searching browser page, and determines the loading position of the page that Javascript plays up or Flash;
Second page rendering submodule, obtains content of pages corresponding to the page address of user's request access for described browser page, and the page that the position loaded according to described content of pages, Flash and/or Javascript play up carries out page rendering.
27. devices as claimed in claim 22, it is characterized in that, described device also comprises reparation module, repairs there is abnormal Flash for the following submodule comprised by it:
Version judges submodule, for judging that whether the version of the Flash of the described abnormal page is consistent with the recommendation version in initialized data base;
Redaction downloads submodule, if for inconsistent, then downloads the Flash recommending version at server end.
CN201210176651.7A 2012-05-31 2012-05-31 A kind of course control method of the abnormal page, device and system Active - Reinstated CN102722559B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201210176651.7A CN102722559B (en) 2012-05-31 2012-05-31 A kind of course control method of the abnormal page, device and system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201210176651.7A CN102722559B (en) 2012-05-31 2012-05-31 A kind of course control method of the abnormal page, device and system

Publications (2)

Publication Number Publication Date
CN102722559A CN102722559A (en) 2012-10-10
CN102722559B true CN102722559B (en) 2015-09-16

Family

ID=46948320

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201210176651.7A Active - Reinstated CN102722559B (en) 2012-05-31 2012-05-31 A kind of course control method of the abnormal page, device and system

Country Status (1)

Country Link
CN (1) CN102722559B (en)

Families Citing this family (26)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103810086B (en) * 2012-11-08 2017-12-22 腾讯科技(深圳)有限公司 Make processing method, the apparatus and system of the network address of browser collapse
CN103412812B (en) * 2013-08-23 2016-04-13 北京奇虎科技有限公司 Browser execution state monitoring method and device
CN103595708B (en) * 2013-10-22 2017-08-25 北京奇虎科技有限公司 The browser processing method of closing, system, browser and server extremely
CN106453509B (en) * 2013-10-22 2019-06-04 北京奇虎科技有限公司 Processing method that browser is closed extremely, system, browser and server
CN103544304A (en) * 2013-10-31 2014-01-29 北京国双科技有限公司 Method and device for analyzing Windows process data
CN104239514A (en) * 2014-09-16 2014-12-24 可牛网络技术(北京)有限公司 Webpage rendering method, device and mobile terminal
CN104361076B (en) * 2014-11-12 2018-02-09 腾讯科技(成都)有限公司 The abnormality eliminating method and device of browser
CN105589902A (en) * 2014-12-02 2016-05-18 ***股份有限公司 Method for accessing page of server through browser
CN104461829B (en) * 2014-12-15 2016-08-24 北京奇虎科技有限公司 Calculating equipment optimization method and apparatus based on window application
CN105809026B (en) * 2014-12-29 2019-02-01 北京奇虎科技有限公司 The authority configuring method and device of process
CN106919829A (en) * 2015-12-24 2017-07-04 北京奇虎科技有限公司 The means of defence and device of a kind of browser
CN105975325A (en) * 2016-04-22 2016-09-28 浙江工业大学 Control method for automatically jumping out of blocking code segment
CN106354577A (en) * 2016-08-22 2017-01-25 上海亿账通互联网科技有限公司 Crash information storage method and system
CN107784011B (en) * 2016-08-30 2021-10-08 阿里巴巴(中国)有限公司 Webpage access method, client, webpage server and programmable device
CN107870920B (en) * 2016-09-23 2023-01-31 深圳市雅阅科技有限公司 Browser resource pre-pulling method and device
CN106953738B (en) * 2016-10-11 2020-12-18 创新先进技术有限公司 Risk control method and device
CN108021496B (en) * 2016-10-28 2020-09-04 腾讯科技(深圳)有限公司 Thread data processing method and device
CN106547565B (en) * 2016-11-23 2021-08-03 努比亚技术有限公司 Browser exception reporting method and system
CN107665142B (en) * 2017-07-24 2020-04-07 平安科技(深圳)有限公司 Method, terminal and computer readable storage medium for detecting interruption of application program business process
CN108400884B (en) * 2018-01-10 2021-08-03 贝壳找房(北京)科技有限公司 Method, system and device for improving stability of website service
CN109902248B (en) * 2019-02-25 2021-07-13 百度在线网络技术(北京)有限公司 Page display method and device, computer equipment and readable storage medium
CN110442400B (en) * 2019-08-15 2023-04-18 网易(杭州)网络有限公司 Browser control method and device
CN111538553B (en) * 2020-04-21 2023-04-18 招商局金融科技有限公司 Dual-core Web desktop application access processing method and device and storage medium
CN112464124A (en) * 2020-12-11 2021-03-09 Oppo广东移动通信有限公司 Anomaly detection method, device and computer-readable storage medium
CN113407406B (en) * 2021-05-26 2023-06-23 中国联合网络通信集团有限公司 Abnormality monitoring method and abnormality monitoring system
CN115190160A (en) * 2022-05-25 2022-10-14 杭州脸脸会网络技术有限公司 Screen-off monitoring method and device for screen equipment, electronic device and storage medium

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102375758A (en) * 2010-08-20 2012-03-14 联芯科技有限公司 Method and device for preventing apparent death of browser of mobile communication equipment
CN102843393A (en) * 2011-06-22 2012-12-26 腾讯科技(深圳)有限公司 Running device and method of network application

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN100464524C (en) * 2007-04-13 2009-02-25 华为技术有限公司 Contents control method and system
CN101609470B (en) * 2009-07-02 2011-08-10 腾讯科技(深圳)有限公司 Method and device for preventing apparent death of multi-page browser

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102375758A (en) * 2010-08-20 2012-03-14 联芯科技有限公司 Method and device for preventing apparent death of browser of mobile communication equipment
CN102843393A (en) * 2011-06-22 2012-12-26 腾讯科技(深圳)有限公司 Running device and method of network application

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
汪汪."铜墙铁壁防挂马!360安全浏览器完全测评".《http://news.newhua.comnews1Eval_tools20091231091231151033B18IK635D46EI1JAJGG27IA316EC0H312509C9JCAGJD9_4.htmllt=common》.2009,1-5. *

Also Published As

Publication number Publication date
CN102722559A (en) 2012-10-10

Similar Documents

Publication Publication Date Title
CN102722559B (en) A kind of course control method of the abnormal page, device and system
Maji et al. Mitigating interference in cloud services by middleware reconfiguration
Gao et al. Mobile Testing-as-a-Service (MTaaS)--Infrastructures, Issues, Solutions and Needs
KR20210040884A (en) Edge computing test methods, devices, electronic devices and computer-readable media
US9336525B2 (en) Method and apparatus for enabling dynamic analytics configuration on a mobile device
US20090113407A1 (en) Managing software lifecycle
US9535754B1 (en) Dynamic provisioning of computing resources
US20130283090A1 (en) Monitoring and resolving deadlocks, contention, runaway cpu and other virtual machine production issues
US20150106813A1 (en) Method and apparatus for provisioning of resources to support applications and their varying demands
US9544399B2 (en) Visually depicting cloud resource utilization during execution of an application
CN111190673B (en) Page display method and device based on operation monitoring and electronic equipment
US10210079B2 (en) Touch free disaster recovery
CN109684038B (en) Docker service container log processing method and device and electronic equipment
US10469400B2 (en) Method and apparatus for provisioning of resources to support applications and their varying demands
US20170168843A1 (en) Thread-agile execution of dynamic programming language programs
CN110546615B (en) Super dynamic JAVA management extension
CN111198996A (en) Page display method and device and electronic equipment
CN116820908A (en) Locust-based performance test method, device, equipment and medium
KR101907660B1 (en) Terminal apparatus having operating system based on web and method for providing service using thereof
US20130325851A1 (en) Free-Text Search for Integrating Management of Applications
US10992733B1 (en) Workload management in hybrid clouds
Assuncao et al. Dynamic workflow reconfigurations for recovering from faulty cloud services
US20200142946A1 (en) Systems and methods for generating a snapshot view of virtual infrastructure
CN112491940A (en) Request forwarding method and device of proxy server, storage medium and electronic equipment
CN116244186A (en) Operating system test management method and device and computing equipment

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
ASS Succession or assignment of patent right

Owner name: QIZHI SOFTWARE (BEIJING) CO., LTD.

Effective date: 20121026

Owner name: BEIJING QIHU TECHNOLOGY CO., LTD.

Free format text: FORMER OWNER: QIZHI SOFTWARE (BEIJING) CO., LTD.

Effective date: 20121026

C41 Transfer of patent application or patent right or utility model
COR Change of bibliographic data

Free format text: CORRECT: ADDRESS; FROM: 100016 CHAOYANG, BEIJING TO: 100088 XICHENG, BEIJING

TA01 Transfer of patent application right

Effective date of registration: 20121026

Address after: 100088 Beijing city Xicheng District xinjiekouwai Street 28, block D room 112 (Desheng Park)

Applicant after: BEIJING QIHOO TECHNOLOGY Co.,Ltd.

Applicant after: Qizhi software (Beijing) Co.,Ltd.

Address before: The 4 layer 100016 unit of Beijing city Chaoyang District Jiuxianqiao Road No. 14 Building C

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

C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C14 Grant of patent or utility model
GR01 Patent grant
CF01 Termination of patent right due to non-payment of annual fee
CF01 Termination of patent right due to non-payment of annual fee

Granted publication date: 20150916

Termination date: 20190531

RR01 Reinstatement of patent right
RR01 Reinstatement of patent right

Former decision: termination of patent right due to unpaid annual fee

Former decision publication date: 20200522

TR01 Transfer of patent right
TR01 Transfer of patent right

Effective date of registration: 20220826

Address after: No. 9-3-401, No. 39, Gaoxin 6th Road, Binhai Science and Technology Park, High-tech Zone, Binhai New District, Tianjin 300000

Patentee after: 3600 Technology Group 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.