Skip to main content

untrusted_report

Function untrusted_report 

Source
pub fn untrusted_report(
    report: &Structure,
) -> Option<(Vec<GString>, Option<Structure>, Option<Structure>)>
Expand description

Unpacks an untrusted-content report into its parts, so a caller does not have to know the field names and nesting the structure uses. Each output is filled with the corresponding part when it is present, and set to None when it is not; pass None for the parts you do not care about.

§report

an untrusted-content Structure, as returned by ParseContext::untrusted_report()

§Returns

true if report is an untrusted-content report.

§elements

the factory names refused because they are not untrusted-aware, or None

§properties

the refused sensitive property assignments, a Structure named untrusted-sensitive-properties with one element-name:property field per assignment holding the refused value (in the property’s own type when known, the string as written otherwise), or None

§unresolved_properties

the refused assignments to children that never materialized, a Structure named untrusted-unresolved-properties of the same shape but with the value always the string as written, since the type is not known, or None