DescriptionMac: Part 1 of a fix to get OOP font loading working in the renderer on 10.6.6 .
When the renderer can't load a font due to sandbox restrictions, it sends an IPC over to the browser to return a copy of the font file, which it then activates. Before doing this, the renderer retrieves the ATSFontContainerRef corresponding to the font it couldn't load. This value is unique for each font file and having this value allows the renderer to determine if the font in question has already been retrieved from the browser and activated. Without doing this, the renderer would need to activate a font each time it was requested.
In 10.6.6 the function used to get the unique ID from the font in the renderer was changed so it fails in the sandbox (it now tries to access the on-disk font file). In order to work around this, we need to get the unique id on the browser side and send it back over IPC.
This is the first part of said change.
BUG=72727
TEST=None
Patch Set 1 #
Total comments: 5
Patch Set 2 : Fix review comments #
Messages
Total messages: 4 (0 generated)
|