mirror of
https://github.com/servo/servo.git
synced 2025-08-06 06:00:15 +01:00
Update wpt-tests metadata
This commit is contained in:
parent
55a3eb6bf4
commit
4c637e0601
7 changed files with 20 additions and 27 deletions
|
@ -731,12 +731,10 @@ impl CreatorBrowsingContextInfo {
|
|||
parent: Option<&WindowProxy>,
|
||||
opener: Option<&WindowProxy>,
|
||||
) -> CreatorBrowsingContextInfo {
|
||||
let creator = if parent.is_some() {
|
||||
parent.unwrap().document()
|
||||
} else if opener.is_some() {
|
||||
opener.unwrap().document()
|
||||
} else {
|
||||
None
|
||||
let creator = match (parent, opener) {
|
||||
(Some(parent), _) => parent.document(),
|
||||
(None, Some(opener)) => opener.document(),
|
||||
(None, None) => None,
|
||||
};
|
||||
|
||||
let base_url = creator.as_deref().map(|document| document.base_url());
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue