-
Notifications
You must be signed in to change notification settings - Fork 0
Description
Summary
Chrome DevTools HAR exports can silently omit response bodies for certain requests, causing correlation failures when the dynamic value only appears in a missing response. This is a fundamental limitation of browser-based HAR capture that affects complex applications like Salesforce Lightning.
Problem
During Salesforce testing, the aura.token (a JWT session token) could not be correlated because:
- The token is bootstrapped in the initial
one/one.appHTML page response viaAura.initConfig - Chrome recorded the request/response metadata correctly (
size: 72356) - But the response body text was empty (
textLen: 0) — Chrome simply didn't capture it - The token appears 213 times across subsequent requests but zero times in any response body in the HAR
- Without the source response, correlation is impossible
This is a known Chrome DevTools limitation — large or streaming HTML responses are sometimes not captured in HAR exports, particularly initial page loads.
Impact
- Salesforce Lightning:
aura.token,fwuid, and other bootstrap values fromone/one.app - Any SPA framework that bootstraps config/tokens in the initial HTML payload
- Applications using Server-Sent Events, WebSocket upgrades, or streaming responses
- Large HTML pages where Chrome truncates or skips the response body
Ideas to Explore
- Proxy-based recording mechanism (capture at network level, convert to HAR)
- Fiddler output integration (users have already requested this)
- Charles Proxy / mitmproxy session import
- Hybrid approach: HAR + supplementary capture for missing bodies
- Pre-flight HAR validation that flags entries with
size > 0but empty body
Note: This issue is for capturing the problem scope and gathering requirements. Solution design should come after understanding the full range of affected scenarios.
Reproduction
- Record a Salesforce Lightning login + navigation in Chrome DevTools
- Export as HAR
- Search HAR for
aura.tokenvalue — found only in request bodies, never in response bodies - Check the
one/one.appentry:response.content.size > 0butresponse.content.textis empty
Priority
2. HIGH — blocks correlation for major enterprise applications (Salesforce, potentially others)
Filed from Salesforce HAR testing session (2026-02-14)