CN102236587B - Recovery method for abnormal firefox browser - Google Patents

Recovery method for abnormal firefox browser Download PDF

Info

Publication number
CN102236587B
CN102236587B CN2010101584115A CN201010158411A CN102236587B CN 102236587 B CN102236587 B CN 102236587B CN 2010101584115 A CN2010101584115 A CN 2010101584115A CN 201010158411 A CN201010158411 A CN 201010158411A CN 102236587 B CN102236587 B CN 102236587B
Authority
CN
China
Prior art keywords
firefox
page
browser
abnormal
exception reporting
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
Application number
CN2010101584115A
Other languages
Chinese (zh)
Other versions
CN102236587A (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.)
China Standard Software Co Ltd
Original Assignee
China Standard Software 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 China Standard Software Co Ltd filed Critical China Standard Software Co Ltd
Priority to CN2010101584115A priority Critical patent/CN102236587B/en
Publication of CN102236587A publication Critical patent/CN102236587A/en
Application granted granted Critical
Publication of CN102236587B publication Critical patent/CN102236587B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Alarm Systems (AREA)
  • Fire Alarms (AREA)

Abstract

The invention relates to a recovery method for an abnormal firefox browser. The method comprises the following steps of: (1) keeping a default processing mode of the firefox browser under an abnormal condition through configuration: guaranteeing that a firefox abnormality reporter program is called in the case of abnormality; (2) amending the abnormality reporter program, and substituting the abnormality reporter program of the firefox browser with an executable recovery program, thereby starting the browser at the page where the abnormality just occurs; and (3) acquiring the correct effective page which is accessed at last by the firefox browser, restarting the firefox browser and accessing the effective page. The recovery method for the firefox browser abnormity can guarantee that the abnormity of the firefox browser is monitored and the firefox browser is quickly recovered to the page causing the abnormity under the abnormal condition.

Description

