mirror of
https://github.com/servo/servo.git
synced 2025-07-27 01:00:41 +01:00
Media UI basic functionality
This commit is contained in:
parent
1c02fc94a8
commit
a664449681
10 changed files with 420 additions and 35 deletions
|
@ -143,7 +143,8 @@ impl FetchResponseListener for StylesheetContext {
|
|||
let protocol_encoding_label = metadata.charset.as_ref().map(|s| &**s);
|
||||
let final_url = if let Some(ref shadow_root) = self.shadow_root {
|
||||
if shadow_root.root().is_user_agent_widget() {
|
||||
ServoUrl::parse(&format!("chrome://{:?}", metadata.final_url.to_string())).unwrap()
|
||||
ServoUrl::parse(&format!("chrome://{:?}", metadata.final_url.to_string()))
|
||||
.unwrap()
|
||||
} else {
|
||||
metadata.final_url
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue