[chromium-freeworld/f32] Backport some fixes from the upstream