Browser page display method, electronic device, and storage medium

By compressing and sending the pixel data of the changed area of ​​the browser page in batches in the proxy server, the problem of poor browsing interactive experience caused by the large amount of data in the RBI method is solved, efficient data transmission and clear page display are achieved, which improves user experience. experience.

WO2024178849A1PCT designated stage expired Publication Date: 2024-09-06CHINANETCENT TECH
View PDF 5 Cites 0 Cited by

Patent Information

Application Number
PCT/CN2023/095123
Authority / Receiving Office
WO · WO
Patent Type
Applications
Current Assignee / Owner
Priority Date
2023-02-28
Filing Date
2023-05-18
Publication Date
2024-09-06

AI Technical Summary

Technical Problem

The browser display method based on Remote Browser Isolation (RBI) results in poor user browsing interaction experience, mainly due to the large amount of data transmitted and the client loading a lot of data, resulting in long waiting times for users and non-real-time browsing interaction responses.

Method used

Obtain the pixel data of the changed area of ​​the browser page in the proxy server and compress it. The data is sent twice: the first time is to send the compressed second pixel data, and the second time is to send the third pixel data for supplementation to reduce the amount of data and improve Transmission efficiency ensures that users obtain complete and clear browsing page information.

Benefits of technology

By reducing the amount of data transmission and improving transmission efficiency, it significantly reduces the delay for users to obtain page information, improves the real-time and clarity of browsing interactive experience, and provides a better user experience.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN2023095123_06092024_PF_FP
    Figure CN2023095123_06092024_PF_FP
Patent Text Reader

Abstract

The embodiments of the present application relate to network security technology. Disclosed are a browser page display method, an electronic device, and a storage medium. The browser page display method is applied to a proxy server, wherein the proxy server comprises a remote browser. The method comprises: according to a page which is currently displayed by a remote browser, acquiring first pixel data corresponding to a change area, and compressing the first pixel data, so as to obtain second pixel data; sending the second pixel data to a client, such that the client displays a corresponding browser page according to the second pixel data; according to the page which is currently displayed by the remote browser, acquiring third pixel data corresponding to the change area, wherein the third pixel data is used for supplementing pixels lost when the first pixel data is compressed; and sending the third pixel data to the client, such that the client displays a corresponding browser page according to the third pixel data. By means of the present application, an improvement in the browsing interaction experience of a user is at least facilitated.
Need to check novelty before this filing date? Find Prior Art

Description

Browser page display method, electronic device and storage medium

[0001] CROSS-REFERENCE TO RELATED APPLICATIONS

[0002] This application is based on the Chinese patent application with application number "202310189057.X" and application date of February 28, 2023, and claims the priority of the above-mentioned Chinese patent application. The entire content of the above-mentioned Chinese patent application is hereby incorporated into this application by introduction. Technical Field

[0003] The embodiments of the present application relate to network security technology, and in particular to a browser page display method, electronic device, and storage medium. Background Art

[0004] Web services face numerous security risks due to their open nature, diverse origin server technologies, and complex terminal environments. Web security has long been a major research area within existing network security. Remote Browser Isolation (RBI) technology is a currently proposed and important method for ensuring web security when browsing web pages. It is implemented by displaying the browser page returned by the origin server to a remote browser in a proxy server. The client receives the pixel data of the browser page displayed by the remote browser, thus preventing direct interaction between the origin server and the client, isolating the two and ultimately ensuring web security.

[0005] However, the current browser display method based on RBI provides users with a poor browsing interaction experience.

[0006] Summary of the Invention

[0007] The purpose of the embodiments of the present application is to provide a method for displaying a browser page, an electronic device, and a storage medium, which are at least conducive to improving the user's browsing interaction experience.

[0008] According to some embodiments of the present application, on the one hand, an embodiment of the present application provides a method for displaying a browser page, which is applied to a proxy server, and the proxy server includes a remote browser. The method includes: according to the page currently displayed by the remote browser, obtaining first pixel data corresponding to the changed area and compressing the first pixel data to obtain second pixel data; sending the second pixel data to the client, so that the client displays the corresponding browser page according to the second pixel data; according to the page currently displayed by the remote browser, obtaining third pixel data corresponding to the changed area, and the third pixel data is used to supplement the pixels lost when compressing the first pixel data; sending the third pixel data to the client, so that the client displays the corresponding browser page according to the third pixel data.

[0009] According to some embodiments of the present application, on the other hand, the embodiments of the present application also provide a method for displaying a browser page, which is applied to a client, and the client includes a local browser, and the method includes: receiving second pixel data; replacing the changed area in the page currently displayed by the local browser with the second pixel data; receiving third pixel data; and displaying the browser page to be displayed in the local browser based on the third pixel data; wherein the pixel data corresponding to the changed area of ​​the browser page to be displayed is first pixel data, the second pixel data is compressed data of the first pixel data, and the third pixel data is used to supplement the pixels lost when compressing the first pixel data.

[0010] According to some embodiments of the present application, on the other hand, an embodiment of the present application further provides an electronic device, comprising: at least one processor; and a memory communicatively connected to the at least one processor; wherein the memory stores instructions executable by the at least one processor, and the instructions are executed by the at least one processor so that the at least one processor can execute the browser page display method as described in any one of the above items.

[0011] According to some embodiments of the present application, on the other hand, embodiments of the present application further provide a computer-readable storage medium storing a computer program, which, when executed by a processor, implements the browser page display method as described in any one of the above items.

