mirror of
https://github.com/servo/servo.git
synced 2025-07-24 15:50:21 +01:00
Update wpt-tests metadata
This commit is contained in:
parent
55a3eb6bf4
commit
4c637e0601
7 changed files with 20 additions and 27 deletions
|
@ -579,6 +579,13 @@ impl Document {
|
||||||
if let Some(browsing_context) = self.browsing_context() {
|
if let Some(browsing_context) = self.browsing_context() {
|
||||||
// Step 1: If document is an iframe srcdoc document, then return the
|
// Step 1: If document is an iframe srcdoc document, then return the
|
||||||
// document base URL of document's browsing context's container document.
|
// document base URL of document's browsing context's container document.
|
||||||
|
let container_base_url = browsing_context
|
||||||
|
.parent()
|
||||||
|
.and_then(|parent| parent.document())
|
||||||
|
.map(|document| document.base_url());
|
||||||
|
if document_url.as_str() == "about:srcdoc" && container_base_url.is_some() {
|
||||||
|
return container_base_url.unwrap();
|
||||||
|
}
|
||||||
|
|
||||||
// Step 2: If document's URL is about:blank, and document's browsing
|
// Step 2: If document's URL is about:blank, and document's browsing
|
||||||
// context's creator base URL is non-null, then return that creator base URL.
|
// context's creator base URL is non-null, then return that creator base URL.
|
||||||
|
|
|
@ -637,7 +637,7 @@ pub fn follow_hyperlink(subject: &Element, hyperlink_suffix: Option<String>) {
|
||||||
if let Some(suffix) = hyperlink_suffix {
|
if let Some(suffix) = hyperlink_suffix {
|
||||||
href.push_str(&suffix);
|
href.push_str(&suffix);
|
||||||
}
|
}
|
||||||
let url = match document.url().join(&href) {
|
let url = match document.base_url().join(&href) {
|
||||||
Ok(url) => url,
|
Ok(url) => url,
|
||||||
Err(_) => return,
|
Err(_) => return,
|
||||||
};
|
};
|
||||||
|
|
|
@ -731,12 +731,10 @@ impl CreatorBrowsingContextInfo {
|
||||||
parent: Option<&WindowProxy>,
|
parent: Option<&WindowProxy>,
|
||||||
opener: Option<&WindowProxy>,
|
opener: Option<&WindowProxy>,
|
||||||
) -> CreatorBrowsingContextInfo {
|
) -> CreatorBrowsingContextInfo {
|
||||||
let creator = if parent.is_some() {
|
let creator = match (parent, opener) {
|
||||||
parent.unwrap().document()
|
(Some(parent), _) => parent.document(),
|
||||||
} else if opener.is_some() {
|
(None, Some(opener)) => opener.document(),
|
||||||
opener.unwrap().document()
|
(None, None) => None,
|
||||||
} else {
|
|
||||||
None
|
|
||||||
};
|
};
|
||||||
|
|
||||||
let base_url = creator.as_deref().map(|document| document.base_url());
|
let base_url = creator.as_deref().map(|document| document.base_url());
|
||||||
|
|
|
@ -0,0 +1,4 @@
|
||||||
|
[010.html]
|
||||||
|
type: testharness
|
||||||
|
[Link with onclick form submit to javascript url with delayed document.write and href navigation ]
|
||||||
|
expected: FAIL
|
|
@ -1,14 +0,0 @@
|
||||||
[document-base-url.html]
|
|
||||||
type: testharness
|
|
||||||
[The fallback base URL of a document whose address is about:blank is the document base URL of the creator document.]
|
|
||||||
expected: FAIL
|
|
||||||
|
|
||||||
[The fallback base URL of an iframe srcdoc document is the document base URL of the document's browsing context's browsing context container's document.]
|
|
||||||
expected: FAIL
|
|
||||||
|
|
||||||
[about:blank with a base element.]
|
|
||||||
expected: FAIL
|
|
||||||
|
|
||||||
[The base URL of an iframe srcdoc document with a <base> tag should be set by that tag.]
|
|
||||||
expected: FAIL
|
|
||||||
|
|
|
@ -1,5 +0,0 @@
|
||||||
[base_about_blank.html]
|
|
||||||
type: testharness
|
|
||||||
[base element in about:blank document should resolve against its fallback base URI]
|
|
||||||
expected: FAIL
|
|
||||||
|
|
|
@ -1,7 +1,10 @@
|
||||||
[abort-while-navigating.window.html]
|
[abort-while-navigating.window.html]
|
||||||
expected: TIMEOUT
|
expected: TIMEOUT
|
||||||
[document.open() aborts documents that are navigating through iframe loading (XMLHttpRequest)]
|
[document.open() aborts documents that are navigating through iframe loading (XMLHttpRequest)]
|
||||||
expected: FAIL
|
expected: TIMEOUT
|
||||||
|
|
||||||
|
[document.open() aborts documents that are navigating through iframe loading (fetch())]
|
||||||
|
expected: TIMEOUT
|
||||||
|
|
||||||
[document.open() aborts documents that are navigating through Location (fetch())]
|
[document.open() aborts documents that are navigating through Location (fetch())]
|
||||||
expected: TIMEOUT
|
expected: TIMEOUT
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue