Auto merge of #27863 - servo-wpt-sync:wpt_update_27-11-2020, r=servo-wpt-sync

Sync WPT with upstream (27-11-2020)

Automated downstream sync of changes from upstream as of 27-11-2020.
[no-wpt-sync]
r? @servo-wpt-sync
This commit is contained in:
bors-servo 2020-11-27 15:11:13 -05:00 committed by GitHub
commit 9a052a7fab
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
74 changed files with 357 additions and 129 deletions

View file

@ -0,0 +1,4 @@
[hit-test-floats-002.html]
[Hit test float]
expected: FAIL

View file

@ -1,4 +0,0 @@
[hit-test-floats-004.html]
[Miss float below something else]
expected: FAIL

View file

@ -1,4 +0,0 @@
[CaretPosition-001.html]
[Element at (400, 100)]
expected: FAIL

View file

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

View file

@ -17,3 +17,6 @@
[test the top of layer]
expected: FAIL
[test some point of the element: top left corner]
expected: FAIL

View file

@ -0,0 +1,4 @@
[elementsFromPoint-invalid-cases.html]
[The root element is the last element returned for otherwise empty queries within the viewport]
expected: FAIL

View file

@ -1,2 +0,0 @@
[matchMedia-display-none-iframe.html]
expected: ERROR

View file

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

View file

@ -53,6 +53,3 @@
[combined text/javascript ]
expected: FAIL
[separate text/javascript x/x]
expected: FAIL

View file

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

View file

@ -1,4 +0,0 @@
[traverse_the_history_1.html]
[Multiple history traversals from the same task]
expected: FAIL

View file

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

View file

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

View file

@ -0,0 +1,2 @@
[cross-origin-objects-on-new-window.html]
expected: TIMEOUT

View file

@ -1,17 +1,16 @@
[supported-elements.html]
expected: TIMEOUT
[Contenteditable element should support autofocus]
expected: FAIL
[Host element with delegatesFocus including no focusable descendants should be skipped]
expected: NOTRUN
expected: FAIL
[Element with tabindex should support autofocus]
expected: FAIL
[Area element should support autofocus]
expected: NOTRUN
expected: FAIL
[Host element with delegatesFocus should support autofocus]
expected: TIMEOUT
expected: FAIL

View file

@ -171,3 +171,6 @@
[XHTML img usemap="#hash-id"]
expected: FAIL
[HTML (standards) IMG usemap="no-hash-name"]
expected: FAIL

View file

@ -1,5 +1,5 @@
[iframe_sandbox_popups_escaping-2.html]
expected: CRASH
expected: TIMEOUT
[Check that popups from a sandboxed iframe escape the sandbox if\n allow-popups-to-escape-sandbox is used]
expected: TIMEOUT

View file

@ -1,5 +1,5 @@
[iframe_sandbox_popups_escaping-3.html]
expected: CRASH
expected: TIMEOUT
[Check that popups from a sandboxed iframe escape the sandbox if\n allow-popups-to-escape-sandbox is used]
expected: TIMEOUT

View file

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

View file

@ -0,0 +1,4 @@
[activation-behavior.window.html]
[<a> that is not connected should be followed]
expected: FAIL

View file

@ -8,6 +8,3 @@
[Check that rel=noopener with target=_parent does a normal load]
expected: FAIL
[Check that rel=noopener with target=_self does a normal load]
expected: FAIL

View file

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

View file