[0012] The technical solution provided by the embodiments of the present application has at least the following advantages:

[0013] The second pixel data is obtained by compressing the first pixel data corresponding to the changed area in the page currently displayed by the remote browser. Therefore, compared with the pixel data of the entire page currently displayed by the remote browser, the second pixel data has a smaller data volume and can be transmitted to the client more quickly, so that the content displayed in the changed area can be efficiently synchronized to the client and displayed together with other unchanged areas as a complete browser page for the user to obtain complete browsing page information; and on the basis of sending the second pixel data, third pixel data is sent to supplement the pixels lost when compressing the first pixel data, so that the client can supplement the second pixel data according to the third pixel data, thereby displaying the pixel data of the lossless changed area for the user to obtain lossless browsing page information. When a clear page can be displayed, it is also beneficial to reduce the delay in the user obtaining page information and improve the user's browsing interaction experience. BRIEF DESCRIPTION OF THE DRAWINGS

[0014] One or more embodiments are exemplarily illustrated by pictures in the corresponding drawings. These exemplifications do not constitute limitations on the embodiments. Elements with the same reference numerals in the drawings are represented as similar elements. Unless otherwise stated, the figures in the drawings do not constitute proportional limitations.

[0015] FIG1 is a flowchart of a method for displaying a browser page provided in an embodiment of the present application;

[0016] FIG2 is a flowchart of a method for displaying a browser page including a step of monitoring a page change event provided in an embodiment of the present application;

[0017] FIG3 is a flowchart of a method for displaying a browser page including a step of determining a compression rate provided in an embodiment of the present application;

[0018] 4 is a flowchart of a method for displaying a browser page including a step of obtaining a second task based on a timer, provided in an embodiment of the present application;

[0019] 5 is a flowchart of a method for displaying a browser page including a step of detecting a second task queue provided in an embodiment of the present application;

[0020] FIG6 is a flowchart of a method for displaying a browser page including a step of detecting whether to delay provided in an embodiment of the present application;

[0021] 7 is a flowchart of a method for displaying a browser page including a step of dividing a change area provided in an embodiment of the present application;

[0022] FIG8 is a schematic diagram of the interaction between internal processes of a proxy server related to a method for displaying a browser page provided in an embodiment of the present application;

[0023] 9 is a flowchart of a method for displaying a browser page including a step of receiving second pixel data provided in an embodiment of the present application;

[0024] FIG10 is a schematic structural diagram of an electronic device provided in an embodiment of the present application. DETAILED DESCRIPTION

[0025] As can be seen from the background art, the user browsing interaction experience of the current RBI-based browser page display method needs to be improved.

[0026] Analysis found that one of the reasons why the user browsing interaction experience of the RBI-based browser page display method is poor is that RBI synchronizes the pixel data of the complete page displayed by the remote browser to the client. The amount of data transmitted in this process is large, and the client needs to load a lot of data. The user waiting time is long, and the browsing interaction response is poor in real time, resulting in a poor user experience.

[0027] The technical solution provided by the embodiment of the present application no longer sends the pixel data of the entire page to the client each time. Instead, it sends the pixel data corresponding to the changed area. At this time, the client already has the pixel data of the remaining unchanged area, which will not affect the integrity of the information obtained by the user. In addition, the pixel data corresponding to the changed area is sent in two batches. First, the second pixel data obtained by compressing the first pixel data corresponding to the changed area is sent. The data volume is smaller, so that the new information can be displayed to the user more quickly. Then, the third pixel data is sent to supplement the pixels lost in the second pixel data. As a result, the user can finally obtain clear browsing information, taking into account the real-time and clarity of user browsing interaction, which is conducive to improving the user's browsing interaction experience.

[0028] To make the purpose, technical solutions, and advantages of the embodiments of the present application more clear, each embodiment of the present application will be described in detail below with reference to the accompanying drawings. However, those skilled in the art will appreciate that many technical details are provided in each embodiment of the present application to help readers better understand the present application. However, even without these technical details and various variations and modifications based on the following embodiments, the technical solutions claimed in the present application can still be implemented.

[0029] The following embodiments are divided for the convenience of description and should not constitute any limitation on the specific implementation of the present application. The various embodiments can be combined with each other and referenced to each other without contradiction.

[0030] In one aspect, an embodiment of the present application provides a method for displaying a browser page, which is applied to a proxy server, wherein the proxy server includes a remote browser. The remote browser is relative to the local browser of the client, emphasizing that it is not the same browser as the local browser deployed in the client, and the proxy server can be any one or more server devices with proxy functionality deployed with the remote browser. In some embodiments, the process of the method for displaying a browser page is shown in FIG1 and includes the following steps:

[0031] Step 101: According to the page currently displayed by the remote browser, first pixel data corresponding to the changed area is obtained and the first pixel data is compressed to obtain second pixel data.

[0032] In some embodiments, the changed area is an area in the remote browser display page that has changed relative to the previously displayed content. The first pixel data corresponding to the changed area refers to the data when the content of the page currently displayed by the remote browser is represented in the form of an image in the changed area. For example, a browser page is divided into three areas A, B, and C. At time T1, the contents displayed in areas A, B, and C are a1, b1, and c1 respectively. At time T1+ΔT (ΔT is greater than 0), the contents displayed in areas A, B, and C are a2, b2, and c1 respectively. The changed area at this time is area A + area B.

