When using local fonts in CSS, they fail to load
Categories
(Firefox :: Untriaged, defect)
Tracking
()
People
(Reporter: cyliimdev, Unassigned, NeedInfo)
Details
Attachments
(2 files, 1 obsolete file)
User Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:68.0) Gecko/20100101 Firefox/68.0
Steps to reproduce:
I am using Firefox Developer Edition for this.
- Using @font-face in CSS, import a local font.
- View the webpage in Firefox while it's still hosted locally.
Actual results:
The font reverted back to the default HTML font
Expected results:
The font should have changed to the typeface I was importing
Comment 1•5 years ago
|
||
Please provide a self-contained minimal testcase, and the output of the developer tools.
Comment 2•5 years ago
|
||
The fonts fail to load. The developer console shows the following errors.
Cross-Origin Request Blocked: The Same Origin Policy disallows reading the remote resource at file:///D:/localfont/FontAwesome/fonts/fontawesome-webfont.woff2?v=4.7.0. (Reason: CORS request not http).
Cross-Origin Request Blocked: The Same Origin Policy disallows reading the remote resource at file:///D:/localfont/FontAwesome/fonts/fontawesome-webfont.woff?v=4.7.0. (Reason: CORS request not http).
Cross-Origin Request Blocked: The Same Origin Policy disallows reading the remote resource at file:///D:/localfont/FontAwesome/fonts/fontawesome-webfont.ttf?v=4.7.0. (Reason: CORS request not http).
Comment 3•5 years ago
|
||
I should add that the localfont.zip is a fragment taken from the Rust programming book that's downloaded with Rust. The font loads fine in both Chrome and Edge.
Comment 4•5 years ago
|
||
I've attached a more minimal fragment that cuts down the css and minimises the font used.
Comment 5•5 years ago
|
||
I believe this is being addressed in bug 1565942.
Comment 6•5 years ago
|
||
Could you please verify if the issue still persist since the issue was addressed in bug 1565942.
Comment 7•4 years ago
|
||
Could you please verify if the issue still persist since the issue was addressed in bug 1565942.
Comment 8•4 years ago
|
||
Closing as Resolved:Incomplete due to no update from reporter. Please feel free to reopen the bug if the issue still persist since the issue was addressed in bug 1565942.
Description
•