Firefox browser abnormal restoring method
Technical field
The present invention relates to a kind of firefox browser abnormal restoring method, espespecially a kind of under the Linux platform, the method that causes abnormal browser automatically to recover because of third party's assembly or other reasons.
Background technology
In present Web experienced and develops, it was a kind of mode of commonly using that browser carries out abundant in content product development in conjunction with assemblies such as all kinds of plug-in units, expansions.Wherein, Adobe Flash Player is present most popular multimedia plug-in unit, and it provides breakthrough Web to experience as a cross-platform browser plug-in, becomes and is fit to the instrument that exploitation is created rich Internet application, flowed video/audio.Yet under the Linux platform, the browser components such as Adobe Flash Player often can cause the abnormal phenomenon of firefox while moving under firefox.In the situation that use browser as user's operation or experience carrier, in a single day firefox runs into extremely, acquiescence can eject the exception reporting device, system can enter dead state afterwards, in the situation that can not automatically recover to restart system, this is belonging to high level availability issue aspect the web product of development support flash on based on firefox under Linux platform, and this class problem finally can cause the miscarriage of product development.
As shown in Figure 1, in the situation that use browser as user's operation or experience carrier, in a single day the firefox browser runs into extremely, acquiescence can eject the exception reporting device, system can enter dead state afterwards, in the situation that can not automatically recover to restart system, its flow process as shown in Figure 1.
, if from the angle of firefox assembly, address this problem,, for closing source component,, as Adobe FlashPlayer,, even if determined reason, also can't revise its source code; For the assembly of increasing income,, even can revise its source code, also need first the source code of different assemblies is analyzed respectively and revised, solution does not have versatility., if from firefox browser source code aspect, address this problem, need to revise the exception handling of firefox inside; If from arrangement angles, address this problem, can only force to make it not eject the exception reporting device when firefox is abnormal, and the normal operation that can't recover firefox, also just can not solve well the availability issue of product.
Summary of the invention
For these reasons, the present invention is intended to address this problem by the mode of the exception handling (to the user, showing the exception reporting device) of revising firefox browser acquiescence, and does not need to revise simultaneously the source code of firefox browser or browser component (as Adobe Flash Player).
The present invention gets around and is difficult to solve the mode that causes abnormal cause, but by how quick and precisely recovering to solve browser after solving extremely, extremely produces disabled problem.
The purpose of this invention is to provide a kind of firefox of change acquiescence and eject the treatment mechanism of exception reporting device under abnormal conditions, make system can recover rapidly and continue normal operation after abnormal, the user is experienced and do not have any impact, and reach the compatible purpose of relevant third party's assemblies (containing plug-in unit and assembly) such as firefox and Adobe Flash Player.
The objective of the invention is to avoid revising and realizing to closing source component (as the modification of Adobe FlashPlayer), do not modified in the inside of the firefox that increases income simultaneously yet, but by revising the exception handling of firefox, add simultaneously quick restoring mechanism, realize the compatibility of firefox to all kinds of plug-in units, guarantee the stable operation of system.
The explanation of nouns of the relevant technical terms that the present invention relates to:
Adobe Flash Player: be a multimedia player or player plug-in unit, in this article, refer to the flash plug-in unit under browser.
Page jump: refer to that browser switches between different html pages by reloading page address in the same page, as browser, switch between www.***.com and two pages of www.163.com.Page jump relates to the release of page resource and reloads.
Browser component, plug-in unit, expansion: assembly is exactly control, object in ASP, its definition comprises plug-in unit and expansion.Plug-in unit is the program that a kind of application programming interfaces of following certain standard are write out, and the effect of plug-in unit is to make the WEB browser can directly call plug-in card program, for the treatment of data or the file of particular type.And expansion is the expansion of browser self function, as firefox self as skin, the modification of theme belongs to the expansion of firefox, and firefox to carry out video playback by Adobe Flash Player be the Plugin Mechanism that belongs to firefox.
The object of the invention is to:
, in order to guarantee the stability of system, do not allow firefox to occur abnormal or because firefox occurs abnormal, cause system unavailable;
Even it is abnormal to allow firefox to occur, but, in order the user not to be experienced and to impact, do not allow firefox to eject exception reporting device interface;
Even allow firefox abnormal rear ejection exception reporting device interface to occur, also can't complete browser by the exception reporting device that firefox gives tacit consent to and normally restart.
Wherein, the most typical application scenarios of the present invention is according to customer demand, linux system to be carried out the system of customization, as set-top-box system.
The technological means of the present invention's employing is: the present invention is basis take the exception reporting mechanism of browser firefox with the page access recording mechanism, replace the exception reporting device program of firefox by the application program that designs a recovery, and add and monitor and Restoration Mechanism, restart timely and accurately firefox after firefox is abnormal, the method for its realization comprises the following steps:
(1) keep the firefox browser by configuration in the situation that abnormal default treatment mode: guarantee to call firefox exception reporting device program when abnormal;
(2) revise exception reporting device (crash reporter) program, exception reporting device program with an executable recovery routine replacement firefox browser: the exception reporting device program that the application program of a recovery of design is replaced firefox, the exception handling that keeps firefox browser acquiescence, the abnormal prompt window of removal firefox browser; Simultaneously by calling recovery routine, for follow-up firefox browser is restarted and prepared at effective page place.
Further, can also comprise that step (3) obtains correct effective page of the last access of firefox browser, restart firefox and access and be somebody's turn to do " the effectively page ": according to the product application demand of reality, set up a kind of system monitoring mechanism of general product, obtain " the effectively page " of the last access of firefox browser; And realize that under the product systems of target the firefox browser returns to the normal condition that the page shows.
Of the present inventionly at useful technique effect, be: restarting of the abnormal rear acquiescence of existing firefox must be carried out manual operation by the exception reporting device under conventional system, yet be (great number of issues such as button operation and focus are arranged) that can not operate under custom-built system, and also can not meet the demands after restarting.Therefore, in case firefox is abnormal, after ejection exception reporting device, whole system will be absorbed in " deadlock " state, belongs to availability issue.Be generally not have the firefox browser under default situations to restart, also just do not have the contrast of restarting rear effect.The concrete Contrast on effect of realizing is: the result that the former causes is unavailable, even the latter does not extremely use and has any impact to system.
The abnormal restoration methods of firefox browser of the present invention, can guarantee the abnormal of monitoring firefox browser, and be restored to rapidly under abnormal state and cause the abnormal page.Simultaneously, because the firefox browser moves in internal memory, toggle speed is fast, just can restart from the abnormal page in 1s after abnormal, make user's experience aspect not have very large visible change, make under the Linux platform can be stable the various assemblies of use, the incompatibility problem that shield assembly brings, reach the usability requirements of product.
Description of drawings
Fig. 1 is the acquiescence flowchart of firefox browser after abnormal.
Fig. 2 is the flowchart that the present invention has the abnormal restoring ability.
Embodiment
The present invention take the exception reporting of browser firefox mechanism with the page access recording mechanism as basis, monitor and Restoration Mechanism by interpolation, the firefox of restarting promptly and accurately reaches the purpose of firefox and AdobeFlash Player compatibility.
The system of Web product generally all needs the firefox browser to carry out redirect at all kinds of pages, and below in conjunction with accompanying drawing Fig. 2, the invention will be further described as an example of following application scenarios example, but the present invention is not limited to the following examples.
Before entering the required http page after custom system starts, need transition pages carry out redirect (as transition pages be used for the Sampling network state with judge whether can the calling party homepage).To need two transition pages redirects to realize while supposing practical application: jump to jump.html by start.html, then by jump.html, jump to actual homepage index.html.If guarantee that firefox correctly recovers in time under of this sort application, must at first to firefox, be configured (step 10), that is: allow to close the firefox window by script; The inspection that forbidding is opened target pages; Allow the firefox exception reporting.
After firefox configuration step (10) is completed, need to carry out following steps:
(1) when firefox normally moves (step 11), with the firefox exception reporting device program monitoring of firefox browser acquiescence and judge whether firefox has (step 12) extremely.If the firefox no exceptions, firefox continues normal operation (step 11); Otherwise, with the abnormal restoring program, replace exception reporting device (crash reporter) program (step 13).
(2) firefox carries out with the abnormal restoring program and replaces exception reporting device (crash reporter) program (step 13); at first delete original exception reporting device (crash reporter) program; design again executable program of the same name (shell script) replacement exception reporting device (crash reporter) program that is used for realizing abnormal restoring; it can be started at just abnormal page place, be follow-up restarting firefox and access correct effective page and prepare.As shown in the dotted line frame in Fig. 2.
(3) detect page record (step 14): at first, obtain the page of the last access of firefox: the method for obtaining last accession page is by text filtering, obtains under the firefox User Catalog last the URL address in log file and is recorded as URL_NEW.Then, determine whether this page is " the effectively page ": if firefox is when certain is restarted, just in time at start.html, again abnormal on the system jump page of jump.html, the URL_NEW that by previous step, is got is exactly the transition pages of system, the address of effective page of depositing before need to obtaining from log file this moment, then complete corresponding work.
In the situation that the transition pages redirect is arranged, need to re-execute the redirect of transition pages, meet the product design demand.This be because, in the demand of some products, need to detect or configure system before enter actual User Page, as whether available in network, need in this case to do transition with some pages of realizing system configuration, in configuration with after determining, jump to actual User Page.Therefore, occur also needing to carry out such flow process after collapse, in order to meet the designing requirement of product.
(4) generate new effective page (step 15): at first, template page resume_jump_templet.html by jump.html builds resume_jump.html, the address of exception is write in the jump address of this file, then in conjunction with effective URL_NEW, generate an available jump.html page.
(5) restart firefox (step 16): firefox and at first access resume_start.html, jump to newly-generated resume_jump.html, then from this page jump to the abnormity point address that has just got, firefox returns to the abnormal front page, the final normal operation of recovery (step 11) by conversion of page.
The flash plug-in unit just causes the main object of numerous abnormal occurrencies, but not all.Simultaneously, this Restoration Mechanism also is applicable to all kinds of other and causes abnormal situation.Therefore, the present invention mainly is intended to the emphasis of protection system stability and Product Usability.No matter increasing income or close source,, in the situation that cause browsing abnormal, is to revise if close source item, is difficult to solve; If the project of increasing income, also need it is analyzed and transforms even revise, can the wasting manpower and material resources on solution.And now widely used flash player must solve abnormal problem.
And the present invention only causes the abnormal of browser firefox and reverts to example with player module Adobe Flash Player and describes, and in fact any employing third party assembly (containing plug-in unit and assembly) causes abnormal all in the scope that the present invention solves.

