Skip to content

Add a function that preserves order when extracting stack scripts#4

Open
gunesacar wants to merge 2 commits intomozilla:masterfrom
gunesacar:master
Open

Add a function that preserves order when extracting stack scripts#4
gunesacar wants to merge 2 commits intomozilla:masterfrom
gunesacar:master

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