Browser control method and device, electronic equipment and computer readable storage medium
By processing file metadata information in the target remote browser agent of the remote server and sending it to the user's browser, the problem of inconvenience of remote browser file management is solved, and remote file operation processing is realized in an unstable network environment.
Patent Information
- Application Number
- CN202311308887.6
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2023-10-10
- Publication Date
- 2025-04-11
AI Technical Summary
Since the remote browser is not directly operated and controlled by the user, but is indirectly controlled and managed by the user's browser, it is difficult for users to manage the remote browser's file as convenient as the user's.
By receiving the data processing request from the user's browser in the target remote browser agent of the remote server, performing target data processing, determining the file metadata information of the target folder, and sending it to the user's browser, enabling the user's browser to remote file operation processing of the target folder based on the file metadata information.
When the network environment is poor or the user-side browser and the remote server are disconnected from the network, the user-side browser can still perform remote file operation and processing based on file metadata information, which improves the convenience and reliability of file management.
Smart Images

Figure CN119807557A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of computer technology, and in particular to a browser control method, device, electronic device and computer-readable storage medium. Background Art
[0002] In recent years, with the rapid development of information technology, people's information interaction has become more convenient, but it has also brought various information security risks. In order to deal with the information security risks brought by the use of browsers, remote browsers have come into being. Remote browsers refer to when users use client browsers to access external websites, they avoid directly accessing external websites. First, they access the remote browser deployed on the remote server, and then the remote browser on the remote server accesses the external website. After the access is successful, the remote browser generates a web page image and transmits it to the browser used by the user for display. Since the remote browser is not directly controlled by the user, but indirectly controlled and managed by the client browser, it is difficult for users to manage files on the remote browser as conveniently as on the client. Summary of the invention
[0003] The embodiments of the present application provide a browser control method, device, electronic device and computer-readable storage medium, which can solve the technical problem that the remote browser is not directly controlled by the user but is indirectly controlled and managed by the user-side browser, making it difficult for the user to manage files on the remote browser as conveniently as on the user side.
[0004] In a first aspect, an embodiment of the present application provides a browser control method, which is applied to a remote server, and the method includes:
[0005] In a scenario where a target remote browser proxy accesses a website through the remote server, receiving a data processing request sent by a browser of a user terminal;
[0006] Performing target data processing on the target folder based on the data processing request, and determining file metadata information of the target folder;
[0007] The file metadata information is sent to the user-side browser, where the file metadata information is used to instruct the user-side browser to perform remote file operation processing on the target folder.
[0008] Optionally, the method further comprises:
[0009] A user identifier corresponding to the user-side browser is obtained, and a target folder is created based on the user identifier, wherein the target folder is used to store target data obtained when the user-side browser accesses a website through the target remote browser agent.
[0010] Optionally, obtaining a user identifier corresponding to the browser of the user terminal includes:
[0011] A connection request sent by the client browser is received, a communication connection is established between the client browser and the target remote browser, and a user identifier corresponding to the client browser is determined based on the connection request.
[0012] Optionally, performing target data processing on a target folder in response to the data processing request to determine file metadata information of the target folder includes:
[0013] A target data download request for a target website is determined based on the data processing request, the target data is downloaded to a target folder based on the target data download request, and file metadata information of the target folder is determined after the target data download is completed.
[0014] Optionally, the file metadata information includes a file name item of at least one target data in the target folder; after sending the file metadata information to the user-side browser, the process further includes:
[0015] Receiving a remote file operation request sent by the user-side browser, wherein the remote file operation request is a request generated by the user-side browser in response to a user processing a target file name item in the file metadata information;
[0016] In response to the remote file operation processing request, a target file corresponding to the target file name item is determined in the target folder, and a remote file operation processing corresponding to the remote file operation request is performed on the target file.
[0017] Optionally, in response to the remote file operation processing request, determining a target file corresponding to the target file name item in the target folder, and performing a remote file operation processing corresponding to the remote file operation request on the target file includes:
[0018] When the remote file operation processing request is an open request, in response to the open request, a first target file corresponding to the target file name item is determined in the target folder based on the open request, and a remote file operation of opening the first target data in the target folder is performed based on the open request, the first target data matches the target file name item; or
[0019] When the remote file operation processing request is a deletion request, in response to the deletion request, a second target file corresponding to the target file name item is determined in the target folder based on the deletion request, and a remote file operation of deleting the second target data in the target folder is performed based on the deletion request, and the second target data matches the target file name item.
[0020] Optionally, the method further comprises:
[0021] Determine a first mapping relationship between the remote window and the local window based on the remote window in the target remote browser and the local window in the client browser that matches the remote window;
[0022] Determine a second mapping relationship between the first web page tag and the second web page tag based on the first web page tag in the remote window and the second web page tag in the local window that matches the first web page tag;
[0023] Receive a window separation request for the first web page tab sent by the user-side browser, wherein the window separation request is used to separate the first web page tab from the local window, process the window separation request based on the first mapping relationship and the second mapping relationship, generate a target window separation request for separating the second web page tab from the remote window, and separate the second web page tab from the remote window based on the target window separation request.
[0024] Optionally, after separating the second web page tag from the remote window based on the target window separation request, the method further includes:
[0025] After the first webpage tab is separated from the local window, determining a target local window bound to the first webpage tab;
[0026] Based on the first mapping relationship, detecting whether there is a target remote window matching the target local window in the target remote browser, and if there is a target remote window matching the target local window in the target remote browser, binding the second web page tag with the target remote window;
[0027] If there is no target remote window matching the target local window in the target remote browser, the target remote window is created, and the first mapping relationship is updated based on the mapping relationship between the target remote window and the target local window, and the second web page tag is bound to the target remote window.
[0028] In a second aspect, an embodiment of the present application provides a browser control method, which is applied to a user terminal, and the method includes:
[0029] In a scenario where a target remote browser proxy accesses a website through a remote server, a data processing request is sent to the target remote browser through the user-side browser of the user-side, so that the target remote browser performs target data processing on a target folder, and the target remote browser determines file metadata information of the target folder;
[0030] Based on the user-side browser receiving the file metadata information sent by the target remote browser, the user-side browser is controlled to display the file metadata information, and remote file operation processing is performed on the target folder based on the file metadata information.
[0031] In a third aspect, an embodiment of the present application provides a remote server, wherein the remote server comprises:
[0032] A data processing request receiving module, adapted to receive a data processing request sent by a browser of a user terminal in a scenario where a target remote browser proxy accesses a website through the remote server;
[0033] a determination module, adapted to perform target data processing on a target folder based on the data processing request, and determine file metadata information of the target folder;
[0034] The remote file operation module is adapted to send the file metadata information to the user-side browser, wherein the file metadata information is used to instruct the user-side browser to perform remote file operation processing on the target folder.
[0035] In a fourth aspect, an embodiment of the present application provides a user terminal, the user terminal comprising:
[0036] A sending module, adapted to send a data processing request to the target remote browser through the user-side browser of the user-side in a scenario where the target remote browser proxy accesses a website through the remote server, so that the target remote browser performs target data processing on a target folder, and the target remote browser determines file metadata information of the target folder;
[0037] The receiving module is adapted to receive file metadata information sent by the target remote browser based on the user-side browser, control the user-side browser to display the file metadata information, and perform remote file operation processing on the target folder based on the file metadata information.
[0038] In a fifth aspect, an embodiment of the present application provides an electronic device, the electronic device comprising:
[0039] Processor; and
[0040] A memory arranged to store computer executable instructions which, when executed, cause the processor to perform a method according to any one of the above.
[0041] In a fifth aspect, an embodiment of the present application provides a computer-readable storage medium, which stores one or more programs, and when the one or more programs are executed by a processor, implement any of the methods described above.
[0042] The beneficial effects brought about by the technical solutions provided in some embodiments of the present application include at least:
[0043] The embodiment of the present application provides a browser control method, after obtaining the file metadata information corresponding to the target folder from the target remote browser in the remote server, the file metadata information is sent to the user-side browser, so that when the network environment is poor, such as when the user-side browser cannot display the web page image generated by the remote browser, the user-side browser can still perform remote file operations on the target folder based on the file metadata information, and when the user-side browser and the remote server are disconnected from the network, the user-side browser can operate the file metadata information in the disconnected state, so that after the user-side browser is connected to the remote server, the remote file operations can be directly performed on the target folder through the file metadata information, thereby solving the technical problem that the remote browser is not directly operated and controlled by the user, but is indirectly controlled and managed by the user-side browser, making it difficult for the user to manage the files of the remote browser as conveniently as the user side. BRIEF DESCRIPTION OF THE DRAWINGS
[0044] In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the embodiments of the present application. For those skilled in the art, other drawings can be obtained based on these drawings without paying any creative work.
[0045] Figure 1 An exemplary system architecture diagram of a browser control method provided in an embodiment of the present application;
[0046] Figure 2 A flowchart of a browser control method provided in an embodiment of the present application;
[0047] Figure 3 A flowchart of another browser control method provided in an embodiment of the present application;
[0048] Figure 4 A flowchart of another browser control method provided in an embodiment of the present application;
[0049] Figure 5 A schematic diagram of a process of binding a second web page tag to a target remote window provided in an embodiment of the present application;
[0050] Figure 6 A flowchart of a browser control method applied to a user terminal provided by an exemplary embodiment of this specification;
[0051] Figure 7 A schematic diagram of the structure of a remote server provided as an exemplary embodiment of this specification;
[0052] Figure 8 A schematic diagram of the structure of a user terminal provided as an exemplary embodiment of this specification;
[0053] Fig. 9 A schematic diagram of the structure of an electronic device provided in an embodiment of this specification. DETAILED DESCRIPTION
[0054] In order to make the features and advantages of the embodiments of the present application more obvious and easy to understand, the technical solutions in the embodiments of the present application will be clearly and completely described below in conjunction with the drawings in the embodiments of the present application. Obviously, the described embodiments are only part of the embodiments of the present application, not all of them. Based on the embodiments in the embodiments of the present application, all other embodiments obtained by those skilled in the art without creative work are within the scope of protection of the embodiments of the present application.
[0055] In recent years, with the rapid development of information technology, people's information interaction has become more convenient, but it has also brought various information security risks. In order to deal with the information security risks brought by the use of browsers, remote browsers have emerged. Remote browsers refer to when users use the client browser to access external websites, not directly, but first access the remote browser deployed on the remote server, and then the remote browser on the remote server accesses the external website. After the access is successful, the remote browser generates a web page image and transmits it to the browser used by the user for display. When the user uses the remote browser, the downloaded and saved files are stored in the remote environment and cannot be used directly on the user side. Therefore, how users manage and use these files has become an important issue that needs to be solved urgently.
[0056] When the following description refers to the drawings, unless otherwise indicated, the same numbers in different drawings represent the same or similar elements. The embodiments described in the following exemplary embodiments do not represent all embodiments consistent with the present application. Instead, they are only examples of devices and methods consistent with some aspects of the present application as detailed in the attached claims.
[0057] The embodiment of the present application provides a browser control method. In a scenario where a website is accessed through a target remote browser proxy of a remote server, a data processing request is sent to the target remote browser of the remote server through a user-side browser. After receiving the data processing request, the target remote browser of the remote server performs target data processing on a target folder based on the data processing request. After the target data processing is completed, the file metadata information of the target folder is determined. After that, the target remote browser of the remote server sends the file metadata information to the user-side browser of the user end. The file metadata information is used to instruct the user-side browser to perform remote file operation processing on the target folder based on the file metadata information. Since the file metadata information is in the user-side browser, when the network environment is poor, such as when the user-side browser cannot display the web page image generated by the remote browser, the target file operation processing can still be performed on the target folder based on the file metadata information. In addition, when the user-side browser and the remote server are disconnected from the network, the user-side browser can operate the file metadata information in the disconnected state, so that after the user-side browser is connected to the remote server, the remote file operation processing can be directly performed on the target folder through the file metadata information, thereby solving the technical problem that the remote browser is not directly operated and controlled by the user, but indirectly controlled and managed by the user-side browser, making it difficult for the user to manage the files of the remote browser as conveniently as the user end.
[0058] See also Figure 1 , Figure 1 An exemplary system architecture diagram of a browser control method provided in an embodiment of the present application.
[0059] like Figure 1 As shown, the system architecture may include a user terminal 101, a network 102, and a remote server 103. The network 102 is used to provide a medium for a communication link between the user terminal 101 and the remote server 103. The network 102 may include various types of wired communication links or wireless communication links, for example, the wired communication link includes an optical fiber, a twisted pair, or a coaxial cable, and the wireless communication link includes a Bluetooth communication link, a Wireless-Fidelity (Wi-Fi) communication link, or a microwave communication link.
[0060] The user terminal 101 can interact with the remote server 103 through the network 102 to receive messages from the remote server 103 or send messages to the remote server 103, or the user terminal 101 can interact with the remote server 103 through the network 102 to receive messages or data sent by other users to the remote server 103. The user terminal 101 can be hardware or software. When the user terminal 101 is hardware, it can be various terminals, including but not limited to smart watches, smart phones, tablet computers, laptop portable computers and desktop computers. When the user terminal 101 is software, it can be installed in the terminals listed above, which can be implemented as multiple software or software modules (for example: used to provide distributed services), or it can be implemented as a single software or software module, which is not specifically limited here.
[0061] The remote server 103 may be a business server that provides various services. It should be noted that the remote server 103 may be hardware or software. When the remote server 103 is hardware, it may be implemented as a distributed server cluster consisting of multiple servers, or it may be implemented as a single server. When the remote server 103 is software, it may be implemented as multiple software or software modules (for example, for providing distributed services), or it may be implemented as a single software or software module, which is not specifically limited herein.
[0062] In the embodiment of the present application, the user terminal 101 can send a data processing request to the target remote browser through the user terminal browser of the remote server in the scenario of accessing the website through the target remote browser proxy, so that the target remote browser performs target data processing on the target folder and determines the file metadata information of the target folder; based on the user terminal browser receiving the file metadata information sent by the target remote browser, the user terminal browser is controlled to display the file metadata information, and remote file operation processing is performed on the target folder based on the file metadata information.
[0063] In an embodiment of the present application, the remote server 103 can receive a data processing request sent by a user-side browser in a scenario where a website is accessed through a target remote browser agent of the remote server; perform target data processing on a target folder based on the data processing request, and determine file metadata information of the target folder; and send the file metadata information to the user-side browser, where the file metadata information is used to instruct the user-side browser to perform remote file operation processing on the target folder.
[0064] It should be understood that Figure 1 The number of user terminals, networks and remote servers in the figure is only for illustration and can be any number of user terminals, networks and remote servers according to implementation requirements.
[0065] See also Figure 2 , Figure 2 A flowchart of a browser control method provided in an embodiment of the present application. The execution subject of the embodiment of the present application can be a remote server that executes a browser control method, or a processor in a remote server that executes a browser control method, or a browser control service in a remote server that executes a browser control method. For the convenience of description, the specific execution process of the browser control method is introduced below by taking the execution subject being a processor in a remote server as an example.
[0066] like Figure 2 As shown, the browser control method includes:
[0067] S202: In a scenario where a website is accessed through a target remote browser proxy of a remote server, a data processing request sent by a browser of a user terminal is received.
[0068] Exemplarily, in a scenario where a user-side browser of a user terminal accesses a website through a target remote browser proxy of a remote server, a communication connection is established between the user-side browser of the user terminal and the target remote browser of the remote server. When accessing a website based on the target remote browser proxy of the remote server, the target remote browser of the remote server can send an image of the website page to the user-side browser of the user terminal for display, and the user can make further operations on the image of the website page displayed by the user-side browser, thereby sending a data processing request based on the user-side browser to control the target remote browser to make corresponding operations on the website page.
[0069] S204: Perform target data processing on the target folder based on the data processing request, and determine file metadata information of the target folder.
[0070] After receiving the data processing request sent by the user end through the user end browser, the target remote browser in the remote server performs target data processing on the target folder based on the data processing request, wherein the target folder is a storage folder corresponding to the files downloaded and saved when the user end browser of the user end accesses the website through the target remote browser proxy of the remote server. Of course, the target folder can also be a folder used by the remote server to store files, not limited to the folder corresponding to the target remote browser.
[0071] Moreover, after the target data processing is performed on the target folder, the remote files in the target folder may change or remain unchanged, such as the increase, unchanged or decrease in the number of remote files, and the replacement of remote files. Obtain the file metadata information of the target folder. The target folder includes at least one remote file, and the file metadata information is the information of the data attributes of each remote file in the target folder. The file metadata information may include a file name item of at least one remote file in the target folder; or, the file metadata information includes a file identification item of at least one remote file in the target folder. Here, the file name item can be understood as a file name file corresponding to the name of the remote file in the target folder, that is, the file name item is not a source file without a corresponding remote file, but a project file with an identification in the remote file for distinguishing other remote files. For example, each remote file has a different file name, which can be used as a file identification, and a corresponding file name item can be established based on the file name of each remote file, and then the file metadata information is obtained based on the file name item.
[0072] For another example, each remote file may have a different number, which may be used as a file identifier. A corresponding file identification item may be established based on the file identifier of each remote file, and then the file metadata information may be obtained based on the file identification item.
[0073] It should be noted that the file metadata information of the target folder is different from the source file corresponding to the remote file in the target folder. The file metadata information of the target folder can be understood as the file directory information corresponding to the remote file in the target folder.
[0074] S206: Send the file metadata information to the user-side browser, where the file metadata information is used to instruct the user-side browser to perform remote file operation processing on the target folder.
[0075] After the target remote browser of the remote server determines the file metadata information of the target folder, the target remote browser of the remote server sends the file metadata information to the user-side browser of the user end, so that the user-side browser of the user end can perform remote file operation processing on the target folder based on the file metadata information. For example, when the file metadata information contains a file name item of at least one remote file in the target folder, since the file name item and the remote file correspond to each other, the operation performed on the file name item in the file metadata information can be sent to the target remote browser of the remote server, so that the target remote browser performs remote file operation processing on the remote file corresponding to the file name item in the target folder. The user-side browser of the user end can store and display the received file metadata information.
[0076] The file metadata information may include but is not limited to the file list information corresponding to the target folder. The user-side browser of the user side may display the file list information after receiving it, and the user may also operate the file name item in the file list information.
[0077] In a feasible implementation, after sending the file metadata information to the user-side browser of the user end, the user-side browser of the user end can periodically send messages to the target remote browser to query the file metadata information of the target folder corresponding to the user-side browser of the user end in the target remote browser, thereby timely updating the file metadata information in the local user-side browser, and at the same time, the user-side browser of the user end displays and updates the file metadata information.
[0078] The embodiment of the present application provides a browser control method, which obtains file metadata information from a target remote browser in a remote server and then sends the file metadata information to a user-side browser, so that when the network environment is poor, such as when the user-side browser cannot display a web page image generated by the remote browser, the user-side browser can still perform remote file operations on a target folder based on the file metadata information, and when the user-side browser is disconnected from the remote server, the user-side browser can operate on the file metadata information in the disconnected state, so that after the user-side browser is connected to the remote server, the remote file operations on the target folder can be directly performed through the file metadata information, thereby solving the technical problem that the remote browser is not directly operated and controlled by the user but is indirectly controlled and managed by the user-side browser, making it difficult for the user to manage files on the remote browser as conveniently as on the user side.
[0079] In an embodiment provided in the present application, the browser control method also includes: obtaining a user identifier corresponding to the user-side browser, creating a target folder based on the user identifier, and the target folder is used to store target data obtained when the user-side browser accesses a website through a target remote browser agent.
[0080] The target remote browser of the remote server obtains the user identifier corresponding to the user browser on the user terminal. When different users log in to the user browser on the user terminal, the user identifier can be determined based on the account information of the user's login account. For example, the account number of the login account can be used as the user identifier corresponding to the user browser, and the character number obtained after the account information is processed by an irreversible encryption algorithm can also be used as the user identifier. The feature of the irreversible encryption algorithm is that no key is required during the encryption process. After the plain text is input, the system directly processes it into ciphertext through the encryption algorithm. This encrypted data cannot be decrypted. Only by re-entering the plain text and processing it again with the same irreversible encryption algorithm can the same encrypted ciphertext be obtained. The irreversible encryption algorithm can include a hash algorithm, etc.
[0081] When a user accesses a website scene through a target remote browser proxy based on a user-side browser on the same user terminal, the target folder in the remote server corresponds one-to-one to the user identifier corresponding to the user-side browser on the user terminal, that is, when a user accesses a website scene through the same target remote browser proxy based on a user-side browser on another user terminal, a new target folder will be created to store the target data obtained when the user-side browser on another user terminal accesses the website through the target remote browser proxy.
[0082] When a user accesses a website through multiple target remote browser proxies based on the same user browser on the user terminal, the same user ID corresponding to the user browser on the user terminal can correspond to target folders in multiple remote servers. At this time, corresponding target folders will be created in different remote servers to store target data obtained when the user browser on the user terminal accesses the website through the target remote browser proxy of the corresponding remote server, so as to avoid multiple people sharing the same target folder, thereby protecting the user's personal privacy.
[0083] In an embodiment provided in the present application, obtaining a user identifier corresponding to a browser on a user end includes:
[0084] A connection request sent by a client browser is received, a communication connection is established between the client browser and a target remote browser, and a user identifier corresponding to the client browser is determined based on the connection request.
[0085] After receiving the connection request sent by the client browser on the client, the target remote browser of the remote server establishes a communication connection between the client browser and the target remote browser based on the connection request, and determines the user identifier corresponding to the client browser by parsing the connection request.
[0086] In an embodiment provided by the present application, in step S202, target data processing is performed on the target folder based on the data processing request to determine file metadata information of the target folder, including:
[0087] A target data download request for a target website is determined based on the data processing request, the target data is downloaded to a target folder based on the target data download request, and file metadata information of the target folder is determined after the target data download is completed.
[0088] After the user-side browser displays the target website, the user-side browser can click to download the target data of the target website based on mouse clicks, screen touches, voice control recognition, air gesture recognition, etc. After receiving the corresponding request to click to download the target data of the target website, the user-side browser of the user-side sends a corresponding data processing request to the target remote browser of the remote server. The remote server determines the target data download request for the target website based on the data processing request. After that, the remote server downloads the target data to the target folder, and determines the file metadata information of the target folder after the target data download is completed. After the data stored in the target folder is updated, the file metadata information of the target folder is updated in time, so that the user-side browser of the user-side that receives the file metadata information can obtain the update of the file metadata information in time, so that the remote file operation processing can be performed on the target folder based on the actual file status of the target folder.
[0089] See also Figure 3 , Figure 3 A flowchart of another browser control method provided in an embodiment of the present application. In an embodiment provided in the present application, the file metadata information includes a file name item of at least one target data in the target folder; after sending the file metadata information to the user-side browser in step S204, it also includes:
[0090] S302: Receive a remote file operation request sent by a user-side browser, where the remote file operation request is a request generated by the user-side browser in response to the user processing a target file name item in the file metadata information.
[0091] When the user wants to perform a remote file operation on a target file in a target folder, the target file name item corresponding to the target file in the file metadata information can be processed accordingly, and then the user-side browser generates a corresponding remote file operation request. For example, after performing an open operation or a delete operation on the target file name item corresponding to the target file, the user-side browser generates a remote file operation request in response to the user performing an open operation or a delete operation on the target file name item in the file metadata information.
[0092] S304: In response to the remote file operation processing request, determine the target file corresponding to the target file name item in the target folder, and perform the remote file operation processing corresponding to the remote file operation request on the target file.
[0093] The target remote browser of the remote server responds to the remote file operation processing request, determines the target file corresponding to the target file name item in the target folder in the remote server based on the remote file operation processing request, and then performs remote file operation processing on the target file. Here, the remote file operation processing performed on the target file is the same as the processing performed by the user on the target file name item in the file metadata information. That is, when the user performs a delete operation on the target file name item in the file metadata information, the remote file operation processing performed on the target file corresponding to the target file name item is a delete operation; when the user performs an open operation on the target file name item in the file metadata information, the remote file operation processing performed on the target file corresponding to the target file name item is an open operation.
[0094] Based on processing the target file name item in the file metadata information corresponding to the user-side browser, remote file operation processing is performed on the target file in the target folder corresponding to the target remote browser remotely, so that even if the user-side browser of the user end cannot display the web page image generated by the remote browser, the remote file operation processing can still be performed on the target folder based on the file metadata information, and when the user end is disconnected from the remote server, the user end can operate on the file metadata information in the disconnected state, so that after the user end is connected to the remote server, the remote file operation processing can be directly performed on the target folder through the file metadata information.
[0095] In another embodiment provided by the present application, in step S304, in response to the remote file operation processing request, a target file corresponding to the target file name item is determined in the target folder, and a remote file operation processing corresponding to the remote file operation request is performed on the target file, including:
[0096] When the remote file operation processing request is an open request, in response to the open request, a first target file corresponding to the target file name item is determined in the target folder based on the open request, and a remote file operation of opening the first target data in the target folder is performed based on the open request, and the first target data matches the target file name item; or,
[0097] When the remote file operation processing request is a deletion request, in response to the deletion request, a second target file corresponding to the target file name item is determined in the target folder based on the deletion request, and a remote file operation of deleting the second target data in the target folder is performed based on the deletion request, and the second target data matches the target file name item.
[0098] When a user performs an open operation on a target file name item in the file metadata information, the remote file operation processing performed on the first target file that matches the target file name item is an open operation; when a user performs a delete operation on the target file name item in the file metadata information, the remote file operation processing performed on the second target file that matches the target file name item is a delete operation.
[0099] See also Figure 4 , Figure 4 A flowchart of another browser control method provided in an embodiment of the present application. In an embodiment provided in the present application, the browser control method further includes:
[0100] S402: Determine a first mapping relationship between the remote window and the local window based on the remote window in the target remote browser and the local window in the user-side browser that matches the remote window.
[0101] When the target remote browser is enabled to open a web page, a one-to-one correspondence between the first window identifier and the second window identifier is established using the first window identifier corresponding to the current local window of the user-side browser and the second window identifier of the remote window corresponding to the target remote browser when the web page is opened, to obtain a first mapping relationship between the remote window and the local window. It should be noted that the first mapping relationship may include a mapping relationship between one or more remote windows and local windows.
[0102] Here, the first window identifier and the second window identifier may include but are not limited to a window ID (serial number, Identity document), a window identifier, a hash value corresponding to the window creation time, and the like.
[0103] S404: Determine a second mapping relationship between the first web page tag and the second web page tag in the local window based on the first web page tag in the remote window and the second web page tag that matches the first web page tag in the local window.
[0104] When the target remote browser is enabled to open a web page, a one-to-one correspondence between the first web page tag identifier and the second web page tag identifier is established by using the first web page tag identifier corresponding to the second web page tag of the current local window of the user-side browser and the second web page tag identifier of the first web page tag of the remote window corresponding to the target remote browser when the web page is opened, so as to obtain a second mapping relationship between the first web page tag and the second web page tag. It should be noted that the second mapping relationship may include a mapping relationship between one or more first web page tags and the second web page tags.
[0105] S406: Receive a window separation request for the first web page tab sent by the user-side browser, where the window separation request is used to separate the first web page tab from the local window, process the window separation request based on the first mapping relationship and the second mapping relationship, generate a target window separation request to separate the second web page tab from the remote window, and separate the second web page tab from the remote window based on the target window separation request.
[0106] When the user-side browser receives a request from the user to detach the first web page tab from the window, a window detachment request for the first web page tab is generated, and then the window detachment request is sent to the target remote browser of the remote server. The target remote browser of the remote server receives the window detachment request for the first web page tab sent by the user-side browser, because the window detachment request is used to detach the first web page tab from the local window. The window detachment request may include an on Detach event signal, which is an event signal for detaching the first web page tab from the local window.
[0107] Therefore, the first web page tag can be mapped based on the second mapping relationship to obtain the second web page tag matching the first web page tag, and the local window can be mapped based on the first mapping relationship to obtain the remote window matching the local window.
[0108] Afterwards, a target window separation request is generated to separate the second web page tag from the remote window, and the second web page tag is separated from the remote window in the target remote browser based on the target window separation request, thereby achieving separation of the remote web page tag from the remote window.
[0109] See also Figure 5 , Figure 5 A schematic diagram of a flow chart of binding a second web page tag to a target remote window provided in an embodiment of the present application.
[0110] like Figure 5 As shown, after the second web page tag is separated from the remote window based on the target window separation request in step S406, the method further includes:
[0111] S502: After the first webpage tab is separated from the local window, determine the target local window to which the first webpage tab is bound.
[0112] In the user-side browser, after the first web page tab is separated from the local window, the first web page tab will be bound to the target local window based on the user's operation, that is, the first web page tab is embedded in the target local window for display, and the target local window bound to the first web page tab is determined. The target local window bound to the first web page tab can be determined by detecting the on Attach event signal in the user-side browser. The on Attach event signal is an event signal that binds the first web page tab to the target local window.
[0113] S504: Based on the first mapping relationship, detect whether there is a target remote window matching the target local window in the target remote browser.
[0114] According to the first mapping relationship, the target local window is mapped to obtain a mapping window, and the mapping window is matched with a remote window in the target remote browser, so as to detect whether there is a target remote window matching the target local window in the target remote browser.
[0115] S506A: If there is a target remote window matching the target local window in the target remote browser, the second web page tag is bound to the target remote window.
[0116] When the mapping window matches the remote window in the target remote browser, there is a target remote window in the target remote browser that matches the target local window. At this time, the second web page tab is bound to the target remote window in the target remote browser to synchronize the operation of binding the first web page tab to the target local window.
[0117] S506B: If there is no target remote window matching the target local window in the target remote browser, create a target remote window, update the first mapping relationship based on the mapping relationship between the target remote window and the target local window, and bind the second web page tag to the target remote window.
[0118] When the mapped window does not match the remote window in the target remote browser, there is no target remote window in the target remote browser that matches the target local window. At this time, a target remote window is created in the target remote browser, and the mapping relationship between the target remote window and the target local window is added to the first mapping relationship to update the first mapping relationship, so that subsequent operations on the target local window are synchronized to the target remote window. Finally, the second web page tag is bound to the target remote window.
[0119] Multiple web page tabs are displayed in the same browser window at the same time to reduce computer resource usage. In the target remote browser application scenario, on the one hand, web page tabs can be separated into independent windows to optimize the user experience and facilitate further user operations. On the other hand, the separated tabs can be restored to the original browser window of the existing browser window, which can reduce resource consumption and save costs.
[0120] See also Figure 6 , Figure 6 The present invention provides a flowchart of a browser control method applied to a user terminal according to an exemplary embodiment of the present invention.
[0121] like Figure 6 As shown, the method includes:
[0122] S602: In the scenario of accessing a website through a target remote browser proxy of a remote server, a data processing request is sent to a target remote browser through a user-side browser of a user-side, so that the target remote browser performs target data processing on a target folder and determines file metadata information of the target folder.
[0123] The specific description of step S602 may refer to step S202 and step S204, which will not be repeated here.
[0124] S604: receiving file metadata information sent by the target remote browser based on the user-side browser, controlling the user-side browser to display the file metadata information, and performing remote file operation processing on the target folder based on the file metadata information.
[0125] The specific description of step S604 may refer to step S204 and will not be repeated here.
[0126] See also Figure 7 , Figure 7 A schematic diagram of the structure of a remote server provided as an exemplary embodiment of this specification.
[0127] like Figure 7 As shown, the remote server 700 includes:
[0128] The data processing request receiving module 710 is adapted to receive a data processing request sent by a user's browser in a scenario where a target remote browser proxy accesses a website through a remote server.
[0129] A determination module 720, adapted to perform target data processing on a target folder based on a data processing request, and determine file metadata information of the target folder;
[0130] The remote file operation module 730 is adapted to send file metadata information to the user-side browser, where the file metadata information is used to instruct the user-side browser to perform remote file operation processing on the target folder.
[0131] Optionally, the remote server 700 further includes:
[0132] The acquisition module is adapted to acquire the user identification corresponding to the user-side browser, and to create a target folder based on the user identification, wherein the target folder is used to store target data obtained when the user-side browser accesses a website through a target remote browser proxy.
[0133] Optionally, the acquisition module is further adapted to receive a connection request sent by the user-side browser, establish a communication connection between the user-side browser and the target remote browser, and determine a user identifier corresponding to the user-side browser based on the connection request.
[0134] Optionally, the determination module 710 is also adapted to determine a target data download request for a target website based on the data processing request, download the target data to a target folder based on the target data download request, and determine file metadata information of the target folder after the target data download is completed.
[0135] Optionally, the file metadata information includes a file name item of at least one target data in the target folder; the remote server 700 further includes:
[0136] A remote file operation request receiving module, adapted to receive a remote file operation request sent by a user-side browser, the remote file operation request being a request generated by the user-side browser in response to a user processing a target file name item in file metadata information;
[0137] The remote file operation processing request response module is adapted to respond to the remote file operation processing request, determine the target file corresponding to the target file name item in the target folder, and perform remote file operation processing corresponding to the remote file operation request on the target file.
[0138] Optionally, the remote file operation processing request response module is adapted to, when the remote file operation processing request is an open request, respond to the open request, determine a first target file corresponding to the target file name item in the target folder based on the open request, and perform a remote file operation of opening the first target data in the target folder based on the open request, wherein the first target data matches the target file name item; or,
[0139] When the remote file operation processing request is a deletion request, in response to the deletion request, a second target file corresponding to the target file name item is determined in the target folder based on the deletion request, and a remote file operation of deleting the second target data in the target folder is performed based on the deletion request, and the second target data matches the target file name item.
[0140] Optionally, the remote server 700 further includes:
[0141] A first mapping relationship determination module, adapted to determine a first mapping relationship between a remote window and a local window based on a remote window in a target remote browser and a local window in a user-side browser that matches the remote window;
[0142] A second mapping relationship determination module, adapted to determine a second mapping relationship between the first web page tag and the second web page tag based on the first web page tag in the remote window and the second web page tag matching the first web page tag in the local window;
[0143] The separation module is suitable for receiving a window separation request for a first web page tag sent by a user-side browser, the window separation request is used to separate the first web page tag from the local window, the window separation request is processed based on the first mapping relationship and the second mapping relationship, a target window separation request is generated to separate the second web page tag from the remote window, and the second web page tag is separated from the remote window based on the target window separation request.
[0144] Optionally, the remote server 700 further includes:
[0145] A target local window determination module, adapted to determine a target local window bound to the first web page tab after the first web page tab is separated from the local window;
[0146] A determination module, adapted to detect whether there is a target remote window matching the target local window in the target remote browser based on the first mapping relationship;
[0147] A first binding module, adapted to bind the second web page tag to the target remote window if there is a target remote window matching the target local window in the target remote browser;
[0148] The second binding module is adapted to create a target remote window if there is no target remote window matching the target local window in the target remote browser, and update the first mapping relationship based on the mapping relationship between the target remote window and the target local window, and bind the second web page tag to the target remote window.
[0149] See also Figure 8 , Figure 8 The present invention is a schematic diagram of the structure of a user terminal provided by an exemplary embodiment of the present invention.
[0150] like Figure 8 As shown, the user terminal 800 includes:
[0151] The sending module 810 is adapted to send a data processing request to the target remote browser through the user-side browser of the user-side in a scenario where the website is accessed through the target remote browser proxy of the remote server, so that the target remote browser performs target data processing on the target folder and determines the file metadata information of the target folder;
[0152] The receiving module 820 is adapted to receive file metadata information sent by a target remote browser based on the user-side browser, control the user-side browser to display the file metadata information, and perform remote file operation processing on the target folder based on the file metadata information.
[0153] An embodiment of the present application further provides a computer storage medium, which can store multiple instructions, and the instructions are suitable for being loaded by a processor and executing the steps of any method in the above embodiments.
[0154] See also Fig. 9 , Fig. 9 This is a schematic diagram of the structure of an electronic device provided in an embodiment of this specification. Fig. 9 As shown, the electronic device 900 may include: at least one electronic device processor 901 , at least one network interface 904 , a user interface 903 , a memory 905 , and at least one communication bus 902 .
[0155] The communication bus 902 is used to realize the connection and communication between these components.
[0156] The user interface 903 may include a display screen (Display) and a camera (Camera), and the optional user interface 903 may also include a standard wired interface and a wireless interface.
[0157] The network interface 904 may optionally include a standard wired interface or a wireless interface (such as a WI-FI interface).
[0158] Among them, the electronic device processor 901 may include one or more processing cores. The electronic device processor 901 uses various interfaces and lines to connect various parts within the entire electronic device 900, and executes various functions and processes data of the electronic device 900 by running or executing instructions, programs, code sets or instruction sets stored in the memory 905, and calling data stored in the memory 905. Optionally, the electronic device processor 901 can be implemented in at least one hardware form of digital signal processing (DigitalSignal Processing, DSP), field programmable gate array (Field-Programmable Gate Array, FPGA), and programmable logic array (Programmable Logic Array, PLA). The electronic device processor 901 can integrate one or more combinations of a central processor (Central Processing Unit, CPU), a graphics processor (GraphicsProcessing Unit, GPU) and a modem. Among them, the CPU mainly processes the operating system, user interface and application programs; the GPU is responsible for rendering and drawing the content to be displayed on the display screen; the modem is used to process wireless communications. It can be understood that the above-mentioned modem may not be integrated into the electronic device processor 901, and it can be implemented separately through a chip.
[0159] Among them, the memory 905 may include a random access memory (Random Access Memory, RAM) and may also include a read-only memory (Read-Only Memory, ROM). Optionally, the memory 905 includes a non-transitory computer-readable storage medium. The memory 905 can be used to store instructions, programs, codes, code sets or instruction sets. The memory 905 may include a program storage area and a data storage area, wherein the program storage area may store instructions for implementing an operating system, instructions for at least one function (such as a touch function, a sound playback function, an image playback function, etc.), instructions for implementing the above-mentioned various method embodiments, etc.; the data storage area may store data involved in the above-mentioned various method embodiments, etc. The memory 905 may optionally be at least one storage device located away from the aforementioned electronic device processor 901. As Fig. 9 As shown, the memory 905 as a computer storage medium may include an operating system, a network communication module, a user interface module and a browser control program. The browser control program may include a browser control program applied to a user terminal and / or a browser control program applied to a remote server.
[0160] exist Fig. 9 In the electronic device 900 shown, the user interface 903 is mainly used to provide an input interface for the user and obtain the data input by the user; and the electronic device processor 901 can be used to call the browser control program applied to the remote server stored in the memory 905, and specifically perform the following operations:
[0161] In a scenario where a target remote browser proxy accesses a website through a remote server, receiving a data processing request sent by a client browser;
[0162] Performing target data processing on the target folder based on the data processing request, and determining file metadata information of the target folder;
[0163] The file metadata information is sent to the user-side browser, and the file metadata information is used to instruct the user-side browser to perform remote file operations on the target folder.
[0164] Optionally, the processor 901 is further adapted to execute obtaining a user identifier corresponding to the user-side browser, and creating a target folder based on the user identifier, the target folder being used to store target data obtained when the user-side browser accesses a website through a target remote browser proxy.
[0165] Optionally, when the processor 901 executes the process of obtaining the user identifier corresponding to the browser of the user terminal, the processor 901 specifically executes the following steps:
[0166] A connection request sent by a client browser is received, a communication connection is established between the client browser and a target remote browser, and a user identifier corresponding to the client browser is determined based on the connection request.
[0167] Optionally, when the processor 901 performs target data processing on the target folder based on the data processing request and determines the file metadata information of the target folder, the following steps are specifically performed:
[0168] A target data download request for a target website is determined based on the data processing request, the target data is downloaded to a target folder based on the target data download request, and file metadata information of the target folder is determined after the target data download is completed.
[0169] Optionally, the file metadata information includes a file name item of at least one target data in the target folder; the processor 901 is adapted to perform the following steps after sending the file metadata information to the user-side browser:
[0170] Receiving a remote file operation request sent by a user-side browser, the remote file operation request being a request generated by the user-side browser in response to a user processing a target file name item in file metadata information;
[0171] In response to the remote file operation processing request, a target file corresponding to the target file name item is determined in the target folder, and a remote file operation processing corresponding to the remote file operation request is performed on the target file.
[0172] Optionally, the processor 901 executes the following steps in response to the remote file operation processing request, determines the target file corresponding to the target file name item in the target folder, and performs the remote file operation processing corresponding to the remote file operation request on the target file:
[0173] When the remote file operation processing request is an open request, in response to the open request, a first target file corresponding to the target file name item is determined in the target folder based on the open request, and a remote file operation of opening the first target data in the target folder is performed based on the open request, and the first target data matches the target file name item; or,
[0174] When the remote file operation processing request is a deletion request, in response to the deletion request, a second target file corresponding to the target file name item is determined in the target folder based on the deletion request, and a remote file operation of deleting the second target data in the target folder is performed based on the deletion request, and the second target data matches the target file name item.
[0175] Optionally, the processor 901 is further adapted to determine a first mapping relationship between the remote window and the local window based on the remote window in the target remote browser and the local window in the browser of the user end that matches the remote window;
[0176] Determine a second mapping relationship between the first web page tag and the second web page tag in the local window based on the first web page tag in the remote window and the second web page tag matching the first web page tag in the local window;
[0177] A window separation request for a first web page tab is received from a browser on a user side, the window separation request is used to separate the first web page tab from a local window, the window separation request is processed based on a first mapping relationship and a second mapping relationship, a target window separation request is generated to separate a second web page tab from a remote window, and the second web page tab is separated from the remote window based on the target window separation request.
[0178] Optionally, after separating the second webpage tab from the remote window based on the target window separation request, the processor 901 further performs the following steps:
[0179] After the first webpage tab is separated from the local window, determining a target local window to which the first webpage tab is bound;
[0180] Based on the first mapping relationship, detecting whether there is a target remote window matching the target local window in the target remote browser, and if there is a target remote window matching the target local window in the target remote browser, binding the second web page tag to the target remote window;
[0181] If there is no target remote window matching the target local window in the target remote browser, a target remote window is created, and the first mapping relationship is updated based on the mapping relationship between the target remote window and the target local window, and the second web page tag is bound to the target remote window.
[0182] exist Fig. 9 In the electronic device 900 shown, the user interface 903 is mainly used to provide an input interface for the user and obtain the data input by the user; and the electronic device processor 901 can also be used to call the browser control program applied to the user terminal stored in the memory 905, and specifically perform the following operations:
[0183] In a scenario where a target remote browser proxy accesses a website through a remote server, a data processing request is sent to a target remote browser through a user-side browser of a user-side, so that the target remote browser performs target data processing on a target folder, and the target remote browser determines file metadata information of the target folder;
[0184] The file metadata information sent by the target remote browser is received based on the user-side browser, the user-side browser is controlled to display the file metadata information, and remote file operation processing is performed on the target folder based on the file metadata information.
[0185] In the several embodiments provided in the embodiments of the present application, it should be understood that the disclosed devices and methods can be implemented in other ways. For example, the device embodiments described above are only schematic. For example, the division of the modules is only a logical function division. There may be other division methods in actual implementation, such as multiple modules or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be an indirect coupling or communication connection through some interfaces, devices or modules, which can be electrical, mechanical or other forms.
[0186] The modules described as separate components may or may not be physically separated, and the components shown as modules may or may not be physical modules, that is, they may be located in one place or distributed on multiple network modules. Some or all of the modules may be selected according to actual needs to achieve the purpose of the solution of this embodiment.
[0187] In addition, each functional module in each embodiment of the present application can be integrated into a processing module, or each module can exist physically separately, or two or more modules can be integrated into one module. The above integrated modules can be implemented in the form of hardware or software functional modules.
[0188] If the integrated module is implemented in the form of a software function module and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the embodiment of the present application is essentially or the part that contributes to the prior art or all or part of the technical solution can be embodied in the form of a software product, and the computer software product is stored in a storage medium, including a number of instructions to enable a computer device (which can be a personal computer, a server, or a network device, etc.) to perform all or part of the steps of the method described in each embodiment of the embodiment of the present application. The aforementioned storage medium includes: U disk, mobile hard disk, read-only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), disk or optical disk and other media that can store program code.
[0189] It should be noted that, for the aforementioned method embodiments, for the sake of simplicity of description, they are all expressed as a series of action combinations, but those skilled in the art should be aware that the embodiments of the present application are not limited by the described order of actions, because according to the embodiments of the present application, certain steps can be performed in other orders or simultaneously. Secondly, those skilled in the art should also be aware that the embodiments described in the specification are all preferred embodiments, and the actions and modules involved are not necessarily required by the embodiments of the present application.
[0190] In the above embodiments, the description of each embodiment has its own emphasis. For parts that are not described in detail in a certain embodiment, reference can be made to the relevant descriptions of other embodiments.
[0191] The above is a description of a browser control method, device, electronic device and computer-readable storage medium provided in the embodiments of the present application. For technicians in this field, according to the ideas of the embodiments of the present application, there may be changes in the specific implementation methods and application scopes. In summary, the content of this specification should not be understood as limiting the embodiments of the present application.
Claims
1. A browser control method, wherein: Applied to a remote server, the method comprises: In a scenario where a target remote browser proxy accesses a website through the remote server, receiving a data processing request sent by a browser of a user terminal; Performing target data processing on the target folder based on the data processing request, and determining file metadata information of the target folder; The file metadata information is sent to the user-side browser, where the file metadata information is used to instruct the user-side browser to perform remote file operation processing on the target folder.
2. The method according to claim 1, wherein: The method further comprises: A user identifier corresponding to the user-side browser is obtained, and a target folder is created based on the user identifier, wherein the target folder is used to store target data obtained when the user-side browser accesses a website through the target remote browser agent.
3. The method according to claim 2, wherein: The obtaining of the user identifier corresponding to the browser of the user terminal includes: A connection request sent by the client browser is received, a communication connection is established between the client browser and the target remote browser, and a user identifier corresponding to the client browser is determined based on the connection request.
4. The method according to claim 1, wherein: The performing target data processing on the target folder based on the data processing request to determine file metadata information of the target folder includes: A target data download request for a target website is determined based on the data processing request, the target data is downloaded to a target folder based on the target data download request, and file metadata information of the target folder is determined after the target data download is completed.
5. The method according to claim 1, wherein: The file metadata information includes a file name item of at least one target data in the target folder; after sending the file metadata information to the user-side browser, the method further includes: Receiving a remote file operation request sent by the user-side browser, wherein the remote file operation request is a request generated by the user-side browser in response to a user processing a target file name item in the file metadata information; In response to the remote file operation processing request, a target file corresponding to the target file name item is determined in the target folder, and a remote file operation processing corresponding to the remote file operation request is performed on the target file.
6. A browser control method, wherein: Applied to a user terminal, the method includes: In a scenario where a target remote browser proxy accesses a website through a remote server, a data processing request is sent to the target remote browser through the user-side browser of the user-side, so that the target remote browser performs target data processing on a target folder, and the target remote browser determines file metadata information of the target folder; Based on the user-side browser receiving the file metadata information sent by the target remote browser, the user-side browser is controlled to display the file metadata information, and remote file operation processing is performed on the target folder based on the file metadata information.
7. A remote server, wherein: The remote server comprises: A data processing request receiving module, adapted to receive a data processing request sent by a browser of a user terminal in a scenario where a target remote browser proxy accesses a website through the remote server; a determination module, adapted to perform target data processing on a target folder based on the data processing request, and determine file metadata information of the target folder; The remote file operation module is adapted to send the file metadata information to the user-side browser, wherein the file metadata information is used to instruct the user-side browser to perform remote file operation processing on the target folder.
8. A user terminal, wherein: The user terminal comprises: A sending module, adapted to send a data processing request to the target remote browser through the user-side browser of the user-side in a scenario where the target remote browser proxy accesses a website through the remote server, so that the target remote browser performs target data processing on a target folder, and enables the target remote browser to determine file metadata information of the target folder; The receiving module is adapted to receive file metadata information sent by the target remote browser based on the user-side browser, control the user-side browser to display the file metadata information, and perform remote file operation processing on the target folder based on the file metadata information.
9. An electronic device, wherein: The electronic device includes: Processor; and A memory arranged to store computer executable instructions which, when executed, cause the processor to perform a method according to any one of claims 1 to 5 or 6.
10. A computer-readable storage medium, wherein: The computer-readable storage medium stores one or more programs, which, when executed by a processor, implement the method of any one of claims 1 to 5 or 6.
Citation Information
Cited By
File transmission method and device for remote desktop access based on BS architecture
CN120201023A
Remote desktop access method, device and equipment, medium and program product
CN121300899A