Bug 249213 - Images are not loaded in element application
Summary: Images are not loaded in element application
Status: RESOLVED FIXED
Alias: None
Product: WebKit
Classification: Unclassified
Component: WebCore Misc. (show other bugs)
Version: WebKit Nightly Build
Hardware: Unspecified Unspecified
: P2 Normal
Assignee: Carlos Garcia Campos
URL:
Keywords: InRadar
Depends on:
Blocks:
 
Reported: 2022-12-13 02:20 PST by Carlos Garcia Campos
Modified: 2022-12-20 05:21 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 Carlos Garcia Campos 2022-12-13 02:20:13 PST
Element application uses the fetch api to download images and convert them to a blob that is then requested. The problem is that the blob request is failing due to invalid HTTP header in response. The invalid header is Content-Security-Policy that is generated by the blob loader using the security context policy. The document policy comes from http-equiv meta and contains newlines, which are allowed there, but invalid for an HTTP header value.
Comment 1 Carlos Garcia Campos 2022-12-13 02:26:00 PST
Pull request: https://github.com/WebKit/WebKit/pull/7540
Comment 2 Radar WebKit Bug Importer 2022-12-20 02:21:16 PST
<rdar://problem/103550552>
Comment 3 EWS 2022-12-20 05:21:00 PST
Committed 258130@main (d89d47f7fd45): <https://commits.webkit.org/258130@main>

Reviewed commits have been landed. Closing PR #7540 and removing active labels.