[0033] It should be noted that this embodiment does not limit the method of change. The content of the entire displayed page may be changed, such as when the remote browser reloads the page when the web page jumps, or the content of part of the displayed page may be changed, such as when a dialog box pops up during authentication. During the user's browsing process, any area of ​​the page currently displayed by the remote browser that has changed compared to the last complete page synchronized to the client can be regarded as the changed area; at the initial moment of the user's browsing, the entire page currently displayed by the remote browser can be regarded as the changed area.

[0034] In some embodiments, as shown in FIG2 , before obtaining first pixel data corresponding to a changed area relative to a previously displayed page based on the page currently displayed by the remote browser, the browser page display method further includes:

[0035] Step 105: monitor page change events, which include source site loading events and / or user interaction events related to page changes.

[0036] In some embodiments, monitoring can be achieved through various methods, such as detecting the content returned by the source station, detecting user instructions, etc., which will not be described in detail here.

[0037] Step 106: After detecting the page change event, determine the change area corresponding to the page change event.

[0038] When a user first starts browsing, they need to load the page for the first time, which causes changes to the page. These changes correspond to source site load events. While the user is browsing, changes to the page are typically caused by user interaction. In other words, source site load events and user interaction events related to page changes encompass both the initial load and the post-initial load browsing process. This helps unify the determination of change areas for both initial and non-initial page loads, reducing the difficulty of implementing page display throughout the browsing process.

[0039] It should also be noted that this embodiment does not limit the compression method. Any processing method that reduces the amount of the first pixel data while still allowing the reduced pixel data to be displayed may be used, such as chroma subsampling, transform coding, etc. In some examples, the first pixel data may be converted into the second pixel data to achieve data reduction, which will not be further described here.

[0040] In some embodiments, the compression rate used when compressing the first pixel data can be a dynamic value, so that the degree of pixel loss of the second pixel data relative to the first pixel data can be adjusted, thereby enabling a flexible and variable presentation effect to be presented on the client, which is conducive to improving user experience.

[0041] In some embodiments, as shown in FIG3 , the process of the method for displaying a browser page further includes the following steps:

[0042] Step 107: Determine the compression ratio according to the current working pressure of the proxy server.

[0043] In some embodiments, the operating pressure includes a transmission pressure and / or a process pressure.

[0044] Accordingly, step 101 may be implemented as follows: according to the page currently displayed by the remote browser, first pixel data corresponding to the changed area is acquired and the first pixel data is compressed according to a compression ratio to obtain second pixel data.

[0045] That is to say, the compression rate is associated with the working pressure of the proxy server so that the compression rate can adapt to the working pressure of the proxy server, thereby compressing the first pixel data at an appropriate compression rate while making full use of various resources, which is conducive to better reducing the amount of data without affecting work efficiency, thereby better synchronizing the pixel changes in the changed area to the client, and improving the client's display effect and user experience.

[0046] It should be noted that FIG3 only illustrates the implementation of step 101 after step 107. In some embodiments, step 107 may be implemented after or simultaneously with obtaining the first pixel data corresponding to the changed area based on the page currently displayed by the remote browser, and details will not be repeated here.

[0047] In some embodiments, the transmission pressure can be associated with the transmission of the second pixel data and / or the transmission of the third pixel data. In this way, associating the compression ratio with the transmission of the second pixel data and / or the third pixel data facilitates full utilization of transmission resources to efficiently transmit the compressed second pixel data to the client, thereby avoiding a situation where the amount of the second pixel data exceeds the amount of transmission data supported by the current transmission resources due to an excessively low compression ratio, thereby affecting the transmission efficiency of the second pixel data, and also avoids a situation where the current transmission resources become redundant due to an excessively high compression ratio.

[0048] In some embodiments, after sending the second pixel data, the browser page display method further includes: updating the transmission pressure based on the transmission status of the second pixel data. That is, based on the current transmission status of the second pixel data, a transmission status of the second pixel data to be subsequently transmitted by the proxy server is predicted. Because both the reference transmission status and the predicted transmission status are for the second pixel data, the current transmission status of the second pixel data is highly referenceable and the prediction accuracy is high, which is conducive to improving the accuracy of the compression ratio.

[0049] In some embodiments, after sending the third pixel data, the browser page display method further includes: updating the transmission pressure based on the sending status of the third pixel data. The sending of the third pixel data is close in time to the next sending of the second pixel data, and the description of information such as the network status at the time of sending is highly real-time, which is conducive to improving the accuracy of the compression ratio.

[0050] It should be noted that the browser display method can also update the transmission pressure based on both the second pixel data transmission status and the third pixel data transmission status. This increases the frequency of transmission pressure updates, improves the real-time nature of the recorded transmission pressure, and facilitates improved accuracy of the transmission pressure.

[0051] In some examples, in order to simplify the transmission pressure update process, the transmission pressure can be represented by relevant parameters obtained during the transmission of the second pixel data and / or the third pixel data, such as round-trip time (RTT), transmission delay, channel utilization, packet loss rate, etc.

[0052] Of course, the above is only an example of updating the transmission pressure. In some embodiments, the transmission pressure can also be related to other transmission processes of the proxy server. For example, the transmission pressure can also be related to the transmission situation when the proxy server interacts with the source station. This will further increase the update frequency of the transmission pressure, improve the real-time performance of the transmission pressure, and thus improve the accuracy of the compression rate. I will not go into details here.

