Skip to content

Conversation

gunesacar
Copy link

The order of script URLs and domains can be useful when analysing and visualizing call stacks. The get_set_of_script_urls_from_call_stack returns a set, hence the order information is not available to the caller.

This PR adds a function that preserves order when returning the list of script URLs. It only removes consecutive repeating script URLs (e.g. A-A-B-C -> A-B-C).

Fix import error in the test.

…nd URLs.

Fix import error in the test.

Handle cases where domains or URLs are intertwined (e.g. A-B-A-C).

This does not deduplicate the list of URLs/domains, it only removes consecutive
repeating URLs (e.g. A-A-B will result in A-B).
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant