# US 2021/0342413 A1 · Identifying code dependencies in web applications

> Agents: this data is available as JSON from the patentgrep API and MCP server — see https://patentgrep.com/llms.txt

- Number: US 2021/0342413 A1
- Document ID: US20210342413A1
- Status: Published application
- Kind: A1
- Application number: 16/861,828
- Filed: 2020-04-29
- Published: 2021-11-04
- Earliest claimed: 2020-04-29
- Assignees: Intuit Inc.
- Applicants: Intuit Inc.
- Inventors: Eric Knudtson; Rajeev Goonewardene; Sonia May- Patlin; Adil Malik; Sina Jalali; Jasmine Woo
- Web page: https://patentgrep.com/patent/US20210342413A1

## CPC

- G06F 16/9566: {URL specific, e.g. using aliases, detecting broken or misspelled links}
- G06F 8/433: {Dependency analysis; Data or control flow analysis}
- G06F 8/4434: {Reducing the memory space required by the program code}
- G06F 9/547: {Remote procedure calls [RPC]; Web services}
- G06F 8/75: Structural analysis for program understanding
- G06F 16/00: Information retrieval; Database structures therefor; File system structures therefor
- G06F 16/26: Visual data mining; Browsing structured data
- G06F 16/88: {Mark-up to mark-up conversion (conversion for visualization in web browsing G06F16/9577)}
- G06F 16/904: Browsing; Visualisation therefor (for navigating the web G06F16/954; browsing optimisation for the web G06F16/957)
- G06F 16/908: using metadata automatically derived from the content
- G06F 16/9577: {Optimising the visualization of content, e.g. distillation of HTML documents}
- G06F 16/972: {Access to data in other repository systems, e.g. legacy data or dynamic Web page generation}
- G06F 16/986: {Document structures and storage, e.g. HTML extensions}
- G06F: ELECTRIC DIGITAL DATA PROCESSING (computer systems based on specific computational models G06N)

## Abstract

A method may include receiving, from a browser, a request for a tracking pixel including a uniform resource locator (URL) of the tracking pixel and a session identifier (ID) of the browser. The URL of the tracking pixel may be included in a CSS selector. The method may further include sending, to the browser and as triggered by the request for the tracking pixel, a request to scan a document object model (DOM) of the browser. The request to scan the DOM may include the session ID. The method may further include receiving, from the browser, scan results including a set of dependencies on the CSS selector

## Claims

### Claim 1

A method comprising:
receiving, from a browser, a request for a tracking pixel comprising a uniform resource locator (URL) of the tracking pixel and a session identifier (ID) of the browser, wherein the URL of the tracking pixel is included in a CSS selector;
sending, to the browser and as triggered by the request for the tracking pixel, a request to scan a document object model (DOM) of the browser, wherein the request to scan the DOM comprises the session ID; and
receiving, from the browser, scan results comprising a set of dependencies on the CSS selector.

### Claim 2 (depends on 1)

The method of claim 1, further comprising:
storing a plurality of requests for the tracking pixel; and
determining that the total number of requests for the tracking pixel is within a scanning threshold, wherein the request to scan the DOM is sent in response to the total number of requests for the tracking pixel being within the scanning threshold.

### Claim 3 (depends on 1)

The method of claim 1, further comprising:
determining that the total number of dependencies on the CSS selector is within an obsolescence threshold; and
in response to the total number of dependencies on the CSS selector being within an obsolescence threshold:
marking the CSS selector as a candidate for obsolescence; and
transmitting an alert of the CSS selector being marked as a candidate for obsolescence.

### Claim 4 (depends on 3)

The method of claim 3, wherein the scan results further comprise:
an identifier of a code fragment that depends on the CSS selector, and
an identifier of a software component that comprises the code fragment,
wherein the alert is transmitted to an owner of the software component.

### Claim 5 (depends on 1)

The method of claim 1, wherein the request to scan the DOM is sent via a remote procedure call (RPC).

### Claim 6 (depends on 5)

The method of claim 5, wherein the RPC is sent via a websocket connection, and wherein the scan results are received via the websocket connection.

