Skip to content

UI: add file picker to the Download link in the sidebar#2128

Merged
primiano merged 1 commit intomainfrom
dev/primiano/uisaveas
Jul 11, 2025
Merged

UI: add file picker to the Download link in the sidebar#2128
primiano merged 1 commit intomainfrom
dev/primiano/uisaveas

Conversation

@primiano
Copy link
Member

@primiano primiano commented Jul 10, 2025

Also fix a bug in postmessage_handler, where we ignore
localOnly: false, giving no option to the embedder to allow downloads.

Bug: b/430934358

@primiano primiano requested a review from a team as a code owner July 10, 2025 20:19
@primiano primiano force-pushed the dev/primiano/uisaveas branch from a3b7beb to d1c6f9c Compare July 10, 2025 20:20
@primiano primiano changed the title dev/primiano/uisaveas UI: add file picker to the Download link in the sidebar Jul 10, 2025
@primiano primiano requested a review from stevegolton July 10, 2025 20:21
Copy link
Member

@stevegolton stevegolton left a comment

Choose a reason for hiding this comment

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

Are we OK with using experimental features?

https://developer.mozilla.org/en-US/docs/Web/API/Window/showSaveFilePicker

Also just to note that folks will require two clicks to download a file now.

@primiano
Copy link
Member Author

Are we OK with using experimental features?

As long as we have a fallback I think it's okay.

@primiano primiano merged commit 3a2f508 into main Jul 11, 2025
21 checks passed
@primiano primiano deleted the dev/primiano/uisaveas branch July 11, 2025 09:30
olehkuznetsov pushed a commit to olehkuznetsov/perfetto that referenced this pull request Mar 12, 2026
Also fix a bug in postmessage_handler, where we ignore 
localOnly: false, giving no option to the embedder to allow downloads.

Bug: b/430934358
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.

2 participants