Skip to content

TE-29179: vendor dom-serializer with canvas + iframe capture for Salesforce/Aura pages; bump to 4.1.84 - #568

Open
shrinishLT wants to merge 2 commits into
LambdaTest:stagefrom
shrinishLT:TE-29179
Open

shrinishLT wants to merge 2 commits into
LambdaTest:stagefrom
shrinishLT:TE-29179

Conversation

@shrinishLT

@shrinishLT shrinishLT commented Sep 18, 2026

Copy link
Copy Markdown
Contributor

Why

On Salesforce Lightning pages the served dom-serializer.js takes an Aura-specific branch (DOT-4375) that returns a raw cloneNode(true). A <canvas> has no pixels in HTML and dashboards/reports render inside same-origin iframes the branch never entered, so charts arrived empty / frames blank (customer org 123300, build 03dcf0af…, snapshot COMPLIANCE_243654ComponentLayout).

Change

  • src/dom/dom-serializer.js: rebuilt from smartui-cli-dom-serializer#17 — the Aura branch now inlines drawn canvases as <img> (data URL) and embeds same-origin iframes as srcdoc, serialized the same way. Byte-identical to that PR's dist/bundle.js.
  • package.json: 4.1.83 → 4.1.84.

The Aura branch is deliberately kept: routing Salesforce pages through the standard pipeline converts LWC synthetic shadow roots into real ones and cuts them off from document CSS (verified live: SLDS icons render at intrinsic size).

Validation — stage, live lambdatest.lightning.force.com, playwright SDK (project 01M2T8WTXKC9P4FF6MN804YCV7)

page stock 4.1.79 (022c382f…) this branch (39028bef…)
Home — Team Pipeline (4 canvases, top document) chart blank chart rendered
CS Visibility dashboard (18 canvases inside the dashboard iframe) whole dashboard blank all widgets + charts rendered
CsTeam report (2 canvases inside the report iframe) blank chart + table rendered
customer's exact dashboard DOM (12 canvases) 6 blank widgets 12/12 charts
Header/icons unchanged; 0 discovery errors; non-Aura pages byte-identical (harness).

Ticket: https://lambdatest.atlassian.net/browse/TE-29179
Depends on: LambdatestIncPrivate/smartui-cli-dom-serializer#17

🤖 Generated with Claude Code

https://claude.ai/code/session_01RDVDDncWZxnu1eh3Mp8Dj8

@shrinishLT shrinishLT changed the title TE-29179: vendor dom-serializer without the Aura/Salesforce shortcut; bump to 4.1.84 TE-29179: vendor dom-serializer with canvas capture for Salesforce/Aura pages; bump to 4.1.84 Sep 18, 2026
shrinishLT and others added 2 commits September 18, 2026 21:05
…ura/Salesforce path

Rebuilt from smartui-cli-dom-serializer PR LambdaTest#17. Salesforce dashboard and report
<canvas> charts, including those inside same-origin iframes, are now captured;
the Aura path is otherwise unchanged.

Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01RDVDDncWZxnu1eh3Mp8Dj8
Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01RDVDDncWZxnu1eh3Mp8Dj8
@shrinishLT shrinishLT changed the title TE-29179: vendor dom-serializer with canvas capture for Salesforce/Aura pages; bump to 4.1.84 TE-29179: vendor dom-serializer with canvas + iframe capture for Salesforce/Aura pages; bump to 4.1.84 Sep 18, 2026
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