@ -329,3 +329,9 @@
[X SNR (39.92911912193123 dB) is not greater than or equal to 65.737. Got 39.92911912193123.]
expected: FAIL
[X SNR (43.842655589973106 dB) is not greater than or equal to 65.737. Got 43.842655589973106.]
expected: FAIL
[X Stitched sine-wave buffers at sample rate 43800 does not equal [0,0.06264832615852356,0.12505052983760834,0.18696144223213196,0.24813786149024963,0.308339387178421,0.36732959747314453,0.4248766601085663,0.480754554271698,0.5347436666488647,0.5866320133209229,0.6362156271934509,0.6832997798919678,0.7276994585990906,0.7692402601242065,0.8077589869499207...\] with an element-wise tolerance of {"absoluteThreshold":0.0038986,"relativeThreshold":0}.\n\tIndex\tActual\t\t\tExpected\t\tAbsError\t\tRelError\t\tTest threshold\n\t[28696\]\t2.1012274082750082e-3\t9.3139332532882690e-1\t9.2929209792055190e-1\t9.9774399563413962e-1\t3.8985999999999999e-3\n\t[28697\]\t7.0477002859115601e-1\t9.0675884485244751e-1\t2.0198881626129150e-1\t2.2275913536212616e-1\t3.8985999999999999e-3\n\tMax AbsError of 9.2929209792055190e-1 at index of 28696.\n\tMax RelError of 9.9774399563413962e-1 at index of 28696.\n]
expected: FAIL

View file

@ -1,4 +1,5 @@
[audiocontext-not-fully-active.html]
expected: TIMEOUT
[frame in navigated remote-site frame]
expected: FAIL

View file

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

View file

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

View file

@ -1,7 +1,8 @@
[shared-worker-in-data-url-context.window.html]
expected: TIMEOUT
[Create a shared worker in a data url frame]
expected: FAIL
[Create a data url shared worker in a data url frame]
expected: FAIL
expected: TIMEOUT

View file

