Bug 243057
| Summary: | Fix error in WPT CSP test on timeout | ||
|---|---|---|---|
| Product: | WebKit | Reporter: | Matthew Finkel <m_finkel> |
| Component: | Tools / Tests | Assignee: | Matthew Finkel <m_finkel> |
| Status: | ASSIGNED | ||
| Severity: | Normal | CC: | webkit-bug-importer |
| Priority: | P2 | Keywords: | InRadar |
| Version: | WebKit Nightly Build | ||
| Hardware: | Unspecified | ||
| OS: | Unspecified | ||
| See Also: | https://github.com/web-platform-tests/wpt/pull/34932 | ||
Matthew Finkel
This bug is shown in bug 239568: when the CSP test times out, the report.py script sends an empty array ('[]') to the checkReport.sub.js script; but the latter script expects, at minimum, the array's zero-ith index is defined. As a result, we get an error like:
> undefined is not an object (evaluating 'data[0]["body"]')
| Attachments | ||
|---|---|---|
| Add attachment proposed patch, testcase, etc. |
Radar WebKit Bug Importer
<rdar://problem/97384573>
Matthew Finkel
Pull request: https://github.com/webkit/WebKit/pull/2618
Matthew Finkel
Submitted web-platform-tests pull request: https://github.com/web-platform-tests/wpt/pull/34932