mirror of
https://github.com/servo/servo.git
synced 2025-07-22 23:03:42 +01:00
Update web-platform-tests to revision d9591651df411fe105c176a498ab0cb0c58819fa
This commit is contained in:
parent
ff304bdb39
commit
11a9f36057
156 changed files with 1709 additions and 1626 deletions
|
@ -0,0 +1,4 @@
|
|||
[hit-test-floats-004.html]
|
||||
[Miss float below something else]
|
||||
expected: FAIL
|
||||
|
|
@ -0,0 +1,2 @@
|
|||
[perspective-containing-block-dynamic-1b.html]
|
||||
expected: FAIL
|
|
@ -0,0 +1,2 @@
|
|||
[perspective-untransformable-no-stacking-context.html]
|
||||
expected: FAIL
|
|
@ -0,0 +1,2 @@
|
|||
[transform-containing-block-dynamic-1b.html]
|
||||
expected: FAIL
|
|
@ -1,4 +0,0 @@
|
|||
[elementFromPoint-001.html]
|
||||
[CSSOM View - 5 - extensions to the Document interface]
|
||||
expected: FAIL
|
||||
|
|
@ -17,3 +17,6 @@
|
|||
[test the top of layer]
|
||||
expected: FAIL
|
||||
|
||||
[test some point of the element: top left corner]
|
||||
expected: FAIL
|
||||
|
||||
|
|
|
@ -309,24 +309,21 @@
|
|||
[Response: combined response Content-Type: text/html;" \\" text/plain ";charset=GBK]
|
||||
expected: NOTRUN
|
||||
|
||||
[<iframe>: separate response Content-Type: text/html;" \\" text/plain]
|
||||
expected: FAIL
|
||||
|
||||
[<iframe>: separate 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
|
||||
|
||||
[<iframe>: combined response Content-Type: text/html;" text/plain]
|
||||
expected: FAIL
|
||||
|
||||
[<iframe>: combined response Content-Type: text/html */*]
|
||||
[<iframe>: combined response Content-Type: */* text/html]
|
||||
expected: FAIL
|
||||
|
||||
[<iframe>: combined response Content-Type: text/plain;charset=gbk text/html]
|
||||
[<iframe>: combined response Content-Type: text/html;charset=gbk text/plain text/html]
|
||||
expected: FAIL
|
||||
|
||||
[<iframe>: separate response Content-Type: text/html */*;charset=gbk]
|
||||
expected: FAIL
|
||||
|
||||
[<iframe>: separate response Content-Type: text/html;x=" text/plain]
|
||||
expected: FAIL
|
||||
|
||||
|
|
|
@ -11,3 +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]
|
||||
expected: FAIL
|
||||
|
||||
|
|
|
@ -0,0 +1,4 @@
|
|||
[pageload-image-in-popup.html]
|
||||
[The document for a standalone media file should have one child in the body.]
|
||||
expected: FAIL
|
||||
|
|
@ -0,0 +1,4 @@
|
|||
[traverse_the_history_1.html]
|
||||
[Multiple history traversals from the same task]
|
||||
expected: FAIL
|
||||
|
|
@ -1,4 +1,4 @@
|
|||
[traverse_the_history_3.html]
|
||||
[traverse_the_history_2.html]
|
||||
[Multiple history traversals, last would be aborted]
|
||||
expected: FAIL
|
||||
|
|
@ -1,4 +0,0 @@
|
|||
[traverse_the_history_4.html]
|
||||
[Multiple history traversals, last would be aborted]
|
||||
expected: FAIL
|
||||
|
|
@ -1,2 +0,0 @@
|
|||
[cross-origin-objects-on-new-window.html]
|
||||
expected: TIMEOUT
|
|
@ -2,3 +2,6 @@
|
|||
[opener of discarded nested browsing context]
|
||||
expected: FAIL
|
||||
|
||||
[opener of discarded auxiliary browsing context]
|
||||
expected: FAIL
|
||||
|
||||
|
|
|
@ -1648,16 +1648,16 @@
|
|||
[Window interface: window must inherit property "originIsolated" with the proper type]
|
||||
expected: FAIL
|
||||
|
||||
[Window interface: attribute isSecureContext]
|
||||
expected: FAIL
|
||||
|
||||
[Window interface: attribute originIsolated]
|
||||
expected: FAIL
|
||||
|
||||
[Window interface: attribute crossOriginIsolated]
|
||||
expected: FAIL
|
||||
|
||||
[Window interface: window must inherit property "isSecureContext" with the proper type]
|
||||
[Window interface: window must inherit property "originAgentCluster" with the proper type]
|
||||
expected: FAIL
|
||||
|
||||
[Window interface: attribute originAgentCluster]
|
||||
expected: FAIL
|
||||
|
||||
|
||||
|
@ -2223,9 +2223,6 @@
|
|||
[HTMLMarqueeElement interface: document.createElement("marquee") must inherit property "vspace" with the proper type]
|
||||
expected: FAIL
|
||||
|
||||
[HTMLLinkElement interface: attribute referrerPolicy]
|
||||
expected: FAIL
|
||||
|
||||
[HTMLInputElement interface: createInput("image") must inherit property "width" with the proper type]
|
||||
expected: FAIL
|
||||
|
||||
|
@ -2433,12 +2430,6 @@
|
|||
[HTMLInputElement interface: createInput("hidden") must inherit property "autocomplete" with the proper type]
|
||||
expected: FAIL
|
||||
|
||||
[HTMLScriptElement interface: attribute referrerPolicy]
|
||||
expected: FAIL
|
||||
|
||||
[HTMLLinkElement interface: document.createElement("link") must inherit property "referrerPolicy" with the proper type]
|
||||
expected: FAIL
|
||||
|
||||
[HTMLMediaElement interface: document.createElement("video") must inherit property "getStartDate()" with the proper type]
|
||||
expected: FAIL
|
||||
|
||||
|
@ -2625,9 +2616,6 @@
|
|||
[HTMLObjectElement interface: attribute height]
|
||||
expected: FAIL
|
||||
|
||||
[HTMLScriptElement interface: document.createElement("script") must inherit property "referrerPolicy" with the proper type]
|
||||
expected: FAIL
|
||||
|
||||
[HTMLAreaElement interface: document.createElement("area") must inherit property "hash" with the proper type]
|
||||
expected: FAIL
|
||||
|
||||
|
|
|
@ -1,15 +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: FAIL
|
||||
expected: TIMEOUT
|
||||
|
||||
[Element with tabindex should support autofocus]
|
||||
expected: FAIL
|
||||
|
||||
[Area element should support autofocus]
|
||||
expected: FAIL
|
||||
expected: NOTRUN
|
||||
|
||||
[Host element with delegatesFocus should support autofocus]
|
||||
expected: FAIL
|
||||
|
|
|
@ -171,3 +171,6 @@
|
|||
[XHTML img usemap="#hash-id"]
|
||||
expected: FAIL
|
||||
|
||||
[HTML (standards) IMG usemap="no-hash-name"]
|
||||
expected: FAIL
|
||||
|
||||
|
|
|
@ -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
|
||||
|
||||
|
|
|
@ -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,4 +0,0 @@
|
|||
[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,4 +0,0 @@
|
|||
[form-double-submit.html]
|
||||
[default submit action should supersede onclick submit()]
|
||||
expected: FAIL
|
||||
|
|
@ -3,6 +3,3 @@
|
|||
[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
|
||||
|
||||
|
|
|
@ -404,3 +404,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.3575523383884062e+28\t9.3139332532882690e-1\t4.3575523383884062e+28\t4.6785307773705376e+28\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 4.3575523383884062e+28 at index of 28696.\n\tMax RelError of 4.6785307773705376e+28 at index of 28696.\n]
|
||||
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-2.5797221022028362e+21\t9.3139332532882690e-1\t2.5797221022028362e+21\t2.7697451034363701e+21\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 2.5797221022028362e+21 at index of 28696.\n\tMax RelError of 2.7697451034363701e+21 at index of 28696.\n]
|
||||
expected: FAIL
|
||||
|
||||
[X SNR (-384.7973725474673 dB) is not greater than or equal to 65.737. Got -384.7973725474673.]
|
||||
expected: FAIL
|
||||
|
||||
|
|
|
@ -1,4 +1,5 @@
|
|||
[audiocontext-not-fully-active.html]
|
||||
expected: TIMEOUT
|
||||
[frame in navigated remote-site frame]
|
||||
expected: FAIL
|
||||
|
||||
|
|
|
@ -0,0 +1,5 @@
|
|||
[017.html]
|
||||
expected: TIMEOUT
|
||||
[origin of the script that invoked the method, about:blank]
|
||||
expected: TIMEOUT
|
||||
|
File diff suppressed because it is too large
Load diff
|
@ -0,0 +1,4 @@
|
|||
[hit-test-floats-004.html]
|
||||
[Miss float below something else]
|
||||
expected: FAIL
|
||||
|
|
@ -0,0 +1,2 @@
|
|||
[perspective-containing-block-dynamic-1b.html]
|
||||
expected: FAIL
|
|
@ -0,0 +1,2 @@
|
|||
[perspective-untransformable-no-stacking-context.html]
|
||||
expected: FAIL
|
|
@ -0,0 +1,2 @@
|
|||
[transform-containing-block-dynamic-1b.html]
|
||||
expected: FAIL
|
|
@ -1,4 +0,0 @@
|
|||
[elementFromPoint-001.html]
|
||||
[CSSOM View - 5 - extensions to the Document interface]
|
||||
expected: FAIL
|
||||
|
|
@ -21,3 +21,6 @@
|
|||
[test the top of layer]
|
||||
expected: FAIL
|
||||
|
||||
[test some point of the element: top left corner]
|
||||
expected: FAIL
|
||||
|
||||
|
|
|
@ -309,24 +309,21 @@
|
|||
[fetch(): separate response Content-Type: text/plain ]
|
||||
expected: NOTRUN
|
||||
|
||||
[<iframe>: separate response Content-Type: text/html;" \\" text/plain]
|
||||
expected: FAIL
|
||||
|
||||
[<iframe>: separate 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
|
||||
|
||||
[<iframe>: combined response Content-Type: text/html;" text/plain]
|
||||
expected: FAIL
|
||||
|
||||
[<iframe>: combined response Content-Type: text/html */*]
|
||||
[<iframe>: combined response Content-Type: */* text/html]
|
||||
expected: FAIL
|
||||
|
||||
[<iframe>: combined response Content-Type: text/plain;charset=gbk text/html]
|
||||
[<iframe>: combined response Content-Type: text/html;charset=gbk text/plain text/html]
|
||||
expected: FAIL
|
||||
|
||||
[<iframe>: separate response Content-Type: text/html */*;charset=gbk]
|
||||
expected: FAIL
|
||||
|
||||
[<iframe>: separate response Content-Type: text/html;x=" text/plain]
|
||||
expected: FAIL
|
||||
|
||||
|
|
|
@ -11,3 +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]
|
||||
expected: FAIL
|
||||
|
||||
|
|
|
@ -0,0 +1,4 @@
|
|||
[pageload-image-in-popup.html]
|
||||
[The document for a standalone media file should have one child in the body.]
|
||||
expected: FAIL
|
||||
|
|
@ -0,0 +1,4 @@
|
|||
[traverse_the_history_1.html]
|
||||
[Multiple history traversals from the same task]
|
||||
expected: FAIL
|
||||
|
|
@ -1,4 +1,4 @@
|
|||
[traverse_the_history_3.html]
|
||||
[traverse_the_history_2.html]
|
||||
[Multiple history traversals, last would be aborted]
|
||||
expected: FAIL
|
||||
|
|
@ -1,4 +0,0 @@
|
|||
[traverse_the_history_4.html]
|
||||
[Multiple history traversals, last would be aborted]
|
||||
expected: FAIL
|
||||
|
|
@ -1,2 +0,0 @@
|
|||
[cross-origin-objects-on-new-window.html]
|
||||
expected: TIMEOUT
|
|
@ -5,3 +5,6 @@
|
|||
[opener of discarded nested browsing context]
|
||||
expected: FAIL
|
||||
|
||||
[opener of discarded auxiliary browsing context]
|
||||
expected: FAIL
|
||||
|
||||
|
|
|
@ -1831,6 +1831,12 @@
|
|||
[Window interface: attribute crossOriginIsolated]
|
||||
expected: FAIL
|
||||
|
||||
[Window interface: window must inherit property "originAgentCluster" with the proper type]
|
||||
expected: FAIL
|
||||
|
||||
[Window interface: attribute originAgentCluster]
|
||||
expected: FAIL
|
||||
|
||||
|
||||
[idlharness.https.html?include=HTML.*]
|
||||
[HTMLTableSectionElement interface: document.createElement("tfoot") must inherit property "align" with the proper type]
|
||||
|
|
|
@ -1,4 +1,5 @@
|
|||
[supported-elements.html]
|
||||
expected: TIMEOUT
|
||||
[Contenteditable element should support autofocus]
|
||||
expected: FAIL
|
||||
|
||||
|
@ -6,10 +7,10 @@
|
|||
expected: FAIL
|
||||
|
||||
[Host element with delegatesFocus including no focusable descendants should be skipped]
|
||||
expected: FAIL
|
||||
expected: TIMEOUT
|
||||
|
||||
[Area element should support autofocus]
|
||||
expected: FAIL
|
||||
expected: NOTRUN
|
||||
|
||||
[Host element with delegatesFocus should support autofocus]
|
||||
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,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
|
||||
|
||||
|
|
|
@ -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,4 +0,0 @@
|
|||
[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,4 +0,0 @@
|
|||
[form-double-submit.html]
|
||||
[default submit action should supersede onclick submit()]
|
||||
expected: FAIL
|
||||
|
|
@ -4,6 +4,3 @@
|
|||
[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
|
||||
|
||||
|
|
|
@ -632,3 +632,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.3575523383884062e+28\t9.3139332532882690e-1\t4.3575523383884062e+28\t4.6785307773705376e+28\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 4.3575523383884062e+28 at index of 28696.\n\tMax RelError of 4.6785307773705376e+28 at index of 28696.\n]
|
||||
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-2.5797221022028362e+21\t9.3139332532882690e-1\t2.5797221022028362e+21\t2.7697451034363701e+21\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 2.5797221022028362e+21 at index of 28696.\n\tMax RelError of 2.7697451034363701e+21 at index of 28696.\n]
|
||||
expected: FAIL
|
||||
|
||||
[X SNR (-384.7973725474673 dB) is not greater than or equal to 65.737. Got -384.7973725474673.]
|
||||
expected: FAIL
|
||||
|
||||
|
|
|
@ -1,4 +1,5 @@
|
|||
[audiocontext-not-fully-active.html]
|
||||
expected: TIMEOUT
|
||||
[frame in navigated remote-site frame]
|
||||
expected: FAIL
|
||||
|
||||
|
|
5
tests/wpt/metadata/webmessaging/with-ports/017.html.ini
Normal file
5
tests/wpt/metadata/webmessaging/with-ports/017.html.ini
Normal file
|
@ -0,0 +1,5 @@
|
|||
[017.html]
|
||||
expected: TIMEOUT
|
||||
[origin of the script that invoked the method, about:blank]
|
||||
expected: TIMEOUT
|
||||
|
|
@ -1,5 +0,0 @@
|
|||
try {
|
||||
importScripts("/content-security-policy/support/post-message.js");
|
||||
} catch (e) {
|
||||
postMessage("importScripts blocked");
|
||||
}
|
|
@ -1,5 +0,0 @@
|
|||
var id = 0;
|
||||
try {
|
||||
id = setTimeout("postMessage('handler invoked')", 100);
|
||||
} catch (e) {}
|
||||
postMessage(id === 0 ? "setTimeout blocked" : "setTimeout allowed");
|
|
@ -0,0 +1,17 @@
|
|||
var message = "importScripts allowed";
|
||||
try {
|
||||
importScripts("/content-security-policy/support/post-message.js");
|
||||
} catch (e) {
|
||||
message = "importScripts blocked";
|
||||
}
|
||||
|
||||
if (typeof SharedWorkerGlobalScope === "function") {
|
||||
onconnect = function (e) {
|
||||
var port = e.ports[0];
|
||||
|
||||
port.onmessage = function () { port.postMessage(message); }
|
||||
port.postMessage(message);
|
||||
};
|
||||
} else if (typeof DedicatedWorkerGlobalScope === "function") {
|
||||
self.postMessage(message);
|
||||
}
|
|
@ -0,0 +1,16 @@
|
|||
var id = 0;
|
||||
try {
|
||||
id = setTimeout("postMessage('handler invoked')", 100);
|
||||
} catch (e) {}
|
||||
var message = id === 0 ? "setTimeout blocked" : "setTimeout allowed";
|
||||
|
||||
if (typeof SharedWorkerGlobalScope === "function") {
|
||||
onconnect = function (e) {
|
||||
var port = e.ports[0];
|
||||
|
||||
port.onmessage = function () { port.postMessage(message); }
|
||||
port.postMessage(message);
|
||||
};
|
||||
} else if (typeof DedicatedWorkerGlobalScope === "function") {
|
||||
self.postMessage(message);
|
||||
}
|
|
@ -1,41 +0,0 @@
|
|||
<!DOCTYPE html>
|
||||
<html>
|
||||
|
||||
<head>
|
||||
<!-- Programmatically converted from a WebKit Reftest, please forgive resulting idiosyncracies.-->
|
||||
<meta http-equiv="Content-Security-Policy" content="script-src 'self' 'unsafe-inline' 'unsafe-eval'; connect-src 'self';">
|
||||
<title>worker-importscripts-blocked</title>
|
||||
<script src="/resources/testharness.js"></script>
|
||||
<script src="/resources/testharnessreport.js"></script>
|
||||
<script src='../support/logTest.sub.js?logs=["TEST COMPLETE"]'></script>
|
||||
<script src="../support/alertAssert.sub.js?alerts=[]"></script>
|
||||
</head>
|
||||
|
||||
<body>
|
||||
<script>
|
||||
window.addEventListener('securitypolicyviolation', function(e) {
|
||||
log('Fail');
|
||||
});
|
||||
var result = '';
|
||||
try {
|
||||
var worker = new Worker('/content-security-policy/script-src/support/worker-importscripts.js');
|
||||
worker.onmessage = function(event) {
|
||||
result = event.data;
|
||||
test(function() {
|
||||
assert_equals(result, 'importScripts blocked')
|
||||
});
|
||||
log("TEST COMPLETE");
|
||||
};
|
||||
} catch (e) {
|
||||
result = e;
|
||||
test(function() {
|
||||
assert_equals(result, 'importScripts blocked')
|
||||
});
|
||||
log("TEST COMPLETE");
|
||||
}
|
||||
|
||||
</script>
|
||||
<div id="log"></div>
|
||||
</body>
|
||||
|
||||
</html>
|
|
@ -0,0 +1,26 @@
|
|||
<!DOCTYPE html>
|
||||
<html>
|
||||
|
||||
<head>
|
||||
<meta http-equiv="Content-Security-Policy" content="script-src 'self' 'unsafe-inline' 'unsafe-eval'; connect-src 'self';">
|
||||
<title>worker-importscripts</title>
|
||||
<script src="/resources/testharness.js"></script>
|
||||
<script src="/resources/testharnessreport.js"></script>
|
||||
<script src='../support/testharness-helper.js'></script>
|
||||
</head>
|
||||
|
||||
<body>
|
||||
<script>
|
||||
assert_worker_is_loaded(
|
||||
"./support/worker-with-script-src-none-importscripts.js",
|
||||
"Dedicated worker inherits CSP from main document",
|
||||
"importScripts allowed");
|
||||
|
||||
assert_shared_worker_is_loaded(
|
||||
"./support/worker-with-script-src-none-importscripts.js",
|
||||
"Shared worker delivers its own CSP",
|
||||
"importScripts blocked");
|
||||
</script>
|
||||
</body>
|
||||
|
||||
</html>
|
|
@ -1,32 +0,0 @@
|
|||
<!DOCTYPE html>
|
||||
<html>
|
||||
|
||||
<head>
|
||||
<!-- Programmatically converted from a WebKit Reftest, please forgive resulting idiosyncracies.-->
|
||||
<meta http-equiv="Content-Security-Policy" content="script-src 'self' 'unsafe-inline' 'self' 'unsafe-eval'; connect-src 'self';">
|
||||
<title>worker-set-timeout-blocked</title>
|
||||
<script src="/resources/testharness.js"></script>
|
||||
<script src="/resources/testharnessreport.js"></script>
|
||||
<script src="../support/logTest.sub.js?logs=[]"></script>
|
||||
<script src='../support/alertAssert.sub.js?alerts=["setTimeout blocked"]'></script>
|
||||
</head>
|
||||
|
||||
<body>
|
||||
<script>
|
||||
window.addEventListener('securitypolicyviolation', function(e) {
|
||||
log('Fail');
|
||||
});
|
||||
try {
|
||||
var worker = new Worker('/content-security-policy/script-src/support/worker-set-timeout.js');
|
||||
worker.onmessage = function(event) {
|
||||
alert_assert(event.data);
|
||||
};
|
||||
} catch (e) {
|
||||
alert_assert(e);
|
||||
}
|
||||
|
||||
</script>
|
||||
<div id="log"></div>
|
||||
</body>
|
||||
|
||||
</html>
|
|
@ -0,0 +1,26 @@
|
|||
<!DOCTYPE html>
|
||||
<html>
|
||||
|
||||
<head>
|
||||
<meta http-equiv="Content-Security-Policy" content="script-src 'self' 'unsafe-inline' 'self' 'unsafe-eval'; connect-src 'self';">
|
||||
<title>worker-set-timeout</title>
|
||||
<script src="/resources/testharness.js"></script>
|
||||
<script src="/resources/testharnessreport.js"></script>
|
||||
<script src='../support/testharness-helper.js'></script>
|
||||
</head>
|
||||
|
||||
<body>
|
||||
<script>
|
||||
assert_worker_is_loaded(
|
||||
"./support/worker-with-script-src-none-set-timeout.js",
|
||||
"Dedicated worker inherits CSP from main document",
|
||||
"setTimeout allowed");
|
||||
|
||||
assert_shared_worker_is_loaded(
|
||||
"./support/worker-with-script-src-none-set-timeout.js",
|
||||
"Shared worker delivers its own CSP",
|
||||
"setTimeout blocked");
|
||||
</script>
|
||||
</body>
|
||||
|
||||
</html>
|
|
@ -40,26 +40,26 @@ function waitUntilEvent(obj, name) {
|
|||
// Given the URL of a worker that pings its opener upon load, this
|
||||
// function builds a test that asserts that the ping is received,
|
||||
// and that no CSP event fires.
|
||||
function assert_worker_is_loaded(url, description) {
|
||||
function assert_worker_is_loaded(url, description, expected_message = "ping") {
|
||||
async_test(t => {
|
||||
assert_no_csp_event_for_url(t, url);
|
||||
var w = new Worker(url);
|
||||
assert_no_event(t, w, "error");
|
||||
waitUntilEvent(w, "message")
|
||||
.then(t.step_func_done(e => {
|
||||
assert_equals(e.data, "ping");
|
||||
assert_equals(e.data, expected_message);
|
||||
}));
|
||||
}, description);
|
||||
}
|
||||
|
||||
function assert_shared_worker_is_loaded(url, description) {
|
||||
function assert_shared_worker_is_loaded(url, description, expected_message = "ping") {
|
||||
async_test(t => {
|
||||
assert_no_csp_event_for_url(t, url);
|
||||
var w = new SharedWorker(url);
|
||||
assert_no_event(t, w, "error");
|
||||
waitUntilEvent(w.port, "message")
|
||||
.then(t.step_func_done(e => {
|
||||
assert_equals(e.data, "ping");
|
||||
assert_equals(e.data, expected_message);
|
||||
}));
|
||||
w.port.start();
|
||||
}, description);
|
||||
|
|
|
@ -0,0 +1,36 @@
|
|||
<!-- quirks mode -->
|
||||
<meta charset="utf-8">
|
||||
<title>Should not crash when a clearance frame having a fragmented float is discovered</title>
|
||||
<link rel="author" title="Ting-Yu Lin" href="mailto:tlin@mozilla.com">
|
||||
<link rel="author" title="Mozilla" href="https://www.mozilla.org/">
|
||||
<link rel="help" href="https://bugzilla.mozilla.org/show_bug.cgi?id=1663232">
|
||||
|
||||
<style>
|
||||
:not(em) {
|
||||
border-left: 4px dashed green;
|
||||
column-width: 0;
|
||||
}
|
||||
</style>
|
||||
<script>
|
||||
function go() {
|
||||
b.appendChild(a)
|
||||
}
|
||||
</script>
|
||||
<m>
|
||||
<details ontoggle="go()" open>
|
||||
<f>
|
||||
<menu>U<menu>
|
||||
<table align="RIGHT">
|
||||
<caption>
|
||||
<o>
|
||||
<ul>
|
||||
<l>
|
||||
<li>
|
||||
<tr>6
|
||||
<table>
|
||||
<a>
|
||||
<details id="b" open>
|
||||
<summary>
|
||||
<i id="a">
|
||||
</summary>
|
||||
<details style="float: right">
|
Some files were not shown because too many files have changed in this diff Show more
Loading…
Add table
Add a link
Reference in a new issue