mirror of
https://github.com/open-webui/open-webui.git
synced 2026-05-06 10:58:17 -05:00
[GH-ISSUE #17800] issue: Pipeline HTML responses always end up in a too-short iframe because client strips scripts & resets height #33929
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @ckemmler on GitHub (Sep 26, 2025).
Original GitHub issue: https://github.com/open-webui/open-webui/issues/17800
Check Existing Issues
Installation Method
Git Clone
Open WebUI Version
0.6.31
Ollama Version (if applicable)
No response
Operating System
macOS Tahoe
Browser (if applicable)
Brave
Confirmation
README.md.Expected Behavior
min-height/ fixed size specified in thereturned HTML; or
pipeline/tool emits HTML.
Actual Behavior
this.style.height = (this.contentWindow.document.body.scrollHeight + 20) + "px"immediately afterload.
cannot override that behavior.
~240px) despite setting
min-height: 750pxinside the HTML.Steps to Reproduce
{ "type": "html", "content": "<!DOCTYPE html>…<body style='min-height:750px'>…</body>" }.Logs & Screenshots
html, body { min-height: 750px; }butscrollHeightstillcomes back around 240px, so the iframe height keeps resetting.
Additional Information
I’m embedding a pipeline that returns HTML cards (Calibre library results).
The backend wraps the cards in a standalone HTML document (with
min-height: 750px) and responds through Open WebUI’s pipeline interface.On the client, the rendered iframe always shrinks to the actual card height
(~240px).
Adding inline
<script>or attributes to force the height is ineffectivebecause DOMPurify strips them; the chat frontend then runs its own
onload="this.style.height=...scrollHeight...", which recalculates theshrinked size.
@tjbck commented on GitHub (Sep 26, 2025):
Could you elaborate more on what you mean by pipeline here?