[0053] In some embodiments, the processing pressure may be related to the proxy server's processing of at least one of the first pixel data, the second pixel data, and the third pixel data. Thus, associating the compression rate with the processing of the first pixel data, the second pixel data, and the third pixel data is beneficial for fully utilizing processing resources, such as a central processing unit (CPU) and storage resources, and balancing the processing efficiency of the first pixel data with each other and with the second pixel data and the third pixel data, thereby achieving overall efficient processing, reducing overall latency, and improving user experience.

[0054] In some embodiments, the processing process of the first pixel data, the second pixel data, and the third pixel data is represented in the form of tasks, so that the size of the processing pressure can be measured according to the number of tasks, which is conducive to simplifying the representation of the processing pressure, thereby improving the updating efficiency and implementation difficulty of the processing pressure.

[0055] To facilitate better understanding by those skilled in the art, the following describes an example of processing pressure update in a case where the processing of first pixel data is represented as a task.

[0056] In some embodiments, before obtaining the first pixel data corresponding to the changed area based on the page currently displayed by the remote browser, the browser page display method also includes: after determining that there is a changed area, adding a first task to a preset first task queue; wherein the first task is used to trigger the corresponding instruction to execute the first pixel data corresponding to the changed area corresponding to the currently obtained first task based on the page currently displayed by the remote browser.

[0057] That is to say, by determining the changed area, an instruction to add the first task to the preset first task queue is triggered, thereby triggering the corresponding instruction to promptly execute the page currently displayed by the remote browser and obtain the first pixel data corresponding to the changed area corresponding to the current first task.

[0058] Accordingly, before determining the compression rate according to the current working pressure of the proxy server, the method for displaying a browser page further includes: determining the processing pressure according to the number of first tasks in the first task queue.

[0059] Therefore, the processing pressure is updated according to the number of tasks related to the first pixel data that need to be processed. Considering that the processing of the first pixel data is mainly compression processing, the above process actually characterizes the processing pressure according to the number of compression tasks, that is, the compression rate is determined according to the number of compression tasks, which is conducive to achieving a balance between multiple compression tasks, achieving overall efficient processing, avoiding the impact of prior compression processing on subsequent compression processing, and helping to improve user experience.

[0060] Of course, in some embodiments, the processing process of the second pixel data and the third pixel data can also be represented as a task, and the compression rate can be updated accordingly, so that the processing of the first pixel data and the subsequent processing of the second pixel data and the third pixel data have corresponding efficiency, so that the second pixel data and the third pixel data can be synchronized to the client smoothly and efficiently, which is conducive to improving the user experience.

[0061] In some embodiments, the processing pressure can also be correlated with the amount of data being processed. Thus, by correlating the compression ratio with the amount of data being processed, different compression ratios can be provided for different amounts of data, which helps to provide relatively stable processing time based on different amounts of processed data, thereby better controlling the latency of the client displaying the corresponding browser page and improving the user experience.

[0062] In some embodiments, before determining the compression rate based on the current working pressure of the proxy server, the browser page display method further includes: determining the processing pressure based on the sizes of all changed areas for which the corresponding first pixel data is not currently obtained.

[0063] In other words, using the size of the changed region to represent the amount of data to be processed is intuitive and concise, which helps reduce the difficulty of measuring the amount of data to be processed. Furthermore, the sizes of all unprocessed changed regions (i.e., those for which the corresponding first pixel data has not been obtained) are obtained, taking into account all currently processed changed regions, which helps achieve overall efficiency.

[0064] Of course, in some embodiments, the processing pressure can also be updated according to the size of the changed area corresponding to the first pixel data that currently needs to be compressed, so that the attention will be more focused on the current task, which is conducive to efficiently processing the current first pixel data; or, the processing pressure can be updated according to the data volume of the first pixel data. The data volume of the first pixel data can more accurately describe the processing workload, which is conducive to more accurate determination of the compression rate, etc., which will not be elaborated here.

[0065] Step 102: Send the second pixel data to the client, so that the client can display a corresponding browser page according to the second pixel data.

[0066] In some embodiments, the sending method is not limited, and the data may be sent in an encrypted manner or in an unencrypted manner, or may be sent through a dedicated channel.

[0067] Step 103 : Acquire third pixel data corresponding to the changed area according to the page currently displayed by the remote browser. The third pixel data is used to supplement the pixels lost when compressing the first pixel data.

[0068] In some embodiments, the method for the third pixel data to supplement the pixels lost when compressing the first pixel data is not limited. Accordingly, the meaning and content of the third pixel data may vary depending on the supplement method.

[0069] In some examples, the third pixel data may include pixels lost when the first pixel data is compressed, so that the third pixel data is combined with the second pixel data to obtain the first pixel data, thereby compensating for the pixel loss caused by the compression of the first pixel data.

[0070] In some examples, the third pixel data may also include complete first pixel data, so that the third pixel data can compensate for pixel loss caused by compression of the first pixel data.

[0071] In some examples, the third pixel data may also be data that has been specifically processed, so that the third pixel data can be used together with the second pixel data to restore the first pixel data.

[0072] Of course, the above is only a specific example. In some examples, the third pixel data may also be any other type of data that can supplement the pixels lost when the first pixel data is compressed. Details will not be repeated here.

