Closed Bug 1562377 Opened 5 years ago Closed 4 years ago

When using local fonts in CSS, they fail to load

Categories

(Firefox :: Untriaged, defect)

68 Branch
defect
Not set
normal

Tracking

()

RESOLVED INCOMPLETE

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.

  1. Using @font-face in CSS, import a local font.
  2. 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

Please provide a self-contained minimal testcase, and the output of the developer tools.

Flags: needinfo?(cyliimdev)
Attached file localfont.zip (obsolete) —

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).

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.

Attached file localfontfacemin.zip

I've attached a more minimal fragment that cuts down the css and minimises the font used.

Attachment #9077840 - Attachment is obsolete: true

I believe this is being addressed in bug 1565942.

Could you please verify if the issue still persist since the issue was addressed in bug 1565942.

Could you please verify if the issue still persist since the issue was addressed in bug 1565942.

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.

Status: UNCONFIRMED → RESOLVED
Closed: 4 years ago
Resolution: --- → INCOMPLETE
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: