Bug 208540 - Web Inspector: Demo Audit > ... > getResourceContent fails upon (HTTPS) redirect
Summary: Web Inspector: Demo Audit > ... > getResourceContent fails upon (HTTPS) redirect
Status: NEW
Alias: None
Product: WebKit
Classification: Unclassified
Component: Web Inspector (show other bugs)
Version: WebKit Nightly Build
Hardware: All All
: P2 Normal
Assignee: Nobody
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2020-03-03 15:32 PST by Ross Kirsling
Modified: 2020-03-03 15:32 PST (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Ross Kirsling 2020-03-03 15:32:45 PST
Repro:
1. Enter a protocol-less URL like `webkit.org` into URL bar (but make sure it doesn't autocomplete from history).
2. Open Web Inspector Audit tab and hit Start.

Result:
Demo Audit > Specially Exposed Data > Resources > getResourceContent fails.
> TypeError: undefined is not an object (evaluating 'mainResource.id')

Notes:
- HTTPS redirects are the easiest repro scenario, but any redirect should cause the same result.