mirror of
https://github.com/servo/servo.git
synced 2025-08-07 14:35:33 +01:00
Update web-platform-tests to revision 22d4100cb662819e50653db96fa563c540e69571
This commit is contained in:
parent
344cc39d50
commit
65fe0fe078
78 changed files with 553 additions and 160 deletions
|
@ -0,0 +1,2 @@
|
|||
[one-element-transition.html]
|
||||
expected: TIMEOUT
|
|
@ -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
|
||||
|
|
@ -315,15 +315,18 @@
|
|||
[<iframe>: combined response Content-Type: text/html */*;charset=gbk]
|
||||
expected: FAIL
|
||||
|
||||
[<iframe>: combined response Content-Type: */* text/html]
|
||||
expected: FAIL
|
||||
|
||||
[<iframe>: combined response Content-Type: text/html;charset=gbk text/plain text/html]
|
||||
expected: FAIL
|
||||
|
||||
[<iframe>: separate response Content-Type: text/html */*]
|
||||
expected: FAIL
|
||||
|
||||
[<iframe>: separate response Content-Type: text/html;" \\" text/plain]
|
||||
[<iframe>: combined response Content-Type: text/html */*]
|
||||
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
|
||||
|
||||
|
|
|
@ -53,3 +53,6 @@
|
|||
[combined text/javascript ]
|
||||
expected: FAIL
|
||||
|
||||
[separate text/javascript x/x]
|
||||
expected: FAIL
|
||||
|
||||
|
|
|
@ -11,6 +11,9 @@
|
|||
[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%20%22nosniFF%22]
|
||||
[X-Content-Type-Options%3A%20%2Cnosniff]
|
||||
expected: FAIL
|
||||
|
||||
[Content-Type-Options%3A%20nosniff]
|
||||
expected: FAIL
|
||||
|
||||
|
|
|
@ -1,4 +0,0 @@
|
|||
[traverse_the_history_1.html]
|
||||
[Multiple history traversals from the same task]
|
||||
expected: FAIL
|
||||
|
|
@ -1,4 +1,4 @@
|
|||
[traverse_the_history_4.html]
|
||||
[traverse_the_history_3.html]
|
||||
[Multiple history traversals, last would be aborted]
|
||||
expected: FAIL
|
||||
|
|
@ -1,4 +0,0 @@
|
|||
[traverse_the_history_5.html]
|
||||
[Multiple history traversals, last would be aborted]
|
||||
expected: FAIL
|
||||
|
|
@ -0,0 +1,5 @@
|
|||
[sandbox-inherited-from-initiator-frame.html]
|
||||
expected: TIMEOUT
|
||||
[Inherit sandbox flags from the initiator's frame]
|
||||
expected: TIMEOUT
|
||||
|
|
@ -1,8 +1,7 @@
|
|||
[embedded-opener-remove-frame.html]
|
||||
expected: TIMEOUT
|
||||
[opener of discarded nested browsing context]
|
||||
expected: FAIL
|
||||
|
||||
[opener of discarded auxiliary browsing context]
|
||||
expected: TIMEOUT
|
||||
expected: FAIL
|
||||
|
||||
|
|
|
@ -171,3 +171,6 @@
|
|||
[XHTML img usemap="#hash-id"]
|
||||
expected: FAIL
|
||||
|
||||
[HTML (standards) IMG usemap="no-hash-name"]
|
||||
expected: FAIL
|
||||
|
||||
|
|
|
@ -1,4 +1,5 @@
|
|||
[iframe_sandbox_popups_escaping-3.html]
|
||||
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
|
||||
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
[iframe_sandbox_popups_nonescaping-1.html]
|
||||
expected: TIMEOUT
|
||||
expected: CRASH
|
||||
[Check that popups from a sandboxed iframe do not escape the sandbox]
|
||||
expected: NOTRUN
|
||||
|
||||
|
|
|
@ -0,0 +1,4 @@
|
|||
[form-double-submit-2.html]
|
||||
[preventDefault should allow onclick submit() to succeed]
|
||||
expected: FAIL
|
||||
|
|
@ -0,0 +1,4 @@
|
|||
[form-double-submit-3.html]
|
||||
[<button> should have the same double-submit protection as <input type=submit>]
|
||||
expected: FAIL
|
||||
|
|
@ -1,64 +1,70 @@
|
|||
[select-event.html]
|
||||
[input type url: setRangeText() a second time (must not fire select)]
|
||||
expected: FAIL
|
||||
|
||||
[input type url: setSelectionRange() a second time (must not fire select)]
|
||||
expected: FAIL
|
||||
|
||||
[input type tel: selectionDirection a second time (must not fire select)]
|
||||
expected: FAIL
|
||||
|
||||
[input type tel: select() a second time (must not fire select)]
|
||||
expected: FAIL
|
||||
|
||||
[input type password: selectionDirection a second time (must not fire select)]
|
||||
expected: FAIL
|
||||
|
||||
[input type url: selectionEnd a second time (must not fire select)]
|
||||
expected: FAIL
|
||||
|
||||
[input type url: select() a second time (must not fire select)]
|
||||
expected: FAIL
|
||||
|
||||
[input type text: setRangeText() a second time (must not fire select)]
|
||||
expected: FAIL
|
||||
|
||||
[input type search: setRangeText() a second time (must not fire select)]
|
||||
expected: FAIL
|
||||
|
||||
[input type password: select() a second time (must not fire select)]
|
||||
expected: FAIL
|
||||
|
||||
[input type password: selectionStart a second time (must not fire select)]
|
||||
expected: FAIL
|
||||
|
||||
[input type text: selectionEnd a second time (must not fire select)]
|
||||
expected: FAIL
|
||||
|
||||
[input type tel: setRangeText() a second time (must not fire select)]
|
||||
expected: FAIL
|
||||
|
||||
[textarea: selectionDirection a second time (must not fire select)]
|
||||
expected: FAIL
|
||||
|
||||
[input type password: selectionEnd out of range a second time (must not fire select)]
|
||||
expected: FAIL
|
||||
|
||||
[input type tel: selectionStart out of range a second time (must not fire select)]
|
||||
expected: FAIL
|
||||
|
||||
[input type search: selectionStart out of range a second time (must not fire select)]
|
||||
expected: FAIL
|
||||
|
||||
[input type tel: setSelectionRange out of range a second time (must not fire select)]
|
||||
expected: FAIL
|
||||
|
||||
[input type text: selectionDirection a second time (must not fire select)]
|
||||
expected: FAIL
|
||||
|
||||
[input type search: selectionDirection a second time (must not fire select)]
|
||||
expected: FAIL
|
||||
|
||||
[textarea: setSelectionRange out of range a second time (must not fire select)]
|
||||
[input type url: selectionEnd out of range a second time (must not fire select)]
|
||||
expected: FAIL
|
||||
|
||||
[textarea: setSelectionRange() a second time (must not fire select)]
|
||||
expected: FAIL
|
||||
|
||||
[input type url: selectionStart out of range a second time (must not fire select)]
|
||||
expected: FAIL
|
||||
|
||||
[textarea: setRangeText() a second time (must not fire select)]
|
||||
expected: FAIL
|
||||
|
||||
[input type tel: setSelectionRange() a second time (must not fire select)]
|
||||
expected: FAIL
|
||||
|
||||
[input type url: selectionDirection a second time (must not fire select)]
|
||||
expected: FAIL
|
||||
|
||||
[input type tel: selectionEnd a second time (must not fire select)]
|
||||
expected: FAIL
|
||||
|
||||
[textarea: selectionStart out of range a second time (must not fire select)]
|
||||
expected: FAIL
|
||||
|
||||
[input type text: selectionStart out of range a second time (must not fire select)]
|
||||
expected: FAIL
|
||||
|
||||
[input type text: selectionStart a second time (must not fire select)]
|
||||
expected: FAIL
|
||||
|
||||
[input type url: selectionStart a second time (must not fire select)]
|
||||
expected: FAIL
|
||||
|
||||
[input type search: selectionStart a second time (must not fire select)]
|
||||
expected: FAIL
|
||||
|
||||
[input type url: setSelectionRange out of range a second time (must not fire select)]
|
||||
expected: FAIL
|
||||
|
||||
|
|
|
@ -1,4 +0,0 @@
|
|||
[activation-behavior.window.html]
|
||||
[<a> that is not connected should be followed]
|
||||
expected: FAIL
|
||||
|
|
@ -1,4 +0,0 @@
|
|||
[iframe_005.html]
|
||||
[document.write external script into iframe write back into parent]
|
||||
expected: FAIL
|
||||
|
|
@ -3,3 +3,6 @@
|
|||
[The incumbent settings object while executing the compiled callback via Web IDL's invoke must be that of the node document]
|
||||
expected: TIMEOUT
|
||||
|
||||
[The entry settings object while executing the compiled callback via Web IDL's invoke must be that of the node document]
|
||||
expected: FAIL
|
||||
|
||||
|
|
|
@ -488,3 +488,9 @@
|
|||
[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\]\t-4.0587832018260933e-37\t9.3139332532882690e-1\t9.3139332532882690e-1\t1.0000000000000000e+0\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.3139332532882690e-1 at index of 28696.\n\tMax RelError of 1.0000000000000000e+0 at index of 28696.\n]
|
||||
expected: FAIL
|
||||
|
||||
[X SNR (-432.8357638048991 dB) is not greater than or equal to 65.737. Got -432.8357638048991.]
|
||||
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\]\t-6.5086735184939384e+23\t9.3139332532882690e-1\t6.5086735184939384e+23\t6.9881041032756614e+23\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 6.5086735184939384e+23 at index of 28696.\n\tMax RelError of 6.9881041032756614e+23 at index of 28696.\n]
|
||||
expected: FAIL
|
||||
|
||||
|
|
|
@ -1,5 +0,0 @@
|
|||
[017.html]
|
||||
expected: TIMEOUT
|
||||
[origin of the script that invoked the method, about:blank]
|
||||
expected: TIMEOUT
|
||||
|
|
@ -1,5 +1,4 @@
|
|||
[import-in-moduleworker.html]
|
||||
expected: ERROR
|
||||
[Base URL in module dedicated workers: import]
|
||||
expected: FAIL
|
||||
|
||||
|
|
|
@ -0,0 +1,2 @@
|
|||
[Worker-constructor.html]
|
||||
expected: ERROR
|
|
@ -121707,6 +121707,19 @@
|
|||
],
|
||||
{}
|
||||
]
|
||||
],
|
||||
"one-element-transition.html": [
|
||||
"51d3a968c735f78c3ba2b3f0213ec0d2a989ae15",
|
||||
[
|
||||
null,
|
||||
[
|
||||
[
|
||||
"/css/css-backgrounds/animations/one-element-animation-ref.html",
|
||||
"=="
|
||||
]
|
||||
],
|
||||
{}
|
||||
]
|
||||
]
|
||||
},
|
||||
"background-334.html": [
|
||||
|
@ -128622,6 +128635,19 @@
|
|||
{}
|
||||
]
|
||||
],
|
||||
"out-of-flow-in-multicolumn-013.html": [
|
||||
"3bf06dfc1a779e3034122987a456fb33b2feb36e",
|
||||
[
|
||||
null,
|
||||
[
|
||||
[
|
||||
"/css/reference/ref-filled-green-100px-square.xht",
|
||||
"=="
|
||||
]
|
||||
],
|
||||
{}
|
||||
]
|
||||
],
|
||||
"overflowed-block-with-no-room-after-000.html": [
|
||||
"084e16fb38de072fb83f92ba01302a2e404cdd97",
|
||||
[
|
||||
|
@ -333872,7 +333898,7 @@
|
|||
],
|
||||
"admin": {
|
||||
"index.md": [
|
||||
"3073b9678fe890efee20ac122e73d30f0ce7fbb1",
|
||||
"59569fd464c46c2010a48c8c62d8bfdd88b021c1",
|
||||
[]
|
||||
],
|
||||
"pywebsocket3.rst": [
|
||||
|
@ -339877,6 +339903,14 @@
|
|||
"b47f0f274ef43148d3be418e2c0628a567f1c3c1",
|
||||
[]
|
||||
],
|
||||
"sandbox-inherited-from-initiator-response-helper.html": [
|
||||
"29c7f12441f7473d8f7dc5adb9046c764daa7745",
|
||||
[]
|
||||
],
|
||||
"sandbox-inherited-from-initiator-response-helper.html.headers": [
|
||||
"82e8023d0ba61851af5747ee2ccba154193d1875",
|
||||
[]
|
||||
],
|
||||
"sandbox-javascript-window-open.html": [
|
||||
"909956a54ff52153756f863c3489f4c792b5aaff",
|
||||
[]
|
||||
|
@ -351341,7 +351375,7 @@
|
|||
],
|
||||
"tools": {
|
||||
"format_json.py": [
|
||||
"1059ac793aaf2fb5ee875ed9d7e8a02c0040be9e",
|
||||
"6386d418de1199df47a2f97376b7dbb38f4bbb28",
|
||||
[]
|
||||
]
|
||||
}
|
||||
|
@ -363215,7 +363249,7 @@
|
|||
[]
|
||||
],
|
||||
"META.yml": [
|
||||
"3eb893f4e65c3c0e5567688bd30725bc21eb40cb",
|
||||
"bb8ed039dc39ed4105de306302398be25e037f07",
|
||||
[]
|
||||
],
|
||||
"__init__.py": [
|
||||
|
@ -363929,7 +363963,7 @@
|
|||
[]
|
||||
],
|
||||
"requirements_mypy.txt": [
|
||||
"65100d70376cf614b4396dd242181394453efa49",
|
||||
"d5e04b94d534cbb6491aa0a04950c56434725ff2",
|
||||
[]
|
||||
],
|
||||
"runner": {
|
||||
|
@ -371182,7 +371216,7 @@
|
|||
]
|
||||
},
|
||||
"requirements.txt": [
|
||||
"a0b9b2df9f7dc4654f25e510498da706cff9cda8",
|
||||
"1dd417465bb883a1f4802978a85c7a0732b90616",
|
||||
[]
|
||||
],
|
||||
"requirements_android_webview.txt": [
|
||||
|
@ -427708,6 +427742,15 @@
|
|||
{}
|
||||
]
|
||||
],
|
||||
"mouseEvent-offsetXY-svg.html": [
|
||||
"c0bd16448529b63424813b93022cfb215396cadd",
|
||||
[
|
||||
null,
|
||||
{
|
||||
"testdriver": true
|
||||
}
|
||||
]
|
||||
],
|
||||
"mouseEvent.html": [
|
||||
"d50959729239599ff057a71143553b4a53f88975",
|
||||
[
|
||||
|
@ -428989,14 +429032,14 @@
|
|||
]
|
||||
],
|
||||
"focus-in-focus-event-001.html": [
|
||||
"bd4145a3fe5390c55a4e7e9eb29bbcfa922bdf1e",
|
||||
"0639b7785eb3c3eacb4e4478557caf80a3f7511e",
|
||||
[
|
||||
null,
|
||||
{}
|
||||
]
|
||||
],
|
||||
"focus-visible-001.html": [
|
||||
"068368995794c0559d3551ca3dc3471f7d777240",
|
||||
"d580b0771f85e7536abb2bce4e539b77e4ddeed6",
|
||||
[
|
||||
null,
|
||||
{
|
||||
|
@ -429005,7 +429048,7 @@
|
|||
]
|
||||
],
|
||||
"focus-visible-002.html": [
|
||||
"2846ae465a5665ca1d33db3f4c0ec14bf620a47e",
|
||||
"441c1dae9883d73f01093f56870a965f3d1a8aa4",
|
||||
[
|
||||
null,
|
||||
{
|
||||
|
@ -429015,7 +429058,7 @@
|
|||
]
|
||||
],
|
||||
"focus-visible-003.html": [
|
||||
"9d57225708a89bfae2c1549144d2284f7f138ba6",
|
||||
"aa73b4da44f0e831dbbd5516bd71daef245e7e65",
|
||||
[
|
||||
null,
|
||||
{
|
||||
|
@ -429024,7 +429067,7 @@
|
|||
]
|
||||
],
|
||||
"focus-visible-004.html": [
|
||||
"318d1eeb05430bd06fb166b8ffc13fa0b67c0c5c",
|
||||
"b30b9e2938ab4ed4e3972340953649c21e0085d9",
|
||||
[
|
||||
null,
|
||||
{
|
||||
|
@ -429033,7 +429076,7 @@
|
|||
]
|
||||
],
|
||||
"focus-visible-005.html": [
|
||||
"4aec863e3b9af3d5ba568de34a320bf92dda2adf",
|
||||
"c86c0574153243edd5f3c5a4f9ee24cb73e61374",
|
||||
[
|
||||
null,
|
||||
{
|
||||
|
@ -429042,7 +429085,7 @@
|
|||
]
|
||||
],
|
||||
"focus-visible-006.html": [
|
||||
"89d9782ac8eb439154d5f65f95f622d2c25acf3f",
|
||||
"a5256c107a7fd967cde60d2f67b2154a5c8145cf",
|
||||
[
|
||||
null,
|
||||
{
|
||||
|
@ -429060,7 +429103,7 @@
|
|||
]
|
||||
],
|
||||
"focus-visible-008.html": [
|
||||
"c84985fe1015ee756459ad23967810988b38fedb",
|
||||
"5f5b54e1f0f1f5deaf2bceac7b0cd41d50672f61",
|
||||
[
|
||||
null,
|
||||
{
|
||||
|
@ -429069,21 +429112,21 @@
|
|||
]
|
||||
],
|
||||
"focus-visible-009.html": [
|
||||
"bbadd578e004e5b84203979c3a6c07a820bd7564",
|
||||
"d9edb69c574aa1c7912ab66397d4bf1ab1590a37",
|
||||
[
|
||||
null,
|
||||
{}
|
||||
]
|
||||
],
|
||||
"focus-visible-010.html": [
|
||||
"cfd4282e9b599b0caa62cbbfa15ea34d88217a29",
|
||||
"8d02edbc3e6bd5ec257c652a4bf1fe07149ba699",
|
||||
[
|
||||
null,
|
||||
{}
|
||||
]
|
||||
],
|
||||
"focus-visible-011.html": [
|
||||
"3d66dc91386ecc1fb7c7cc166150550c5a65275d",
|
||||
"d45f5d8ed0f3903da5b5c37ea5a13ccbe690ceca",
|
||||
[
|
||||
null,
|
||||
{
|
||||
|
@ -429092,7 +429135,7 @@
|
|||
]
|
||||
],
|
||||
"focus-visible-012.html": [
|
||||
"dcb00e18d2535a6ab826f089d1034185de6be446",
|
||||
"b27abbe39c01b202196f5e25159da26cb5089f8e",
|
||||
[
|
||||
null,
|
||||
{
|
||||
|
@ -429101,14 +429144,14 @@
|
|||
]
|
||||
],
|
||||
"focus-visible-014.html": [
|
||||
"8e52570e79b163cd91f9aca1e0d4ee545fa5c51d",
|
||||
"6a4aef6e2bdf3c277b52ddb50679bc240b4cf744",
|
||||
[
|
||||
null,
|
||||
{}
|
||||
]
|
||||
],
|
||||
"focus-visible-015.html": [
|
||||
"21568f3b0639a8df388eabffbea045ecf570cb8a",
|
||||
"685baeb7bad07ad45a8efda163dba5db94b9ffe8",
|
||||
[
|
||||
null,
|
||||
{
|
||||
|
@ -429117,7 +429160,7 @@
|
|||
]
|
||||
],
|
||||
"focus-visible-016.html": [
|
||||
"64d9bb777fb547f42639f14f51b92248ff606109",
|
||||
"a65e5a5b3dd6aa2be7aa733d01725242e8b01cc4",
|
||||
[
|
||||
null,
|
||||
{
|
||||
|
@ -460874,6 +460917,20 @@
|
|||
{}
|
||||
]
|
||||
],
|
||||
"sandbox-inherited-from-initiator-frame.html": [
|
||||
"ab87fce5e0ce82bfed5ac88bcbf9890e8c39a4ce",
|
||||
[
|
||||
null,
|
||||
{}
|
||||
]
|
||||
],
|
||||
"sandbox-inherited-from-initiator-response.html": [
|
||||
"638f1ba783985c309759cdc63ec332d1b5ad5a58",
|
||||
[
|
||||
null,
|
||||
{}
|
||||
]
|
||||
],
|
||||
"sandbox-initial-empty-document-toward-same-origin.html": [
|
||||
"d1306c970322682f3979c497a5decd78218ba845",
|
||||
[
|
||||
|
@ -483145,6 +483202,15 @@
|
|||
]
|
||||
]
|
||||
},
|
||||
"embedded-content": {
|
||||
"audio-controls-intrinsic-size.html": [
|
||||
"6cbbcd02f5a0215801d960a319924bd86c90c70a",
|
||||
[
|
||||
null,
|
||||
{}
|
||||
]
|
||||
]
|
||||
},
|
||||
"svg-embedded-sizing": {
|
||||
"svg-in-iframe-auto.html": [
|
||||
"4c3fefe88f35898154f86bd66ff6ebcc3cb32be0",
|
||||
|
@ -528066,7 +528132,7 @@
|
|||
],
|
||||
"textcontrols": {
|
||||
"selectionchange.tentative.html": [
|
||||
"2216a4b514f9932118c2f8b645b4e4a1656117f2",
|
||||
"adec8b31f3e096eb28ae0246164d637da10bd5ee",
|
||||
[
|
||||
null,
|
||||
{}
|
||||
|
|
|
@ -0,0 +1,2 @@
|
|||
[one-element-transition.html]
|
||||
expected: TIMEOUT
|
|
@ -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
|
||||
|
|
@ -315,15 +315,18 @@
|
|||
[<iframe>: combined response Content-Type: text/html */*;charset=gbk]
|
||||
expected: FAIL
|
||||
|
||||
[<iframe>: combined response Content-Type: */* text/html]
|
||||
expected: FAIL
|
||||
|
||||
[<iframe>: combined response Content-Type: text/html;charset=gbk text/plain text/html]
|
||||
expected: FAIL
|
||||
|
||||
[<iframe>: separate response Content-Type: text/html */*]
|
||||
expected: FAIL
|
||||
|
||||
[<iframe>: separate response Content-Type: text/html;" \\" text/plain]
|
||||
[<iframe>: combined response Content-Type: text/html */*]
|
||||
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
|
||||
|
||||
|
|
|
@ -53,3 +53,6 @@
|
|||
[combined text/javascript ]
|
||||
expected: FAIL
|
||||
|
||||
[separate text/javascript x/x]
|
||||
expected: FAIL
|
||||
|
||||
|
|
|
@ -11,6 +11,9 @@
|
|||
[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%20%22nosniFF%22]
|
||||
[X-Content-Type-Options%3A%20%2Cnosniff]
|
||||
expected: FAIL
|
||||
|
||||
[Content-Type-Options%3A%20nosniff]
|
||||
expected: FAIL
|
||||
|
||||
|
|
|
@ -1,4 +0,0 @@
|
|||
[traverse_the_history_1.html]
|
||||
[Multiple history traversals from the same task]
|
||||
expected: FAIL
|
||||
|
|
@ -1,4 +1,4 @@
|
|||
[traverse_the_history_4.html]
|
||||
[traverse_the_history_3.html]
|
||||
[Multiple history traversals, last would be aborted]
|
||||
expected: FAIL
|
||||
|
|
@ -1,4 +0,0 @@
|
|||
[traverse_the_history_5.html]
|
||||
[Multiple history traversals, last would be aborted]
|
||||
expected: FAIL
|
||||
|
|
@ -0,0 +1,5 @@
|
|||
[sandbox-inherited-from-initiator-frame.html]
|
||||
expected: TIMEOUT
|
||||
[Inherit sandbox flags from the initiator's frame]
|
||||
expected: TIMEOUT
|
||||
|
|
@ -1,5 +1,4 @@
|
|||
[embedded-opener-remove-frame.html]
|
||||
expected: TIMEOUT
|
||||
[opener and "removed" embedded documents]
|
||||
expected: FAIL
|
||||
|
||||
|
@ -7,5 +6,5 @@
|
|||
expected: FAIL
|
||||
|
||||
[opener of discarded auxiliary browsing context]
|
||||
expected: TIMEOUT
|
||||
expected: FAIL
|
||||
|
||||
|
|
|
@ -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
|
||||
|
||||
|
|
|
@ -1,5 +1,6 @@
|
|||
[iframe_sandbox_popups_escaping-3.html]
|
||||
type: testharness
|
||||
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
|
||||
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
[iframe_sandbox_popups_nonescaping-1.html]
|
||||
type: testharness
|
||||
expected: TIMEOUT
|
||||
expected: CRASH
|
||||
[Check that popups from a sandboxed iframe do not escape the sandbox]
|
||||
expected: NOTRUN
|
||||
|
||||
|
|
|
@ -0,0 +1,4 @@
|
|||
[form-double-submit-2.html]
|
||||
[preventDefault should allow onclick submit() to succeed]
|
||||
expected: FAIL
|
||||
|
|
@ -0,0 +1,4 @@
|
|||
[form-double-submit-3.html]
|
||||
[<button> should have the same double-submit protection as <input type=submit>]
|
||||
expected: FAIL
|
||||
|
|
@ -1,64 +1,70 @@
|
|||
[select-event.html]
|
||||
[input type url: setRangeText() a second time (must not fire select)]
|
||||
expected: FAIL
|
||||
|
||||
[input type url: setSelectionRange() a second time (must not fire select)]
|
||||
expected: FAIL
|
||||
|
||||
[input type tel: selectionDirection a second time (must not fire select)]
|
||||
expected: FAIL
|
||||
|
||||
[input type tel: select() a second time (must not fire select)]
|
||||
expected: FAIL
|
||||
|
||||
[input type password: selectionDirection a second time (must not fire select)]
|
||||
expected: FAIL
|
||||
|
||||
[input type url: selectionEnd a second time (must not fire select)]
|
||||
expected: FAIL
|
||||
|
||||
[input type url: select() a second time (must not fire select)]
|
||||
expected: FAIL
|
||||
|
||||
[input type text: setRangeText() a second time (must not fire select)]
|
||||
expected: FAIL
|
||||
|
||||
[input type search: setRangeText() a second time (must not fire select)]
|
||||
expected: FAIL
|
||||
|
||||
[input type password: select() a second time (must not fire select)]
|
||||
expected: FAIL
|
||||
|
||||
[input type password: selectionStart a second time (must not fire select)]
|
||||
expected: FAIL
|
||||
|
||||
[input type text: selectionEnd a second time (must not fire select)]
|
||||
expected: FAIL
|
||||
|
||||
[input type tel: setRangeText() a second time (must not fire select)]
|
||||
expected: FAIL
|
||||
|
||||
[textarea: selectionDirection a second time (must not fire select)]
|
||||
expected: FAIL
|
||||
|
||||
[input type password: selectionEnd out of range a second time (must not fire select)]
|
||||
expected: FAIL
|
||||
|
||||
[input type tel: selectionStart out of range a second time (must not fire select)]
|
||||
expected: FAIL
|
||||
|
||||
[input type search: selectionStart out of range a second time (must not fire select)]
|
||||
expected: FAIL
|
||||
|
||||
[input type tel: setSelectionRange out of range a second time (must not fire select)]
|
||||
expected: FAIL
|
||||
|
||||
[input type text: selectionDirection a second time (must not fire select)]
|
||||
expected: FAIL
|
||||
|
||||
[input type search: selectionDirection a second time (must not fire select)]
|
||||
expected: FAIL
|
||||
|
||||
[textarea: setSelectionRange out of range a second time (must not fire select)]
|
||||
[input type url: selectionEnd out of range a second time (must not fire select)]
|
||||
expected: FAIL
|
||||
|
||||
[textarea: setSelectionRange() a second time (must not fire select)]
|
||||
expected: FAIL
|
||||
|
||||
[input type url: selectionStart out of range a second time (must not fire select)]
|
||||
expected: FAIL
|
||||
|
||||
[textarea: setRangeText() a second time (must not fire select)]
|
||||
expected: FAIL
|
||||
|
||||
[input type tel: setSelectionRange() a second time (must not fire select)]
|
||||
expected: FAIL
|
||||
|
||||
[input type url: selectionDirection a second time (must not fire select)]
|
||||
expected: FAIL
|
||||
|
||||
[input type tel: selectionEnd a second time (must not fire select)]
|
||||
expected: FAIL
|
||||
|
||||
[textarea: selectionStart out of range a second time (must not fire select)]
|
||||
expected: FAIL
|
||||
|
||||
[input type text: selectionStart out of range a second time (must not fire select)]
|
||||
expected: FAIL
|
||||
|
||||
[input type text: selectionStart a second time (must not fire select)]
|
||||
expected: FAIL
|
||||
|
||||
[input type url: selectionStart a second time (must not fire select)]
|
||||
expected: FAIL
|
||||
|
||||
[input type search: selectionStart a second time (must not fire select)]
|
||||
expected: FAIL
|
||||
|
||||
[input type url: setSelectionRange out of range a second time (must not fire select)]
|
||||
expected: FAIL
|
||||
|
||||
|
|
|
@ -1,4 +0,0 @@
|
|||
[activation-behavior.window.html]
|
||||
[<a> that is not connected should be followed]
|
||||
expected: FAIL
|
||||
|
|
@ -1,4 +0,0 @@
|
|||
[iframe_005.html]
|
||||
[document.write external script into iframe write back into parent]
|
||||
expected: FAIL
|
||||
|
|
@ -4,3 +4,6 @@
|
|||
[The incumbent settings object while executing the compiled callback via Web IDL's invoke must be that of the node document]
|
||||
expected: TIMEOUT
|
||||
|
||||
[The entry settings object while executing the compiled callback via Web IDL's invoke must be that of the node document]
|
||||
expected: FAIL
|
||||
|
||||
|
|
|
@ -716,3 +716,9 @@
|
|||
[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\]\t-4.0587832018260933e-37\t9.3139332532882690e-1\t9.3139332532882690e-1\t1.0000000000000000e+0\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.3139332532882690e-1 at index of 28696.\n\tMax RelError of 1.0000000000000000e+0 at index of 28696.\n]
|
||||
expected: FAIL
|
||||
|
||||
[X SNR (-432.8357638048991 dB) is not greater than or equal to 65.737. Got -432.8357638048991.]
|
||||
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\]\t-6.5086735184939384e+23\t9.3139332532882690e-1\t6.5086735184939384e+23\t6.9881041032756614e+23\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 6.5086735184939384e+23 at index of 28696.\n\tMax RelError of 6.9881041032756614e+23 at index of 28696.\n]
|
||||
expected: FAIL
|
||||
|
||||
|
|
|
@ -1,5 +0,0 @@
|
|||
[017.html]
|
||||
expected: TIMEOUT
|
||||
[origin of the script that invoked the method, about:blank]
|
||||
expected: TIMEOUT
|
||||
|
|
@ -1,5 +1,4 @@
|
|||
[import-in-moduleworker.html]
|
||||
expected: ERROR
|
||||
[Base URL in module dedicated workers: import]
|
||||
expected: FAIL
|
||||
|
||||
|
|
|
@ -0,0 +1,2 @@
|
|||
[Worker-constructor.html]
|
||||
expected: ERROR
|
|
@ -0,0 +1,39 @@
|
|||
<!DOCTYPE html>
|
||||
<html class="reftest-wait">
|
||||
<link rel="help" href="https://drafts.csswg.org/css-backgrounds-3/#background-color">
|
||||
<link rel="match" href="one-element-animation-ref.html">
|
||||
<style>
|
||||
.container {
|
||||
width: 100px;
|
||||
height: 100px;
|
||||
background-color: rgb(0, 200, 0);
|
||||
transition-property: background-color;
|
||||
/* Use a long animation that start at 50% progress where the slope of the
|
||||
selected timing function is zero. By setting up the animation in this way,
|
||||
we accommodate lengthy delays in running the test without a potential drift
|
||||
in the animated property value. This is important for avoiding flakes,
|
||||
especially on debug builds. The screenshots are taken as soon as the
|
||||
animation is ready, thus the long animation duration has no bearing on
|
||||
the actual duration of the test. */
|
||||
transition-duration: 1000000s;
|
||||
transition-timing-function: cubic-bezier(0,1,1,0);
|
||||
transition-delay: -500000s;
|
||||
}
|
||||
</style>
|
||||
<script src="/common/reftest-wait.js"></script>
|
||||
<body>
|
||||
<div class="container" id="target"></div>
|
||||
|
||||
<script>
|
||||
function update() {
|
||||
document.getElementById('target').style.backgroundColor = "rgb(200, 0, 0)";
|
||||
requestAnimationFrame(() => {
|
||||
takeScreenshot();
|
||||
});
|
||||
}
|
||||
requestAnimationFrame(function() {
|
||||
requestAnimationFrame(update);
|
||||
});
|
||||
</script>
|
||||
</body>
|
||||
</html>
|
|
@ -0,0 +1,35 @@
|
|||
<!DOCTYPE html>
|
||||
<link rel="help" href="href=https://www.w3.org/TR/css-position-3/#abspos-breaking">
|
||||
<link rel="match" href="../reference/ref-filled-green-100px-square.xht">
|
||||
<!-- Nested abspos with `height: auto` and positioned with the bottom property.
|
||||
The innermost abspos only is fragmented. -->
|
||||
<style>
|
||||
#multicol {
|
||||
column-count: 2;
|
||||
width: 100px;
|
||||
height: 100px;
|
||||
column-fill: auto;
|
||||
column-gap: 0px;
|
||||
background-color: red;
|
||||
}
|
||||
.rel {
|
||||
position: relative;
|
||||
height: 100px;
|
||||
width: 50px;
|
||||
}
|
||||
.abs {
|
||||
position: absolute;
|
||||
width: 50px;
|
||||
background-color: green;
|
||||
}
|
||||
</style>
|
||||
<p>Test passes if there is a filled green square and <strong>no red</strong>.</p>
|
||||
<div id="multicol">
|
||||
<div class="rel">
|
||||
<div class="abs" style="bottom: 0;">
|
||||
<div class="abs" style="bottom: -100px;">
|
||||
<div style="height: 200px;"></div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
|
@ -0,0 +1,27 @@
|
|||
<!doctype html>
|
||||
<title>MouseEvent.offsetX/Y returns coordinates relative to the root svg</title>
|
||||
<link rel="author" title="Emilio Cobos Álvarez" href="mailto:emilio@crisal.io">
|
||||
<link rel="author" title="Mozilla" href="https://mozilla.org">
|
||||
<link rel="help" href="https://bugzilla.mozilla.org/show_bug.cgi?id=1684973">
|
||||
<link rel="help" href="https://github.com/w3c/csswg-drafts/issues/1508">
|
||||
<link rel="help" href="https://drafts.csswg.org/cssom-view/#dom-mouseevent-offsetx">
|
||||
<script src=/resources/testharness.js></script>
|
||||
<script src=/resources/testharnessreport.js></script>
|
||||
<script src="/resources/testdriver.js"></script>
|
||||
<script src="/resources/testdriver-vendor.js"></script>
|
||||
<style>
|
||||
body { margin: 0 }
|
||||
</style>
|
||||
<svg width=100 height=100>
|
||||
<rect width=30 height=30 x=50 y=50 fill=green></rect>
|
||||
</svg>
|
||||
<script>
|
||||
let t = async_test();
|
||||
let rect = document.querySelector("rect");
|
||||
rect.addEventListener("click", t.step_func_done(function(e) {
|
||||
assert_true(e.offsetX >= 50);
|
||||
assert_true(e.offsetY >= 50);
|
||||
}))
|
||||
|
||||
test_driver.click(rect);
|
||||
</script>
|
|
@ -14,7 +14,7 @@ input.addEventListener('focus', function(e) {
|
|||
var focused = document.querySelector(':focus');
|
||||
test(() => {
|
||||
assert_equals(e.target, focused, "':focus' matches event.target");
|
||||
}, "Checks that ':focus' pseudo-class matches inside 'focus' evente handler");
|
||||
}, "Checks that ':focus' pseudo-class matches inside 'focus' event handler");
|
||||
}, false);
|
||||
input.focus();
|
||||
</script>
|
||||
|
|
|
@ -13,6 +13,7 @@
|
|||
<style>
|
||||
@supports not (selector(:focus-visible)) {
|
||||
:focus {
|
||||
outline: red solid 5px;
|
||||
background-color: red;
|
||||
}
|
||||
}
|
||||
|
|
|
@ -14,6 +14,7 @@
|
|||
<style>
|
||||
@supports not (selector(:focus-visible)) {
|
||||
:focus {
|
||||
outline: red solid 5px;
|
||||
background-color: red;
|
||||
}
|
||||
}
|
||||
|
|
|
@ -14,6 +14,7 @@
|
|||
@supports not (selector(:focus-visible)) {
|
||||
:focus {
|
||||
outline: red solid 5px;
|
||||
background-color: red;
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -14,6 +14,7 @@
|
|||
@supports not (selector(:focus-visible)) {
|
||||
:focus {
|
||||
outline: red solid 5px;
|
||||
background-color: red;
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -13,6 +13,7 @@
|
|||
@supports not (selector(:focus-visible)) {
|
||||
:focus {
|
||||
outline: red solid 5px;
|
||||
background-color: red;
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -10,6 +10,13 @@
|
|||
<script src="/resources/testdriver.js"></script>
|
||||
<script src="/resources/testdriver-vendor.js"></script>
|
||||
<style>
|
||||
@supports not (selector(:focus-visible)) {
|
||||
:focus {
|
||||
outline: red solid 5px;
|
||||
background-color: red;
|
||||
}
|
||||
}
|
||||
|
||||
span[contenteditable] {
|
||||
border: 1px solid black;
|
||||
background-color: white;
|
||||
|
|
|
@ -12,6 +12,7 @@
|
|||
<style>
|
||||
@supports not (selector(:focus-visible)) {
|
||||
#el:focus {
|
||||
outline: red solid 5px;
|
||||
background-color: red;
|
||||
}
|
||||
}
|
||||
|
|
|
@ -9,7 +9,8 @@
|
|||
<script src="/resources/testharnessreport.js"></script>
|
||||
<style>
|
||||
@supports not (selector(:focus-visible)) {
|
||||
#buton:focus {
|
||||
#button:focus {
|
||||
outline: red solid 5px;
|
||||
background-color: red;
|
||||
}
|
||||
}
|
||||
|
|
|
@ -10,6 +10,7 @@
|
|||
<style>
|
||||
@supports not (selector(:focus-visible)) {
|
||||
:focus {
|
||||
outline: red solid 5px;
|
||||
background-color: red;
|
||||
}
|
||||
}
|
||||
|
|
|
@ -12,6 +12,7 @@
|
|||
<style>
|
||||
@supports not (selector(:focus-visible)) {
|
||||
#next:focus {
|
||||
outline: red solid 5px;
|
||||
background-color: red;
|
||||
}
|
||||
}
|
||||
|
|
|
@ -13,6 +13,7 @@
|
|||
<style>
|
||||
@supports not (selector(:focus-visible)) {
|
||||
:focus {
|
||||
outline: red solid 5px;
|
||||
background-color: red;
|
||||
}
|
||||
}
|
||||
|
|
|
@ -9,6 +9,7 @@
|
|||
<style>
|
||||
@supports not (selector(:focus-visible)) {
|
||||
:focus {
|
||||
outline: red solid 5px;
|
||||
background-color: red;
|
||||
}
|
||||
}
|
||||
|
|
|
@ -11,6 +11,7 @@
|
|||
<style>
|
||||
@supports not (selector(:focus-visible)) {
|
||||
:focus {
|
||||
outline: red solid 5px;
|
||||
background-color: red;
|
||||
}
|
||||
}
|
||||
|
|
|
@ -11,6 +11,7 @@
|
|||
<style>
|
||||
@supports not (selector(:focus-visible)) {
|
||||
:focus {
|
||||
outline: red solid 5px;
|
||||
background-color: red;
|
||||
}
|
||||
}
|
||||
|
|
|
@ -44,15 +44,13 @@ explicitly-managed secret.
|
|||
- (unknown registrar): http://testthewebforward.org
|
||||
- web-human@w3.org
|
||||
- [Google Domains](https://domains.google/): https://wpt.fyi
|
||||
- smcgruer@google.com
|
||||
- foolip@google.com
|
||||
- robertma@google.com
|
||||
- mike@bocoup.com
|
||||
- (Google internal): https://wpt.live https://wptpr.live
|
||||
- smcgruer@google.com
|
||||
- foolip@google.com
|
||||
- robertma@google.com
|
||||
- [GitHub](https://github.com/): web-platform-tests
|
||||
- [@foolip](https://github.com/foolip)
|
||||
- [@Hexcles](https://github.com/Hexcles)
|
||||
- [@jgraham](https://github.com/jgraham)
|
||||
- [@plehegar](https://github.com/plehegar)
|
||||
- [@thejohnjansen](https://github.com/thejohnjansen)
|
||||
|
@ -62,15 +60,12 @@ explicitly-managed secret.
|
|||
- [@plehegar](https://github.com/plehegar)
|
||||
- [@sideshowbarker](https://github.com/sideshowbarker)
|
||||
- [Google Cloud Platform](https://cloud.google.com/): wptdashboard{-staging}
|
||||
- robertma@google.com
|
||||
- smcgruer@google.com
|
||||
- foolip@google.com
|
||||
- [Google Cloud Platform](https://cloud.google.com/): wpt-live
|
||||
- smcgruer@google.com
|
||||
- robertma@google.com
|
||||
- [Google Cloud Platform](https://cloud.google.com/): wpt-pr-bot
|
||||
- smcgruer@google.com
|
||||
- robertma@google.com
|
||||
- E-mail address: wpt.pr.bot@gmail.com
|
||||
- smcgruer@google.com
|
||||
- boaz@bocoup.com
|
||||
|
|
|
@ -0,0 +1,15 @@
|
|||
<script>
|
||||
const iframe_1_script = encodeURI(`
|
||||
<script>
|
||||
try {
|
||||
document.domain = document.domain;
|
||||
parent.postMessage("not sandboxed", "*");
|
||||
} catch (exception) {
|
||||
parent.postMessage("sandboxed", "*");
|
||||
}
|
||||
</scr`+`ipt>
|
||||
`);
|
||||
|
||||
const iframe_1 = parent.document.querySelector("#iframe_1");
|
||||
iframe_1.src = `data:text/html,${iframe_1_script}`;
|
||||
</script>
|
|
@ -0,0 +1 @@
|
|||
Content-Security-Policy: sandbox allow-scripts allow-same-origin
|
|
@ -0,0 +1,64 @@
|
|||
<!DOCTYPE html>
|
||||
<meta charset=utf-8>
|
||||
<title>Inherit sandbox flags from the initiator's frame</title>
|
||||
<script src="/resources/testharness.js"></script>
|
||||
<script src="/resources/testharnessreport.js"></script>
|
||||
<body>
|
||||
<script>
|
||||
// Check sandbox flags are properly inherited when a document initiate a
|
||||
// navigation inside another frame that it doesn't own directly.
|
||||
|
||||
// This check the sandbox flags defined by the frame. See also the other test
|
||||
// about sandbox flags defined by the response (e.g. CSP sandbox):
|
||||
// => sandbox-inherited-from-initiators-response.html
|
||||
|
||||
// Return a promise, resolving when |element| triggers |event_name| event.
|
||||
let future = (element, event_name) => {
|
||||
return new Promise(resolve => {
|
||||
element.addEventListener(event_name, event => resolve(event))
|
||||
});
|
||||
};
|
||||
|
||||
promise_test(async test => {
|
||||
const iframe_1 = document.createElement("iframe");
|
||||
const iframe_2 = document.createElement("iframe");
|
||||
|
||||
iframe_1.id = "iframe_1";
|
||||
iframe_2.id = "iframe_2";
|
||||
|
||||
const iframe_1_script = encodeURI(`
|
||||
<script>
|
||||
try {
|
||||
document.domain = document.domain;
|
||||
parent.postMessage("not sandboxed", "*");
|
||||
} catch (exception) {
|
||||
parent.postMessage("sandboxed", "*");
|
||||
}
|
||||
</scr`+`ipt>
|
||||
`);
|
||||
|
||||
const iframe_2_script = `
|
||||
<script>
|
||||
const iframe_1 = parent.document.querySelector("#iframe_1");
|
||||
iframe_1.src = "data:text/html,${iframe_1_script}";
|
||||
</scr`+`ipt>
|
||||
`;
|
||||
|
||||
iframe_2.sandbox = "allow-scripts allow-same-origin";
|
||||
iframe_2.srcdoc = iframe_2_script;
|
||||
|
||||
// Insert |iframe_1|. It will load the initial empty document, with no sandbox
|
||||
// flags.
|
||||
const iframe_1_load_1 = future(iframe_1, "load");
|
||||
document.body.appendChild(iframe_1);
|
||||
await iframe_1_load_1;
|
||||
|
||||
// Insert |iframe_2|. It will load with sandbox flags. It will make |iframe_1|
|
||||
// to navigate toward a data-url, which should inherit the sandbox flags.
|
||||
const iframe_1_reply = future(window, "message");
|
||||
document.body.appendChild(iframe_2);
|
||||
const result = await iframe_1_reply;
|
||||
|
||||
assert_equals("sandboxed", result.data);
|
||||
})
|
||||
</script>
|
|
@ -0,0 +1,46 @@
|
|||
<!DOCTYPE html>
|
||||
<meta charset=utf-8>
|
||||
<title>Inherit sandbox flags from the initiator's response</title>
|
||||
<script src="/resources/testharness.js"></script>
|
||||
<script src="/resources/testharnessreport.js"></script>
|
||||
<body>
|
||||
<script>
|
||||
// Check sandbox flags are properly inherited when a document initiate a
|
||||
// navigation inside another frame that it doesn't own directly.
|
||||
|
||||
// This check the sandbox flags defined by the response (e.g. CSP sandbox). See
|
||||
// also the other test about sandbox flags inherited from the frame.
|
||||
// => sandbox-inherited-from-initiators-frame.html
|
||||
|
||||
// Return a promise, resolving when |element| triggers |event_name| event.
|
||||
let future = (element, event_name) => {
|
||||
return new Promise(resolve => {
|
||||
element.addEventListener(event_name, event => resolve(event))
|
||||
});
|
||||
};
|
||||
|
||||
promise_test(async test => {
|
||||
const iframe_1 = document.createElement("iframe");
|
||||
const iframe_2 = document.createElement("iframe");
|
||||
|
||||
iframe_1.id = "iframe_1";
|
||||
iframe_2.id = "iframe_2";
|
||||
|
||||
iframe_2.src =
|
||||
"./resources/sandbox-inherited-from-initiator-response-helper.html";
|
||||
|
||||
// Insert |iframe_1|. It will load the initial empty document, with no sandbox
|
||||
// flags.
|
||||
const iframe_1_load_1 = future(iframe_1, "load");
|
||||
document.body.appendChild(iframe_1);
|
||||
await iframe_1_load_1;
|
||||
|
||||
// Insert |iframe_2|. It will load with sandbox flags. It will make |iframe_1|
|
||||
// to navigate toward a data-url, which should inherit the sandbox flags.
|
||||
const iframe_1_reply = future(window, "message");
|
||||
document.body.appendChild(iframe_2);
|
||||
const result = await iframe_1_reply;
|
||||
|
||||
assert_equals("sandboxed", result.data);
|
||||
})
|
||||
</script>
|
|
@ -0,0 +1,25 @@
|
|||
<!doctype html>
|
||||
<title>Audio intrinsic size doesn't depend on its max size</title>
|
||||
<link rel="help" href="https://bugzilla.mozilla.org/show_bug.cgi?id=1683979">
|
||||
<script src="/resources/testharness.js"></script>
|
||||
<script src="/resources/testharnessreport.js"></script>
|
||||
<div style="display: inline-block">
|
||||
<audio controls style="max-width: 99%" id="test"></audio>
|
||||
</div>
|
||||
<script>
|
||||
let audio = document.getElementById("test");
|
||||
|
||||
function computeSize() {
|
||||
return audio.getBoundingClientRect().width;
|
||||
}
|
||||
|
||||
let size = computeSize();
|
||||
async_test(function(t) {
|
||||
requestAnimationFrame(t.step_func(function() {
|
||||
assert_equals(computeSize(), size, "Shouldn't have changed size");
|
||||
requestAnimationFrame(t.step_func_done(function() {
|
||||
assert_equals(computeSize(), size, "Shouldn't have changed size");
|
||||
}));
|
||||
}));
|
||||
});
|
||||
</script>
|
|
@ -12,7 +12,7 @@ $ python tools/format_json.py resources/*.json
|
|||
|
||||
def main():
|
||||
for filename in sys.argv[1:]:
|
||||
print filename
|
||||
print(filename)
|
||||
try:
|
||||
spec = json.load(
|
||||
open(filename, u'r'), object_pairs_hook=collections.OrderedDict)
|
||||
|
|
|
@ -100,6 +100,15 @@
|
|||
assert_equals(collector.events.length, 1);
|
||||
}, `Calling select() on ${name}`);
|
||||
|
||||
promise_test(async () => {
|
||||
await data.initialize();
|
||||
|
||||
target.setRangeText("newmiddle", 2, 3, "select");
|
||||
|
||||
await data.assert_empty_spin();
|
||||
assert_equals(collector.events.length, 1);
|
||||
}, `Calling setRangeText() on ${name}`);
|
||||
|
||||
promise_test(async () => {
|
||||
await data.initialize();
|
||||
|
||||
|
|
|
@ -1,5 +1,4 @@
|
|||
suggested_reviewers:
|
||||
- jgraham
|
||||
- Hexcles
|
||||
- stephenmcgruer
|
||||
- LukeZielinski
|
||||
|
|
|
@ -1,3 +1,3 @@
|
|||
mypy==0.790
|
||||
mypy-extensions==0.4.3
|
||||
typed-ast==1.4.1
|
||||
typed-ast==1.4.2
|
||||
|
|
|
@ -4,7 +4,7 @@ mozlog==7.1.0
|
|||
mozdebug==0.2
|
||||
# Pillow 7 requires Python 3
|
||||
pillow==6.2.2; python_version <= '2.7' # pyup: <7.0
|
||||
pillow==8.0.1; python_version >= '3.0'
|
||||
pillow==8.1.0; python_version >= '3.0'
|
||||
urllib3[secure]==1.26.2
|
||||
requests==2.25.1
|
||||
six==1.15.0
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue