| Summary: | [iOS] Implement WTR::activateFonts() to fix missing fonts in WebKit2 test runs | ||||||
|---|---|---|---|---|---|---|---|
| Product: | WebKit | Reporter: | David Kilzer (:ddkilzer) <ddkilzer> | ||||
| Component: | Tools / Tests | Assignee: | David Kilzer (:ddkilzer) <ddkilzer> | ||||
| Status: | RESOLVED FIXED | ||||||
| Severity: | Normal | CC: | ap, dbates, mmaxfield, sam, simon.fraser, thorton | ||||
| Priority: | P2 | ||||||
| Version: | 528+ (Nightly build) | ||||||
| Hardware: | Unspecified | ||||||
| OS: | Unspecified | ||||||
| Attachments: |
|
||||||
|
Description
David Kilzer (:ddkilzer)
2015-02-23 02:00:31 PST
Created attachment 247109 [details]
Patch v1
Comment on attachment 247109 [details] Patch v1 View in context: https://bugs.webkit.org/attachment.cgi?id=247109&action=review > Tools/WebKitTestRunner/InjectedBundle/cocoa/ActivateFontsCocoa.mmTools/WebKitTestRunner/InjectedBundle/mac/ActivateFonts.mm:275 > exit(1); > } I thought we actually linked the contents of these font files into a rodata section in the actual executable. Do we not do this any more? Does this work on iOS? > Tools/WebKitTestRunner/InjectedBundle/cocoa/ActivateFontsCocoa.mmTools/WebKitTestRunner/InjectedBundle/mac/ActivateFonts.mm:278 > swizzleNSFontManagerMethods(); See https://bugs.webkit.org/show_bug.cgi?id=132159 for implementing the whitelist on iOS (In reply to comment #2) > Comment on attachment 247109 [details] > Patch v1 > > View in context: > https://bugs.webkit.org/attachment.cgi?id=247109&action=review > > > Tools/WebKitTestRunner/InjectedBundle/cocoa/ActivateFontsCocoa.mmTools/WebKitTestRunner/InjectedBundle/mac/ActivateFonts.mm:275 > > exit(1); > > } > > I thought we actually linked the contents of these font files into a rodata > section in the actual executable. Do we not do this any more? Does this work > on iOS? This does work on iOS. See related code in DumpRenderTree. Dan Bernstein fixed this a while ago. > > Tools/WebKitTestRunner/InjectedBundle/cocoa/ActivateFontsCocoa.mmTools/WebKitTestRunner/InjectedBundle/mac/ActivateFonts.mm:278 > > swizzleNSFontManagerMethods(); > > See https://bugs.webkit.org/show_bug.cgi?id=132159 for implementing the > whitelist on iOS Why is Bug 132159 OS X only? Why aren't we fixing both platforms at the same time? (In reply to comment #3) > (In reply to comment #2) > > Comment on attachment 247109 [details] > > Patch v1 > > > > View in context: > > https://bugs.webkit.org/attachment.cgi?id=247109&action=review > > > > > Tools/WebKitTestRunner/InjectedBundle/cocoa/ActivateFontsCocoa.mmTools/WebKitTestRunner/InjectedBundle/mac/ActivateFonts.mm:275 > > > exit(1); > > > } > > > > I thought we actually linked the contents of these font files into a rodata > > section in the actual executable. Do we not do this any more? Does this work > > on iOS? > > This does work on iOS. See related code in DumpRenderTree. Dan Bernstein > fixed this a while ago. > > > > Tools/WebKitTestRunner/InjectedBundle/cocoa/ActivateFontsCocoa.mmTools/WebKitTestRunner/InjectedBundle/mac/ActivateFonts.mm:278 > > > swizzleNSFontManagerMethods(); > > > > See https://bugs.webkit.org/show_bug.cgi?id=132159 for implementing the > > whitelist on iOS > > Why is Bug 132159 OS X only? Why aren't we fixing both platforms at the > same time? Ultimately it's for both, but the initial goal of the patch is to do something which requires a CoreText whitelist. Baby steps. Committed r180557: <http://trac.webkit.org/changeset/180557> |