Monitoring method and device for creative browser webpage and computer equipment

By dynamically intercepting function flows in Chromium-based browsers to obtain browser window instance and tab information, the issues of user perception, security, and compatibility in web page monitoring for domestically developed browsers are resolved. This achieves zero-perception, strong security, and high compatibility browser web page monitoring, suitable for multi-platform systems.

CN121744303APending Publication Date: 2026-03-27厦门天锐科技股份有限公司
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202511864822.9
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2025-12-11
Publication Date
2026-03-27

AI Technical Summary

Technical Problem

Existing technologies for webpage monitoring in domestically developed browsers suffer from issues of low user awareness, security, and compatibility, especially in Linux environments where it is difficult to achieve zero user awareness, strong security, and high compatibility.

Method used

By locating and obtaining the active browser window instance in a Chromium-based browser, and using the native window activation state management function to dynamically intercept the function execution flow, the URL and title of the currently focused tab are obtained, avoiding the opening of high-risk remote debugging ports and adapting to multiple platform systems.

Benefits of technology

It achieves browser webpage monitoring with zero user awareness, strong security and high compatibility in the domestic IT innovation environment. It can capture URL address and title in real time and accurately, supports multi-platform adaptation and complies with the security specifications of domestic IT innovation confidential scenarios.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN121744303A_ABST
    Figure CN121744303A_ABST
Patent Text Reader

Abstract

The invention relates to a monitoring method and device for a creative browser webpage and computer equipment. The method sequentially comprises the following steps of: positioning and acquiring an activated browser window instance, positioning and acquiring a tab bar model of a current focus browser window, positioning and acquiring contents of a current focus tab page, positioning and acquiring a navigation controller of the tab page, positioning and acquiring a navigation entry submitted last time, the method comprises the following steps of: positioning and acquiring a corresponding label page URL (Uniform Resource Locator) object, acquiring a URL character string of the corresponding label page URL object, acquiring a title character string of the corresponding label page URL object, and further acquiring a URL address and a title of a current webpage in real time. According to the scheme, the problems that in the prior art, the mode of obtaining URL addresses and titles in webpage monitoring is easily perceived by customers, and safety and compatibility are low are solved.
Need to check novelty before this filing date? Find Prior Art

Description

TECHNICAL FIELD

[0001] The present application relates to the technical field of computer software, and in particular to a monitoring method and device for a network page of a network browser and a computer device. BACKGROUND

[0002] In the promotion of the network browser, Linux network terminal has been widely used in key fields. Real-time, accurate and reliable capture of the network page URL and title of the network browser, and real-time monitoring of the network page are the basic rigid requirements for the security management and control, compliance audit and operation and maintenance monitoring of the network environment.

[0003] In the prior art, the monitoring of the network page of the network browser is realized by the following methods:

[0004] The browser extension / plugin scheme depends on user installation authorization. The private API of the network browser is limited by the security policy, and the interfaces of different network browsers are not unified, which has poor compatibility.

[0005] The browser developer tool protocol CDP scheme needs to open a high-risk remote debugging port, which violates the security specification of the network security scene and has insufficient security.

[0006] The optical character recognition OCR scheme has a high error rate and high CPU peak occupancy, which affects the terminal operation.

[0007] The browser local storage parsing SQLite3 parsing scheme is invalid in the traceless mode, which causes the monitoring to be out of control.

[0008] The operating system OS native framework scheme is incompatible with the Linux architecture of the Windows / macOS native tool, and cannot be transplanted.

[0009] In summary, due to the problems of adaptation, security and performance, the existing scheme has a technical capability vacuum in the network Linux environment, and an urgent need exists for a technical scheme with zero user perception, strong security, high compatibility and multi-platform adaptation. SUMMARY

[0010] The present application provides a monitoring method and device for a network page of a network browser and a computer device to at least solve the problem that the URL address and title of the current network page are easily perceived by the customer, and the security and compatibility are low in the monitoring process of the network page of the network browser in the related art.

[0011] According to a first aspect of an embodiment of the present application, a monitoring method for a network page of a network browser is first provided, which is applied to a browser with a Chromium kernel, and the method comprises the following steps:

[0012] S1, locating and acquiring an activated browser window instance.

[0013] S2, by calling the function to locate and obtain the tab bar model of the currently focused browser window through the window instance object, the tab bar model of the currently focused browser window is located and obtained.

[0014] S3, based on the tab bar model object, call the function to locate and obtain the content item of the currently focused tab, and use the function to locate and obtain the content item of the currently focused tab;