Claims (7)

1. firefox browser abnormal restoring method is characterized in that comprising step:
(1) keep the firefox browser by configuration in the situation that abnormal default treatment mode: guarantee to call firefox exception reporting device program when namely abnormal;
(2) revise exception reporting device program, with the exception reporting device program of an executable recovery routine replacement firefox browser;
(3) obtain correct effective page of the last access of firefox browser, restart firefox browser and this effective page of access;
Wherein, the correct active page face of the last access of described acquisition firefox browser comprises step: the page that obtains the last access of firefox; Determine whether this page is " the effectively page "; , in the situation that the transition pages redirect is arranged, need to re-execute the redirect of transition pages.
2. the method for claim 1 is characterized in that: wherein described in step (1) configuration comprise: allow to close the firefox window by script; The inspection that forbidding is opened target pages; Allow the firefox exception reporting.
3. the method for claim 1, it is characterized in that: wherein the concrete mode of step (2) is: revise exception reporting device program, design a replacement exception reporting device program and be used for realizing the executable program of the same name of abnormal restoring.
4. the method for claim 1, it is characterized in that: step (2) comprises a watchdog routine,, monitoring browser when abnormal, enables rapidly recovery routine and replaces the exception reporting device program of firefox browser.
5. the method for claim 1, it is characterized in that: the method for the last accession page of the described firefox of obtaining is:, by text search and filtration, obtain under the firefox User Catalog last the URL address in journal file and be recorded as URL_NEW.
6. the method for claim 1 is characterized in that: describedly determine that whether this page is that the method for effective page is:
When if firefox is restarted at certain, just in time at start.html, again abnormal on the system jump page of jump.html, last URL address URL _ NEW under the firefox User Catalog that gets in log file is exactly the transition pages of system, the address of effective page of depositing before need to obtaining this moment, then complete corresponding work.
7. the method for claim 1, it is characterized in that: after last the URL address URL _ NEW under getting effective firefox User Catalog in journal file, generate an available resume_jump.html page by this URL address and template html, then start firefox and arrive by page jump and show new effective page.
CN2010101584115A 2010-04-28 2010-04-28 Recovery method for abnormal firefox browser Active CN102236587B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN2010101584115A CN102236587B (en) 2010-04-28 2010-04-28 Recovery method for abnormal firefox browser

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN2010101584115A CN102236587B (en) 2010-04-28 2010-04-28 Recovery method for abnormal firefox browser

