Repository navigation
fix(play): a package too big for the chat's save is still built in the chat, and links open on a press (#100) - #101
Merged
Merged
Conversation
…t and kept behind Download, and a framing page that opens links is handed them (#100)
There was a problem hiding this comment.
All reported issues were addressed across 3 files
Reply with feedback, questions, or to request a fix.
View guided diff | Turn on auto-fix | Re-trigger cubic
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 #100. Part of missing-elements/h5p-toolkit#210.
In ChatGPT (the owner's run, 2026-11-24) a 230 MB Interactive Video could not be downloaded without leaving the chat: #98 refused a package bigger than the card saves and pointed to the build page, where the video has to be chosen again. And a press on "Open in the build page" opened nothing in the card. Both worked only from the browser's own menu on the link (right-click, "Open link in new tab").
What a person sees now
For the page that frames this one
{ type: 'opens' }{ type: 'open', href }opens, and only for a plain press; a press with a key held and the browser's own menu are left to the browser.sizesbesidelinkssaves,saveandsavedare as in #98, but abovemaxthe page no longer refuses: it leaves the save to the browser and says the way above.Checked
By hand, as this repository has no page tests: the built site served locally and framed by a page of another origin acting as a card, with a store on a third origin. "Sandboxed" is a frame with
sandbox="allow-scripts allow-same-origin allow-forms", which lets the page save nothing and open no tab, as ChatGPT's card was found to.max64 MB, the card answers yes (light and dark at 720 px, light at 360 px; once sandboxed)okmaxsave; the browser saveswater.h5pmaxneeds-bytes, the package built with the video in it (6.3 MB), the too-big row; the browser saves itmax64 MBsavesopens, a press on "Open in the build page" (sandboxed)openwith/h5p/build/#source=…; no tabopens, the same pressnpm run buildpasses. Screenshots of the rows looked at.Not verified
openwith the chat's own way to open a link is the next step of h5p-toolkit#210.Summary by cubic
Fixes the play page so a package too big for the chat to save is still built in the chat instead of sending the person back to the build page to re-choose a video, and so the page's links open on a press where the framing chat opens them itself.
{ type: 'opens' }to have pressed link addresses handed back as{ type: 'open', href }; the browser keeps key-modified presses and its own menu.sizesfield besidelinksis no longer read.Written for commit 30a5a41. Summary will update on new commits.