Bug 243057 - Fix error in WPT CSP test on timeout
Summary: Fix error in WPT CSP test on timeout
Status: ASSIGNED
Alias: None
Product: WebKit
Classification: Unclassified
Component: Tools / Tests (show other bugs)
Version: WebKit Nightly Build
Hardware: Unspecified Unspecified
: P2 Normal
Assignee: Matthew Finkel
URL:
Keywords: InRadar
Depends on:
Blocks:
 
Reported: 2022-07-21 09:15 PDT by Matthew Finkel
Modified: 2022-07-21 22:14 PDT (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 Matthew Finkel 2022-07-21 09:15:26 PDT
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"]')
Comment 1 Radar WebKit Bug Importer 2022-07-21 09:21:57 PDT
<rdar://problem/97384573>
Comment 2 Matthew Finkel 2022-07-21 09:43:33 PDT
Pull request: https://github.com/webkit/WebKit/pull/2618
Comment 3 Matthew Finkel 2022-07-21 22:14:08 PDT
Submitted web-platform-tests pull request: https://github.com/web-platform-tests/wpt/pull/34932