Auto merge of #25298 - servo-wpt-sync:wpt_update_15-12-2019, r=servo-wpt-sync

Sync WPT with upstream (15-12-2019)

Automated downstream sync of changes from upstream as of 15-12-2019.
[no-wpt-sync]
r? @servo-wpt-sync
This commit is contained in:
bors-servo 2019-12-15 09:25:58 -05:00 committed by GitHub
commit b7aaff4995
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
31 changed files with 159 additions and 99 deletions

View file

@ -7,7 +7,7 @@
expected: FAIL
[Opening a blob URL in a new window immediately before revoking it works.]
expected: TIMEOUT
expected: FAIL
[Opening a blob URL in a noopener about:blank window immediately before revoking it works.]
expected: FAIL

View file

@ -326089,6 +326089,12 @@
{}
]
],
"css/css-overflow/scroll-overflow-padding-block-001.html": [
[
"css/css-overflow/scroll-overflow-padding-block-001.html",
{}
]
],
"css/css-overscroll-behavior/inheritance.html": [
[
"css/css-overscroll-behavior/inheritance.html",
@ -586672,6 +586678,10 @@
"8f5b1ef53eb72dd82f1211744a21c34dede17b46",
"support"
],
"css/css-overflow/scroll-overflow-padding-block-001.html": [
"13df853ab3462dff7db84d6558d4b941bf83995d",
"testharness"
],
"css/css-overflow/shrink-to-fit-auto-overflow-relayout-crash.html": [
"c0f0214ee186a0b13787f6f86bd199e7d6df7ac0",
"crashtest"
@ -668549,11 +668559,11 @@
"testharness"
],
"loading/lazyload/invisible-image.tentative.html": [
"b70889b08191e851bb5a2ff4ab8c895df9648433",
"b8b945ee01e9c36b665b8358264f4e872204a7f0",
"testharness"
],
"loading/lazyload/invisible-lazy-image.tentative.html": [
"3a8e259187663726b05bac34089d7cbf4368aa6a",
"805d614e401670a5d73199a6771a028a7e41d7d6",
"testharness"
],
"loading/lazyload/original-base-url-applied-tentative.html": [

View file

@ -1,2 +1,2 @@
[no-transition-from-ua-to-blocking-stylesheet.html]
expected: FAIL
expected: TIMEOUT

View file

@ -2,6 +2,3 @@
[listeners are called when <iframe> is resized]
expected: FAIL
[listeners are called correct number of times]
expected: FAIL

View file

@ -0,0 +1,4 @@
[elementFromPoint-001.html]
[CSSOM View - 5 - extensions to the Document interface]
expected: FAIL

View file

@ -309,24 +309,9 @@
[<iframe>: separate response Content-Type: */* text/html]
expected: FAIL
[<iframe>: separate response Content-Type: text/html */*;charset=gbk]
expected: FAIL
[<iframe>: combined response Content-Type: text/html;" text/plain]
expected: FAIL
[<iframe>: separate response Content-Type: text/plain */*]
expected: FAIL
[<iframe>: combined response Content-Type: */* text/html]
expected: FAIL
[<iframe>: combined response Content-Type: text/html */*]
expected: FAIL
[<iframe>: separate response Content-Type: text/html;" text/plain]
expected: FAIL
[<iframe>: combined response Content-Type: text/html */*;charset=gbk]
[<iframe>: combined response Content-Type: text/html;" \\" text/plain]
expected: FAIL

View file

@ -53,6 +53,6 @@
[combined text/javascript ]
expected: FAIL
[separate text/javascript;charset=windows-1252 error text/javascript]
[separate text/javascript x/x]
expected: FAIL

View file

@ -11,8 +11,9 @@
[X-Content-Type-Options%3A%20nosniff%0C]
expected: FAIL
[X-Content-Type-Options%3A%20no%0D%0AX-Content-Type-Options%3A%20nosniff]
expected: FAIL
[Content-Type-Options%3A%20nosniff]
expected: FAIL
[X-Content-Type-Options%3A%20%40%23%24%23%25%25%26%5E%26%5E*()()11!%2Cnosniff]
expected: FAIL

View file

@ -13,3 +13,9 @@
[Embedded credentials matching the top-level are treated as network errors for cross-origin URLs.]
expected: TIMEOUT
[Embedded credentials matching the top-level are not treated as network errors for same-origin URLs.]
expected: TIMEOUT
[Embedded credentials matching the top-level are not treated as network errors for relative URLs.]
expected: TIMEOUT

View file

@ -1,4 +0,0 @@
[traverse_the_history_4.html]
[Multiple history traversals, last would be aborted]
expected: FAIL

View file

@ -6,3 +6,15 @@
[Set HTTP URL frame location.protocol to gopher]
expected: FAIL
[Set HTTP URL frame location.protocol to data]
expected: FAIL
[Set HTTP URL frame location.protocol to x]
expected: FAIL
[Set HTTP URL frame location.protocol to http+x]
expected: FAIL
[Set HTTP URL frame location.protocol to ftp]
expected: FAIL

View file

@ -0,0 +1,4 @@
[creating_browsing_context_test_01.html]
[first argument: absolute url]
expected: FAIL

View file

@ -1,5 +0,0 @@
[skip-another-top-level-browsing-context.html]
expected: TIMEOUT
[Autofocus elements queued in another top-level browsing context's documents should be skipped.]
expected: TIMEOUT

View file

@ -1,4 +1,8 @@
[skip-document-with-fragment.html]
expected: TIMEOUT
[Autofocus elements in iframed documents with URL fragments should be skipped.]
expected: FAIL
[Autofocus elements in top-level browsing context's documents with URI fragments should be skipped.]
expected: TIMEOUT

View file

@ -1,5 +1,6 @@
[iframe_sandbox_popups_nonescaping-3.html]
type: testharness
expected: CRASH
[Check that popups from a sandboxed iframe do not escape the sandbox]
expected: FAIL

View file

@ -1,5 +1,5 @@
[form-double-submit-2.html]
expected: ERROR
[preventDefault should allow onclick submit() to succeed]
expected: TIMEOUT
expected: FAIL

View file

@ -1,18 +1,18 @@
[htmlanchorelement_noopener.html]
type: testharness
expected: TIMEOUT
expected: ERROR
[Check that targeting of rel=noopener with a given name ignores an existing window with that name]
expected: NOTRUN
[Check that rel=noopener with target=_parent does a normal load]
expected: NOTRUN
expected: FAIL
[Check that rel=noopener with target=_top does a normal load]
expected: NOTRUN
expected: FAIL
[Check that targeting of rel=noopener with a given name reuses an existing window with that name]
expected: NOTRUN
[Check that rel=noopener with target=_self does a normal load]
expected: NOTRUN
expected: FAIL

View file

@ -0,0 +1,2 @@
[script-onerror-insertion-point-2.html]
expected: TIMEOUT

View file

@ -1,6 +1,7 @@
[webtiming-resolution.any.html]
[Verifies the resolution of performance.now() is at least 5 microseconds.]
expected: FAIL
expected: FAIL
[webtiming-resolution.any.worker.html]
[Verifies the resolution of performance.now() is at least 20 microseconds.]
@ -9,3 +10,6 @@
[Verifies the resolution of entry.startTime is at least 20 microseconds.]
expected: TIMEOUT
[Verifies the resolution of performance.now() is at least 5 microseconds.]
expected: FAIL

View file

@ -1,4 +1,5 @@
[crossorigin-sandwich-TAO.sub.html]
expected: ERROR
[There should be one entry.]
expected: FAIL

View file

@ -1,5 +1,4 @@
[realtimeanalyser-fft-scaling.html]
expected: TIMEOUT
[X 2048-point FFT peak position is not equal to 64. Got 0.]
expected: FAIL

View file

@ -1,5 +0,0 @@
[017.html]
expected: TIMEOUT
[origin of the script that invoked the method, about:blank]
expected: TIMEOUT

View file

@ -1,5 +1,4 @@
[import-in-moduleworker.html]
expected: ERROR
[Base URL in module dedicated workers: import]
expected: FAIL

View file

@ -1,5 +1,4 @@
[sharedworker-in-worker.html]
expected: ERROR
[Base URL in workers: new SharedWorker()]
expected: FAIL

View file

@ -1,2 +0,0 @@
[Worker-constructor.html]
expected: ERROR

View file

@ -1,5 +1,4 @@
[005.html]
expected: ERROR
[dedicated worker in shared worker in dedicated worker]
expected: FAIL

View file

@ -1,6 +1,5 @@
[003.html]
type: testharness
expected: ERROR
[shared]
expected: FAIL

View file

@ -0,0 +1,48 @@
<!DOCTYPE html>
<title>Test "end-edges" of scrollable overflows in various writing modes</title>
<link rel="help" href="https://drafts.csswg.org/css-overflow-3/#scrollable">
<link rel="author" href="mailto:kojii@chromium.org">
<script src="/resources/testharness.js"></script>
<script src="/resources/testharnessreport.js"></script>
<style>
scroller {
display: inline-block;
overflow: auto;
width: 100px;
height: 100px;
font-size: 50px;
line-height: 1;
}
.vlr { writing-mode: vertical-lr; }
.vrl { writing-mode: vertical-rl; }
.htb > .block-start { padding-top: 200px; }
.htb > .block-end { padding-bottom: 200px; }
.vlr > .block-start { padding-left: 200px; }
.vlr > .block-end { padding-right: 200px; }
.vrl > .block-start { padding-right: 200px; }
.vrl > .block-end { padding-left: 200px; }
</style>
<body>
<div id="log"></div>
<div class="htb">
<scroller class="block-start">A</scroller>
<scroller class="block-end">A</scroller>
</div>
<div class="vlr">
<scroller class="block-start">A</scroller>
<scroller class="block-end">A</scroller>
</div>
<div class="vrl">
<scroller class="block-start">A</scroller>
<scroller class="block-end">A</scroller>
</div>
<script>
for (let element of document.getElementsByTagName('scroller')) {
let writing_mode = getComputedStyle(element).writingMode;
test(() => {
assert_equals(element.scrollWidth, element.offsetWidth, "scrollWidth");
assert_equals(element.scrollHeight, element.offsetHeight, "scrollHeight");
}, writing_mode + ' ' + element.className);
}
</script>
</body>

View file

@ -14,9 +14,9 @@
<img id="visibility_hidden" style="visibility:hidden;" src='resources/image.png?2'>
<img id="display_none" style="display:none;" src='resources/image.png?3'>
<img id="attribute_hidden" hidden src='resources/image.png?4'>
<img id="js_hidden" src='resources/image.png?5'>.
<img id="js_display_none" src='resources/image.png?5'>.
<script>
document.getElementById("js_hidden").style = 'display:none;';
document.getElementById("js_display_none").style = 'display:none;';
</script>
</body>
@ -29,7 +29,7 @@ Marked as tentative until https://github.com/whatwg/html/pull/3752 is landed.
const visibility_hidden_element = document.getElementById("visibility_hidden");
const display_none_element = document.getElementById("display_none");
const attribute_hidden_element = document.getElementById("attribute_hidden");
const js_hidden_element = document.getElementById("js_hidden");
const js_display_none_element = document.getElementById("js_display_none");
let has_window_loaded = false;
@ -51,7 +51,7 @@ Marked as tentative until https://github.com/whatwg/html/pull/3752 is landed.
Promise.all([image_fully_loaded_promise(visibility_hidden_element),
image_fully_loaded_promise(display_none_element),
image_fully_loaded_promise(attribute_hidden_element),
image_fully_loaded_promise(js_hidden_element)]).then(() => {
image_fully_loaded_promise(js_display_none_element)]).then(() => {
t.done();
});
}, "Test that below-viewport invisible images that are not marked " +

View file

@ -1,20 +1,26 @@
<!DOCTYPE html>
<head>
<title>Test that lazily loaded below the viewport invisible
images are not loaded</title>
<title>Test behavior of in viewport invisible lazy images</title>
<link rel="author" title="Rob Buis" href="mailto:rbuis@igalia.com">
<script src="/resources/testharness.js"></script>
<script src="/resources/testharnessreport.js"></script>
<script src="common.js"></script>
</head>
<body>
<div style="height:10000px;"></div>
<img id="visibility_hidden" style="visibility:hidden;" src='resources/image.png?1' loading="lazy">
<img id="display_none" style="display:none;" src='resources/image.png?2' loading="lazy">
<img id="attribute_hidden" hidden src='resources/image.png?3' loading="lazy">
<img id="js_hidden" src='resources/image.png?4' loading="lazy">
<img id="expected" src='resources/image.png?1'>
<img id="visibility_hidden" style="visibility:hidden;"
src='resources/image.png?2&pipe=trickle(d1)' loading='lazy'
onload="visibility_hidden_img.resolve();" onerror="visibility_hidden_img.reject();">
<img id="display_none" style="display:none;" src='resources/image.png?3&pipe=trickle(d1)'
loading='lazy'
onload="display_none_img.resolve();" onerror="display_none_img.reject();">
<img id="attribute_hidden" hidden src='resources/image.png?4&pipe=trickle(d1)' loading='lazy'
onload="attribute_hidden_img.resolve();" onerror="attribute_hidden_img.reject();">
<img id="js_display_none" src='resources/image.png?5&pipe=trickle(d1)' loading='lazy'
onload="js_display_none_img.resolve();" onerror="js_display_none_img.reject();">
<script>
document.getElementById("js_hidden").style = 'display:none;';
document.getElementById("js_display_none").style = 'display:none;';
</script>
</body>
@ -23,41 +29,39 @@ Marked as tentative until https://github.com/whatwg/html/pull/3752 is landed.
-->
<script>
const visibility_hidden_element = document.getElementById("visibility_hidden");
const display_none_element = document.getElementById("display_none");
const attribute_hidden_element = document.getElementById("attribute_hidden");
const js_hidden_element = document.getElementById("js_hidden");
const expected = document.getElementById("expected");
const visibility_hidden_img = new ElementLoadPromise("visibility_hidden");
const display_none_img = new ElementLoadPromise("display_none");
const attribute_hidden_img = new ElementLoadPromise("attribute_hidden");
const js_display_none_img = new ElementLoadPromise("js_display_none");
let has_window_loaded = false;
async_test(function(t) {
visibility_hidden_element.onload = e => {
t.step(function() {
t.unreached_func("Invisible image with loading=lazy should be loaded lazily.");
});
};
display_none_element.onload = e => {
t.step(function() {
t.unreached_func("Invisible image with loading=lazy should be loaded lazily.");
});
};
attribute_hidden_element.onload = e => {
t.step(function() {
t.unreached_func("Invisible image with loading=lazy should be loaded lazily.");
});
};
js_hidden_element.onload = e => {
t.step(function() {
t.unreached_func("Invisible image with loading=lazy should be loaded lazily.");
});
};
window.addEventListener("load", t.step_func(function() {
visibility_hidden_element.scrollIntoView();
display_none_element.scrollIntoView();
attribute_hidden_element.scrollIntoView();
js_hidden_element.scrollIntoView();
has_window_loaded = true;
}));
t.step_timeout(function() { t.done(); }, 2000);
}, "Test that lazily loaded below the viewport invisible images " +
"are not loaded");
display_none_img.promise.then(
t.unreached_func("The lazy image with display:none should not load since it is hidden.")
).catch(t.unreached_func("The error event should not fire for lazy images with display none."));
attribute_hidden_img.promise.then(
t.unreached_func("The lazy image with attribute hidden should not load since it is hidden.")
).catch(t.unreached_func("The error event should not fire for lazy image with attribute hidden."));
js_display_none_img.promise.then(
t.unreached_func("The lazy image with display:none set by JS should not load since it is hidden.")
).catch(t.unreached_func("The error event should not fire for lazy image with display none set by JS."));
visibility_hidden_img.promise.then(
t.step_func(function() {
assert_true(is_image_fully_loaded(visibility_hidden_img.element(),
expected));
assert_true(has_window_loaded);
t.step_timeout(function() { t.done(); }, 2000);
})
).catch(t.unreached_func("The error event should not fire for lazy image with visibility hidden."));
}, "Test behavior of in viewport invisible lazy images");
</script>

View file

@ -1,2 +0,0 @@
[long-expressions-should-not-crash.html]
expected: TIMEOUT