[0073] In some embodiments, as shown in FIG4 , before generating the third pixel data based on the page currently displayed by the remote browser, the method for displaying the browser page further includes:

[0074] Step 108: After determining that there is a changed area, add a second task to a preset second task queue.

[0075] That is, the addition of the second task to the second task queue is triggered and executed by the determination of the changed area.

[0076] Accordingly, obtaining the third pixel data corresponding to the changed area according to the page currently displayed by the remote browser can be achieved through the following steps:

[0077] Step 1031: Obtain a second task from a second task queue based on a timer.

[0078] Step 1032: triggering a corresponding instruction according to the second task currently obtained, so as to execute the acquisition of third pixel data corresponding to the changed area according to the page currently displayed by the remote browser.

[0079] That is to say, after the second task is added, it is not read and executed immediately, but is triggered and executed by a timer. Therefore, after the change area is determined, the reading and execution of the second task will be asynchronously realized with the compression of the first pixel data, thereby ensuring the sending order of the second pixel data first and the corresponding third pixel data later.

[0080] It can be understood that the second pixel data is obtained by compressing the first pixel data, that is, the image displayed by the second pixel data is a low-resolution image; and after the third pixel data supplements the pixels lost when compressing the first pixel data, the displayed image is a high-resolution image. Therefore, sending the second pixel data first and then the third pixel data will cause the low-resolution image to be displayed first and then the high-resolution image, avoiding the situation where the high-resolution image is displayed first and then the low-resolution image, which is beneficial to improving the display effect of the browser page and enhancing the user experience.

[0081] In some embodiments, as shown in FIG5 , obtaining the second task from the second task queue based on the timer can be implemented in the following manner: after the timer is triggered, obtaining the second task from the second task queue.

[0082] Furthermore, after triggering a corresponding instruction according to the currently acquired second task to execute the acquisition of third pixel data corresponding to the changed area according to the page currently displayed by the remote browser, the browser page display method further includes the following steps:

[0083] 1033. Check whether at least one second task is cached in the second task queue.

[0084] That is, after executing one second task, it is detected whether there is any second task waiting to be executed.

[0085] Step 1034 : When at least one second task is cached in the second task queue, the next second task is obtained from the second task queue to trigger the corresponding instruction until there is no second task cached in the second task queue.

[0086] That is, after executing one second task, if it is detected that there is another second task to be executed, the next second task waiting to be executed will be executed.

[0087] Combined with the aforementioned "after the timer is triggered, obtain the second task from the second task queue", it can be concluded that in some embodiments, the second task in the second task queue actually waits for the timer to be triggered, and after the timer is triggered, it starts to read and execute the second tasks in the second task queue in sequence until there is no second task waiting to be executed in the second task queue. After that, if the second task queue is added again, it will wait for the next timer to be triggered.

[0088] It should be noted that the timer triggering mechanism can be implemented in a variety of ways. For example, the timer can be continuously turned on so that it is triggered at a certain interval. At this time, if a second task is already being executed, no new second task will be read. If the second task is not currently being executed, the second task will be read from the second task queue. Alternatively, the timer is turned on after reading and executing the second queue in sequence and is triggered at a certain interval until there is at least one second task queue in the second task queue. The timer is then turned off and turned on again until all the second tasks in the second task queue are executed, etc.

[0089] In this way, the sequential execution of the second tasks triggered by the timer is beneficial to improving the execution efficiency when there are multiple second tasks to be executed, compared with the method of triggering the second tasks one by one by the timer, and is beneficial to avoiding the problem of confusing display content caused by the action triggered by the previous second task not being completed and the next second task having already started.

[0090] It should also be noted that Figure 5 only takes step 1033 and step 1034 being executed before step 104 as an example. In some embodiments, step 1033 and step 1034 can be executed after or at the same time as step 104, and step 104 can also be executed between step 1033 and step 1034, which will not be repeated here.

[0091] Of course, in some embodiments, a timer may trigger the reading and execution of the second tasks one by one.

[0092] It is understandable that the second pixel data and the third pixel data are obtained based on the page displayed by the remote browser when they are generated. In some cases, the page content displayed by the remote browser in the changed area may be inconsistent. To address these situations, in some embodiments, as shown in FIG6 , before obtaining the third pixel data corresponding to the changed area based on the page currently displayed by the remote browser, the browser page display method further includes:

[0093] Step 109 : Detect whether a delay occurs in the page currently displayed by the remote browser relative to the page displayed when the remote browser obtains the first pixel data corresponding to the changed area.

[0094] That is, it is detected whether a delay occurs between the pages displayed by the remote browser when the second pixel data and the third pixel data are generated.

[0095] In some cases, the occurrence of the delay indicates that the page currently displayed by the remote browser is inconsistent with the page displayed when the remote browser obtains the first pixel data corresponding to the changed area.

[0096] In some cases, the occurrence of the delay means that the time difference between the page currently displayed by the remote browser and the page displayed when the remote browser obtains the first pixel data corresponding to the changed area exceeds a preset time.

[0097] In some cases, the occurrence of the delay indicates that the page currently displayed by the remote browser is different from the page displayed by the remote browser when the first pixel data corresponding to the changed area is obtained by a preset number of pages.

[0098] Of course, the above are just specific examples. In some cases, they can be set according to needs, so I will not go into details here.

[0099] Accordingly, according to the page currently displayed by the remote browser, obtaining the third pixel data corresponding to the changed area is achieved without any delay.

