mirror of
https://github.com/servo/servo.git
synced 2025-06-16 04:14:29 +00:00
Implement srcdoc support for iframes.
This commit is contained in:
parent
944c1e9f97
commit
bf69b6fea7
56 changed files with 116 additions and 172 deletions
|
@ -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(),
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue