Search

CN-121980097-A - Page navigation control method and system for vehicle-mounted browser

CN121980097ACN 121980097 ACN121980097 ACN 121980097ACN-121980097-A

Abstract

The invention provides a page navigation control method and a page navigation control system for a vehicle-mounted browser, which are used for creating a vehicle-mounted browser context in a target vehicle-mounted system starting or vehicle-mounted browser initializing stage and maintaining a main item catalog instance in the vehicle-mounted browser context, analyzing a window opening instruction contained in a webpage through a chrome kernel to generate a navigation request when page jump occurs to the page of the vehicle-mounted browser, packaging the navigation request into a parameter object, judging the navigation request according to a window opening type field in the parameter object to obtain a judging result, executing page loading or request interception according to the judging result, redirecting a target webpage address to the main item catalog instance to finish page jump of the same label, preventing malicious webpages from frequently creating new windows, improving system safety, reducing the number of the main item catalog instance, reducing the occupation of CPU, memory and GPU resources, and improving the stability of the vehicle-mounted browser.

Inventors

  • LIU YAMING
  • ZENG HUAN

Assignees

  • 湖南小算科技信息有限公司

Dates

Publication Date
20260505
Application Date
20260127

Claims (7)

  1. 1. A page navigation control method for a vehicle-mounted browser, comprising: Step 1, creating a context of a vehicle-mounted browser in a target vehicle-mounted system starting or vehicle-mounted browser initializing stage, and maintaining a main project catalog instance in the context of the vehicle-mounted browser, wherein the main project catalog instance is used for bearing all webpage contents; Step 2, when the page of the vehicle-mounted browser jumps, analyzing a window opening instruction contained in the webpage through a chrome inner core, and generating a navigation request corresponding to the window opening instruction; step 3, packaging the navigation request as a parameter object, and judging the navigation request according to a window opening type field in the parameter object to obtain a judging result; and step 4, executing page loading or request interception according to the judging result, and redirecting the target webpage address to the main project directory instance to finish the page jump of the same label.
  2. 2. The page navigation control method for an in-vehicle browser of claim 1, wherein said master catalog instance is in an active state.
  3. 3. The page navigation control method for an in-vehicle browser according to claim 1, wherein the window opening instruction includes an in-page jump request instruction, a new window load request instruction, and a new tab page load request instruction.
  4. 4. The page navigation control method for the in-vehicle browser according to claim 3, wherein the determination result includes a current in-page jump request and a new window or new tab page request.
  5. 5. The page navigation control method for a car browser according to claim 4, wherein performing page loading or request interception according to the determination result comprises: When the judging result is the current page internal jump request, directly executing a page loading flow; When the judging result is a new window or new tab page request, the process of the vehicle-mounted browser calls an instruction in a webpage content request or calls a new window creating method of the vehicle-mounted browser before preparing to create a new page instance, and request interception is carried out in the new window creating method.
  6. 6. The page navigation control method for an in-vehicle browser of claim 5, wherein the instructions in the web content request include creating a new window, adding new web content, and opening a web address from a tab.
  7. 7. A page navigation control system for a vehicle-mounted browser, comprising: The maintenance module is used for creating the context of the vehicle-mounted browser in the starting or vehicle-mounted browser initialization stage of the target vehicle-mounted system, and maintaining a main catalog instance in the context of the vehicle-mounted browser, wherein the main catalog instance is used for bearing all webpage contents; the analyzing module is used for analyzing a window opening instruction contained in the webpage through the chrome inner core when the page of the vehicle-mounted browser jumps, and generating a navigation request corresponding to the window opening instruction; the judging module is used for packaging the navigation request into a parameter object, judging the navigation request according to a window opening type field in the parameter object, and obtaining a judging result; and the redirection module is used for executing page loading or request interception according to the judging result, and redirecting the target webpage address to the main project directory instance to finish the page jump of the same label.

Description

Page navigation control method and system for vehicle-mounted browser Technical Field The invention relates to the technical field of vehicle-mounted system control, in particular to a page navigation control method and system for a vehicle-mounted browser. Background Along with the development of intelligent cabins and vehicle-mounted operating systems, more and more vehicles integrate Android or Linux-based vehicle-mounted systems, and a vehicle-mounted browser based on a chromoum kernel is built in the vehicle-mounted systems and used for achieving functions of online navigation, consultation display, application server cloud interaction and the like. Existing chromoum kernels support multi-tab and multi-window mechanisms by default, with their page navigation logic creating a new tab page or item directory, typically according to the following conditions: 1. a new window request triggered by target= _blank and window () in the webpage; 2. An application or a system requests to open a new webpage address in an abstract description mode; 3. Automatically determining a newly built tab page in the Chromium kernel according to window layout parameters in the navigation process; 4. the browser policy allows multiple project catalog instances to exist in parallel. However, in the in-vehicle application scenario, the multi-tab or multi-window mechanism is prone to the following technical problems: 1. The attention of the driver is dispersed, and the safety specification of vehicle-mounted man-machine interaction is not met; 2. occupying limited vehicle-mounted computing and GPU resources, and affecting the instantaneity and stability of the system; 3. The complexity of page life cycle management is increased, and the reliable operation of the system is not facilitated; 4. the method can be used by malicious webpages to frequently create new windows, thereby causing potential safety hazards. Disclosure of Invention The invention provides a page navigation control method and a page navigation control system for a vehicle-mounted browser, and aims to improve safety and stability of a vehicle-mounted system. In order to achieve the above object, the present invention provides a page navigation control method for a vehicle-mounted browser, including: Step 1, creating a vehicular browser context in a target vehicular system starting or vehicular browser initializing stage, and maintaining a main catalog instance in the vehicular browser context, wherein the main catalog instance is used for bearing all webpage contents; step 2, when the page of the vehicle-mounted browser jumps, analyzing a window opening instruction contained in the webpage through a chrome inner core, and generating a navigation request corresponding to the window opening instruction; Step 3, packaging the navigation request as a parameter object, and judging the navigation request according to a window opening type field in the parameter object to obtain a judging result; and step 4, executing page loading or request interception according to the judging result, and redirecting the target webpage address to the main project directory instance to finish the page jump of the same label. Further, the master catalog instance is in an active state. Further, the window open instruction includes an in-page jump request instruction, a new window load request instruction, and a new tag page load request instruction. Further, the judging result comprises a jump request in the current page and a new window or new label page request. Further, performing page loading or request interception according to the judgment result, including: when the judging result is the current page internal jump request, directly executing the page loading flow; When the judging result is a new window or new tab page request, the process of the vehicle-mounted browser calls an instruction in the webpage content request or calls a new window creating method of the vehicle-mounted browser before preparing to create a new page instance, and request interception is carried out in the new window creating method. Further, the instructions in the web content request include creating a new window, adding new web content, and opening a web address from the tag. The invention also provides a page navigation control system for the vehicle-mounted browser, which comprises the following steps: the maintenance module is used for creating a vehicular browser context in a target vehicular system starting or vehicular browser initializing stage and maintaining a main project catalog instance in the vehicular browser context, wherein the main project catalog instance is used for bearing all webpage contents; The analyzing module is used for analyzing a window opening instruction contained in the webpage through the chrome inner core when the page of the vehicle-mounted browser is jumped, and generating a navigation request corresponding to the window opening instruction; the judging module is used