commit | f752e0e94aff5ec6f4a54fe6c9fdf2c1433ec415 | [log] [tgz] |
---|---|---|
author | Tim Detwiler <tjdetwiler@google.com> | Mon Apr 22 22:18:35 2019 +0000 |
committer | CQ bot account: commit-bot@chromium.org <commit-bot@chromium.org> | Mon Apr 22 22:18:35 2019 +0000 |
tree | e58a09c7daae38670726f050ac4ffcbe6166318f | |
parent | c779cf93bb30a909219ab0c4aadaae1a996637d6 [diff] |
[wayland][core] Use String::from_utf8_lossy. When opening an image file, Firefox will set the window title to a string that inculdes the image dimensions using what appears to be the unicode multiplicaiton sign (code point 0x00d7). The specific encoding supplied by Firefox does not appear to be valid UTF8. Work around this by not panicing and simply truncating strings that are not valid UTF8. PD-204 tracks finding a more proper solution here that will allow us to move back to more strict UTF8 parsing. Test: Opened image file in Firefox and observed no panic in the bridge. Change-Id: I22f4f81d1865e98a9dfc317536fb3e9ab6199491
Pink + Purple == Fuchsia (a new operating system)
Fuchsia is a modular, capability-based operating system. Fuchsia runs on modern 64-bit Intel and ARM processors.
Fuchsia is an open source project with a code of conduct that we expect everyone who interacts with the project to respect.
See Getting Started.
See the documentation.