Repository navigation
fix: Download in a chat's frame that saves nothing opens a tab that saves the package, or says the way by hand (#114) - #115
Merged
Conversation
…aves the package, or says the way by hand (#114) A chat's frame may drop the page's own download with nothing said, and nothing tells a page that it does: in Grok a press on Download did nothing. So a framed page does not count on its own download where the parent does not save for it. Where the parent opens links and a tab can build the package, Download hands the parent a link to a tab that builds and saves it; elsewhere the browser is left to try, and the way that works in any frame is said under the stage.
There was a problem hiding this comment.
All reported issues were addressed across 1 file
Reply with feedback, questions, or to request a fix.
View guided diff | Turn on auto-fix | Re-trigger cubic
…ce a file it was built with is in the frame (#114)
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Closes #114.
In Grok the app's card plays an activity in the reply, but a press on Download .h5p did nothing and nothing was said. The play page left the save to the browser there, and the chat's frame dropped it. Nothing tells a page that its frame drops a download, so a framed page no longer counts on its own where the parent does not save for it.
What Download does now, framed by a parent that saves no file
A tab builds the same package only from a source that names no file. A file the package was built with is in the frame, chosen there or brought there, whatever address a preview played it from before: a tab would fetch that address again, for a file that may be another by now. The saving tab is the one a video too big for a chat's save already uses (#102, #104).
Unchanged: a tab of the page's own, where the browser saves the link; and a parent that saves files itself (ChatGPT), where the package is handed to it.
Both rows are the page's existing row under the stage. Looked at in light and dark, at 760 px and at a phone's 390 px: no scroller.
Testing
By hand, in a page that stands in for a chat: the app's card (h5p-toolkit main) in a frame sandboxed with no
allow-downloadsand noallow-popups, speaking MCP Apps, with this branch's build served locally.boiling-point.h5pand reaches its saved state;tscand the build are clean.Not verified:
http://127.0.0.1for a secure context, so the page builds nothing there, with or without this change.