[0015] S4, using the content object of the tab, call the function to locate and obtain the navigation controller of the currently focused tab, and obtain the navigation controller of the currently focused tab;

[0016] S5, the navigation controller object calls the function to locate and retrieve the most recently submitted navigation entry;

[0017] S6, based on the navigation item object, call the function to locate and obtain the corresponding tab URL object; locate and obtain the corresponding tab URL object.

[0018] S7, the function for locating and obtaining the URL string is called through the URL object to obtain the URL string of the corresponding tab URL object;

[0019] S8: By calling the function to locate and obtain the title string of the corresponding tab URL object through the obtained navigation item object, the title string of the corresponding tab URL object is obtained.

[0020] In an optional implementation, step S1 includes:

[0021] The active browser window instance is obtained by locating the active browser window instance;

[0022] The function for obtaining the active browser window instance is a window activation state management function natively provided by the Chromium kernel browser. This function call is triggered by listening to the activation event of the browser window to ensure that the extracted browser window instance is a browser window that is active in real time.

[0023] In an optional implementation, in step S3, the function for obtaining the content item of the currently focused tab identifies the tab currently in focus in the browser window and returns the content instance of the tab corresponding to that tab, wherein the focused tab is the tab currently being operated on or displayed in the view.

[0024] In an optional implementation, in step S8, the title string returned by the function for obtaining the tab title string of the navigation entry instance is the content within the tag in the webpage HTML code or the webpage title automatically generated by the browser.

[0025] A second aspect of this application provides a monitoring device for web pages in a domestically developed browser, the device being applied to a Chromium-based browser, the device comprising:

[0026] The browser window instance acquisition module is used to locate and acquire the active browser window instance;

[0027] The tab bar model acquisition module is used to call a function to locate and obtain the tab bar model of the currently focused browser window through the window instance object, and to locate and obtain the tab bar model of the currently focused browser window.

[0028] The tab content item acquisition module is used to call a function to locate and acquire the content item of the currently focused tab based on the tab bar model object, and to locate and acquire the content item of the currently focused tab through the function;

[0029] The navigation controller acquisition module is used to call a function to locate and acquire the navigation controller of the currently focused tab by using the content object of the tab;

[0030] The navigation entry acquisition module is used to call a function to locate and acquire the most recently submitted navigation entry through the navigation controller object;

[0031] The URL object acquisition module is used to call the function to locate and obtain the corresponding tab URL object based on the navigation item object;

[0032] The URL string acquisition module is used to call the function to locate and acquire the URL string through the URL object, and obtain the URL string of the corresponding tab URL object;

[0033] The title string retrieval module is used to call the function that locates and retrieves the title string of the corresponding tab URL object by obtaining the navigation item object.

[0034] In an optional implementation, the browser window instance acquisition module is further configured to:

[0035] The active browser window instance is obtained by locating the active browser window instance;

[0036] The function for obtaining the active browser window instance is a window activation state management function natively provided by the Chromium kernel browser. This function call is triggered by listening to the activation event of the browser window to ensure that the extracted instance is a browser window that is active in real time.

[0037] In an optional implementation, in the tab content item acquisition module, the function for acquiring the content item of the currently focused tab identifies the tab currently in focus in the browser window and returns the content instance of the tab corresponding to that tab, wherein the focused tab is the tab currently being operated on or displayed in the view.

[0038] In an optional implementation, in the title string acquisition module, the title string returned by the function for acquiring the tab title string of the navigation item instance is the content within the tag in the webpage HTML code or the webpage title automatically generated by the browser.

[0039] A third aspect of this application provides an electronic device, including a processor, a communication interface, a memory, and a communication bus, wherein the processor, the communication interface, and the memory communicate with each other through the communication bus;

[0040] Memory, used to store computer programs;

[0041] When a processor executes a program stored in memory, it implements the method as described in any embodiment of the first aspect.

[0042] A third aspect of this application provides a computer-readable storage medium storing a computer program that, when executed by a processor, implements the method described in any embodiment of the first aspect.

[0043] In the monitoring method for a webpage of a domestically developed browser provided in this application embodiment, the following steps are performed in sequence: locating and obtaining the active browser window instance, locating and obtaining the tab bar model of the currently focused browser window, locating and obtaining the content of the currently focused tab, locating and obtaining the navigation controller of the tab, locating and obtaining the most recently submitted navigation item, locating and obtaining the corresponding tab URL object, obtaining the URL string of the corresponding tab URL object, and obtaining the title string of the corresponding tab URL object, thereby obtaining the URL address and title of the current webpage in real time.

