Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Alt-click to recursive expand in html renderer #325

Merged
merged 2 commits into from
Aug 1, 2024
Merged

Alt-click to recursive expand in html renderer #325

merged 2 commits into from
Aug 1, 2024

Conversation

joerick
Copy link
Owner

@joerick joerick commented Aug 1, 2024

Fix #320

  • Upgrade JS deps

@joerick joerick merged commit eaedf2a into main Aug 1, 2024
21 checks passed
@@ -19,6 +20,7 @@ export default class Frame {
group: Group | null;

constructor(jsonObject: FrameData, parent: Frame|null = null, context: FrameContext = {groups:{}}) {
this.uuid = crypto.randomUUID()
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this breaks for me. I get

Uncaught TypeError: crypto.randomUUID is not a function
at data:text/html

in the embeded script (chrome, latest). Even if crypto.randomUUID() from the console does return a UUID. Should crypto be somehow imported ?

Copy link
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

yeah, thats a bug, thanks for reporting. see #328

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Might just be some caching locally (ignore for now).

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

thanks !

Copy link
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

No, i think you're right. This api only works in secure contexts. Some users will load pyinstrument from insecure contexts, like http servers. I guess data URIs are classed as insecure contexts too, maybe again the rules are a bit opaque. I've pushed a fix for that anyway.

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.

Feature Request: Render stack as collapsed in HTML
2 participants