summaryrefslogtreecommitdiffstats
path: root/chrome
diff options
context:
space:
mode:
Diffstat (limited to 'chrome')
-rw-r--r--chrome/renderer/renderer_sandbox_support_linux.cc8
1 files changed, 8 insertions, 0 deletions
diff --git a/chrome/renderer/renderer_sandbox_support_linux.cc b/chrome/renderer/renderer_sandbox_support_linux.cc
index a08fff1..758bf57 100644
--- a/chrome/renderer/renderer_sandbox_support_linux.cc
+++ b/chrome/renderer/renderer_sandbox_support_linux.cc
@@ -32,6 +32,14 @@ std::string getFontFamilyForCharacters(const uint16_t* utf16, size_t num_utf16)
reply.ReadString(&pickle_iter, &family_name);
}
+ if (!family_name.size()) {
+ LOG(ERROR) << "Starting code point dump:";
+ for (size_t i = 0; i < num_utf16; ++i)
+ LOG(ERROR) << " " << utf16[i];
+ LOG(FATAL) << "Bug caught: requested font family for " << num_utf16
+ << " code points and got an empty string on return";
+ }
+
return family_name;
}