[0044] The technical solution provided in this application operates at the machine code level, performing the aforementioned operations by dynamically intercepting or modifying the execution flow of runtime functions. This technology runs outside the user interface, does not alter the program's external behavior, and is difficult to detect or perceive. It does not require opening high-risk remote debugging ports or obtaining kernel system privileges, complies with security specifications for confidential scenarios in the domestic IT innovation industry, and can still provide stable monitoring in incognito mode without losing control. Furthermore, it is compatible with various domestic IT browsers and their specific distributions, does not rely on private APIs (Application Programming Interfaces), and supports efficient compatibility across multiple platforms and architectures. It solves the problems of existing technologies that rely on obtaining URL addresses and titles for webpage monitoring, which are easily perceived by customers and suffer from low security and compatibility. Attached Figure Description

[0045] The accompanying drawings, which are included to provide a further understanding of this application and form part of this application, illustrate exemplary embodiments and are used to explain this application, but do not constitute an undue limitation of this application. In the drawings:

[0046] Figure 1 This is a flowchart illustrating a method for monitoring web pages using a domestically developed browser according to an embodiment of this application.

[0047] Figure 2 This is a schematic diagram of a monitoring device for a webpage of a domestically developed browser according to an embodiment of this application;

[0048] Figure 3 This is a schematic diagram of the structure of a monitoring device for a webpage using a domestically developed browser, according to an embodiment of this application. Detailed Implementation

[0049] To enable those skilled in the art to better understand the present application, the technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only some embodiments of the present application, and not all embodiments. Based on the embodiments in the present application, all other embodiments obtained by those of ordinary skill in the art without creative effort should fall within the scope of protection of the present application.

[0050] It should be noted that the terms "first," "second," etc., in the specification, claims, and accompanying drawings of this application are used to distinguish similar objects and are not necessarily used to describe a specific order or sequence. It should be understood that such data can be interchanged where appropriate so that the embodiments of this application described herein can be implemented in orders other than those illustrated or described herein. Furthermore, the terms "comprising" and "having," and any variations thereof, are intended to cover non-exclusive inclusion; for example, a process, method, system, product, or apparatus that comprises a series of steps or units is not necessarily limited to those steps or units explicitly listed, but may include other steps or units not explicitly listed or inherent to such processes, methods, products, or apparatus.

[0051] In the context of domestically developed Linux systems, numerous software developers and system integrators have a rigid need for data acquisition. For example, vendors engaged in internet behavior management and data leakage prevention rely on the URL and title information of the current webpage in their browsers to achieve key functions such as security auditing, user access behavior analysis, and targeted data collection. Furthermore, operators of domestically developed terminals in government, finance, and energy sectors also need this information to ensure the compliance and security of terminal usage. This application aims to meet these needs by proposing a real-time, efficient, and highly compatible method for obtaining the URL and title of the current webpage in a domestically developed browser for domestically developed terminals based on a Linux system. The following detailed embodiments illustrate the solution presented in this application.

[0052] Reference Figure 1 The embodiment shown provides a method for monitoring web pages in a domestically developed browser, applied to a Chromium-based browser. The method includes the following steps:

[0053] S1, locate and obtain the active browser window instance.

[0054] In one possible embodiment of this application, in step S1 above, the active browser window instance is obtained by locating the function that obtains the active browser window instance.

[0055] The function for obtaining the active browser window instance is a window activation state management function natively provided by the Chromium kernel browser. This function call is triggered by listening to the activation event of the browser window to ensure that the extracted browser window instance is a browser window that is active in real time.

[0056] S2, by calling the function to locate and obtain the tab bar model of the currently focused browser window through the browser window instance object, the tab bar model of the currently focused browser window is located and obtained.

[0057] S3, based on the tab bar model object, call the function to locate and obtain the content item of the currently focused tab, and use this function to locate and obtain the content item of the currently focused tab.

[0058] In one embodiment of this application, the function for obtaining the content item of the currently focused tab identifies the tab currently in focus in the browser window and returns the content instance of the tab corresponding to that tab. The focused tab is the tab currently being operated on or displayed in the view.

[0059] S4, using the content object of the tab, call the function to locate and obtain the navigation controller of the currently focused tab, and obtain the navigation controller of the currently focused tab.