Publications (2)

Publication Number Publication Date
CN102236587A CN102236587A (en) 2011-11-09
CN102236587B true CN102236587B (en) 2013-11-13

Family

ID=44887257

Family Applications (1)

Application Number Title Priority Date Filing Date
CN2010101584115A Active CN102236587B (en) 2010-04-28 2010-04-28 Recovery method for abnormal firefox browser

Country Status (1)

Country Link
CN (1) CN102236587B (en)

Families Citing this family (20)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102546795A (en) * 2011-12-31 2012-07-04 成都巴比塔网络技术股份有限公司 Client-server conversation persisting method based on user dialogue mode
CN103581936B (en) * 2012-07-20 2018-11-23 百度在线网络技术(北京)有限公司 In the terminal for determining the method, apparatus and equipment of network state
CN103634337B (en) * 2012-08-22 2018-09-18 腾讯科技(深圳)有限公司 Page recovery, device and mobile terminal
CN103631706B (en) * 2012-08-27 2018-09-04 腾讯科技(深圳)有限公司 A kind of browser testing method and apparatus
CN103678019B (en) * 2012-09-17 2016-04-13 腾讯科技(深圳)有限公司 A kind of browser automatic recovery method and equipment
CN103678374A (en) * 2012-09-17 2014-03-26 腾讯科技(深圳)有限公司 Browser and method for restoring closed pages of browser
CN103399803B (en) * 2013-07-29 2017-05-03 小米科技有限责任公司 Method and device for collecting browser breakdown information and terminal equipment
CN105426267B (en) * 2014-09-18 2018-06-22 梧州学院 A kind of method of preservation based on windows systems with restoring user working status in computer
CN104361076B (en) * 2014-11-12 2018-02-09 腾讯科技(成都)有限公司 The abnormality eliminating method and device of browser
CN104392182B (en) * 2014-12-09 2018-06-22 中标软件有限公司 A kind of method and apparatus of shredding documents
CN104636251B (en) * 2014-12-30 2017-12-08 佛山市蠢材科技有限公司 A kind of more browser compatibility method of testings and system
CN104598128A (en) * 2015-01-09 2015-05-06 百度在线网络技术(北京)有限公司 Method and system for recommending solutions on basis of operation behaviors of users
WO2017120878A1 (en) * 2016-01-15 2017-07-20 杨瑛 Method for restarting browser webpage, and electronic device
CN107153585B (en) * 2016-03-02 2021-04-27 腾讯科技(深圳)有限公司 Recovery method and related device
CN107659425A (en) * 2016-07-26 2018-02-02 腾讯科技(深圳)有限公司 A kind of control method and server, terminal
CN106411945B (en) * 2016-11-25 2019-08-06 杭州迪普科技股份有限公司 A kind of access method and device of Web
CN108241688A (en) * 2016-12-26 2018-07-03 广州市动景计算机科技有限公司 A kind of page access method, apparatus and computing device
CN108491320A (en) * 2018-03-05 2018-09-04 平安普惠企业管理有限公司 Exception analysis method, device, computer equipment and the storage medium of application program
CN111459715A (en) * 2019-01-20 2020-07-28 华为技术有限公司 Application exception recovery
CN111782504B (en) * 2020-05-20 2023-12-01 车智互联(北京)科技有限公司 Application program abnormality diagnosis method, mobile terminal and readable storage medium

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101408861A (en) * 2007-10-11 2009-04-15 鸿富锦精密工业(深圳)有限公司 Real time monitoring system and method of application program
CN101587456A (en) * 2009-07-08 2009-11-25 腾讯科技(深圳)有限公司 Protection processing method and apparatus of software operation
CN101662474A (en) * 2009-09-29 2010-03-03 中国电信股份有限公司 Method and system for automatically recovering abnormal termination of mobile terminal streaming

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2010079382A (en) * 2008-09-24 2010-04-08 Hitachi Kokusai Electric Inc Software update method

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101408861A (en) * 2007-10-11 2009-04-15 鸿富锦精密工业(深圳)有限公司 Real time monitoring system and method of application program
CN101587456A (en) * 2009-07-08 2009-11-25 腾讯科技(深圳)有限公司 Protection processing method and apparatus of software operation
CN101662474A (en) * 2009-09-29 2010-03-03 中国电信股份有限公司 Method and system for automatically recovering abnormal termination of mobile terminal streaming

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
JP特开2010-79382A 2010.04.08

