Bug 41169 - Safari crashes Windows when opening a page with @font-face rule
Summary: Safari crashes Windows when opening a page with @font-face rule
Status: UNCONFIRMED
Alias: None
Product: WebKit
Classification: Unclassified
Component: Text (show other bugs)
Version: 528+ (Nightly build)
Hardware: PC Windows XP
: P1 Normal
Assignee: Nobody
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-06-24 11:05 PDT by Robin Cao
Modified: 2022-12-17 01:49 PST (History)
3 users (show)

See Also:


Attachments
a page containing @font-face rule (221 bytes, text/html)
2010-06-24 11:05 PDT, Robin Cao
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Robin Cao 2010-06-24 11:05:53 PDT
Created attachment 59680 [details]
a page containing @font-face rule

Opening the attached page (containing @font-face rule) in latest Safari will crash Windows every time. My OS is Windows XP.
I also tried with WebKit ToT builds, the result is same. But the page works well with Chrome for Windows.
A simple investigation reveals it may relate to GDI font API. The following is the call stack before Windows crashes.

	DWORD GetGlyphOutline(HDC, UINT, UINT, LPGLYPHMETRICS, DWORD cbBuffer, LPVOID, const MAT2 *);
	WebCore::SimpleFontData::initGDIFont()
 	WebCore::SimpleFontData::platformInit()
 	WebCore::SimpleFontData::SimpleFontData(const WebCore::FontPlatformData &, bool, bool, WebCore::SVGFontData *)
 	WebCore::CSSFontFaceSource::getFontData(const WebCore::FontDescription &, bool, bool, WebCore::CSSFontSelector *)
 	WebCore::CSSFontFace::getFontData(const WebCore::FontDescription &, bool, bool)
 	WebCore::CSSSegmentedFontFace::getFontData(const WebCore::FontDescription &)
 	WebCore::CSSFontSelector::getFontData(const WebCore::FontDescription &, const WebCore::AtomicString &)
 	WebCore::FontCache::getFontData(const WebCore::Font &, int &, WebCore::FontSelector *)
 	WebCore::FontFallbackList::fontDataAt(const WebCore::Font *, unsigned int)
 	WebCore::FontFallbackList::primaryFontData(const WebCore::Font *)
Comment 1 Karthik Sarap 2011-08-09 23:48:15 PDT
It is working fine on safari in XP OS and it does not seems having an issue ..
If it is so then let me know by provinding with more details ..