[0060] S5, the navigation controller object calls the function to locate and retrieve the most recently submitted navigation entry, and locates and retrieves the most recently submitted navigation entry.

[0061] S6, based on the navigation item object, call the function to locate and obtain the corresponding tab URL object, and locate and obtain the corresponding tab URL object.

[0062] S7, the URL string of the corresponding tab URL object is obtained by calling the function to locate and obtain the URL string through the URL object.

[0063] S8: By calling the function to locate and obtain the title string of the corresponding tab URL object through the obtained navigation item object, the title string of the corresponding tab URL object is obtained.

[0064] In one embodiment of this application, in step S8 above, the title string returned by the function for obtaining the tab title string of the navigation item instance is the content within the tag in the HTML code of the webpage or the webpage title automatically generated by the browser.

[0065] By employing the aforementioned technical solution, this application can effectively obtain the URL address and title of the current webpage in a domestically developed browser. Especially in the domestically developed (Linux) environment where significant capability gaps exist, because it runs at the machine code level, it performs the aforementioned operations by dynamically intercepting or modifying the execution flow of runtime functions. Running outside the user interface, it does not alter the program's external behavior and is difficult to detect or perceive. Furthermore, it does not require opening high-risk remote debugging ports or obtaining kernel system privileges, complying with security specifications for domestically developed confidential scenarios. It can still provide stable monitoring in incognito mode without losing control. Moreover, it is compatible with various domestically developed browsers and their specific distributions, without relying on proprietary APIs (Application Programming Interfaces), supporting efficient compatibility across multiple platforms and architectures. Thus, this application achieves zero user awareness, ensures system-level security, overcomes compatibility barriers, and is adaptable to multiple platforms, while simultaneously capturing the URL address and title of the current browser webpage in real time, accurately, and reliably. This method can provide strong support for software developers or system integrators performing security audits, user behavior analysis, and data collection.

[0066] Figure 2 This is a schematic diagram of the structure of a monitoring device for a domestically developed browser webpage provided in one embodiment of this application, with reference to... Figure 2 As shown, this device is used in Chromium-based browsers and includes:

[0067] The browser window instance acquisition module 301 is used to locate and acquire the active browser window instance;

[0068] The tab bar model acquisition module 302 is used to call a function to locate and acquire the tab bar model of the currently focused browser window through the window instance object, and to locate and acquire the tab bar model of the currently focused browser window.

[0069] The tab content item acquisition module 303 is used to call a function to locate and acquire the content item of the currently focused tab based on the tab bar model object, and to locate and acquire the content item of the currently focused tab through the function;

[0070] The navigation controller acquisition module 304 is used to call a function to locate and acquire the navigation controller of the currently focused tab by using the content object of the tab;

[0071] The navigation entry acquisition module 305 is used to call a function to locate and acquire the most recently submitted navigation entry through the navigation controller object;

[0072] URL object acquisition module 306 is used to call a function to locate and acquire the corresponding tab URL object based on the navigation item object;

[0073] The URL string acquisition module 307 is used to call the function for locating and acquiring the URL string through the GURL object to obtain the URL string of the corresponding tab URL object;

[0074] The title string retrieval module 308 is used to call the function to locate and retrieve the title string of the corresponding tab URL object by obtaining the navigation item object.

[0075] In one embodiment of this application, the browser window instance acquisition module 301 is further configured to:

[0076] The active browser window instance is obtained by locating the active browser window instance;

[0077] The function for obtaining the active browser window instance is a window activation state management function natively provided by the Chromium kernel browser. This function call is triggered by listening to the activation event of the browser window to ensure that the extracted browser window instance is a browser window that is active in real time.

[0078] In another embodiment of this application, in the tab content item acquisition module 303 described above, the function for acquiring the content item of the currently focused tab identifies the tab currently in focus in the browser window and returns the content instance of the tab corresponding to that tab. The focused tab is the tab currently being operated on or displayed in the view.

[0079] In yet another embodiment of this application, in the title string acquisition module 308 described above,

[0080] The function that retrieves the tab title string from the navigation item instance returns a title string that is either the content within a tag in the webpage's HTML code or a webpage title automatically generated by the browser. In the webpage monitoring method provided in the above embodiments of this application, the URL address and title information of the current browser webpage are obtained in a specific order: browser window instance—tab bar model—content of the focused tab—navigation controller of that tab—most recently submitted navigation item—URL object—URL string of the corresponding tab URL object—title string of the corresponding tab URL object. This embodiment can obtain the URL address and title of the current webpage in a domestically developed browser in real time and is applicable to any Chromium kernel browser, without being limited by a specific operating system. Therefore, it is equally applicable to other operating system environments, including Windows and macOS platforms.

[0081] This system employs the auditing of functions during service execution provided in the above method embodiments. For specific processes and technical effects, please refer to the description of the above method embodiments, which will not be repeated here.

[0082] This application also provides an electronic device, such as... Figure 3 As shown, it includes a processor 51, a communication interface 52, a memory 53, and a communication bus 544, wherein the processor 51, the communication interface 52, and the memory 53 communicate with each other through the communication bus 544.

[0083] Memory 53 is used to store computer programs;

[0084] In one embodiment of this application, when the processor 51 executes the program stored in the memory 53, it performs the following process: locating and obtaining the active browser window instance, locating and obtaining the tab bar model of the currently focused browser window, locating and obtaining the content of the currently focused tab, locating and obtaining the navigation controller of the tab, locating and obtaining the most recently submitted navigation item, locating and obtaining the corresponding tab URL object, obtaining the URL string of the corresponding tab URL object, and obtaining the title string of the corresponding tab URL object; thereby obtaining the URL address and title of the current webpage in real time.

[0085] The communication bus mentioned in the above electronic devices can be a Peripheral Component Interconnect (PCI) bus or an Extended Industry Standard Architecture (EISA) bus, etc. This communication bus can be divided into address bus, data bus, control bus, etc. For ease of illustration, only one thick line is used to represent it in the diagram, but this does not indicate that there is only one bus or one type of bus.

[0086] The communication interface is used for communication between the aforementioned electronic devices and other devices.

[0087] The memory may include random access memory (RAM) or non-volatile memory, such as at least one disk storage device. Optionally, the memory may also be at least one storage device located remotely from the aforementioned processor.

[0088] The processors mentioned above can be general-purpose processors, including central processing units (CPUs), network processors (NPs), etc.; they can also be digital signal processors (DSPs), application-specific integrated circuits (ASICs), field-programmable gate arrays (FPGAs), or other programmable logic devices, discrete gate or transistor logic devices, or discrete hardware components.

[0089] In another embodiment provided in this application, a storage medium is also provided, which stores instructions that, when run on a computer, cause the computer to execute any of the multi-system image boot methods described in the above embodiments.

[0090] In another embodiment provided in this application, a computer program product containing instructions is also provided, which, when run on a computer, causes the computer to execute any of the multi-system image boot methods described in the above embodiments.

[0091] In the above embodiments, implementation can be achieved entirely or partially through software, hardware, firmware, or any combination thereof. When implemented using software, it can be implemented entirely or partially in the form of a computer program product. The computer program product includes one or more computer instructions. When the computer program instructions are loaded and executed on a computer, all or part of the processes or functions described in the embodiments of this application are generated. The computer can be a general-purpose computer, a special-purpose computer, a computer network, or other programmable device. The computer instructions can be stored in a storage medium or transmitted from one storage medium to another. For example, the computer instructions can be transmitted from one website, computer, server, or data center to another website, computer, server, or data center via wired (e.g., coaxial cable, fiber optic, digital subscriber line (DSL)) or wireless (e.g., infrared, wireless, microwave, etc.) means. The storage medium can be any available medium that a computer can access or a data storage device such as a server or data center that integrates one or more available media. The available medium can be a magnetic medium (e.g., floppy disk, hard disk, magnetic tape), an optical medium (e.g., DVD), or a semiconductor medium (e.g., solid state disk (SSD)).

[0092] It should be noted that, in this document, relational terms such as "first" and "second" are used only to distinguish one entity or operation from another, and do not necessarily require or imply any such actual relationship or order between these entities or operations. Furthermore, the terms "comprising," "including," or any other variations thereof are intended to cover non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements includes not only those elements but also other elements not expressly listed, or elements inherent to such a process, method, article, or apparatus. Without further limitations, an element defined by the phrase "comprising one..." does not exclude the presence of other identical elements in the process, method, article, or apparatus that includes said element.

[0093] The various embodiments in this specification are described in a related manner. Similar or identical parts between embodiments can be referred to mutually. Each embodiment focuses on describing the differences from other embodiments. In particular, the system embodiments are basically similar to the method embodiments, so the description is relatively simple; relevant parts can be referred to the descriptions of the method embodiments.

