Bug 229639

Summary: @font-face rules accessed over file: urls to a file which does not exist are not visible to document.fonts
Product: WebKit Reporter: Myles C. Maxfield <mmaxfield>
Component: New BugsAssignee: Myles C. Maxfield <mmaxfield>
Status: RESOLVED FIXED    
Severity: Normal CC: esprehn+autocc, ews-watchlist, glenn, gyuyoung.kim, macpherson, menard, nham, simon.fraser, webkit-bug-importer, zalan
Priority: P2 Keywords: InRadar
Version: WebKit Nightly Build   
Hardware: Unspecified   
OS: Unspecified   
Bug Depends on:    
Bug Blocks: 229850    
Attachments:
Description Flags
Patch
none
Patch
none
Patch zalan: review+

Description Myles C. Maxfield 2021-08-27 22:07:59 PDT
@font-face blocks accessed over file: urls to a file which does not exist are not visible to document.fonts
Comment 1 Myles C. Maxfield 2021-08-27 22:10:34 PDT
Created attachment 436704 [details]
Patch
Comment 2 Simon Fraser (smfr) 2021-08-30 15:59:08 PDT
Comment on attachment 436704 [details]
Patch

View in context: https://bugs.webkit.org/attachment.cgi?id=436704&action=review

I don't know enough about whether pages should access local files to review this.

> Source/WebCore/ChangeLog:3
> +        @font-face blocks accessed over file: urls to a file which does not exist are not visible to document.fonts

Can you rename this from "blocks" to "rules"?

> LayoutTests/fast/text/font-file-failed.html:7
> +    src: url("ThisIsNotARealFile.otf") format("opentype");

Should this be an explicit file: url so the test works if run from http?
Comment 3 Myles C. Maxfield 2021-08-31 02:50:11 PDT
Created attachment 436861 [details]
Patch
Comment 4 Myles C. Maxfield 2021-09-01 02:59:41 PDT
Created attachment 437008 [details]
Patch
Comment 5 Myles C. Maxfield 2021-09-03 13:18:47 PDT
Committed r282017 (241322@main): <https://commits.webkit.org/241322@main>
Comment 6 Radar WebKit Bug Importer 2021-09-03 13:19:14 PDT
<rdar://problem/82736270>