The default bug view has changed. See this FAQ.

font-face rules are not included in complete page save as

ASSIGNED

Status

()

Firefox
File Handling
ASSIGNED
7 years ago
9 months ago

People

(Reporter: Kevin Decker, Assigned: Felipe Corrêa da Silva Sanches)

Tracking

Firefox Tracking Flags

(Not tracked)

Details

(URL)

Attachments

(1 attachment)

(Reporter)

Description

7 years ago
User-Agent:       Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10.6; en-US; rv:2.0b1) Gecko/20100630 Firefox/4.0b1
Build Identifier: Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10.6; en-US; rv:2.0b1) Gecko/20100630 Firefox/4.0b1

When using the Save Page As feature, Firefox 4.0b1 does not save the associated font files into the local _files directory or update the associated url for the local file path.

Reproducible: Always

Steps to Reproduce:
1. Browse to http://incaseofstairs.com/tests/font-face-render/
2. Save Page As from the file menu
3. Save the page
4. Examine the local file that was saved as a result of this operation.
Actual Results:  
The font file is not saved and the render has to default over to the the default font face.

Expected Results:  
The font is accessible on the local file system and the local file is rendered the same as the remote version.

Comment 1

7 years ago
Probably for the same reason as background-images and the like.
Confirming as I don't find any bug on this.
Blocks: 115634
Status: UNCONFIRMED → NEW
Component: General → File Handling
Ever confirmed: true
Product: Firefox → Core
QA Contact: general → file-handling

Updated

7 years ago
Assignee: nobody → jdaggett
(Assignee)

Comment 2

6 years ago
I am working on a patch for it. It already finds every @font-face rule in <style> nodes and downloads the font files. The current patch has an issue with the naming of the files though. It is saving the files with .asc suffix (and _002.asc, _003.asc for files that have repeated basename). Any idea how to handle that? I dont know why it's dropping the file extensions that are declared in the url descriptors.
Status: NEW → ASSIGNED
OS: Mac OS X → Windows 7
(Assignee)

Comment 3

6 years ago
Created attachment 492976 [details] [diff] [review]
initial implementation with wrong naming of downloaded font files
Assignee: jdaggett → juca
Attachment #492976 - Flags: feedback?(jdaggett)
(Assignee)

Updated

6 years ago
OS: Windows 7 → All
Hardware: x86 → All
Version: unspecified → Trunk
(Assignee)

Comment 4

6 years ago
I still need some feedback on how to fix the wrong naming of downloaded font files.
Flags: needinfo?(jdaggett)

Comment 5

3 years ago
Would be nice to have this for websites which show bugs only with webfonts, i.e. bug 994923.
clearing this old and ignored needinfo to clear my dashboard
Flags: needinfo?(jdaggett)

Updated

3 years ago
Flags: needinfo?(jdaggett)

Comment 7

2 years ago
Comment on attachment 492976 [details] [diff] [review]
initial implementation with wrong naming of downloaded font files

Saving links referenced by the src array of @font-face rules is definitely something necessary to save webfonts but this feature will require a lot more than just that. Webfonts are lazy loaded, so stylesheets can include definitions of webfont resources that are never used on a page. I think the save code would need to look at the fonts used on the page and store those under reworked names.
Flags: needinfo?(jdaggett)
Attachment #492976 - Flags: feedback?(jdaggett)
Component: File Handling → File Handling
Product: Core → Firefox
Version: Trunk → unspecified
You need to log in before you can comment on or make changes to this bug.