[0100] In the event of a delay, the following steps can be implemented:

[0101] Step 1010: Obtain third pixel data corresponding to the next changed area according to the page currently displayed by the remote browser.

[0102] Each change area corresponds to the second pixel data and the third pixel data respectively. When there is a delay between the browser page when a certain second pixel data is generated and the browser page when the corresponding third pixel data is generated, it is no longer a low-resolution picture and a high-resolution picture of the same content. Therefore, the third pixel data obtained based on the content of the page currently displayed by the remote browser in the change area is no longer obtained. Instead, the third pixel data corresponding to the next change area is processed, which reduces the generation and transmission of invalid data, is beneficial to saving resources, and is beneficial to speeding up the processing of the third pixel data corresponding to subsequent change areas, and sending the undelayed third pixel data to the client in a timely manner, thereby improving user experience.

[0103] Delay detection can help reduce the problem of reduced user experience caused by sending delayed browser page pixel data to the client.

[0104] Of course, in some embodiments, in the event of a delay, it is also possible to detect the processing volume of the change area that currently needs to generate the corresponding third pixel data, and obtain the third pixel data of the current change area when the processing volume does not exceed the preset value, etc., which will not be elaborated here.

[0105] In some embodiments, as shown in FIG7 , before obtaining the third pixel data corresponding to the changed area according to the page currently displayed by the remote browser, the method for displaying the browser page further includes:

[0106] Step 1011: Divide the changed area into several tile areas.

[0107] Accordingly, step 103 is implemented in the following manner: according to the page currently displayed by the remote browser, the third pixel data corresponding to each tile area is sequentially acquired.

[0108] In some cases, the granularity of the division can be flexibly adjusted according to the processing pressure of the second pixel data and / or the third pixel data, which will not be described in detail here.

[0109] That is to say, the changed area is tiled, and the corresponding third pixel data is obtained and sent based on each tile area obtained by tiling. This helps to reduce the processing pressure and transmission pressure of the third pixel data, and can more efficiently synchronize the third pixel data to the client.

[0110] Step 104 : Send the third pixel data to the client, so that the client can display a corresponding browser page according to the third pixel data.

[0111] In some embodiments, the sending method is not limited. It can be sent encrypted or unencrypted, or sent through a dedicated channel.

[0112] To help those skilled in the art better understand the browser page display method provided by the above embodiment, an example is given below to illustrate it.

[0113] As shown in Figure 8, the proxy server's remote browser deploys two processes: the paint process and the improve process. When a page change event occurs, the paint process triggers. At this point, the paint process determines the change area corresponding to the page change event and adds the first task to the first task queue. Next, the compression rate determination and rendering processes are asynchronously triggered, triggering corresponding instructions to add the second task to the second task queue. Consequently, in the rendering process, second pixel data is generated based on the previously determined compression rate, the page change area, and the page currently displayed by the remote browser. This data is then sent to the corresponding client via the send interface during the send process. When the timer added when the remote browser window is created is triggered, the improve process is triggered to execute the second task, generate corresponding third pixel data, and send this data to the corresponding client via the send interface during the send process.

[0114] The improve process also reversely senses the processing pressure of the paint process and tiles the changed areas, thereby obtaining the third pixel data corresponding to each tile area. Furthermore, the improve process can optimize the second task in the second task queue based on the changes to the page displayed by the remote browser. Specifically, in the case of a delay as described in the aforementioned embodiment, the third pixel data corresponding to the next changed area is obtained, and the third pixel data corresponding to the currently processed changed area is no longer obtained.

[0115] In one aspect, an embodiment of the present application further provides a method for displaying a browser page, which is applied to a client, wherein the client includes a local browser. The client may be an electronic device capable of deploying a browser. In some embodiments, the process of the method for displaying a browser page is shown in FIG9 and includes the following steps:

[0116] Step 901: Receive second pixel data.

[0117] Step 902: In the page currently displayed by the local browser, the changed area is replaced with the second pixel data.

[0118] In some embodiments, the pixel data corresponding to the page currently displayed by the local browser includes another second pixel data or another third pixel data. In other words, the page currently displayed by the local browser may be the screen displayed after receiving the second pixel data corresponding to a certain changed area, or may be the screen displayed after receiving the third pixel data corresponding to a certain changed area.

[0119] Step 903: Receive third pixel data.

[0120] Step 904: Display the browser page to be displayed in the local browser according to the third pixel data.

[0121] In some embodiments, the pixel data corresponding to the changed area of ​​the browser page to be displayed is the first pixel data, the second pixel data is the compressed data of the first pixel data, and the third pixel data is used to supplement the pixels lost when the first pixel data is compressed.

[0122] That is, the local browser first displays the second pixel data obtained by compressing the first pixel data in the changed area, and then displays the third pixel data in the changed area, so that the changed area finally presents the display effect of the first pixel data.

[0123] It should be noted that, in some embodiments, the meanings of the changed area, the second pixel data, and the third pixel data correspond to those in the aforementioned embodiments, and are not described in detail here.

[0124] It is understandable that the implementation of step 904 may be different depending on the third pixel data. For example, when the third pixel data includes the complete first pixel data, the third pixel data can be displayed in the changed area; when the third pixel data includes pixels lost due to compression of the first pixel data, the third pixel data is combined with the second pixel data to restore the first pixel data and then displayed, etc.

