Cross-browser webpage migration method and system
By extracting and importing environmental data in the browser, cross-browser web page permission data migration is realized, solving the problem of account passwords and insufficient data compatibility in the existing technology, and improving the efficiency of evidence forensics.
Patent Information
- Application Number
- CN202411704314.X
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-11-26
- Publication Date
- 2025-05-02
AI Technical Summary
The existing technology is difficult to effectively migrate web page permission data in a cross-browser environment, resulting in insufficient account password problems and data compatibility during the forensics process, affecting the efficiency of forensics.
By extracting LocalStorage, SessionStorage, Cookies and IndexedDB data in the browser, serialize and export the environment file, and then import and parse this data in the target browser to set up the environment, thereby realizing cross-browser web page permission data migration.
Cross-browser migration of data with no account extraction of web page permissions has been realized, which improves the efficiency and accuracy of the evidence collection process, and solves the problem of missing data compatibility and coverage.
Smart Images

Figure CN119917758A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of browser web page migration, and in particular to a cross-browser web page migration method and system. Background Art
[0002] With the popularization of the Internet, a large amount of information exists in the form of web pages. At present, most abnormal websites will design permission modules to allow different users to access different rights and interests information. Usually, it is manifested as various types of accounts, which are used to distinguish member rights and interests levels, functional roles, etc. The permission module allows users with different permissions to access different information, which is also a phenomenon of information isolation.
[0003] Accounts are usually used to log in and obtain permissions. The interactions in different applications vary, such as entering account passwords, SMS verification, code scanning, fingerprint, voiceprint, and face recognition, etc. In the Web field, browsers are windows for browsing web page information. To provide an interactive experience, Web engineers will use appropriate storage technologies to retain the permission data after logging in. This allows you to access permission pages without having to log in again when the browser is refreshed, restarted, or even when the computer is restarted.
[0004] At the relevant scene, the relevant staff immediately controlled the on-site personnel and equipment. It is often the case that the computer to be collected logs into the background but the account password cannot be asked. The time at the evidence collection site is relatively tight. If the amount of background data is huge, it will be a big challenge for evidence collection. How to extract web page permission data without an account, transfer permissions and authorize cross-browser access to web pages is an urgent problem to be solved in the evidence collection process. Due to the continuous updating of Web technology, there is currently no unified solution, and there are the following deficiencies in the market: 1. It is often believed that the permission environment is equivalent to the Cookie environment, and the incomplete environment leads to low compatibility. 2. Cookie settings are mostly single-domain, and when there is a reliance on third-party domains, there may be a lack of coverage and lead to failure. Summary of the invention
[0005] In order to solve the above technical problems existing in the prior art, the present invention proposes a cross-browser web page migration method and system to solve the above technical problems.
[0006] According to a first aspect of the present invention, a cross-browser web page migration method is proposed, comprising:
[0007] S1: In the browser to be migrated, in response to having the permission to browse web pages, extracting environmental data, serializing the environmental data and exporting the environmental file, the environmental data includes the environmental data of LocalStorage&SessionStorage, Cookie, and IndexedDB storage technology data sets;
[0008] S2: Import the environment file into the browser to be migrated, parse and deserialize the environment, set the environment, open it and allow users to browse the consistent web page.
[0009] In some specific embodiments, in S1, for Cookie data, the domain source set of the frame associated with all pages is obtained, a list of all cookies to be migrated from the browser is extracted, the cross-domain domain source set is derived from the domain field of the Cookie, and the global source set is merged to obtain the global source set. The global source set and all Cookies together constitute the environmental source data of the Cookie, which is serialized and persisted as an environmental file.
[0010] In some specific embodiments, in S1, for LocalStorage&SessionStorage, Web DOM technology is used to inject the target web page environment through a plug-in to perform the extraction operation. The internal storage of LocalStorage&SessionStorage is a JSON object with a value type of string, which is directly serialized and persisted to obtain the environment file.
[0011] In some specific embodiments, in S1, for IndexedDB, the corresponding Web API operation is used to inject the target web page environment through the plug-in to perform the extraction operation, by enumerating all databases, tables in each database, and fields in the table, and summarizing and serializing them according to the field type. If the field contains a CryptoKey object, the IndexedDB environment is manually copied.
[0012] In some specific embodiments, before S2, it also includes determining whether it is necessary to supplement the IndexedDB environment, and if necessary, copying the manually copied IndexedDB folder content to the consistency directory of the browser to be migrated.
[0013] In some specific embodiments, S2 specifically includes: deserializing and parsing the environment file, obtaining Cookie, LocalStorage&SessionStorage and IndexedDB environment data:
[0014] For the Cookie environment, enumerate all domain source links and each cookie, and in response to the domain source link matching the domain field of the Cookie object, perform association settings;
[0015] For LocalStorage & SessionStorage, inject a custom settings script when loading or refreshing the page, and set it through window.localStorage and window.sessionStorage respectively;
[0016] For IndexedDB, inject custom scripts into the page and use Web API operations to enumerate all database information. If it does not exist, create it. Then enumerate all tables in each database. If it does not exist, create it. Try to set the value of each field in each table and skip existing fields.
[0017] According to a second aspect of the present invention, a computer-readable storage medium is provided, on which one or more computer programs are stored. When the one or more computer programs are executed by a computer processor, the above method is implemented.
[0018] According to a third aspect of the present invention, a cross-browser web page migration system is proposed, comprising:
[0019] An environment migration unit is configured to extract environment data in the browser to be migrated, in response to having the permission to browse web pages, serialize the environment data and export the environment file, the environment data including the environment data of LocalStorage&SessionStorage, Cookie, IndexedDB storage technology data set;
[0020] The environment migration unit is configured to import the environment file into the browser to be migrated, set the environment after parsing and deserializing the environment, and open and allow the browser to browse the consistent web page.
[0021] In some specific embodiments, for Cookie data, the domain source set of all frames associated with all pages is obtained, a list of all cookies to be migrated from the browser is extracted, the cross-domain domain source set is derived from the domain field of the Cookie, and the global source set is merged to obtain the global source set. The global source set and all Cookies together constitute the environmental source data of the Cookie, which is serialized and persisted as an environment file.
[0022] In some specific embodiments, for LocalStorage & SessionStorage, Web DOM technology is used to inject the target web page environment through a plug-in to perform the extraction operation. The internal storage of LocalStorage & SessionStorage is a JSON object with a value type of string, which is directly serialized and persisted to obtain the environment file.
[0023] In some specific embodiments, for IndexedDB, the corresponding Web API operation is used to inject the target web page environment through the plug-in to perform the extraction operation. By enumerating all databases, tables in each database, and fields in the table, they are summarized and serialized according to the field type. If the field contains a CryptoKey object, the IndexedDB environment is manually copied.
[0024] In some specific embodiments, the environment migration unit also includes determining whether it is necessary to supplement the IndexedDB environment, and if necessary, copying the manually copied IndexedDB folder content to the consistency directory of the browser to be migrated.
[0025] In some specific embodiments, the environment migration unit is specifically configured to deserialize and parse the environment file to obtain the environment data of Cookie, LocalStorage&SessionStorage and IndexedDB:
[0026] For the Cookie environment, enumerate all domain source links and each cookie, and in response to the domain source link matching the domain field of the Cookie object, perform association settings;
[0027] For LocalStorage & SessionStorage, inject a custom settings script when loading or refreshing the page, and set it through window.localStorage and window.sessionStorage respectively;
[0028] For IndexedDB, inject custom scripts into the page and use Web API operations to enumerate all database information. If it does not exist, create it. Then enumerate all tables in each database. If it does not exist, create it. Try to set the value of each field in each table and skip existing fields.
[0029] The present invention proposes a cross-browser web page migration method and system, which supports account-free extraction of web page permissions and rapid export of environmental data, imports into heterogeneous environment browsers and authorizes access to web pages. Relevant staff can extract environmental files of abnormal websites in the first place, transmit them to relevant evidence collection personnel for web page environment restoration, and simultaneously conduct remote inspection and evidence collection. This increases the use scenarios of remote inspection of web page electronic data and speeds up the work efficiency of relevant staff. BRIEF DESCRIPTION OF THE DRAWINGS
[0030] The accompanying drawings are included to provide a further understanding of the embodiments and are incorporated into and constitute a part of this specification. The accompanying drawings illustrate the embodiments and together with the description are used to explain the principles of the present invention. Other embodiments and many expected advantages of the embodiments will be readily appreciated as they become better understood by reference to the following detailed description. Other features, objects and advantages of the present application will become more apparent by reading the detailed description of the non-limiting embodiments made with reference to the following drawings:
[0031] Figure 1 is a flow chart of a cross-browser web page migration method according to an embodiment of the present application;
[0032] Figure 2 is a general flow chart of a cross-browser webpage migration method of a specific embodiment of the present application;
[0033] Figure 3 is a flowchart of an environment migration of a specific embodiment of the present application;
[0034] Figure 4 is a flowchart of an environment migration of a specific embodiment of the present application;
[0035] Figure 5a-5b It is a schematic diagram of the effect of a cross-browser webpage migration method of a specific embodiment of the present application;
[0036] Figure 6 This is a cross-browser webpage migration system architecture diagram of an embodiment of the present application;
[0037] Figure 7 A schematic diagram of the structure of a computer system suitable for implementing an electronic device of an embodiment of the present application. DETAILED DESCRIPTION
[0038] The present application will be further described in detail below in conjunction with the accompanying drawings and embodiments. It is to be understood that the specific embodiments described herein are only used to explain the relevant invention, rather than to limit the invention. It should also be noted that, for ease of description, only the parts related to the relevant invention are shown in the accompanying drawings.
[0039] It should be noted that, in the absence of conflict, the embodiments and features in the embodiments of the present application can be combined with each other. The present application will be described in detail below with reference to the accompanying drawings and in combination with the embodiments.
[0040] Figure 1 FIG. 1 shows a flow chart of a cross-browser web page migration method according to an embodiment of the present application. Figure 1 As shown, the method comprises the following steps:
[0041] S1: In the browser to be migrated, in response to having the permission to browse web pages, extract environmental data, serialize the environmental data and export the environmental file, the environmental data includes the environmental data of LocalStorage&SessionStorage, Cookie, IndexedDB storage technology data set.
[0042] In a specific embodiment, for Cookie data, the domain source set of the frames associated with all pages is obtained, a list of all cookies to be migrated from the browser is extracted, the cross-domain domain source set is derived from the domain field of the Cookie, and the global source set is merged to obtain the global source set. The global source set and all Cookies together constitute the environmental source data of the Cookie, which is serialized and persisted as an environment file.
[0043] In a specific embodiment, for LocalStorage & SessionStorage, Web DOM technology is used to inject the target web page environment through a plug-in to perform the extraction operation. The internal storage of LocalStorage & SessionStorage is a JSON object with a value type of string, which is directly serialized and persisted to obtain the environment file.
[0044] In a specific embodiment, for IndexedDB, the corresponding Web API operation is used to inject the target web page environment through a plug-in to perform the extraction operation. By enumerating all databases, tables in each database, and fields in the table, they are summarized and serialized according to the field type. If the field contains a CryptoKey object, the IndexedDB environment is manually copied.
[0045] S2: Import the environment file into the browser to be migrated, parse and deserialize the environment, set the environment, open it and allow users to browse the consistent web page.
[0046] In a specific embodiment, before S2, it also includes determining whether it is necessary to supplement the IndexedDB environment, and if necessary, copying the manually copied IndexedDB folder content to the consistency directory of the browser to be migrated.
[0047] In a specific embodiment, S2 specifically includes: deserializing and parsing the environment file, obtaining Cookie, LocalStorage&SessionStorage and IndexedDB environment data:
[0048] For the Cookie environment, enumerate all domain source links and each cookie, and in response to the domain source link matching the domain field of the Cookie object, perform association settings;
[0049] For LocalStorage & SessionStorage, inject a custom settings script when loading or refreshing the page, and set it through window.localStorage and window.sessionStorage respectively;
[0050] For IndexedDB, inject custom scripts into the page and use Web API operations to enumerate all database information. If it does not exist, create it. Then enumerate all tables in each database. If it does not exist, create it. Try to set the value of each field in each table and skip existing fields.
[0051] Continue to refer Figure 2 , Figure 2 A general flow chart of a cross-browser webpage migration method according to a specific embodiment of the present application is shown as follows: Figure 2 As shown, the general process of web page migration in this embodiment is as follows: in browser A, after ensuring the right to browse a certain web page, extract the environment data, serialize the environment data and export it into an environment file; then import the environment file into browser B, parse and deserialize the environment, set the environment, open and have the right to browse the consistent web page. Figure 1 As shown, the left side is the environment migration out and the right side is the environment migration in; the environment data includes data sets of three storage technologies: LocalStorage&SessionStorage, Cookie, and IndexedDB.
[0052] Figure 3 A flowchart of an environment migration of a specific embodiment of the present application is shown as follows: Figure 3 As shown, when extracting cookie data, it is necessary to obtain the domain source (or igin) set Set A of all frames associated with the page. The domain source consists of the protocol and the domain name. Then, after extracting all the cookie lists of the browser, the cross-domain domain source set Set B can also be derived from the domain field of some cookies. After merging, a global source set without duplication is formed. The global source set and all cookies become the environment source data of the cookie, which is serialized and persisted into an environment file.
[0053] LocalStorage & SessionStorage are mainly extracted using Web DOM technology. Plugin technology is required to inject the target web page environment to perform the extraction operation. Since the internal storage of Storage is a JSON object and the value type is a string, it can be directly serialized and persisted into an environment file.
[0054] IndexedDB mainly uses the corresponding Web API operations. First, it is necessary to use plug-in technology to inject it into the target web page environment to perform extraction operations. By enumerating all databases, all tables in each database, and all fields in each table, they are summarized and serialized according to the field type. For example, binary data can be serialized into a Base64 string. It is particularly important to note that if the field data contains a CryptoKey object, it cannot be serialized and the IndexedDB environment needs to be copied manually. The address may vary for different browsers. For Windows Chrome, it is as follows, where Default refers to the default user: C:\Users\xxx\AppData\Local\Google\Chrome\User Data\Default\IndexedDB.
[0055] Figure 4 A flowchart of an environment migration of a specific embodiment of the present application is shown as follows: Figure 4 As shown, before migration, you need to determine and supplement the IndexedDB environment. If necessary, copy the manually copied IndexedDB folder content into the browser consistency directory to be migrated;
[0056] After deserializing and parsing the environment file content, the environment data of Cookie, LocalStorage&SessionStorage and IndexedDB are obtained respectively;
[0057] To migrate the cookie environment, you must first enumerate all domain source links and each cookie. If the domain source link matches the domain field of the cookie object, try to associate it to ensure that all cookies in the entire domain chain are covered.
[0058] LocalStorage & SessionStorage are mainly set using Web DOM technology. After loading or refreshing the page, a custom setting script is injected and set using window.localStorage and window.sessionStorage respectively.
[0059] IndexedDB also needs to be executed by injecting a custom script into the page and using the Web API. Enumerate all database information, and create the corresponding database if it does not exist; enumerate all database tables in each database, and create the corresponding table if it does not exist, and try to set the value of each field in each table. If the field already exists, skip it without forcibly overwriting the value.
[0060] Figure 5a-5bA schematic diagram showing the effect of a cross-browser webpage migration method according to a specific embodiment of the present application is shown as follows: Figure 5a-5b As shown, in a browser of a host computer, the environment data of the QQ mailbox is extracted; after the environment data file is imported into the browser of the virtual machine environment by the above method of the present application, the browser can be accessed normally (such as Figure 5b ).
[0061] The present invention proposes a cross-browser web page migration method and system, which supports account-free extraction of web page permissions and rapid export of environmental data, imports into heterogeneous environment browsers and authorizes access to web pages. Relevant staff can extract environmental files of abnormal websites in the first place, transmit them to relevant evidence collection personnel for web page environment restoration, and simultaneously conduct remote inspection and evidence collection. This increases the use scenarios of remote inspection of web page electronic data and speeds up the work efficiency of relevant staff.
[0062] Figure 6 A cross-browser webpage migration system architecture diagram of an embodiment of the present application is shown as follows: Figure 6 As shown, the system includes an environment migration unit 601 and an environment migration unit 602, wherein the environment migration unit 601 is configured to extract environment data in the browser to be migrated, in response to having the permission to browse web pages, serialize the environment data and export the environment file, the environment data includes the environment data of LocalStorage&SessionStorage, Cookie, IndexedDB storage technology data set; the environment migration unit 602 is configured to import the environment file into the browser to be migrated, set the environment after parsing the deserialized environment, and open and allow the user to browse the consistent web page.
[0063] Reference below Figure 7 , which shows a schematic diagram of the structure of a computer system suitable for implementing an electronic device of an embodiment of the present application. Figure 7 The electronic device shown is merely an example and should not bring any limitation to the functions and scope of use of the embodiments of the present application.
[0064] like Figure 7 As shown, the computer system includes a central processing unit (CPU) 701, which can perform various appropriate actions and processes according to a program stored in a read-only memory (ROM) 702 or a program loaded from a storage part 708 into a random access memory (RAM) 703. In the RAM 703, various programs and data required for the operation of the system 700 are also stored. The CPU 701, the ROM 702, and the RAM 703 are connected to each other via a bus 704. An input / output (I / O) interface 705 is also connected to the bus 704.
[0065] The following components are connected to the I / O interface 705: an input section 706 including a keyboard, a mouse, etc.; an output section 707 including a liquid crystal display (LCD), etc. and a speaker, etc.; a storage section 708 including a hard disk, etc.; and a communication section 709 including a network interface card such as a LAN card, a modem, etc. The communication section 709 performs communication processing via a network such as the Internet. A drive 710 is also connected to the I / O interface 705 as needed. A removable medium 711, such as a magnetic disk, an optical disk, a magneto-optical disk, a semiconductor memory, etc., is installed on the drive 710 as needed, so that a computer program read therefrom is installed into the storage section 708 as needed.
[0066] In particular, according to an embodiment of the present disclosure, the process described above with reference to the flowchart can be implemented as a computer software program. For example, an embodiment of the present disclosure includes a computer program product, which includes a computer program carried on a computer-readable storage medium, and the computer program includes a program code for executing the method shown in the flowchart. In such an embodiment, the computer program can be downloaded and installed from the network through the communication part 709, and / or installed from the removable medium 711. When the computer program is executed by the central processing unit (CPU) 701, the above functions defined in the method of the present application are executed. It should be noted that the computer-readable storage medium of the present application can be a computer-readable signal medium or a computer-readable storage medium or any combination of the above two. The computer-readable storage medium can be, for example, - but not limited to - an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, device or device, or any combination of the above. More specific examples of computer-readable storage media may include, but are not limited to, an electrical connection with one or more conductors, a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the above. In the present application, a computer-readable storage medium may be any tangible medium containing or storing a program that can be used by or in conjunction with an instruction execution system, device, or device. In the present application, a computer-readable signal medium may include a data signal propagated in a baseband or as part of a carrier wave, in which a computer-readable program code is carried. 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. A computer-readable signal medium may also be any computer-readable storage 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, device, or device. The program code contained on the computer-readable storage medium may be transmitted using any appropriate medium, including but not limited to: wireless, wireline, optical cable, RF, etc., or any suitable combination of the foregoing.
[0067] 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 cases involving 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).
[0068] The flow chart and block diagram in the accompanying drawings illustrate the possible architecture, function and operation of the system, 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 alternative implementations, 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 hardware-based system that performs a specified function or operation, or can be implemented with a combination of dedicated hardware and computer instructions.
[0069] The modules involved in the embodiments of the present application may be implemented by software or by hardware.
[0070] As another aspect, the present application also provides a computer-readable storage medium, which may be included in the electronic device described in the above embodiment; or it may exist independently without being assembled into the electronic device. The above computer-readable storage medium carries one or more programs. When the above one or more programs are executed by the electronic device, the electronic device: in the browser to be migrated out, in response to having the permission to browse web pages, extracts environmental data, serializes the environmental data and exports an environmental file, wherein the environmental data includes the environmental data of LocalStorage&SessionStorage, Cookies, and IndexedDB storage technology data sets; imports the environmental file into the browser to be migrated in, sets the environment after parsing the deserialized environment, and opens and has the right to browse the consistent web page.
[0071] The above description is only a preferred embodiment of the present application and an explanation of the technical principles used. Those skilled in the art should understand that the scope of the invention involved in the present application is not limited to the technical solution formed by a specific combination of the above technical features, but should also cover other technical solutions formed by any combination of the above technical features or their equivalent features without departing from the above invention concept. For example, the above features are replaced with the technical features with similar functions disclosed in this application (but not limited to) by each other to form a technical solution.
Claims
1. A cross-browser web page migration method, characterized in that: include: S1: In the browser to be migrated, in response to having the permission to browse web pages, extracting environmental data, serializing the environmental data and exporting the environmental file, the environmental data including the environmental data of LocalStorage&SessionStorage, Cookie, and IndexedDB storage technology data sets; S2: Import the environment file into the browser to be migrated, parse and deserialize the environment, set the environment, open and allow the browser to browse the consistent web page.
2. The cross-browser webpage migration method according to claim 1, characterized in that: In S1, for Cookie data, the domain source set of the frame associated with all pages is obtained, the list of all cookies of the browser to be migrated is extracted, the cross-domain domain source set is derived from the domain field of the Cookie, and the global source set is merged to obtain the global source set. The global source set and all Cookies together constitute the environmental source data of the Cookie, which is serialized and persisted as an environmental file.
3. The cross-browser webpage migration method according to claim 1, characterized in that: In S1, for the LocalStorage&SessionStorage, Web DOM technology is used to inject the target web page environment through a plug-in to perform an extraction operation. The LocalStorage&SessionStorage is internally stored as a JSON object and the value type is a string. It is directly serialized and persisted to obtain an environment file.
4. The cross-browser webpage migration method according to claim 1, characterized in that: In S1, for the IndexedDB, the corresponding Web API operation is used to inject the plug-in into the target web page environment to perform the extraction operation. By enumerating all databases, tables in each database, and fields in the table, they are summarized and serialized according to the field type. If the field contains a CryptoKey object, the IndexedDB environment is manually copied.
5. The cross-browser webpage migration method according to claim 1, characterized in that: The step before S2 also includes determining whether the IndexedDB environment needs to be supplemented, and if necessary, copying the manually copied IndexedDB folder content to the consistency directory of the browser to be migrated.
6. The cross-browser webpage migration method according to claim 1, characterized in that: The S2 specifically includes: deserializing and parsing the environment file, obtaining the environment data of Cookie, LocalStorage&SessionStorage and IndexedDB: For the Cookie environment, enumerate all domain source links and each Cookie, and in response to the domain source link matching the domain field of the Cookie object, perform association setting; For LocalStorage & SessionStorage, inject a custom settings script when loading or refreshing the page, and set it through window.localStorage and window.sessionStorage respectively; For IndexedDB, inject custom scripts into the page and use Web API operations to enumerate all database information. If it does not exist, create it. Then enumerate all tables in each database. If it does not exist, create it. Try to set the value of each field in each table and skip existing fields.
7. A computer-readable storage medium having one or more computer programs stored thereon, characterized in that: When the one or more computer programs are executed by a computer processor, the method according to any one of claims 1 to 6 is implemented.
8. A cross-browser web page migration system, characterized in that: include: An environment migration unit is configured to extract environment data in the browser to be migrated in response to having the permission to browse web pages, serialize the environment data and export the environment file, wherein the environment data includes environment data of LocalStorage&SessionStorage, Cookie, and IndexedDB storage technology data sets; The environment migration unit is configured to import the environment file into the browser to be migrated, set the environment after parsing the deserialized environment, and open and allow the browser to browse the consistent web page.
9. The cross-browser webpage migration system according to claim 8, characterized in that: For Cookie data, obtain the domain source set of the frame associated with all pages, extract the list of all cookies of the browser to be migrated, derive the cross-domain domain source set from the domain field of the Cookie, merge them to obtain the global source set, and the global source set and all Cookies together constitute the environmental source data of the Cookie, which is serialized and persisted as an environment file.
10. The cross-browser webpage migration system according to claim 8, characterized in that: For the LocalStorage & SessionStorage, Web DOM technology is used to inject the target web page environment through a plug-in to perform the extraction operation. The LocalStorage & SessionStorage is internally stored as a JSON object and the value type is a string. It is directly serialized and persisted to obtain the environment file.
11. The cross-browser webpage migration system according to claim 8, characterized in that: For the IndexedDB, the corresponding Web API operation is used to inject the plug-in into the target web page environment to perform the extraction operation. All databases, tables in each database, and fields in the table are enumerated, summarized and serialized according to the field type. If the field contains a CryptoKey object, the IndexedDB environment is manually copied.
12. The cross-browser webpage migration system according to claim 8, characterized in that: The environment migration unit also includes determining whether it is necessary to supplement the IndexedDB environment, and if necessary, copying the manually copied IndexedDB folder content to the consistency directory of the browser to be migrated.
13. The cross-browser webpage migration system according to claim 8, characterized in that: The environment migration unit is specifically configured to deserialize and parse the environment file to obtain the environment data of Cookie, LocalStorage&SessionStorage and IndexedDB: For the Cookie environment, enumerate all domain source links and each Cookie, and in response to the domain source link matching the domain field of the Cookie object, perform association setting; For LocalStorage & SessionStorage, inject a custom settings script when loading or refreshing the page, and set it through window.localStorage and window.sessionStorage respectively; For IndexedDB, inject custom scripts into the page and use Web API operations to enumerate all database information. If it does not exist, create it. Then enumerate all tables in each database. If it does not exist, create it. Try to set the value of each field in each table and skip existing fields.