Implement srcdoc support for iframes.

This commit is contained in:
jaymodi98 2019-10-28 17:21:45 -04:00 committed by Josh Matthews
parent 944c1e9f97
commit bf69b6fea7
56 changed files with 116 additions and 172 deletions

View file

@ -163,6 +163,9 @@ pub struct LoadData {
pub referrer: Option<Referrer>,
/// The referrer policy.
pub referrer_policy: Option<ReferrerPolicy>,
/// The source to use instead of a network response for a srcdoc document.
pub srcdoc: String,
}
/// The result of evaluating a javascript scheme url.
@ -194,6 +197,7 @@ impl LoadData {
js_eval_result: None,
referrer: referrer,
referrer_policy: referrer_policy,
srcdoc: "".to_string(),
}
}
}