* fix(studio): a sealed save draws in the reply's task and spares a regrab's draft
* fix(core): a sealed patch redraws a repeating timeline on the pass it's on
* test(core): a page naming one script in thousands of tags bundles once
* fix(core): a page naming one script in thousands of tags builds once
* test(core): a nomodule or data-block twin keeps the regular script, many spellings stay fast
* fix(core): keep the regular script beside a nomodule twin and index script tags once
* test(core): tags of many types naming one file add a bounded number of copies
* fix(core): one file is inlined at most four times, whatever types its tags name
* test(core): every data block keeps its text, and many copies of one file are refused
* fix(core): charge each inlined script copy to the page's size limit, not a per-type cap
* test(core): two data blocks of one type naming one file both keep their text
* fix(core): only runnable scripts are deduplicated; every data block keeps its text
* test(core): a sealed draft's cancel leaves a transform it never drew to GSAP
* fix(core): a sealed scale resize shows its new scale once saved, not the old one
* test(core): a sealed resize probe measures a % translate the way the draft draws it
* fix(core): a sealed resize keeps a layer centred by a % translate under the pointer
* perf(producer): compile time stays linear on pages with thousands of clips or style rules
* perf(producer): each background rule's selector matches in bounded time, :has() included
* fix(producer): a wrapper's escaped class selector still finds its background
* fix(core): the motion path plugin loads from beside the page's own GSAP, never a CDN it did not name
* test(core): local root, revalidation and path-free preload rows
* fix(core): the motion path plugin never falls back to jsDelivr, nor preloads for a page with none
* fix(core): the plugin path beside GSAP is cut in linear time
* test(core): the Desktop walk film's plugin request stays on its origin
* fix(core): preload the motion path plugin only from the page's origin or a configured mirror
* fix(core): the motion path preload compares with the preview document's own origin
* fix(core): one rule decides the motion path plugin URL, bound to the document's own origin
* fix(studio-server): the plugin tag sits beside the page's GSAP as the page wrote it
* test(studio): the plugin-load fixtures name a page GSAP or a configured mirror
* fix(studio): a cropped layer's outline is cut at the layer's own scale, sealed or not
* fix(core): the geometry stream keeps an element whose geometry now carries its layout size
* fix(studio): a turned layer's crop is cut at its own scale, not its upright box's
* fix(studio): a turned layer's cropped box is the bounds of its cut corners
* test(studio): crossed and mirrored crop probes in both frames
* fix(studio): crossed insets meet and mirrored layers cut their own edge in both previews
* fix(studio): the CSS scale property counts in a cropped layer's box in both previews
* fix(studio): every overlay measure reads the transform the browser composes
* fix(studio): a layer turned out of its plane takes the box the browser paints
* fix(studio): a projected transform chain takes the box the browser paints
* fix(studio): a layer inside a 3D context takes the box the browser paints
* fix(player): a sealed film is heard when its frame may not start sound
When a browser refuses the film's own play (an iPhone, or Chrome's tap-first
rule for a sealed frame), the player plays copies of the film's media in its
page. A sealed player could not read the frame, so it made no copies and muted
the frame anyway: silence.
The runtime now sends the clips to copy with the refusal, and again whenever
they change. The player copies only files under the composition's own folder,
anonymously, and mutes the frame only while a copy plays instead.
* fix(player): a sealed film's copy plays its file from the composition's own origin
The copy's address is now the composition's origin followed by the checked
path, never the string the frame sent. The player's size budget rises by
exactly what the sealed copies add (npm pack, main vs this branch).
* fix(player): a sealed film's copy address is rebuilt from encoded path parts
* fix(player): a sealed film's copy refuses an encoded way out of its folder
* fix(player): a sealed film is muted only once its copy plays, and only from web addresses
Copies come only from http(s) addresses, so two opaque origins never match.
A clip with an invalid file address gets no copy, and the rest are still listed.
The frame is muted once a copy is playing, and gets its sound back when the
last one fails or is dropped.
* fix(player): a sealed film gets its sound back when its last playing copy fails
* fix(player): a sealed film's mute follows its copies' own state, whatever order events arrive in
* test(player): a late timeline from the old document must not make the next load ready
* fix(player): a late timeline from the old frame document no longer makes the next load ready
* test(player): type the announce filter in the late timeline rows
* test(player): a static ready at load still asks for the runtime's held timeline
* fix(player): a static ready at load still asks the runtime for the timeline it held
* test(player): a late message the left document stamped is dropped without waiting for load
* fix(player): drop a late message from the left document, so the next is ready before its load
* test(player): the late-timeline row replays the sealed document's own timeline
* chore(player): the player's size budget sits 5% above its measured size again
* test: runtime load draws no page randomness; Studio pins the announce capability
* fix(core): the runtime's document id comes from its time origin, so renders keep their random draws
* test(core): two documents loaded at one coarsened time get different runtime ids
* fix(core): the runtime's document id is a random UUID where the browser has one
* fix(core): a patched tween on a resting scene timeline is drawn before the frame says patched
* fix(core): the frame says patched only once each patched tween has rendered
* fix(studio): a cropped layer's outline is cut at the layer's own scale, sealed or not
* fix(core): the geometry stream keeps an element whose geometry now carries its layout size
* fix(studio): a turned layer's crop is cut at its own scale, not its upright box's
* test(core): a preview's far clip with no set length loads only its length and gives its decoder back
* fix(core): a preview frees a far clip with no set length once it knows its length
* fix(core): every timeline read of a clip's length keeps the one it reported before a release
* test(core): the released clip's length is read through the runtime's own resolver
* refactor(core): an animated element's clip reads its own attributes in one place
* test(core): a far clip with no set length is held to its length, now that armed clips prefetch
* refactor(core): the far-clip load handler keeps its own comment
* test: a sealed preview's clips name their GSAP transition
* fix(studio): a sealed preview's clips keep their GSAP transition label
* fix(studio): GSAP scene and overlay clips carry their transition label too
* refactor(core): keep the SVG element and attribute allowlist in its own module
* test(studio): clipboard writes refuse markup a scripting preview reads differently
* fix(studio): paste and duplicate write only allowed markup unless it comes from the same file
* test(core): inline SVG with its namespace declarations pastes from another file
* fix(core): paste keeps SVG namespace declarations and checks xlink:href as a link
* chore(cli): regenerate the media-use SVG sanitizer from its moved allowlist
* fix(studio): rotating a layer in a sealed preview turns it from the angle its stylesheet shows
A sealed preview's stand-in carries only inline styles, so a rotate on a layer whose stylesheet sets its turn or a
centring transform started from 0 and turned about the wrong point. The frame's gesture-start answer now reports the
CSS turn (angle and where to draw it) from computed style, read by the same code Studio used, moved to
@hyperframes/core/runtime/css-rotation. The rotate draft gains a transform route, which the frame's validator now
accepts; both sides check the transform text before it can reach the saved source.
* fix(core): a sealed frame's transform text must parse as a transform list
A character allowlist let 'translate(1px' and '/*' through, so a frame could close the saved inline transform early
and swallow the element's other inline styles into it. isTransformList now folds innermost known calls until none
are left and accepts only what folds away: known function names, balanced parentheses, no comments.
* fix(studio): a pasted element lands after its own original, never inside a script
* fix(studio): a paste compares the anchor id instead of building a pattern from it
* test(core): a preview seek waits for each graded video to draw its new frame
* fix(core): a preview seek waits for each graded video to draw its new frame
* test(core): a graded video that cannot draw never holds a preview seek
* fix(core): a graded video that cannot draw never holds a preview seek
* fix(core): a far clip the player lets go of keeps its measured length
* test(studio): a capture page keeps a far clip's length while the runtime lets go of it
* fix(core): a far clip the runtime lets go of stays in Studio's clip list
* fix(player): a sealed film is ready from its document before its runtime boots
* test(core): the static composition post reaches a parent frame while the page parses
* refactor(core): keep the static read's bounds inside their file
* fix(studio): a sealed preview shows paused video frames from Studio's decoder
* fix(studio): an aborted paused-frame decode holds its slot until it settles
* fix(studio): a sealed move's save ends its drag draft in the same frame message
A sealed move on GSAP's route sent its saved x/y as patch-tweens and the end of the drawn translate as a
later draft message, so the frame could paint one frame with both: the layer one whole drag too far.
The save now carries the draft's end and the frame applies both in one task. An end that nothing takes
goes once, as one message, and an end naming an older draft is ignored.
* refactor(core): parse patch-tweens' draft ends in a wrapper, leaving the patch parser as it was
* refactor(studio): a drag member's draft end moves to its own module, under the 600-line limit
* fix(core): load the motion path plugin only for a page that tweens along a path
* fix(core): a path tween an external script builds still gets the motion path plugin
* test(studio): a path tween from an external script gets the plugin when Studio connects
* fix(core): a page with a script the preview cannot read still gets the motion path plugin
* fix(studio-server): the preview builder, not a file name, decides a page needs no path plugin
* refactor(studio-server): split the preview builder's script check
* fix(studio-server): a script the preview builder cannot read leaves the page unmarked
* fix(studio-server): the preview builder reads scripts off the event loop, within a time budget
* fix(studio-server): the preview builder resolves script paths off the event loop too
* fix(studio-server): the preview builder's script scan stays inside the request's deadline
* fix(core): the async project path check answers null for a path it cannot resolve
* fix(studio): hiding an element hides it in a sealed preview too
* fix(core): an element given data-hidden after the film loads is hidden, and shown again when it goes
* test(studio): a key pressed in a sealed preview inside the player reaches Studio
* fix(studio): a key pressed in a sealed preview reaches Studio's hotkeys
* test(core): a key typed into a field inside a shadow root stays with the field
* fix(core): a key typed into a field inside a shadow root is not taken as a shortcut
* test(studio): the sealed preview fixture connects after its frame has loaded
* test(core): a modal or button around a shadow root still owns the keys focused inside it
* fix(core): a modal or button around a shadow root still owns the keys focused inside it
* fix(core): a key target with no shadow root still reaches the playback checks
* fix(studio): a sealed undo of a GSAP-animated layer's style shows in place, without a reload
* fix(studio): a sealed undo refused after a later one reloads instead of replaying the older state
* fix(studio): a sealed undo's script re-run travels in its restore request, so no write races it
* fix(studio): import the sealed re-run builder where the undo sends it
* refactor(studio): one shape guard for the restore parser and a named re-run choice
* refactor(studio): the sealed undo attaches its re-run in one helper
* test(studio): count only the restore's own requests to the sealed frame
* fix(studio): a sealed re-run keeps a newer scrub and an unusable re-run keeps the plain restore
* fix(studio): a deferred re-run keeps a newer scrub and a newer edit; sealed preloads MotionPath
* refactor(studio): name a soft reload's mark and its script run
* test(studio): share the Chrome bundle's node shim and read the composition's own script
* fix(studio): a waiting re-run leaves the composition's script until it runs
* fix(studio): the soft-reload wait only swaps timelines a newer run left alone
* test(studio): the soft-reload wait tables drive each step from one map
* fix(studio): one MotionPath loader settles every waiting re-run when the plugin loads
* test(core): a failed MotionPath load is retried by the next re-run
* test(studio): a wait-table step after the swap waits for the swap's render
* fix(studio): only the newest soft-reload run may swap, reload or move the playhead
* fix(studio): a refused sealed tween patch re-runs the script instead of reloading
* test(studio): the playing-through-the-wait row allows the player's frame snap
* fix(studio): a late preview answer acts only when no later re-run carries its change
* test(studio): held-answer rows release a still-waiting run when the page closes
* test(core): a restore says whether it re-ran the script
* test(studio): sealed preview equals a fresh load after late answers in any order
* fix(studio): a late refusal recovers with the whole saved snapshot, attributes and timing
* fix(studio): only an explicit refusal keeps an undo's attributes from being covered
* test(studio): ordering table holds a refusal until its request posts, restores a safe attribute
* test(studio): ordering fixture carries the hf ids Studio's server serves
* fix(studio): a refused retime is never covered by a script-only re-run
* test(studio): ordering table keeps the title undo and restores safe and unsafe attributes
* refactor(studio): a restore's snapshot comes from one helper
* test(studio): a refused request is answered at its own step, as in the retime probe
* test(studio): the ordering runner lives in a shared sequence harness
* test(studio): a patch recovery after a live retime carries the retime's timing
* test(studio): the ordering fixture sends its own script instead of parsing the file
* test(studio): the sequence harness keeps its refusal table private
* test(studio): ordering table generates live retimes, scrubs and port rejections
* test(studio): a harness reload shows the new load at Studio's playhead
* test(studio): the ordering table carries the reviewer's round-8 sequences
* test(studio): the first round-8 sequence holds the live retime's refusal
* test(studio): the ordering table pins the seeds that found each round-8 class
* fix(studio): sealed recoveries keep saved timing, the live playhead and port rejections
* test(studio): sealed mocks answer through previewAnswer; channel row for error vs no reply
* test(studio): the timing sync and script commit mocks answer through previewAnswer
* refactor(studio): a late live retime's recovery is its own step
* test(studio): ordering table generates two-script files, missed deadlines and unanswered requests
* test(studio): the data-start undo restores a clip no script animates
* test(studio): a save that reloads at once counts as one nothing can apply in place
* fix(studio): sealed writes count as covered only by a newer applied run that carried their state
* test(studio): the ordering table pins the seeds that found each round-9 class
* fix(studio): a sealed re-run covers from its send only what it carried
* test(studio): the ordering fixture marks each save as Studio's write does
* test(studio): a two-script sequence may recover only by reloading
* test(studio): the harness reload loads again after a save, as Studio's shadow reload does
* test(studio): the ordering table splits its fixed rows from fresh seeds to fit the flake gate
* test(studio): the ordering fixture keeps its generator private
* fix(studio): a sealed write's file version is its save's, and timing coverage survives a later run
* fix(studio): the ledger keeps each timeline's newest snapshot by its save's version
* test(studio): soft-reload expectations name the save revision where a real save made one
* test(studio): the ordering table pins the seeds that found reversed save responses
* refactor(studio): a sealed restore's send moves to its own module under the file size cap
* test(studio): the wait table settles two waiting runs and a pause before it reads them
* test(studio): the ordering table reverses older timing writes behind a newer data-start undo
* fix(studio): a sealed write older than a file already sent to the preview is not sent
* test(studio): mocked preview channels run the send gate as the real one does
* test(studio): the patch request names its default deadline
* test(studio): the ledger pins an older live retime sent after a newer file
* fix(studio): a sealed tween patch carries its save's version without a snapshot too
* test(studio): the undo row expects the in-place re-run of the undone file
* test(studio): the ordering table loads the newer file between reversed timing syncs
* fix(studio): a new sealed preview load refuses writes older than the file it shows
* refactor(studio): the sequence runner plays a reversed step in its own function
* test(core): a Windows rename onto an existing folder gives up at once
* fix(core): a Windows rename onto a folder that exists fails at once instead of waiting 1.3 s
* test(core): a Windows rename onto an empty or unreadable folder target still waits
* fix(core): give up at once only on a folder target with files in it, and keep the wait otherwise
* fix(core): show text direction marks as visible text in printed lines
The unknown-command line and its suggestion follow the same rule.
Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
* test(cli): move the unknown-command text test to a file of its own
Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
* test(cli): write the direction mark in the test as an escape
Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
* test(cli): run the unknown command text test with the default test group
Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
* fix(cli): keep the suggestion under an unknown command on one line
Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
* fix(cli): show typed and project text as visible text in every line cli.ts prints
Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
* fix(cli): show typed text as visible text in the missing-value and extra-argument lines
The two argument checks that print their own line now show control
characters and line breaks in the repeated word as visible text. JSON
output keeps the message as built. A usage error from the argument
parser prints on one line like the CLI's own.
Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
---------
Co-authored-by: Claude Fable 5.2 <noreply@anthropic.com>
* fix(core): a fast seek no longer starts a preview reload loop
A seek to a clip the preload window called far loaded that clip behind the
window's back. The far-clip handler released it on its first metadata with
preload still "auto", so it loaded again: one wasted reload per seek, and
after two quick seeks or a fast scrub a loop on every clip the replaced seek
had touched, hundreds of reloads a second until the page closed.
A pending seek now owns the media window. When it starts, the clips it lands
on count as near, and the clips its destination does not need are let go,
along with the next takes they had armed, so their requests stop holding the
connection the destination loads over. Window passes leave media to the seek
until it commits. A clip the far-clip handler releases gets preload "none"
first, so it stays unloaded.
* fix(core): clips that are not playing let go of their requests, so plain play never freezes on a cut
Idle and paused clips no longer hold a connection open, and when the preview
waits for data the clips it paused release their open requests too, so the
wait always ends.
Upcoming clips load at preload metadata only in Chromium, where an idle
clip's unread bytes hold the connection's shared flow-control window.
Firefox and Safari keep buffering them ahead, which plays a film over a
slow link faster there.
* fix(core): a hold for data leaves the clip it waits for alone, and a seek during it stays put
A hold now reloads only the played clips it is not waiting for, so a clip
that stalls mid-play keeps its buffer and its picture. A clip the hold
reloaded goes back to the hold's time only while that same hold still
waits for it, so a seek made in between is not undone.
* test(core): every Chromium browser prefetches at preload metadata, Chrome on iOS does not
* test(core): a predicate reads only aliases in its own namespace
* fix(core): look up SVG selector aliases by namespace before matching their values
* refactor(core): index each SVG alias by attribute in its own function
* chore(core): regenerate the inlined alias module and the catalog font mirror index
* test(core): re-record the page goldens for the new inlined alias module
* refactor(core): pick a predicate's alias index in one place
* chore(core): regenerate the inlined alias module and page goldens
* test(core): pin attribute-selector alias lookups to their matches
* fix(core): look up attribute-selector aliases by sorted key instead of scanning each
* test(core): refresh page goldens for the indexed alias lookups
* refactor(core): keep the alias module's comment share
* refactor(core): pick each attribute operator's lookup from a table
* test(core): refresh page goldens and the catalog font mirror for the table lookups
* ci(player): the Safari films check can run one film many times
Started by hand, the workflow takes a film list, a run count and a browser list, and each such
start runs beside the others instead of cancelling them. A fault that shows in one run of a
film out of many needs hundreds of runs of that film to be seen, and to be shown gone.
Pushes, pull requests and the nightly run are unchanged: every heavy film, twice, in Safari
and Chrome.
* fix(core): seeking a film with many videos no longer hangs Safari
A seek in a player frame holds the picture each shown video is showing. Since #7971 that
picture is drawn through a VideoFrame of the video, which spares Chromium's image decode
cache. WebKit has no such cache, and in Safari making a VideoFrame of a video that was just
paused can block the page's main thread without end: the first seek after playback of a film
with sixteen 1080p videos never came back, and the "Heavy films: Safari vs Chrome" check
failed on it with a driver timeout.
WebKit now draws the held picture from the video element, as it did before #7971. Chromium
keeps the VideoFrame route.
* fix(cli): show control characters in failure messages as text
A failure message can quote text from the project, such as a file name or a
data-composition-src value. `compare`, `grade-compare` and `add` printed that
message to the terminal as it was, so a control character in the quoted text
reached the terminal instead of being shown.
- failCaught now prints the message with control characters written out
(\x1b, \x07, ...), the same way errorBox does. The --json envelope is
unchanged.
- The composition size limit messages write the file label the same way, so
every caller and the render server's logs get readable text.
Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
* refactor(cli): carry the reason in the helper's name instead of a comment
Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
---------
Co-authored-by: Claude Fable 5.2 <noreply@anthropic.com>
* test(producer): a nested host's id search and the entry page's elements stay bounded
* fix(producer): count composition ids once for nested hosts, and charge the entry page's elements
* fix(core): keep a later scene's id-selected !important layer hidden before it starts
The hidden-clip contents rule (`[data-hf-clip-hidden][data-hf-clip-hidden] *`)
weighs two attribute selectors. A sub-composition's own
`#id { visibility: visible !important }` is rescoped under its composition
root, so it weighs an id plus an attribute and won the !important tie. The
element then painted from frame 0, over every earlier scene, in a render.
The rule now also ships inside a cascade layer. A layered !important outranks
every unlayered !important whatever its specificity. The unlayered copy stays
for engines that order layered !important the other way (jsdom).
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
* test(producer): move the hidden-clip cascade check into its own browser test file
The flake gate re-runs every changed test file under CPU contention with a
120 s cap per run, and the whole browser contract file does not fit in it.
The two cases now live in a small integration file the gate can re-run.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
---------
Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
* test(studio): text fields and text edits in a sealed preview
* fix(studio): text fields and text edits work in a sealed preview
* refactor(core): shorter notes on edit-element markup
* refactor(studio): name the sealed text edit's steps so the code audit passes
* refactor(studio): share the text commits' steps and split the put-back check
* refactor(studio): say the sealed text edit's steps in names, not comments
* feat(core): a sealed preview's frame runs an in-place text editing session for Studio
* fix(core): a text edit session restores a removed element and ends only for its own port
* fix(core): give the preview bundler the render's expansion budget
The preview bundler inlined every sub-composition mount with only a depth
limit, so a few small files that mount each other many times assembled a
page without bound. The producer's expansion budget now lives in core, and
the bundler charges every mount and the scripts and styles generated for
it to that budget, and checks each file's size before reading it. Studio
preview shows the refusal instead of falling back to the raw page, whose
mounts the browser would expand the same way.
* refactor: drop comments the names already carry
* fix(studio-server): refuse a sub-composition preview past the render's limits
The single sub-composition page is served without bundling its mounts, and
the browser runtime then fetches one copy for every data-composition-src
host in it, with no count or byte limit. The page build now charges each
host the browser will fetch to the shared expansion budget, reading each
target's size once, and the route serves the preview's refusal page.
Also moves the preview route's size-limit check above the comment it had
displaced, and uses core's check through a light subpath.
* fix(core): give the preview bundler the render's element cap
#8295 added a 100,000-element cap to the render's expansion budget. The
preview bundler now passes chargeElements to the shared inliner too, so
preview refuses the same compositions.
* fix(studio-server): charge a percent-encoded composition src for the file it serves
The comp page build looked up each data-composition-src by its raw text, so
an encoded spelling such as b%69g.html counted as a mount but was charged
0 bytes, while the preview route decodes it and serves big.html. Resolve
the same decoded path the route serves.
* test(core): give the preview fan-out budget test a 30 s timeout
The flake gate saw it pass 9 of 10 runs under CPU contention, timing out
at the default 5 s. The neighbouring scoper bound tests use 30 s too.
* fix(core): give the preview bundler the render's expansion budget
The preview bundler inlined every sub-composition mount with only a depth
limit, so a few small files that mount each other many times assembled a
page without bound. The producer's expansion budget now lives in core, and
the bundler charges every mount and the scripts and styles generated for
it to that budget, and checks each file's size before reading it. Studio
preview shows the refusal instead of falling back to the raw page, whose
mounts the browser would expand the same way.
* refactor: drop comments the names already carry
* test(core): give the preview fan-out budget test a 30 s timeout
The flake gate saw it pass 9 of 10 runs under CPU contention, timing out
at the default 5 s. The neighbouring scoper bound tests use 30 s too.
* test(studio): text fields and text edits in a sealed preview
* fix(studio): text fields and text edits work in a sealed preview
* refactor(core): shorter notes on edit-element markup
* refactor(studio): name the sealed text edit's steps so the code audit passes
* refactor(studio): share the text commits' steps and split the put-back check
* refactor(studio): say the sealed text edit's steps in names, not comments
* fix(player): stop the preview freezing when many clips share one long recording
Brings back #7795, which #7978 took out because the HyperFrames desktop
app stopped re-reading a film after a script edit. The next commit keeps
Studio's preview, and every app that embeds it, on main's behaviour.
This reverts commit 33e1a36a39.
* fix(core): the Studio preview, and apps that embed it, keep main's clip handling
With #7795 the player's frame held clips back on every engine, by its
name, and released a clip by setting its src again. Studio's preview
sits in a player frame too, so it took both, and the HyperFrames desktop
app, which embeds that preview, stopped re-reading a film after a script
edit (#7978).
A page carrying Studio's preview mark now takes the same media decisions
as on main: the player's frame counts there on WebKit only, as before,
and a clip is released by load() with its src dropped. A plain player
embed keeps the hold-back and the new release, which is what stops a
film cut from one long recording freezing in Chrome and Firefox.
* test(studio): pasting a preview's own element keeps only markup that runs no code
* fix(studio): paste refuses an element with an event handler or a script link
* fix(studio): paste checks only markup that is not in the saved file
* test(studio): paste refuses code in elements and in links spelled to slip past
* fix(studio): paste refuses scripts, inline frames and links a browser would read as script
* refactor(studio): one owner for markup safety and the saved-or-live copy plumbing
* refactor(studio): keep the saved-markup helpers private to their module
* test(studio): clipboard text cannot mark a pasted clip as saved
* fix(studio): clipboard text cannot mark a pasted clip as saved