### Claim 7 (depends on 1)

The method of claim 1, wherein the URL of the tracking pixel is a property of the CSS selector.

### Claim 8

A system, comprising:
an application comprising a CSS selector; and
a tracking pixel server configured to:
receive, from a browser, a request for a tracking pixel comprising a uniform resource locator (URL) of the tracking pixel and a session identifier (ID) of the browser, wherein the URL of the tracking pixel is included in the CSS selector,
in response to receiving the request for the tracking pixel, send, to the browser and as triggered by the request for the tracking pixel, a request to scan a document object model (DOM) of the browser,
wherein the request to scan the DOM comprises the session ID, and receive, from the browser, scan results comprising a set of dependencies on the CSS selector.

### Claim 9 (depends on 8)

The system of claim 8, wherein the tracking pixel server is configured to:
store a plurality of requests for the tracking pixel; and
determine that the total number of requests for the tracking pixel is within a scanning threshold, wherein the tracking pixel server sends the request to scan the DOM in response to the total number of requests for the tracking pixel being within the scanning threshold.

### Claim 10 (depends on 8)

The system of claim 8, wherein the server is configured to:
determine that total number of dependencies on the CSS selector is within an obsolescence threshold; and
in response to the total number of dependencies on the CSS selector being within an obsolescence threshold:
mark the CSS selector as a candidate for obsolescence; and
transmit an alert of the CSS selector being marked as a candidate for obsolescence.

### Claim 11 (depends on 11)

The system of claim 11, wherein the scan results further comprise:
an identifier of a code fragment that depends on the CSS selector, and
an identifier of a software component that comprises the code fragment, wherein the alert is transmitted to an owner of the software component.

### Claim 12 (depends on 8)

The system of claim 8, wherein the tracking pixel server is configured to send the request to scan the DOM via a remote procedure call (RPC).

### Claim 13 (depends on 12)

The system of claim 12, wherein the tracking pixel server is further configured to send the RPC via a websocket connection, and wherein the tracking pixel server is further configured to receive the scan results via the websocket connection.

### Claim 14 (depends on 8)

The system of claim 8, wherein the URL of the tracking pixel is a property of the CSS selector.

### Claim 15

A method comprising:
receiving a request for an application; and
serving the application comprising code for:
accessing, by a browser executing the application, a Cascading Style Sheet (CSS) selector;
in response to accessing the CSS selector, sending, by the browser and using a uniform resource locator (URL) of a tracking pixel and a session identifier (ID) of the browser, a request for the tracking pixel, wherein the URL of the tracking pixel is included in the CSS selector;
receiving, by the browser and as triggered by the request for the tracking pixel, a request to scan a document object model (DOM) of the browser, wherein the request to scan the DOM comprises the session ID;
in response to receiving the request to scan the DOM, scanning the DOM to obtain scan results comprising a set of dependencies on the CSS selector; and
transmitting the scan results.

### Claim 16 (depends on 15)

The method of claim 15, wherein the application further comprises code to receive the request to scan the DOM via a remote procedure call (RPC).

### Claim 17 (depends on 16)

The method of claim 16, wherein the application further comprises code to receive the RPC from a server via a websocket connection, and wherein the application further comprises code to transmit the scan results via the websocket connection.

### Claim 18 (depends on 17)

The method of claim 17, wherein the server is configured to:
store a plurality of requests for the tracking pixel, the plurality of requests for the tracking pixel comprising the request for the tracking pixel; and
determine that the total number of requests for the tracking pixel is within a scanning threshold, wherein the server sends the request to scan the DOM in response to the total number of requests for the tracking pixel being within the scanning threshold.

### Claim 19 (depends on 17)

The method of claim 17, wherein the server is configured to:
determine that the total number of dependencies on the CSS selector is within an obsolescence threshold; and
in response to the total number of dependencies on the CSS selector being within the obsolescence threshold:
mark the CSS selector as a candidate for obsolescence; and
transmit an alert of the CSS selector being marked as a candidate for obsolescence.

### Claim 20 (depends on 15)

The method of claim 15, wherein the URL of the tracking pixel is a property of the CSS selector.