Also Published As

Publication number Publication date
CN102236587A (en) 2011-11-09

Similar Documents

Publication Publication Date Title
CN102236587B (en) Recovery method for abnormal firefox browser
JP6129402B2 (en) Creating a page snapshot
CN102184138B (en) Method and system for automatically reproducing and positioning software error
CN104346267B (en) Generate the method and device of bugs location information
TW201810071A (en) Page component dynamic layout method and apparatus, and client
US9612936B2 (en) Correlation of source code with system dump information
KR101990598B1 (en) Method and device for recommending solution based on user operation behavior
CN106126397A (en) The processing method of program crashing message and system
CN107066519B (en) Task detection method and device
CN106293669B (en) Webpage component generation method and device
US20140365833A1 (en) Capturing trace information using annotated trace output
CN110413432B (en) Information processing method, electronic equipment and storage medium
US10402264B2 (en) Packet-aware fault-tolerance method and system of virtual machines applied to cloud service, computer readable record medium and computer program product
CN113568841B (en) Risk detection method, device and equipment for small program
CN110895503B (en) Application performance monitoring method and client
US9965295B2 (en) Creating a custom series of commands
WO2014011711A2 (en) Extensible content focus mode
US20130290938A1 (en) Testing applications
US20150112946A1 (en) Computing device and data recovery method for distributed file system
GB2521637A (en) Messaging digest
CN108241543B (en) Method, service server and system for executing service operation breakpoint
CN112527643A (en) Front-end error detection method and device, electronic equipment and readable storage medium
CN103838575A (en) Plug-in type page customization implementation method based on EXTJS frame
CN107632899B (en) Snapshot service method and device of application server
CN103150222B (en) The method and apparatus of embedded system abnormal restoring

Legal Events

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

Owner name: CHINA STANDARD SOFTWARE CO., LTD.

Free format text: FORMER OWNER: SHANGHAI ZHONGBIAO SOFTWARE CO. LTD.

Effective date: 20120305

C41 Transfer of patent application or patent right or utility model
TA01 Transfer of patent application right

Effective date of registration: 20120305

Address after: 200030 room 1006-1010, Panyu Road, Shanghai, 1028

Applicant after: China Standard Software Co., Ltd.

Address before: 200030 Panyu Road, Shanghai, No. 10, building 1028, building

Applicant before: Shanghai Zhongbiao Software 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