Created attachment 8824518 [details]
User Agent: Mozilla/5.0 (Windows NT 6.2) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/55.0.2883.87 Safari/537.36
Steps to reproduce:
1. Launch Firefox and open the Browser Console from menu [≡] → select Developer → select Browser Console.
2. Visit about:plugins and check for the version of Shockwave flash
3. Browse through websites that use the Flash Player plug-in and look for rendering, functional and performance issues.
error in console
no error in console
Is "plug-in" a better component to track this?
The errors in the console don't appear to have anything to do with Flash. They are font parsing notifications from web content. I can't tell whether those are errors or warnings or what, which appears to be because the URLS are very long data: and therefore cut off the end of the message. "downloadable font: OS/2: adjusting Mac style (regular) ..."
I don't know whether we can fix that by rearranging the message so that the complete message comes before the URL, or truncating the URL, or changing the display in the error console somewhat. But I'm going to move this to fonts first because I suspect that's the better option.
That's a warning (rather than an error) generated by OTS, here:
So the font data has internal inconsistencies that OTS is fixing up, but also reporting so that the author/font developer/whatever can be alerted to the fact that their font is not quite right.
Offhand, I'm not sure where the truncation of the message happens; AFAICS, we should be getting the full URI when we call GetFamilyNameAndURIForLogging at http://searchfox.org/mozilla-central/rev/790b2cb423ea1ecb5746722d51633caec9bab95a/layout/style/FontFaceSet.cpp#1206, but it's clearly truncated in the screenshot attached. Which is probably just as well, considering that a data: URI could be huge...
Perhaps we should truncate it within gfxUserFontEntry::GetFamilyNameAndURIForLogging itself. Probably center-truncation, so that we retain the beginning and end of a potentially over-long path, would be the most useful.
Created attachment 8827542 [details] [diff] [review]
Truncate overly long URIs in downloadable font error/warning messages
I'd suggest we just do something simple-minded like this.
Bug 1329293 - Truncate overly long URIs in downloadable font error/warning messages. r=jrmuizel