Skip to content

Commit

Permalink
fix and annotate known sanitizer api failures
Browse files Browse the repository at this point in the history
Differential Revision: https://phabricator.services.mozilla.com/D234793

bugzilla-url: https://bugzilla.mozilla.org/show_bug.cgi?id=1941254
gecko-commit: e260116657009be3194332ad6e172e2a71fa820c
gecko-reviewers: tschuster
  • Loading branch information
mozfreddyb authored and moz-wptsync-bot committed Jan 21, 2025
1 parent cfcf3b9 commit 6446dd4
Show file tree
Hide file tree
Showing 5 changed files with 11 additions and 13 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -34,17 +34,16 @@ script
| "xxx"

#data
<img src="https://example.com/test-image" onclick="2+2" one="two">
<img src="https://{{host}}/test-image" onclick="2+2" one="two">
#document
| <img>
| src="https://example.com/test-image"
| src="https://{{host}}/test-image"

#data
<img src="https://example.com/test-image" onclick="2+2" one="two">
<img src="https://{{host}}/test-image" onclick="2+2" one="two">
#config
{ "attributes": ["src", "onclick", "one"]}
#document
| <img>
| one="two"
| src="https://example.com/test-image"

| src="https://{{host}}/test-image"
4 changes: 2 additions & 2 deletions sanitizer-api/sethtml-safety.tentative.html
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,10 @@
<script src="support/html5lib-testcase-support.js"></script>
<script>
promise_test(async _ => {
const safety = await fetch("sethtml-safety.dat").
const safety = await fetch("sethtml-safety.sub.dat").
then(response => response.text()).
then(parse_html5lib_testcases);
const unsafety = await fetch("sethtml-unsafety.dat").
const unsafety = await fetch("sethtml-unsafety.sub.dat").
then(response => response.text()).
then(parse_html5lib_testcases);

Expand Down
File renamed without changes.
2 changes: 1 addition & 1 deletion sanitizer-api/sethtml-tree-construction.tentative.html
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
// Testcases from the old(er) support/testcases.sub.js file, ported over to
// the HTML5Lib testcase format.
promise_test(_ => {
return html5lib_testcases_from_response(fetch("sethtml-tree-construction.dat")).
return html5lib_testcases_from_response(fetch("sethtml-tree-construction.sub.dat")).
then(testcases => {
testcases.forEach((testcase, index) => {
test(_ => {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -42,20 +42,19 @@ script
| "xxx"

#data
<img src="https://example.com/test-image" onclick="2+2" one="two">
<img src="https://{{host}}/test-image" onclick="2+2" one="two">
#document
| <img>
| onclick="2+2"
| one="two"
| src="https://example.com/test-image"
| src="https://{{host}}/test-image"

#data
<img src="https://example.com/test-image" onclick="2+2" one="two">
<img src="https://{{host}}/test-image" onclick="2+2" one="two">
#config
{ "attributes": ["src", "onclick", "one"]}
#document
| <img>
| onclick="2+2"
| one="two"
| src="https://example.com/test-image"

| src="https://{{host}}/test-image"

0 comments on commit 6446dd4

Please sign in to comment.