Unlock instant, AI-driven research and patent intelligence for your innovation.

Abnormal processing method and device for webpage script

An exception handling and exception technology, applied in the field of network security, can solve problems such as abnormal display of browser script pages, and achieve the effect of ensuring normal display and improving continuity

Active Publication Date: 2019-02-01
SHENZHEN TCL DIGITAL TECH CO LTD
View PDF5 Cites 0 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0004] The present invention provides a web page script exception processing method and device, aiming to solve the technical problem of abnormal page display when the browser script fails

Method used

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
View more

Image

Smart Image Click on the blue labels to locate them in the text.
Viewing Examples
Smart Image
  • Abnormal processing method and device for webpage script
  • Abnormal processing method and device for webpage script
  • Abnormal processing method and device for webpage script

Examples

Experimental program
Comparison scheme
Effect test

no. 1 example

[0117] Based on the first embodiment, the second embodiment of the webpage script exception processing device of the present invention is proposed. In this embodiment, the webpage script exception processing device also includes:

[0118] A determining module 105, configured to determine the degree of harm of the abnormal program statement based on the abnormal value when the abnormal value is greater than or equal to the preset threshold;

[0119] Among them, the degree of harm of the abnormal program statement includes level one, level two and level three. The degree of harm of level one means that the abnormal program statement will not cause harm to the browser and terminal system corresponding to the browser page, or the abnormal program statement It needs to cooperate with other conditions to cause harm to the browser corresponding to the browser page and the system of the terminal; the degree of harm is level two, which means that the abnormal program statement affects t...

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More

PUM

No PUM Login to View More

Abstract

An exception handling method for a webpage script comprises: upon detection of a script exception of a current browser webpage, capturing an erroneous program statement of the script exception (S101); obtaining an exception value of the captured erroneous program statement (S102); if the exception value is less than a predetermined threshold, then repairing the erroneous program statement, and running other program statements in the script (S103); and running the repaired erroneous program statement (S104). Also disclosed is an exception handling device for a webpage script. The above solution implements automatic repair of an erroneous program statement of a browser webpage. In addition, while the erroneous program statement is skipped and being repaired, other program statements in the script are executed first, thereby ensuring normal display of the browser webpage, and improving smoothness of browser page display.

Description

technical field [0001] The invention relates to the technical field of network security, in particular to a method and a device for processing exceptions in web page scripts. Background technique [0002] At present, with the advancement and widespread use of Internet technology, web applications such as browsers are becoming more and more abundant, and web applications such as browsers have become indispensable application tools for users when using the Internet. [0003] The use and visual effects of a webpage are inseparable from scripts embedded in the webpage, such as javascript scripts, and when a user opens a webpage in a browser, the browser often executes a large number of javascript scripts. However, due to various reasons, the browsers used by users to access the Internet may have one or another loophole or error, such as spelling mistakes, errors caused by using undefined variables or objects, etc. These errors do not have corresponding exception handlers. The c...

Claims

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More

Application Information

Patent Timeline
no application Login to View More
Patent Type & Authority Patents(China)
IPC IPC(8): G06F16/957
CPCG06F9/44
Inventor 陈慧
Owner SHENZHEN TCL DIGITAL TECH CO LTD