Closed Bug 475182 Opened 16 years ago Closed 16 years ago

font download fails with NS_ERROR_DOM_BAD_URI

Categories

(Core :: CSS Parsing and Computation, defect)

defect
Not set
normal

Tracking

()

RESOLVED INVALID

People

(Reporter: dbaron, Unassigned)

References

()

Details

The font download example in http://css.flepstudio.org/css3/font-face.html doesn't work in Firefox on Linux or Windows, but according to comments in bug 475164, it works in other browsers.

If I do NSPR logging on the font downloader, I see:

-166291696[f5e10060]: fontdownloader (f0aa01e0) download start - font uri: (http://www.onsitus.it/css3/web-fonts/eldiablo.ttf) referrer uri: (http://css.flepstudio.org/css3/font-face.html)
-166291696[f5e10060]: fontdownloader (f0aa01e0) download failed - font uri: (http://www.onsitus.it/css3/web-fonts/eldiablo.ttf) error: 805303f4

Steps to reproduce: load http://css.flepstudio.org/css3/font-face.html
Actual results: Text below "Il risultato della prova di @font-face:" is in normal sans-serif font
Expected results: Text below "Il risultato della prova di @font-face:" looks like image just above it.
The error 805303f4 is NS_ERROR_DOM_BAD_URI.
Summary: font download fails → font download fails with NS_ERROR_DOM_BAD_URI
Oh, never mind... this is invalid, because we're (intentionally) doing cross-site checks on downloadable font loads (and other browsers are likely to do that in the near future as well).
Status: NEW → RESOLVED
Closed: 16 years ago
Resolution: --- → INVALID
I'm not sure this is invlaid.  SHouldn;t it work if

gfx.downloadable_fonts.enforce_same_site_origin is false?
Resolution: INVALID → FIXED
Or did Bug 457825 deprecate that preference?
I have no idea how I managed to change the resolution to fixed.  It was certainly not intentional.
Resolution: FIXED → INVALID
(In reply to comment #3)
> I'm not sure this is invlaid.  SHouldn;t it work if
> 
> gfx.downloadable_fonts.enforce_same_site_origin is false?

Yes, that pref was removed.  The only pref dealing with downloadable fonts is gfx.downloadable_fonts.enabled.
You need to log in before you can comment on or make changes to this bug.