pub(crate) fn redact_host_screenshot(
host_resp: &Value,
bytes: Vec<u8>,
encoded: String,
) -> Result<(Vec<u8>, String), String>Expand description
The host’s screenshot answer (data.secret_boxes, data.css_width)
applied to its decoded image: unchanged when the page has no secret
fields, otherwise blacked out and re-encoded. Err is the message to give
instead of the image.