[0094] The above description is merely a preferred embodiment of this application and is not intended to limit the scope of protection of this application. Any modifications, equivalent substitutions, improvements, etc., made within the spirit and principles of this application are included within the scope of protection of this application.

Claims

1. A method for monitoring web pages in a domestically developed browser, characterized in that, For browsers using the Chromium engine, the method includes the following steps: S1, Locate and obtain the active browser window instance; S2, by calling the function to locate and obtain the tab bar model of the currently focused browser window through the window instance object, the tab bar model of the currently focused browser window is located and obtained. S3, based on the tab bar model object, call the function to locate and obtain the content item of the currently focused tab, and use the function to locate and obtain the content item of the currently focused tab; S4, using the content object of the tab, call the function to locate and obtain the navigation controller of the currently focused tab, and obtain the navigation controller of the currently focused tab; S5, the navigation controller object calls the function to locate and retrieve the most recently submitted navigation entry; S6, based on the navigation item object, call the function to locate and obtain the corresponding tab URL object; locate and obtain the corresponding tab URL object. S7, the function for locating and obtaining the URL string is called through the URL object to obtain the URL string of the corresponding tab URL object; S8: By calling the function to locate and obtain the title string of the corresponding tab URL object through the obtained navigation item object, the title string of the corresponding tab URL object is obtained.

2. The method according to claim 1, characterized in that, Step S1 includes: The active browser window instance is obtained by locating the active browser window instance; The function for obtaining the active browser window instance is a window activation state management function natively provided by the Chromium kernel browser. This function call is triggered by listening to the activation event of the browser window to ensure that the extracted browser window instance is a browser window that is active in real time.

3. The method according to claim 1, characterized in that, In step S3, the function for obtaining the content item of the currently focused tab identifies the tab currently in focus in the browser window and returns the content instance of the tab corresponding to that tab. The focused tab is the tab that the user is currently operating on or that is displayed in the view.

4. The method according to claim 1, characterized in that, In step S8, the title string returned by the function for obtaining the tab title string of the navigation item instance is either the content within the tag in the HTML code of the webpage or the webpage title automatically generated by the browser.

5. A monitoring device for web pages in a domestically developed browser, characterized in that, The device is used in Chromium-based browsers, and the device includes: The browser window instance acquisition module is used to locate and acquire the active browser window instance; The tab bar model acquisition module is used to call a function to locate and obtain the tab bar model of the currently focused browser window through the window instance object, and to locate and obtain the tab bar model of the currently focused browser window. The tab content item acquisition module is used to call a function to locate and acquire the content item of the currently focused tab based on the tab bar model object, and to locate and acquire the content item of the currently focused tab through the function; The navigation controller acquisition module is used to call a function to locate and acquire the navigation controller of the currently focused tab by using the content object of the tab; The navigation entry acquisition module is used to call a function to locate and acquire the most recently submitted navigation entry through the navigation controller object; The URL object acquisition module is used to call the function to locate and obtain the corresponding tab URL object based on the navigation item object; The URL string acquisition module is used to call the function to locate and acquire the URL string through the URL object, and obtain the URL string of the corresponding tab URL object; The title string retrieval module is used to call the function to locate and retrieve the title string of the corresponding tab URL object through the navigation item object.

6. The apparatus according to claim 5, characterized in that, The browser window instance acquisition module is also used for: The active browser window instance is obtained by locating the active browser window instance; The function for obtaining the active browser window instance is a window activation state management function natively provided by the Chromium kernel browser. This function call is triggered by listening to the activation event of the browser window to ensure that the extracted browser window instance is a browser window that is active in real time.

7. The apparatus according to claim 5, characterized in that, In the tab content item acquisition module, the function for acquiring the content item of the currently focused tab identifies the tab currently in focus in the browser window and returns the instance corresponding to that tab. The focused tab is the tab that the user is currently operating on or that is displayed in the view.

8. The apparatus according to claim 5, characterized in that, In the title string acquisition module, the title string returned by the function for acquiring the tab title string of the navigation item instance is either the content within the tag in the webpage's HTML code or the webpage title automatically generated by the browser.

9. An electronic device, characterized in that, It includes a processor, a communication interface, a memory, and a communication bus, wherein the processor, the communication interface, and the memory communicate with each other through the communication bus; Memory, used to store computer programs; A processor, when executing a program stored in memory, implements the method of any one of claims 1-4.

10. A computer-readable storage medium, characterized in that, The computer-readable storage medium stores a computer program that, when executed by a processor, implements the method described in any one of claims 1-4.