-
Notifications
You must be signed in to change notification settings - Fork 870
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Freetype crash regression test #18338
Conversation
renderer/test/font_browsertest.cc
Outdated
content::WebContents* web_contents() { | ||
return browser()->tab_strip_model()->GetActiveWebContents(); | ||
} | ||
|
||
content::RenderFrameHost* primary_main_frame() { | ||
return web_contents()->GetPrimaryMainFrame(); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Are these needed (and related header #includes)?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Indeed they are not. Thanks!
Fixed in 539277fa27134081c164f645564b730b346ea0da.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
The Brave 1.50.121 release crashed loading certain pages on Linux. Add a regression test based on an isolated reproduction. The issue seemed to be using the Google Noto Sans VF shipped as a system font by Fedora, Arch, and a few other distributions inside a `<select>` element. This adds a test page, and loads it as part of a browser test. The test page is minified from https://brave.com/ which also showed the issue. The font in question was reduced in fontforge to just lowercase latin glyphs, with all additional tables removed so save space. The result was included directly in the test page using a `data:` url. Resolves brave/brave-browser#29957
Fix css errors which were preventing the page from using the minimized font from the data: url. Unfortunately this revealed that the minimized version doesn't actually reproduce the problem; it was still falling back to the system font. The should be a stand-alone reproduction, at the expense of an 844 kB test file.
a3011f9
to
a7e8742
Compare
ci being weird. rebased, squashing fixups. |
Uplift of #18338 (squashed) to beta
Uplift of #18338 (squashed) to release
Add a regression test for the release crash we saw on some Linux systems with Brave 1.50.121.
Note this requires a release build to reproduce, but does seem to trigger when such runs in ci, so this should work to catch a re-occurance.
Points for review:
Resolves brave/brave-browser#29957
Submitter Checklist:
QA/Yes
orQA/No
;release-notes/include
orrelease-notes/exclude
;OS/...
) to the associated issuenpm run test -- brave_browser_tests
,npm run test -- brave_unit_tests
wikinpm run lint
,npm run presubmit
wiki,npm run gn_check
,npm run tslint
git rebase master
(if needed)Reviewer Checklist:
gn
After-merge Checklist:
changes has landed on
Test Plan: