Abstract:
The present invention discloses a method and an apparatus for isolating a page cookie. The method includes: when a predetermined login account logs in, assigning an independent cookie storage for the predetermined login account; after a request of creating a page associated with the predetermined login account is acquired, establishing a mapping relation table for storing a mapping relation between a page view identification of the page associated with the predetermined login account and the independent cookie storage; when the page associated with the predetermined login account is loaded, looking up the mapping relation table; and initiating, according to the independent cookie storage corresponding to the page view identification of the page associated with the predetermined login account found in the mapping relation table, a request of loading the page associated with the predetermined login account. In this manner, isolation between the page view of the page associated with the predetermined login account and a cookie of a page being logged into by another account in the same domain name is implemented, thereby improving user experiences.
Abstract:
Provided is an augmented reality-based information acquiring method and apparatus. The method is applied to a mobile terminal, including: determining whether a distance between the mobile terminal and an augmented reality target is shorter than a preset distance according to the position, a moving speed and a moving direction of the mobile terminal; sending acquired current scenario information and augmented reality target information to a server by the mobile terminal, if the distance between the mobile terminal and the augmented reality target is shorter than the preset distance; receiving and using augmented reality to display information of a point of interest related to the augmented reality target sent by the server and the current scenario. The embodiments of the present application can use the augmented reality technology to acquire information of a point of interest related to an augmented reality target in real time.
Abstract:
This application discloses a network attack determination method, a secure network data transmission method, and a corresponding apparatus. In this application, a browser client terminal obtains attack rules formulated by a rule configuration server, and after obtaining feedback information that is returned by a network according to a webpage browsing request, determines, according to a comparison result between the attack rules and the feedback information, whether the webpage browsing request encounters a network attack, thereby resolving a problem in the prior art that a network attack cannot be identified. In addition, after determining that a network attack is encountered, the browser client terminal performs network data transmission in a secure manner, which can avoid impact from the network attack, and improve security of network data transmission.
Abstract:
A method is provided for extracting page information. The method includes obtaining to-be-processed source code of a webpage; based on a preset filtering characteristic string and a preset tag matching mode, extracting target information from the source code; and generating page information in a specified format based on the extracted target information.
Abstract:
The present invention provides a method, an apparatus and a storage medium for processing an HTML5 Canvas application, said method comprising: in the first thread: CPU executes codes of a graphic drawing application to draw each frame of canvas, when it is detected that rendering is needed, all canvas drawing commands of said frame of canvas are cached without executing the corresponding rendering, and when the drawing of said frame of canvas is completed, all the cached canvas drawing commands of said frame of canvas are sent to a second thread; in the second thread, CPU calls GPU to execute all canvas drawing commands of each frame of canvas sent by the first thread, and GPU performs rendering on each frame of canvas according to the canvas drawing commands. The present invention realizes concurrent thread processing by means of caching drawing commands such that JavaScript codes and rendering can be executed simultaneously. As a result, resources of different threads are fully used to greatly increase the response speed of the HTML5 Canvas application and improve the performance of the HTML5 Canvas application.
Abstract:
The disclosure provides a method for executing extended JavaScript (JS) by using an extended JS interface. The method includes the following steps: inquiring an extension program whether to execute the extended JS at a predetermined occasion when a webpage is loaded, wherein the extension program is loaded when a browser is started up; the browser assembles the extended JS interface according to an open application programming interface (API) when determining that the extended JS is needed to be executed; executing the extended JS by using the extended JS interface. According to the disclosure, browsing mode and layout mode of a browser can be changed dynamically according to the requirement for webpage contents in the form of extension programs, accordingly browsing experience of users is improved.
Abstract:
In accordance with various embodiments of the disclosed subject matter, a method and an apparatus for checking and updating data on a client terminal are provided. In some embodiments, the method comprises: obtaining a presentation time interval between two adjacent presenting actions of target data on the client terminal, and obtaining an update time interval between two adjacent updating actions of the target data on a server; calculating a weighted mean value of the target data based on the presentation time interval and the update time interval, as well as a preset presentation weight and a preset update weight; and determining an update check period of the client terminal for periodically performing an update operation to the target data based on the weighted mean value.
Abstract:
In accordance with various embodiments of the disclosed subject matter, a webpage resource acquisition method, and an apparatus thereof are provided. In some embodiments, the method comprises: obtaining pre-read webpage resources from a web server through a communication network according to a pre-read algorithm; storing raw data of the pre-read webpage resources in a pre-read cache; and in response to receiving a loading instruction to load a target webpage resource, obtaining the raw data of one pre-read webpage resource that corresponds to the target webpage resource from the pre-read cache based on the loading instruction without going through the communication network.
Abstract:
A webpage reading method based on a mobile terminal is provided. The method includes: based on an input web address, loading current webpage contents corresponding to the web address from a webpage server and displaying the loaded webpage contents; when loading the current webpage contents, detecting whether a pre-reading keyword is included in an HTML file or DOM; when the pre-reading keyword exists, determining whether a percentage of the displayed contents with respect to entire current webpage contents reaches or exceeds a pre-set threshold value; when the percentage reaches or exceeds the pre-set threshold value, pre-reading and caching the next webpage contents based on a web address associated with the pre-reading keyword; and when a pre-set condition of displaying next webpage contents is satisfied, displaying the next webpage contents. The method pre-reads the next webpage contents before all current webpage contents are displayed and displays promptly the next webpage contents after a user finishes reading the current webpage contents, thereby reducing the time spent in waiting for reading the next webpage contents so as to improve the reading experience of the user.
Abstract:
A method for file downloading is described. The method comprises: transmitting a first request to a server to start a downloading process of a file; receiving a first destination address and a first cookie for the downloading process, wherein the first destination address and the first cookie are associated with the file; storing the first destination address, the first cookie, a link address associated with the file, and a web address associated with the link address; detecting an interruption of the downloading process; and responsive to detection of an interruption of the downloading process, transmitting a second request to the server for a second destination address and a second cookie associated with the file based on the link address and web address. The method further comprises resuming the downloading process of the file using the second destination address and the second cookie.