[0125] The steps of the various methods above are divided only for the purpose of clear description. During implementation, they can be combined into one step or some steps can be split and decomposed into multiple steps. As long as they include the same logical relationship, they are all within the scope of protection of this patent. Adding insignificant modifications or introducing insignificant designs to the algorithm or process without changing the core design of the algorithm and process are all within the scope of protection of this patent.

[0126] Another aspect of the present application further provides a proxy server, including:

[0127] The first processing module is used to obtain first pixel data corresponding to the changed area according to the page currently displayed by the remote browser and compress the first pixel data to obtain second pixel data.

[0128] The second processing module is used to obtain third pixel data corresponding to the changed area according to the page currently displayed by the remote browser, and the third pixel data is used to supplement the pixels lost when the first pixel data is compressed.

[0129] The sending module is used to send the second pixel data to the client so that the client can display the corresponding browser page according to the second pixel data; and send the third pixel data to the client so that the client can display the corresponding browser page according to the third pixel data.

[0130] Another aspect of the present application further provides a client, including:

[0131] The receiving module is configured to receive the second pixel data; and receive the third pixel data.

[0132] The display module is configured to replace the changed area with the second pixel data in the page currently displayed by the local browser; and to display the browser page to be displayed in the local browser according to the third pixel data.

[0133] The pixel data corresponding to the changed area of ​​the browser page to be displayed is the first pixel data, the second pixel data is the compressed data of the first pixel data, and the third pixel data is used to supplement the pixels lost when compressing the first pixel data.

[0134] It is not difficult to find that the above two embodiments are device embodiments corresponding to the method embodiment, and the above two embodiments can be implemented in conjunction with the method embodiment. The relevant technical details mentioned in the method embodiment are still valid in the above two embodiments, and to reduce repetition, they are not repeated here. Accordingly, the relevant technical details mentioned in the above two embodiments can also be applied to the method embodiment.

[0135] It is worth mentioning that the modules involved in the above two embodiments are all logical modules. In actual applications, a logical unit can be a physical unit, a part of a physical unit, or a combination of multiple physical units. In addition, in order to highlight the innovation of this application, the above two embodiments do not introduce units that are not closely related to solving the technical problems proposed by this application. However, this does not mean that other units do not exist in the above two embodiments.

[0136] On the other hand, an embodiment of the present application further provides an electronic device, as shown in Figure 10, comprising: at least one processor 1001; and a memory 1002 communicatively connected to the at least one processor 1001; wherein the memory 1002 stores instructions that can be executed by the at least one processor 1001, and the instructions are executed by the at least one processor 1001 so that the at least one processor 1001 can execute the method described in any of the above method embodiments.

[0137] The memory 1002 and processor 1001 are connected using a bus. The bus may include any number of interconnected buses and bridges, connecting various circuits of one or more processors 1001 and memory 1002. The bus may also connect various other circuits such as peripheral devices, voltage regulators, and power management circuits. These are all well known in the art and are therefore not described further herein. The bus interface provides an interface between the bus and the transceiver. The transceiver may be a single component or multiple components, such as multiple receivers and transmitters, providing a unit for communicating with various other devices over a transmission medium. Data processed by the processor 1001 is transmitted over a wireless medium via an antenna. Furthermore, the antenna receives data and transmits it to the processor 1001.

[0138] The processor 1001 is responsible for managing the bus and general processing, and can also provide various functions, including timing, peripheral interfaces, voltage regulation, power management, and other control functions. The memory 1002 can be used to store data used by the processor 1001 when performing operations.

[0139] Another aspect of the present application is to provide a computer-readable storage medium storing a computer program that implements the above method embodiment when executed by a processor.

[0140] That is, those skilled in the art will understand that all or part of the steps in the above-mentioned embodiments can be implemented by instructing the relevant hardware through a program, which is stored in a storage medium and includes a number of instructions for causing a device (which may be a single-chip microcomputer, chip, etc.) or a processor to execute all or part of the steps of the methods described in the various embodiments of the present application. The aforementioned storage medium includes: a USB flash drive, a mobile hard drive, a read-only memory (ROM), a random access memory (RAM), a magnetic disk, or an optical disk, etc., various media that can store program code.

[0141] Those skilled in the art will appreciate that the above embodiments are specific embodiments for implementing the present application, and that in actual applications, various changes may be made thereto in form and detail without departing from the spirit and scope of the present application.

Claims

1. A method for displaying a browser page, applied to a proxy server, wherein the proxy server includes a remote browser, and the method includes: According to the page currently displayed by the remote browser, first pixel data corresponding to the changed area is acquired and the first pixel data is compressed to obtain second pixel data; Sending the second pixel data to a client, so that the client can display a corresponding browser page according to the second pixel data; According to the page currently displayed by the remote browser, obtaining third pixel data corresponding to the changed area, wherein the third pixel data is used to supplement pixels lost when compressing the first pixel data; The third pixel data is sent to the client, so that the client displays a corresponding browser page according to the third pixel data.

2. The method for displaying a browser page according to claim 1, wherein: Before compressing the first pixel data, the method further includes: Determining a compression rate according to a current working pressure of the proxy server, wherein the working pressure includes a transmission pressure and / or a processing pressure; The compressing the first pixel data comprises: The first pixel data is compressed according to the compression rate.

3. The method for displaying a browser page according to claim 2, wherein: The working pressure includes the transmission pressure, and the method further includes: After sending the second pixel data, updating the transmission pressure according to the sending status of the second pixel data; and / or, After sending the third pixel data, the transmission pressure is updated according to the sending status of the third pixel data.

4. The method for displaying a browser page according to claim 2 or 3, wherein: The working pressure includes the process pressure; Before obtaining the first pixel data corresponding to the changed area according to the page currently displayed by the remote browser, the method further includes: After determining that there is the changed area, adding a first task to a preset first task queue; wherein the first task is used to trigger a corresponding instruction to execute, according to the page currently displayed by the remote browser, obtaining the first pixel data corresponding to the changed area corresponding to the currently obtained first task; Before determining the compression rate according to the current working pressure of the proxy server, the method further includes: The processing pressure is determined according to the number of the first tasks in the first task queue.

5. The method for displaying a browser page according to claim 2 or 3, wherein: The working pressure includes the processing pressure. Before determining the compression rate according to the current working pressure of the proxy server, the method further includes: The processing pressure is determined according to sizes of all the changed regions for which the corresponding first pixel data is not currently acquired.

6. The method for displaying a browser page according to any one of claims 1 to 5, wherein: Before generating the third pixel data according to the page currently displayed by the remote browser, the method further includes: After determining that there is the changed area, adding a second task to a preset second task queue; The acquiring, according to the page currently displayed by the remote browser, third pixel data corresponding to the changed area comprises: Obtaining the second task from the second task queue based on a timer; According to the second task currently obtained, a corresponding instruction is triggered to execute, according to the page currently displayed by the remote browser, obtaining third pixel data corresponding to the changed area.

7. The method for displaying a browser page according to claim 6, wherein: The acquiring the second task from the second task queue based on a timer includes: After the timer is triggered, obtaining the second task from the second task queue; After triggering a corresponding instruction according to the currently acquired second task to execute the acquisition of third pixel data corresponding to the changed area according to the page currently displayed by the remote browser, the method further includes: Detecting whether at least one of the second tasks is cached in the second task queue; In the case where at least one second task is cached in the second task queue, the next second task is obtained from the second task queue to trigger the corresponding instruction until there is no second task cached in the second task queue.

8. The method for displaying a browser page according to any one of claims 1 to 7, wherein: Before acquiring the third pixel data corresponding to the changed area according to the page currently displayed by the remote browser, the method further includes: detecting whether a delay occurs in a page currently displayed by the remote browser relative to a page displayed by the remote browser when acquiring the first pixel data corresponding to the changed area; The acquiring, according to the page currently displayed by the remote browser, third pixel data corresponding to the changed area comprises: In the case where no delay occurs, the third pixel data corresponding to the changed area is obtained according to the page currently displayed by the remote browser.

9. The method for displaying a browser page according to claim 8, wherein: After detecting whether a delay occurs in the page currently displayed by the remote browser relative to the page displayed by the remote browser when acquiring the first pixel data corresponding to the changed area, the method further includes: In the event of a delay, the third pixel data corresponding to the next changed area is obtained according to the page currently displayed by the remote browser.

10. The method for displaying a browser page according to any one of claims 1 to 9, wherein: Before acquiring the third pixel data corresponding to the changed area according to the page currently displayed by the remote browser, the method further includes: Dividing the changed area to obtain a plurality of tile areas; According to the page currently displayed by the remote browser, the third pixel data corresponding to each tile area is acquired in sequence.

11. The method for displaying a browser page according to any one of claims 1 to 10, wherein: Before acquiring first pixel data corresponding to a changed area relative to a last displayed page according to the page currently displayed by the remote browser, the method further includes: Monitoring page change events, where the page change events include source site loading events and / or user interaction events related to page changes; After the page change event is detected, the change area corresponding to the page change event is determined.

12. A method for displaying a browser page, applied to a client, wherein the client includes a local browser, and the method includes: receiving second pixel data; In the page currently displayed by the local browser, replacing the changed area with the second pixel data; receiving third pixel data; Displaying a browser page to be displayed in the local browser according to the third pixel data; The pixel data corresponding to the changed area of ​​the browser page to be displayed is the first pixel data, the second pixel data is the compressed data of the first pixel data, and the third pixel data is used to supplement the pixels lost when compressing the first pixel data.

13. The method for displaying a browser page according to claim 12, wherein: The pixel data corresponding to the page currently displayed by the local browser includes another second pixel data or another third pixel data.

14. An electronic device comprising: at least one processor; as well as, a memory communicatively connected to the at least one processor; wherein, The memory stores instructions that can be executed by the at least one processor, and the instructions are executed by the at least one processor so that the at least one processor can execute the browser page display method described in any one of claims 1 to 11, or execute the browser page display method described in claim 12 or 13.

15. A computer-readable storage medium storing a computer program, wherein when the computer program is executed by a processor, the method for displaying a browser page according to any one of claims 1 to 11 is implemented, or the method for displaying a browser page according to claim 12 or 13 is implemented.

Citation Information

Patent Citations

  • Remote management system and method thereof

    CN107066106A

  • Image processing method and device, computer readable storage medium and computer equipment

    CN114155142A

  • Image processing method, device and equipment and computer readable storage medium

    CN114205584A

  • Access method, proxy server, electronic equipment and storage medium

    CN115563412A

  • Protecting web applications from untrusted endpoints using remote browser isolation

    US11245731B1