@ -244558,6 +244558,19 @@
{}
]
],
"fieldset-max-block-size.html": [
"170dedd6067b0d9663f5b1346a43cbeaf7d8bcf8",
[
null,
[
[
"/html/rendering/non-replaced-elements/the-fieldset-and-legend-elements/fieldset-max-block-size-ref.html",
"=="
]
],
{}
]
],
"fieldset-overflow-hidden.html": [
"cacbdbae00d0f7d6067323c68fc460149c524f35",
[
@ -256566,7 +256579,7 @@
"file": {
"resources": {
"echo-content-escaped.py": [
"2cbaf45c20efdfcba17a27d3aecb3e5c9bee4bfb",
"f35d069acac9c5cfe4d15fcf9a83288a72c375db",
[]
]
}
@ -327834,7 +327847,7 @@
]
},
"requirements.txt": [
"a008e3e72e88c9605b4b01cdc26d68fd4d13d710",
"725ddd9e85ee202cf7fc9d3072a770a6351cdb71",
[]
],
"selectors": {
@ -332042,7 +332055,7 @@
[]
],
"conf.py": [
"44d3c2f76bbcd6364e6bd81015ee9d0caaca21b9",
"96e8290455e20cec5088b7f1f7036ac39a8cf6c3",
[]
],
"frontend.py": [
@ -332062,12 +332075,12 @@
[]
],
"requirements.txt": [
"a9ddeecfe573825febb48afcd16ce4bc02b696ff",
"03ce983831da5d30ad423f9030cb612b30a9fb91",
[]
],
"reviewing-tests": {
"checklist.md": [
"0e50843f289bfad232723065f41442ba0b241713",
"be0f4d134e4d3d9ad06e994d96937640ee53246b",
[]
],
"email.md": [
@ -332138,7 +332151,7 @@
[]
],
"wpt_lint_rules.py": [
"a5eed507b5e774c37d5081046173ca5629bb7c16",
"b9997372520f3670a1047d3020ed2475f3f09098",
[]
],
"writing-tests": {
@ -344812,6 +344825,10 @@
"05b8ca4770b18a91aaf2d9f3038d6fe4162f289f",
[]
],
"fieldset-max-block-size-ref.html": [
"07c9da85b5347bdd2b01f3b52221dc791ed8a6f0",
[]
],
"fieldset-overflow-hidden-ref.html": [
"9fe632f7c209c42d9f24358ad6a2a56abddf97a3",
[]
@ -350510,7 +350527,7 @@
[]
],
"webrtc.idl": [
"d82cde768f7b5f65e78570227510f2e4f0d4b7c1",
"db644f031836bd2dfa8d046f5c78d561186490ec",
[]
],
"webusb.idl": [
@ -361372,7 +361389,7 @@
],
"documentation": {
"Dockerfile": [
"e01f98e4d4df0e7f7501bb5d7057d1d528221bde",
"01ea0bd95bf6d1468d4a38afa121f9fca01f3e95",
[]
]
},
@ -366775,7 +366792,7 @@
[]
],
"stream.py": [
"fc399f2a85b9fe6c52ec5690f580d06b222e4748",
"82d1ea619c074f1183bc08ae55a8ce0bb7704106",
[]
],
"util.py": [
@ -367713,7 +367730,7 @@
[]
],
"requirements.txt": [
"90d0cb6cdc8795c9b39e7644fd330283653b48e4",
"d83f5eb89fab1eb9734a90d262e21c33fa162a1f",
[]
],
"revlist.py": [
@ -367819,7 +367836,7 @@
]
},
"requirements.txt": [
"77c1ea50e90bc2ccff510173fbc892190b616b1d",
"a266c322e2cf453221e4a11e4302879e413baa94",
[]
],
"requirements_android_webview.txt": [
@ -367867,7 +367884,7 @@
[]
],
"requirements_sauce.txt": [
"d363945f54fc1b84fdc9ddc58560637ee050881c",
"47e268df17307a701bd966a9dbe89c3d542d8d3b",
[]
],
"requirements_servo.txt": [
@ -475990,6 +476007,15 @@
}
]
],
"reporting-coop-navigated-opener.https.html": [
"858f31b982878b34ebce744b945a7fc7b8925aa3",
[
null,
{
"timeout": "long"
}
]
],
"reporting-coop-navigated-popup.https.html": [
"dde4c40b38a1e541f66c47573fbd642f2e1e8289",
[
@ -496325,6 +496351,13 @@
{}
]
],
"placeholder-image.html": [
"6a2ce5c7c6df636e7003e7c69a58e65eb444f454",
[
null,
{}
]
],
"redirects-tao-star.html": [
"f01c2496c0673feb4d4ee4821e4ad51b5a79cd49",
[

View file

@ -0,0 +1,4 @@
[hit-test-floats-002.html]
[Hit test float]
expected: FAIL

View file

@ -1,4 +0,0 @@
[hit-test-floats-004.html]
[Miss float below something else]
expected: FAIL

View file

@ -1,4 +0,0 @@
[CaretPosition-001.html]
[Element at (400, 100)]
expected: FAIL

View file

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

View file

@ -21,3 +21,6 @@
[test the top of layer]
expected: FAIL
[test some point of the element: top left corner]
expected: FAIL

View file

@ -0,0 +1,4 @@
[elementsFromPoint-invalid-cases.html]
[The root element is the last element returned for otherwise empty queries within the viewport]
expected: FAIL

View file

@ -1,2 +0,0 @@
[matchMedia-display-none-iframe.html]
expected: ERROR

View file

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

View file

@ -53,6 +53,3 @@
[combined text/javascript ]
expected: FAIL
[separate text/javascript x/x]
expected: FAIL

View file

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

View file

@ -1,4 +0,0 @@
[traverse_the_history_1.html]
[Multiple history traversals from the same task]
expected: FAIL

View file

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

View file

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

View file

@ -0,0 +1,2 @@
[cross-origin-objects-on-new-window.html]
expected: TIMEOUT

View file

@ -1,5 +1,4 @@
[supported-elements.html]
expected: TIMEOUT
[Contenteditable element should support autofocus]
expected: FAIL
@ -7,11 +6,11 @@
expected: FAIL
[Host element with delegatesFocus including no focusable descendants should be skipped]
expected: NOTRUN
expected: FAIL
[Area element should support autofocus]
expected: NOTRUN
expected: FAIL
[Host element with delegatesFocus should support autofocus]
expected: TIMEOUT
expected: FAIL

View file

@ -172,3 +172,6 @@
[XHTML img usemap="http://example.org/#garbage-before-hash-id"]
expected: FAIL
[HTML (standards) IMG usemap="no-hash-name"]
expected: FAIL

View file

@ -1,5 +1,5 @@
[iframe_sandbox_popups_escaping-2.html]
expected: CRASH
expected: TIMEOUT
[Check that popups from a sandboxed iframe escape the sandbox if\n allow-popups-to-escape-sandbox is used]
expected: FAIL
expected: TIMEOUT

View file

@ -1,6 +1,6 @@
[iframe_sandbox_popups_escaping-3.html]
type: testharness
expected: CRASH
expected: TIMEOUT
[Check that popups from a sandboxed iframe escape the sandbox if\n allow-popups-to-escape-sandbox is used]
expected: FAIL
expected: TIMEOUT

View file

@ -1,4 +1,5 @@
[iframe_sandbox_popups_nonescaping-3.html]
expected: TIMEOUT
[Check that popups from a sandboxed iframe do not escape the sandbox]
expected: FAIL
expected: NOTRUN

View file

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

View file

@ -0,0 +1,4 @@
[activation-behavior.window.html]
[<a> that is not connected should be followed]
expected: FAIL

View file

@ -12,6 +12,3 @@
[Check that rel=noopener with target=_parent does a normal load]
expected: FAIL
[Check that rel=noopener with target=_self does a normal load]
expected: FAIL

View file

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

View file

@ -557,3 +557,9 @@
[X SNR (39.92911912193123 dB) is not greater than or equal to 65.737. Got 39.92911912193123.]
expected: FAIL
[X SNR (43.842655589973106 dB) is not greater than or equal to 65.737. Got 43.842655589973106.]
expected: FAIL
[X Stitched sine-wave buffers at sample rate 43800 does not equal [0,0.06264832615852356,0.12505052983760834,0.18696144223213196,0.24813786149024963,0.308339387178421,0.36732959747314453,0.4248766601085663,0.480754554271698,0.5347436666488647,0.5866320133209229,0.6362156271934509,0.6832997798919678,0.7276994585990906,0.7692402601242065,0.8077589869499207...\] with an element-wise tolerance of {"absoluteThreshold":0.0038986,"relativeThreshold":0}.\n\tIndex\tActual\t\t\tExpected\t\tAbsError\t\tRelError\t\tTest threshold\n\t[28696\]\t2.1012274082750082e-3\t9.3139332532882690e-1\t9.2929209792055190e-1\t9.9774399563413962e-1\t3.8985999999999999e-3\n\t[28697\]\t7.0477002859115601e-1\t9.0675884485244751e-1\t2.0198881626129150e-1\t2.2275913536212616e-1\t3.8985999999999999e-3\n\tMax AbsError of 9.2929209792055190e-1 at index of 28696.\n\tMax RelError of 9.9774399563413962e-1 at index of 28696.\n]
expected: FAIL

View file

@ -1,4 +1,5 @@
[audiocontext-not-fully-active.html]
expected: TIMEOUT
[frame in navigated remote-site frame]
expected: FAIL

View file

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

View file

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

View file

@ -1,7 +1,8 @@
[shared-worker-in-data-url-context.window.html]
expected: TIMEOUT
[Create a shared worker in a data url frame]
expected: FAIL
[Create a data url shared worker in a data url frame]
expected: FAIL
expected: TIMEOUT

View file

@ -1,3 +1,4 @@
from six import PY3
from wptserve.utils import isomorphic_encode
# Outputs the request body, with controls and non-ASCII bytes escaped
@ -5,13 +6,13 @@ from wptserve.utils import isomorphic_encode
# As a convenience, CRLF newlines are left as is.
def escape_byte(byte):
# Iterating over a binary string gives different types in Py2 & Py3.
# Py3: bytes -> int
# Py2: str -> str (of length 1), so we convert it to int
code = byte if type(byte) is int else ord(byte)
if 0 <= code <= 0x1F or code >= 0x7F:
return b"\\x%02x" % code
if code == ord(b"\\"):
# We want a single-char binary string, but in Python 3 we may get an int
# from iterating over bytes.
if PY3:
byte = bytes([byte])
if b"\0" <= byte <= b"\x1F" or byte >= b"\x7F":
return b"\\x%02x" % ord(byte)
if byte == b"\\":
return b"\\\\"
return byte

View file

@ -1,6 +1,6 @@
Template-Python==0.1.post1
html5lib==1.1
lxml==4.1.1
lxml==4.5.2
mercurial==4.5
six==1.15.0
webencodings==0.5.1

View file

@ -78,6 +78,7 @@ nitpick_ignore = [
('py:exc', 'BadOperationException'),
('py:exc', 'Exception'),
('py:exc', 'ValueError'),
('py:class', 'http.client.HTTPMessage')
]
# The language for content autogenerated by Sphinx. Refer to documentation
@ -211,5 +212,5 @@ epub_title = project
# A list of files that should not be packed into the epub file.
epub_exclude_files = ['search.html']
intersphinx_mapping = {'python': ('https://docs.python.org/2/', None),
intersphinx_mapping = {'python': ('https://docs.python.org/3/', None),
'mozilla': ('https://firefox-source-docs.mozilla.org/', None)}

View file

@ -1,4 +1,4 @@
recommonmark==0.6.0
# pin this to the last Py2 release
Sphinx==1.8.5 # pyup: <2.0
# Pin this to the same major version as https://docs.python.org/3/
Sphinx==2.4.4 # pyup: <3.0
sphinx-argparse==0.2.5

View file

@ -5,7 +5,7 @@ tests; in case of any contradiction with requirements stated elsewhere in the
documentation it should be ignored
(please [file a bug](https://github.com/web-platform-tests/wpt/issues/new)!).
As noted on the [reviewing tests](index) page, nits need not block PRs
As noted on the [reviewing tests](./index.md) page, nits need not block PRs
from landing.

View file

@ -3,6 +3,7 @@ from docutils.utils import new_document
from recommonmark.parser import CommonMarkParser
import importlib
import textwrap
from six import iteritems
class WPTLintRules(Directive):
"""A docutils directive to generate documentation for the
@ -31,7 +32,7 @@ class WPTLintRules(Directive):
"""wpt-lint-rules: unable to resolve the module at "{}".""".format(self.module_specifier)
)
for binding_name, value in module.__dict__.iteritems():
for binding_name, value in iteritems(module.__dict__):
if hasattr(value, "__abstractmethods__") and len(value.__abstractmethods__):
continue

View file

@ -0,0 +1,68 @@
<title>
Reports a browsing context group switch when an opener with COOP navigates.
</title>
<meta name=timeout content=long>
<script src=/resources/testharness.js></script>
<script src=/resources/testharnessreport.js></script>
<script src=/common/get-host-info.sub.js></script>
<script src="/common/utils.js"></script>
<script src="../resources/dispatcher.js"></script>
<script>
const directory = "/html/cross-origin-opener-policy/reporting";
const executor_path = directory + "/resources/executor.html?pipe=";
const same_origin = get_host_info().HTTPS_ORIGIN;
let escapeComma = url => url.replace(/,/g, '\\,');
promise_test(async t => {
// The test window.
const this_window_token = token();
// The "opener" window.
const opener_token = token();
const opener_url = same_origin + executor_path + `&uuid=${opener_token}`;
// The "openee" window.
const openee_token = token();
const openee_url = same_origin + executor_path + `&uuid=${openee_token}`;
// The "final" url the opener will navigate to. It has COOP and a reporter.
const final_report_token= token();
const final_token = token();
const final_reportTo = reportToHeaders(final_report_token);
const final_url = same_origin + executor_path + final_reportTo.header +
final_reportTo.coopSameOriginHeader +`&uuid=${final_token}`;
// 1. Create the opener window and ensure it doesn't have an opener.
let opener_window_proxy = window.open(opener_url, '_blank', 'noopener');
t.add_cleanup(() => send(opener_token, "window.close()"));
// 2. The opener opens a window.
send(opener_token, `
openee = window.open('${escapeComma(openee_url)}');
send("${this_window_token}", "ACK 1");
`);
// 3. Ensure the openee loads.
send(openee_token, `
send("${this_window_token}", "ACK 1");
`);
assert_equals("ACK 1", await receive(this_window_token));
// 4. The opener navigates.
send(opener_token, `
location.replace('${escapeComma(final_url)}');
`);
// 5. Check a report was sent to the opener.
let report =
await receiveReport(final_report_token, "navigation-to-response")
assert_equals(report.type, "coop");
assert_equals(report.url, final_url.replace(/"/g, '%22'));
assert_equals(report.body.disposition, "enforce");
assert_equals(report.body.effectivePolicy, "same-origin");
assert_equals(report.body.previousResponseURL, opener_url.replace(/"/g, '%22'));
}, "navigation-report-from-opener-navigation");
</script>

View file

@ -0,0 +1,34 @@
<!DOCTYPE html>
<style>
.fieldset {
border: 2px solid gray;
margin: 1em;
padding: 0;
width: 20em;
}
.f1 {
overflow: auto;
max-height: 3em;
}
.f2 {
max-height: 0;
}
</style>
<div class="fieldset f1">
<div>foo</div>
<div>foo</div>
<div>foo</div>
<div>foo</div>
<div>foo</div>
</div>
<div class="fieldset f1">
<div>foo</div>
</div>
<div class="fieldset f2">
<div>foo</div>
</div>

View file

@ -0,0 +1,36 @@
<!DOCTYPE html>
<link rel="help" href="http://crbug.com/1151858">
<link rel="match" href="fieldset-max-block-size-ref.html">
<style>
fieldset {
border: 2px solid gray;
margin: 1em;
padding: 0;
width: 20em;
}
.f1 {
overflow: auto;
max-height: 3em;
}
.f2 {
max-height: 0;
}
</style>
<fieldset class="f1">
<div>foo</div>
<div>foo</div>
<div>foo</div>
<div>foo</div>
<div>foo</div>
</fieldset>
<fieldset class="f1">
<div>foo</div>
</fieldset>
<fieldset class="f2">
<div>foo</div>
</fieldset>

View file

@ -238,7 +238,7 @@ dictionary RTCPeerConnectionIceErrorEventInit : EventInit {
unsigned short? port;
DOMString url;
required unsigned short errorCode;
USVString statusText;
USVString errorText;
};
partial interface RTCPeerConnection {

View file

@ -0,0 +1,31 @@
<!DOCTYPE HTML>
<meta charset=utf-8>
<title>Largest Contentful Paint: src change triggers new entry.</title>
<body>
<script src="/resources/testharness.js"></script>
<script src="/resources/testharnessreport.js"></script>
<script src="resources/largest-contentful-paint-helpers.js"></script>
<img src='/images/green-1x1.png' id='image_id' width="133" height="106"/>
<script>
async_test(function (t) {
assert_implements(window.LargestContentfulPaint, "LargestContentfulPaint is not implemented");
let beforeLoad = performance.now();
document.getElementById('image_id').src = '/images/blue.png';
const url = window.location.origin + '/images/blue.png';
const observer = new PerformanceObserver(
t.step_func(function(entryList) {
let entries = entryList.getEntries().filter(e => e.url === url);
if (entries.length === 0)
return;
assert_equals(entries.length, 1);
const entry = entries[0];
// blue.png is 133 by 106.
const size = 133 * 106;
checkImage(entry, url, 'image_id', size, beforeLoad);
t.done();
})
);
observer.observe({type: 'largest-contentful-paint', buffered: true});
}, 'Largest Contentful Paint: changing src causes a new entry to be dispatched.');
</script>
</body>

View file

@ -1,3 +1,3 @@
FROM python:2-stretch
FROM python:3.8-buster
RUN apt-get update && apt-get install --yes git
RUN apt-get update && apt-get install --yes git virtualenv

View file

@ -1,2 +1,2 @@
requests==2.24.0
requests==2.25.0
mozinfo==1.2.1 # https://bugzilla.mozilla.org/show_bug.cgi?id=1621226

View file

@ -6,5 +6,5 @@ mozdebug==0.2
pillow==6.2.2; python_version <= '2.7' # pyup: <7.0
pillow==8.0.1; python_version >= '3.0'
urllib3[secure]==1.26.2
requests==2.24.0
requests==2.25.0
six==1.15.0

View file

@ -1,3 +1,3 @@
mozprocess==1.2.1
selenium==3.141.0
requests==2.24.0
requests==2.25.0