Method for configuring browser, related device and computer program product
By passing browser configuration information between different devices and browsers, the problem of inconsistent cross-device and browser configurations is solved, improving user experience and configuration efficiency.
Patent Information
- Application Number
- CN202411471687.7
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-10-21
- Publication Date
- 2025-01-07
AI Technical Summary
In existing technologies, users need to provide configuration information frequently and repeatedly to set up the browser across different devices and browsers, resulting in a poor user experience.
By receiving browser configuration information sent by the first terminal and storing it in the local target location, the system responds to the request of the second terminal and sends the configuration information to its device, controlling the second terminal to configure the target browser locally based on the configuration information, thereby achieving a consistent data experience and functionality across devices and browsers.
It reduces the difficulty for users to adjust and configure their browsers, improves the user experience, and ensures consistent data experience and functionality across different devices and browsers.
Smart Images

Figure CN119276702A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of computer technology, and in particular to a method and device for configuring a browser, an electronic device, a computer-readable medium, and a computer program product. Background Art
[0002] A browser is a software application that can be used by a user to access, view, and interact with various content (such as web pages, images, videos, and applications) on the Internet.
[0003] In this mode, the browser can act as a bridge between the user and the Internet, presenting the data on the Internet in a user-friendly format for the user to use. In other words, the user's access to and acquisition of Internet information often requires the use of a browser. For example, the user needs to "access" and "use" the Internet through the browser deployed and configured on the terminal device he uses to obtain the required content.
[0004] Therefore, how to provide users with a better browser experience is worthy of attention and an urgent need. Summary of the invention
[0005] Multiple aspects of the present application provide a method, device, electronic device, computer-readable storage medium and computer program product for configuring a browser, which can enable users to maintain consistent data experience and data functions in different devices and browsers by transmitting browser configuration information, thereby reducing the difficulty of users in adjusting and configuring the browser and reducing user consumption during the browser configuration process, while improving the user's browser usage experience.
[0006] In one aspect of the present application, a method for configuring a browser is provided, comprising: in response to receiving browser configuration information sent by a first terminal, storing the browser configuration information to a local target location; in response to a second terminal requesting to use a target browser at the second terminal based on the browser configuration information, sending the browser configuration information to the second terminal; and controlling the second terminal to configure the target browser locally at the second terminal based on the browser configuration information.
[0007] In another aspect of the present application, a device for configuring a browser is provided, comprising: a configuration information storage unit, configured to store the browser configuration information to a local target location in response to receiving the browser configuration information sent by a first terminal; a configuration information sending unit, configured to send the browser configuration information to the second terminal in response to a second terminal requesting to use a target browser at the second terminal based on the browser configuration information; and a browser configuration control unit, configured to control the second terminal to configure the target browser locally at the second terminal based on the browser configuration information.
[0008] Another aspect of the present application 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 method for configuring a browser provided above.
[0009] In another aspect of the present application, a computer-readable storage medium is provided, on which computer program instructions are stored. The computer program instructions can be executed by a processor to implement the method for configuring a browser as provided above.
[0010] In another aspect of the present application, a computer program product includes a computer program having computer program instructions stored thereon. When the computer program is executed by a processor, the method for configuring a browser as provided above can be implemented.
[0011] In the solution provided by the embodiment of the present application, in response to receiving the browser configuration information sent by the first terminal, the browser configuration information is stored in a local target location; in response to the second terminal requesting to use the target browser in the second terminal based on the browser configuration information, the browser configuration information is sent to the second terminal; and the second terminal is controlled to configure the target browser locally in the second terminal based on the browser configuration information. Thus, through the transmission of the browser configuration information, the user can maintain a consistent data experience and data function in different devices and browsers, while reducing the difficulty of the user to adjust and configure the browser, and reducing the user consumption during the browser configuration process, while improving the user's experience of using the browser. BRIEF DESCRIPTION OF THE DRAWINGS
[0012] In order to more clearly illustrate the technical solutions in the embodiments of the present application, a brief introduction will be given below to the drawings required for use in the embodiments or the description of the prior art. Obviously, the drawings described below are some embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying any creative labor.
[0013] Other features, objects and advantages of the present application will become more apparent by reading the detailed description of non-limiting embodiments made with reference to the following drawings:
[0014] Figure 1 A flowchart of a process for configuring a browser provided in an embodiment of the present application;
[0015] Figure 2 A flowchart of a process for configuring a browser in an application scenario provided by an embodiment of the present application;
[0016] Figure 3A schematic diagram of the structure of a device for configuring a browser provided in an embodiment of the present application;
[0017] Figure 4 The present invention is a schematic diagram of the structure of an electronic device suitable for implementing the solution in the embodiment of the present application.
[0018] The same or similar reference numerals in the drawings represent the same or similar components. DETAILED DESCRIPTION
[0019] In order to make the purpose, technical solution and advantages of the embodiments of the present application clearer, the technical solution 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 part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of this application.
[0020] In a typical configuration of the present application, the terminal and the equipment of the service network each include one or more processors (CPU), input / output interface, network interface and memory.
[0021] The memory may include non-permanent storage in a computer-readable medium, random access memory (RAM) and / or non-volatile memory in the form of read-only memory (ROM) or flash RAM. The memory is an example of a computer-readable medium.
[0022] Computer readable media include permanent and non-permanent, removable and non-removable media, and can be implemented by any method or technology to store information. Information can be computer program instructions, data structures, modules of programs or other data. Examples of computer storage media include, but are not limited to, phase change memory (PRAM), static random access memory (SRAM), dynamic random access memory (DRAM), other types of random access memory (RAM), read-only memory (ROM), electrically erasable programmable read-only memory (EEPROM), flash memory or other memory technology, read-only compact disk (CD-ROM), digital versatile disk (DVD) or other optical storage, magnetic cassettes, magnetic tape disk storage or other magnetic storage devices or any other non-transmission media that can be used to store information that can be accessed by a computing device.
[0023] In actual scenarios, the execution subject of the method can be an object device, or a device formed by integrating an object device and a network device through a network, or an application running on the above device. The object device includes but is not limited to various terminal devices such as computers, mobile phones, tablet computers, smart watches, and bracelets. The network device includes but is not limited to network hosts, single network servers, multiple network server sets, or cloud computing-based computer sets. Here, the cloud is composed of a large number of hosts or network servers based on cloud computing, where cloud computing is a type of distributed computing, a virtual computer composed of a group of loosely coupled computer sets.
[0024] As discussed above, how to provide users with a better browser experience is worthy of attention and an urgent need.
[0025] In some scenarios, some browsers will choose to save the configuration information provided by the user (e.g., page display parameters, security parameters, historical access records, and user preferences, etc.) locally on a secure device that provides the browser. Then, when the user uses the device to use the browser again, the browser can read the configuration information saved locally on the device and configure the browser based on the configuration information, so that the user can get a consistent experience every time he uses the browser.
[0026] However, in this way, configuration information is often targeted at a single device or a fixed browser, which requires users to frequently and multiple times provide configuration information to set up the browser accordingly across devices and browsers. This is not user-friendly enough and results in a poor user experience.
[0027] In this regard, an embodiment of the present application provides a method for configuring a browser, which, in response to receiving browser configuration information sent by a first terminal, stores the browser configuration information to a local target location; in response to a second terminal requesting to use a target browser on the second terminal based on the browser configuration information, sends the browser configuration information to the second terminal; and controls the second terminal to configure the target browser locally on the second terminal based on the browser configuration information. Thus, through the transmission of browser configuration information, users can maintain consistent data experience and data functions in different devices and browsers, while reducing the difficulty of adjusting and configuring the browser for users and reducing user consumption during the browser configuration process, and improving the user's experience of using the browser.
[0028] In actual scenarios, the execution subject of the method for configuring the browser may be a user device, or a device formed by integrating a user device and a network device through a network, or an application running on the above device. The user device includes but is not limited to various terminal devices such as computers, mobile phones, tablet computers, smart watches, and bracelets, and the network device includes but is not limited to network hosts, single network servers, multiple network server sets, or cloud computing-based computer sets. Here, the cloud is composed of a large number of hosts or network servers based on cloud computing, where cloud computing is a type of distributed computing, a virtual computer composed of a group of loosely coupled computer sets.
[0029] When the execution subject is software, it can be installed in the electronic devices listed above, and it can be implemented as multiple software or software modules, or as a single software or software module, which is not specifically limited here. In addition, in the technical solution involved in this application, the acquisition, storage, use, processing, transportation, provision and application of the user personal information involved (such as browser configuration information and user information involved in this application later) shall comply with the provisions of relevant laws and regulations and shall not violate public order and good customs.
[0030] Figure 1 A process 100 for configuring a browser provided by an embodiment of the present application is shown. The process 100 includes at least the following processing steps:
[0031] (Step) S101, in response to receiving the browser configuration information sent by the first terminal, storing the browser configuration information to a local target location.
[0032] In an embodiment of the present application, the first terminal (eg, a terminal device used by a user) may communicate with the execution subject to upload and communicate browser configuration information.
[0033] Usually, the browser configuration can be obtained by the first terminal collecting the operation status and usage status of the browser running locally. For example, the first terminal can obtain the browser configuration information by detecting the usage status of the browser running locally and used by the user.
[0034] In some embodiments, the browser configuration information may include at least one of the following: user state data that is persisted across sessions and stored using the browser's local mechanism, temporary user state data during a single session and stored using the browser's session mechanism, and structured user data stored using an index database.
[0035] Local Storage is a browser storage technology that allows data to be stored in the form of key-value pairs in the user's browser. It is a part of HTML5 that can more easily provide persistent data storage services for the first terminal (or the browser running in the first terminal, the browser client). Accordingly, LocalStorage can be used to store user state data that persists across sessions, so that these user state data that persists across sessions can be stored simply, long-term, and stably without being lost due to time, cross-terminal, etc., so that users can stably obtain and use these user state data that persists across sessions on different terminals (devices) and browsers.
[0036] Session Storage is also a browser storage technology that allows temporary storage of data in the form of key-value pairs in the browser. Session Storage is similar to Local Storage. It is also part of HTML5 and can be used to store data during a browser session (for example, temporary user state data during a single session while the browser is in use).
[0037] IndexedDB is a low-level application programming interface (API) implemented in the browser, which can be used to store large amounts of structured data (e.g., structured user data) in the user's browser. Compared to LocalStorage and SessionStorage, IndexedDB allows developers to store more complex data types, such as objects, files, and arrays, and can perform efficient searches and queries.
[0038] Therefore, by using local storage mechanism, session storage mechanism and index database, user data related to the browser can be adaptively and differentially stored, and the "decoupling" of user data can be achieved. In other words, through local storage mechanism, session storage mechanism and index database, user data can be stored by type, so that part or all of the data can be selected as browser configuration information in combination with different scenarios and needs to indicate the configuration action of the browser on the terminal (device).
[0039] In some embodiments, the browser configuration information may also be manually configured by the user (for example, the user directly provides the browser configuration information on the first terminal by coding, etc.), or may be manually modified by the user after being collected by the first terminal. Thus, the browser configuration information can better meet the user's usage needs.
[0040] For example, after collecting the browser configuration information, the first terminal may present it to the user. Accordingly, if the user provides modification information for the browser configuration information, the first terminal may respond to this and adjust the browser configuration information based on the modification information to determine the final browser configuration information that is communicated to the execution subject.
[0041] Furthermore, after receiving the browser configuration information uploaded by the first terminal, the execution subject may store it in a local target location (eg, a browser configuration information storage area determined based on a pre-configuration) (eg, the target location is a location in the browser configuration information storage area).
[0042] The browser configuration can be subsequently used by the first terminal and other terminals other than the first terminal (for ease of description, these other terminals can be referred to as "second terminals") to indicate the configuration of the browser desired to be used locally in the first terminal, the second terminal, etc.
[0043] The browser configuration can be used in multiple different browsers, or in other words, the browser configuration can be used "across browsers" (for example, the browser configuration can be recorded and used by different browsers by being directly read or transcoded into files of other formats). For example, when the browser configuration information includes user state data that is persisted across sessions, the user state data can actually be allowed to be used by multiple different (types of) browsers.
[0044] For example, browser A and browser B can both obtain user state data that is persisted across sessions based on the browser configuration information, and configure browser A and browser B accordingly based on the user state data that is persisted across sessions (for example, browser A can be a browser that can directly read the file format of the browser configuration file stored by the execution entity, while browser B can be a browser that, for example, transcodes and converts the file format of the browser configuration file stored by the execution entity and reads the transcoding and format conversion results).
[0045] In some embodiments, the browsers to which the browser configuration information is specifically applicable may be determined by a standard that supports the file format of the browser configuration file (e.g., directly read, read by transcoding, format conversion), or may be determined by a method indicated by the first terminal. For example, a user may communicate with the execution subject through the first terminal to indicate the type, name, etc. of the browser that is expected to be configured using the browser configuration.
[0046] For example, the user can instruct the execution subject to only allow the configuration of browser A using this browser.
[0047] In some embodiments, in order to ensure the usefulness of the browser configuration information, it may also be allowed to be updated in an "iterative" manner (for example, allowing the first terminal to continuously and multiple times provide the browser configuration information to ensure the usefulness and value of the browser configuration information). Accordingly, the first terminal may identify the browser configuration information in the form of a version number to distinguish between browser configuration information of different "generations".
[0048] For example, based on the system time of the generation time, or the order of the generation time, the version number is generated in sequence to identify the browser configuration information. Accordingly, the "version order" of the browser configuration information can be determined later based on the generation time indicated by the version number.
[0049] Accordingly, after receiving the browser configuration information, the execution entity can determine whether to store the browser configuration information obtained this time based on a comparison of the version numbers (for example, in some embodiments, the execution entity may only store the latest browser configuration information that can be used, thereby saving storage space and avoiding call errors).
[0050] Accordingly, in some embodiments, when the execution subject receives the browser configuration information sent by the first terminal, it can choose to detect whether a historical version of the browser configuration information has been stored locally.
[0051] If the execution subject does not detect a historical version of the browser configuration information stored locally when receiving the browser configuration information sent by the first terminal, the execution subject can determine that the currently received browser configuration information is the "latest version". Accordingly, the execution subject can choose to store the browser configuration information to a local target location.
[0052] In some embodiments, if the execution entity determines that a historical version of the browser configuration information is stored locally, the execution entity may choose to read the version number of the historical version.
[0053] If the browser configuration information generation time indicated by the version number of the browser configuration information obtained this time is later than the version number of the historical version, the execution entity can continue to respond to this to store the browser configuration information to the local target location and clear the historical version of the browser configuration information.
[0054] As a result, the execution entity only maintains the latest available version of the browser configuration information to save storage space and avoid calling errors.
[0055] It should be understood that in some scenarios where storage of multiple browser configuration information is allowed, when the execution subject actually calls the browser configuration information later, it can also determine the browser configuration information that needs to be actually used and called based on the version number.
[0056] S102: In response to a request from the second terminal to use a target browser on the second terminal based on the browser configuration information, the browser configuration information is sent to the second terminal.
[0057] In an embodiment of the present application, after the execution entity stores the browser configuration information locally, other terminals (for example, the second terminal discussed above) can request the execution entity to obtain the browser configuration information so as to configure the browser locally using the browser configuration information at the second terminal.
[0058] For ease of understanding, the browser that is configured using the browser configuration information and that the user of the second terminal desires to use may be referred to as a “target browser”.
[0059] Accordingly, if the execution subject receives a request from the second terminal (ie, a request to use the target browser at the second terminal based on the browser configuration information), the execution subject may respond thereto by sending the browser configuration information to the second terminal.
[0060] In some embodiments, when the execution subject sends the browser configuration information to the second terminal, the data security can also be ensured by using Hypertext Transfer Protocol Security and JWT (JSON Web Token) encryption.
[0061] In some embodiments, in order to ensure the user's data security, in response to the second terminal's request to use the target browser in the second terminal based on the browser configuration information, and in the process of selecting to send the browser configuration information to the second terminal, the execution entity can choose to respond to the second terminal's request to use the target browser in the second terminal based on the browser configuration information, and first read the user information used for the target browser in the second terminal.
[0062] That is, the execution entity can read the user information used when the second terminal provides the use of the target browser. For example, the user information can actually be the "identity" information used to log in to the target browser, or the "identity" information used to verify the user's identity when configuring the target browser (for example, the user account pre-registered in the execution entity for storing and obtaining browser configuration information).
[0063] Then, the execution subject may compare the user information used for the target browser in the second terminal with the user information associated with the browser configuration information in the first terminal to determine whether the two match.
[0064] Furthermore, if the two match, the execution subject can complete the "identity authentication" of the user and "believe" that providing the browser configuration information to the second terminal is what the user who uploaded the browser configuration information expects. Accordingly, the execution subject can respond to this, that is, in response to the user information used for the target browser in the second terminal matching the user information associated with the browser configuration information in the first terminal, to send the browser configuration information to the second terminal. In this way, the user's data security is further guaranteed.
[0065] S103: Control the second terminal to configure a target browser locally on the second terminal based on the browser configuration information.
[0066] In an embodiment of the present application, after providing the browser configuration information to the second terminal based on the above S102, the execution subject may choose to control the second terminal to configure a target browser locally on the second terminal based on the browser configuration information.
[0067] That is, the execution subject may choose to control the second terminal to use and load the content recorded in the browser configuration information into the target browser to implement the configuration of the target browser.
[0068] Accordingly, after the browser configuration information is used and loaded, during the process of completing the configuration and use of the target browser, for the content related to the browser configuration information, a "consistent" usage experience can be provided as expected by the user.
[0069] Then, the method for configuring a browser provided by the present application stores the browser configuration information to a local target location in response to receiving the browser configuration information sent by the first terminal; sends the browser configuration information to the second terminal in response to the second terminal requesting to use the target browser on the second terminal based on the browser configuration information; and controls the second terminal to configure the target browser locally on the second terminal based on the browser configuration information. Thus, through the transmission of the browser configuration information, the user can maintain a consistent data experience and data function in different devices and browsers, while reducing the difficulty of adjusting and configuring the browser for the user and reducing the user consumption during the browser configuration process, and improving the user's experience of using the browser.
[0070] In some embodiments, as discussed above, the purpose of browser configuration information is to record the user's browser usage status and usage so that different terminals and browsers can use the browser configuration information to configure the browser, providing users with a "consistent" browser usage experience in different terminals and browsers.
[0071] Therefore, the execution subject can also detect the usage status of the (configured) target browser after completing the configuration of the target browser.
[0072] If it is detected that the configured target browser is used on the second terminal, the execution subject may respond to this and obtain updated browser configuration information generated based on the user's use of the target browser.
[0073] For example, for the second terminal, it can record the user's use process and usage of the target browser and the changes and newly added content in the browser configuration information. Based on the browser configuration information when configuring the target browser, the browser configuration information is updated using these changed and newly added parts to obtain updated browser configuration information generated by using the target browser.
[0074] Accordingly, the execution subject can periodically obtain the updated browser configuration information to continuously update the locally stored browser configuration information, so that the locally maintained browser configuration information can be spontaneously updated as the user uses the browser. In this way, the browser configuration information can be automatically updated, and the user's usage status can be stored and synchronized in the browser configuration information to maintain and maintain the quality of the browser configuration information.
[0075] Accordingly, after (each time) acquiring the updated browser configuration information, the execution subject may choose to update the browser configuration information stored in the target location based on the updated browser configuration information.
[0076] It should be understood that, for the updated browser configuration information, it can be sent to the execution subject in the form of a "version number" similar to the above discussion. Thus, the execution subject can similarly store a large amount of updated browser configuration information in a "version number" comparison manner, or only store the latest updated browser configuration information.
[0077] In some embodiments, when the execution subject periodically obtains updated browser configuration information generated based on the use of the target browser from the second terminal, it may further choose to use Ajax and / or Fetch API to periodically obtain updated browser configuration information from the second terminal.
[0078] Specifically, Ajax (Asynchronous JavaScript and XML) is a technology that uses JavaScript to asynchronously update web pages. Ajax allows web pages to obtain data from the server and update part of the content without reloading the entire page.
[0079] The Fetch API is a Promise-based JavaScript API that can be used to make network requests.
[0080] When Ajax and Fetch API are used in a browser, they can both request and process data in an asynchronous manner. Therefore, by using Ajax and / or Fetch API to periodically obtain updated browser configuration information generated based on the use of the target browser from the second terminal, the impact of the upload and communication process of the updated browser configuration information on the user's use of the browser can be reduced (for example, the user's browser page will not be completely reloaded by mistake, causing trouble to the user).
[0081] Similarly, in the process of the execution subject sending the browser configuration information to the (second) terminal, the browser configuration information can also be sent by using Ajax and / or Fetch API.
[0082] It should be understood that if the first terminal can also be used to run a browser that can be configured by the browser configuration information, or if the browser configuration information is collected based on the user's use of the browser using the first terminal, the first terminal can also update the browser configuration based on the user's use of the browser in the first terminal in the manner discussed above.
[0083] For easier understanding, you can also refer to Figure 2 . Figure 2 A flowchart of a process 200 of configuring a browser implemented in a specific application scenario provided by an embodiment of the present application is shown.
[0084] exist Figure 2 In the application scenario shown, or in other words, in the process 200, the server 210 can be used as the "executing subject of configuring the browser" by way of example. Accordingly, the user (not shown in the figure) can use the browser (not shown in the figure) using the terminal 220 to provide the browser configuration information (e.g., browser configuration information 221) by using the browser and recording the usage status of the browser. Alternatively, the user can also provide the browser configuration information (e.g., browser configuration information 221) by directly selecting and providing configuration parameters and indicators in the terminal 220.
[0085] Accordingly, the user may communicate with the server 210 by executing S201 using the terminal 220 to provide the browser configuration information 221 .
[0086] Next, after receiving the browser configuration information 221 , the server 210 may execute S202 to store the browser configuration information 221 to a target location of the server 210 .
[0087] Subsequently, for example, when the user desires to use the browser 235 using the terminal 230 , the user may use the terminal 230 to execute S203 to request the server 210 to configure the browser 235 locally on the terminal 230 based on the browser configuration information 221 .
[0088] Accordingly, the server 210 may respond to the request (for configuration and use of the browser 235 ) of the terminal 230 , and execute S204 to send the browser configuration information 221 to the terminal 230 .
[0089] Next, the server 210 may execute S205 to control the terminal 230 so that the terminal 230 can configure the browser 235 locally based on the browser configuration information 221 .
[0090] Therefore, by "injecting" the browser configuration information 221 into the browser 235, the browser 235 is configured so that the browser 235 can refer to and use the parameters and content indicated by the browser configuration information 221 for the user, thereby providing the user with a "consistent browser usage experience".
[0091] The present application also provides a device for configuring a browser, the structure of which is as follows: Figure 3 The device 300 shown. The device 300 includes: a configuration information storage unit 310, configured to store the browser configuration information to a local target location in response to receiving the browser configuration information sent by the first terminal; a configuration information sending unit 320, configured to send the browser configuration information to the second terminal in response to the second terminal requesting to use the target browser at the second terminal based on the browser configuration information; and a browser configuration control unit 330, configured to control the second terminal to configure the target browser locally at the second terminal based on the browser configuration information.
[0092] In some embodiments, the configuration information storage unit 310 includes: a first information storage subunit configured to store the browser configuration information to a local target location in response to receiving the browser configuration information sent by the first terminal and not storing a historical version of the browser configuration information locally.
[0093] In some embodiments, the configuration information storage unit 310 also includes: a version number reading subunit, configured to respond to receiving the browser configuration information sent by the first terminal and locally storing the historical version of the browser configuration information, read the version number of the historical version; a second information storage subunit, configured to respond to the version number of the browser configuration information obtained this time indicating that the generation time of the browser configuration information is later than the version number of the historical version, store the browser configuration information to a local target location, and clear the historical version of the browser configuration information.
[0094] In some embodiments, the configuration information sending unit 320 includes: a user information reading subunit, configured to read the user information used for the target browser in the second terminal in response to a request from the second terminal to use the target browser based on the browser configuration information; and a configuration information sending subunit, configured to send the browser configuration information to the second terminal in response to the user information used for the target browser in the second terminal matching the user information associated with the browser configuration information in the first terminal.
[0095] In some embodiments, the device 300 also includes: an updated configuration information acquisition unit, configured to periodically acquire updated browser configuration information generated based on the use of the target browser from the second terminal in response to detecting that the configured target browser is used on the second terminal; and a configuration information updating unit, configured to update the browser configuration information stored in the target location based on the updated browser configuration information.
[0096] In some embodiments, the updated configuration information acquisition unit is further configured to, in response to detecting that the configured target browser is used on the second terminal, periodically acquire updated browser configuration information generated based on the use of the target browser from the second terminal using Ajax and / or Fetch API.
[0097] In some embodiments, the browser configuration information includes at least one of the following: user state data that is persisted across sessions and stored using a local mechanism of the browser, temporary user state data during a single session and stored using a session mechanism of the browser, and structured user data stored using an index database.
[0098] Based on the same inventive concept, an electronic device, a readable storage medium and a computer program product are also provided in the embodiments of the present application. The method corresponding to the electronic device may be the method for configuring a browser in the aforementioned embodiment, and its principle of solving the problem is similar to that of the method. The electronic device provided in the embodiments of the present application includes: at least one processor; and a memory connected to the at least one processor in communication; 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 methods and / or technical solutions of the aforementioned multiple embodiments of the present application.
[0099] The electronic device may be a user device, or a device formed by integrating a user device and a network device through a network, or an application running on the above device. The user device includes but is not limited to various terminal devices such as computers, mobile phones, tablet computers, smart watches, and bracelets. The network device includes but is not limited to network hosts, single network servers, multiple network server sets, or cloud computing-based computer sets, which can be used to implement some processing functions when setting an alarm. Here, the cloud is composed of a large number of hosts or network servers based on cloud computing, where cloud computing is a type of distributed computing, a virtual computer composed of a group of loosely coupled computer sets.
[0100] Figure 4 The structure of an electronic device suitable for implementing the method and / or technical solution in the embodiment of the present application is shown, and the electronic device 400 includes a central processing unit (CPU, Central Processing Unit) 401, which can perform various appropriate actions and processes according to the program stored in the read-only memory (ROM, Read Only Memory) 402 or the program loaded from the storage part 408 to the random access memory (RAM, Random Access Memory) 403. In RAM 403, various programs and data required for system operation are also stored. CPU 401, ROM 402 and RAM 403 are connected to each other through bus 404. Input / output (I / O, Input / Output) interface 405 is also connected to bus 404.
[0101] The following components are connected to the I / O interface 405: an input section 406 including a keyboard, a mouse, a touch screen, a microphone, an infrared sensor, etc.; an output section 407 including a cathode ray tube (CRT), a liquid crystal display (LCD), an LED display, an OLED display, etc., and a speaker, etc.; a storage section 408 including one or more computer-readable media such as a hard disk, an optical disk, a magnetic disk, a semiconductor memory, etc.; and a communication section 409 including a network interface card such as a LAN (Local Area Network) card, a modem, etc. The communication section 409 performs communication processing via a network such as the Internet.
[0102] In particular, the methods and / or embodiments in the embodiments of the present application may be implemented as computer software programs. For example, the embodiments disclosed in the present application include a computer program product, which includes a computer program carried on a computer-readable medium, and the computer program includes program code for executing the method shown in the flowchart. When the computer program is executed by the central processing unit (CPU) 401, the above functions defined in the method of the present application are executed.
[0103] Another embodiment of the present application further provides a computer-readable storage medium and a computer program product, on which computer program instructions are stored. The computer program instructions can be executed by a processor to implement the methods and / or technical solutions of any one or more embodiments of the present application.
[0104] Specifically, the present embodiment can adopt any combination of one or more computer-readable media. Computer-readable media can be computer-readable signal media or computer-readable storage media. Computer-readable storage media can be, for example, systems, devices or devices including but not limited to electricity, magnetism, light, electromagnetic, infrared, or semiconductors, or any combination of the above. More specific examples (non-exhaustive list) of computer-readable storage media include: electrical connections with one or more wires, portable computer disks, hard disks, random access memories (RAM), read-only memories (ROM), erasable programmable read-only memories (EPROM or flash memory), optical fibers, portable compact disk read-only memories (CD-ROM), optical storage devices, magnetic storage devices, or any suitable combination of the above. In this document, computer-readable storage media can be any tangible medium containing or storing a program, which can be used by an instruction execution system, device or device or used in combination with it.
[0105] Computer readable signal media may include data signals propagated in baseband or as part of a carrier wave, which carry computer readable program code. Such propagated data signals may take a variety of forms, including but not limited to electromagnetic signals, optical signals, or any suitable combination of the above. Computer readable signal media may also be any computer readable medium other than a computer readable storage medium, which may send, propagate, or transmit a program for use by or in conjunction with an instruction execution system, apparatus, or device.
[0106] The program code embodied on the computer readable medium may be transmitted using any appropriate medium, including but not limited to wireless, wireline, optical fiber cable, RF, etc., or any suitable combination of the foregoing.
[0107] Computer program code for performing the operations of the present application may be written in one or more programming languages or a combination thereof, including object-oriented programming languages, such as Java, Smalltalk, C++, and conventional procedural programming languages, such as "C" or similar programming languages. The program code may be executed entirely on the user's computer, partially on the user's computer, as a separate software package, partially on the user's computer and partially on a remote computer, or entirely on a remote computer or server. In the case of a remote computer, the remote computer may be connected to the user's computer through any type of network, including a local area network (LAN) or a wide area network (WAN), or may be connected to an external computer (e.g., via the Internet using an Internet service provider).
[0108] The flow chart or block diagram in the accompanying drawings shows the possible architecture, function and operation of the equipment, method and computer program product according to various embodiments of the present application. In this regard, each square box in the flow chart or block diagram can represent a module, a program segment or a part of a code, and the module, the program segment or a part of the code contains one or more executable instructions for realizing the specified logical function. It should also be noted that in some implementations as replacements, the functions marked in the square box can also occur in a sequence different from that marked in the accompanying drawings. For example, two square boxes represented in succession can actually be executed substantially in parallel, and they can sometimes be executed in the opposite order, depending on the functions involved. It should also be noted that each square box in the block diagram and / or flow chart, and the combination of the square boxes in the block diagram and / or flow chart can be implemented with a dedicated system for hardware that performs a specified function or operation, or can be implemented with a combination of dedicated hardware and computer instructions.
[0109] Those skilled in the art can clearly understand that, for the convenience and brevity of description, the specific working processes of the systems, devices and units described above can refer to the corresponding processes in the aforementioned method embodiments and will not be repeated here.
[0110] In the several embodiments provided in the present application, it should be understood that the disclosed systems, devices and methods can be implemented in other ways. For example, the device embodiments described above are only schematic. For example, the division of modules and units is only a logical function division. There may be other division methods in actual implementation. For example, with units as an example, multiple units or page 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 units, which can be electrical, mechanical or other forms.
[0111] The units described as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they may be located in one place or distributed on multiple network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of this embodiment.
[0112] In addition, each functional module or unit in each embodiment of the present application may be integrated into one processing module or unit, or each module or unit may exist physically separately, or two or more units may be integrated into one module or unit. The above-mentioned integrated unit may be implemented in the form of hardware or in the form of hardware plus software functional modules or units.
[0113] The above-mentioned integrated modules and units implemented in the form of software function modules and units can be stored in a computer-readable storage medium. The above-mentioned software function modules and units are stored in a storage medium, including a number of instructions for a computer device (which can be a personal computer, a server, or a network device, etc.) or a processor (processor) to perform some steps of the methods of each embodiment of the present application. The aforementioned storage medium includes: U disk, mobile hard disk, read-only memory (Read-Only Memory, ROM), random access memory (Random Access Memory, RAM), disk or optical disk and other media that can store program codes.
[0114] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present application, rather than to limit it. Although the present application has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that they can still modify the technical solutions described in the aforementioned embodiments, or make equivalent replacements for some of the technical features therein. However, these modifications or replacements do not deviate the essence of the corresponding technical solutions from the spirit and scope of the technical solutions of the embodiments of the present application.
[0115] In addition, it is clear that the word "comprising" does not exclude other units or steps, and the singular does not exclude the plural. Multiple units or devices stated in a device claim can also be implemented by one unit or device through software or hardware. The words first, second, etc. are used to indicate names, and do not indicate any particular order.
Claims
1. A method for configuring a browser, comprising: In response to receiving the browser configuration information sent by the first terminal, storing the browser configuration information to a local target location; In response to a second terminal requesting to use a target browser on the second terminal based on the browser configuration information, sending the browser configuration information to the second terminal; The second terminal is controlled to configure the target browser locally on the second terminal based on the browser configuration information.
2. The method according to claim 1, wherein: The step of storing the browser configuration information to a local target location in response to receiving the browser configuration information sent by the first terminal includes: In response to receiving the browser configuration information sent by the first terminal, and if no historical version of the browser configuration information is stored locally, the browser configuration information is stored in a local target location.
3. The method according to claim 2, further comprising: In response to receiving the browser configuration information sent by the first terminal, and locally storing a historical version of the browser configuration information, reading a version number of the historical version; In response to the browser configuration information generation time indicated by the version number of the browser configuration information obtained this time being later than the version number of the historical version, the browser configuration information is stored in a local target location, and the historical version of the browser configuration information is cleared.
4. The method according to claim 1, wherein: The step of sending the browser configuration information to the second terminal in response to the second terminal requesting to use the target browser on the second terminal based on the browser configuration information includes: In response to a second terminal requesting to use a target browser on the second terminal based on the browser configuration information, reading user information used for the target browser in the second terminal; In response to the user information used for the target browser in the second terminal matching the user information associated with the browser configuration information in the first terminal, the browser configuration information is sent to the second terminal.
5. The method according to claim 1, further comprising: In response to detecting that the configured target browser is used on the second terminal, periodically acquiring updated browser configuration information generated based on the use of the target browser from the second terminal; Based on the updated browser configuration information, the browser configuration information stored in the target location is updated.
6. The method according to claim 5, wherein: In response to detecting that the configured target browser is used on the second terminal, periodically obtaining updated browser configuration information generated based on the use of the target browser includes: In response to detecting that the configured target browser is used on the second terminal, updated browser configuration information generated based on the use of the target browser is periodically obtained from the second terminal using Ajax and / or Fetch API.
7. The method according to any one of claims 1 to 6, wherein: The browser configuration information includes at least one of the following: user state data that is persistent across sessions and stored using a local mechanism of the browser, temporary user state data during a single session and stored using a session mechanism of the browser, and structured user data stored using an index database.
8. A device for configuring a browser, comprising: a configuration information storage unit, configured to store the browser configuration information to a local target location in response to receiving the browser configuration information sent by the first terminal; a configuration information sending unit configured to send the browser configuration information to the second terminal in response to a second terminal requesting to use a target browser on the second terminal based on the browser configuration information; The browser configuration control unit is configured to control the second terminal to configure the target browser locally on the second terminal based on the browser configuration information.
9. 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 to enable the at least one processor to perform the method according to any one of claims 1 to 7.
10. A computer readable medium having computer program instructions stored thereon, wherein the computer program instructions can be executed by a processor to implement the method according to any one of claims 1 to 7.
11. A computer program product, comprising a computer program, which, when executed by a processor, implements the method according to any one of claims 1 to 7.