Closed Bug 1664485 Opened 4 years ago Closed 3 years ago

[sanitizer] interop with current, simple tests in wpt

Categories

(Core :: DOM: Security, enhancement, P2)

enhancement

Tracking

()

RESOLVED FIXED
88 Branch
Tracking Status
firefox83 --- fixed
firefox88 --- fixed

People

(Reporter: freddy, Assigned: freddy)

References

(Blocks 1 open bug)

Details

(Whiteboard: [domsecurity-active], [wptsync upstream])

Attachments

(5 files)

There are some various wpt test failures, that we need to fix before we can enable the tests to be run in our CI.

This is the behavior we need:

sanitizeToString("") -> returns empty string
sanitizeToString() -> throws, missing argument
sanitizeToString(undefined) -> parses through the Fragment Parsing algorithm as "undefined"

Status: NEW → ASSIGNED
Whiteboard: [domsecurity-active]
Pushed by fbraun@mozilla.com:
https://hg.mozilla.org/integration/autoland/rev/a679f29cc976
map sanitizer-api folder in wpt to DOM: Security r=jgraham DONTBUILD
Status: ASSIGNED → RESOLVED
Closed: 4 years ago
Resolution: --- → FIXED
Target Milestone: --- → 83 Branch

This is missing a couple of patches, oddly.

Status: RESOLVED → REOPENED
Keywords: leave-open
Resolution: FIXED → ---
Pushed by fbraun@mozilla.com:
https://hg.mozilla.org/integration/autoland/rev/7ca33c618714
Rename Sanitizer API tests to require SecureContext r=jgraham
https://hg.mozilla.org/integration/autoland/rev/47a8f522b91b
Adjust Sanitizer API test expectations for SecureContext r=jgraham
Created web-platform-tests PR https://github.com/web-platform-tests/wpt/pull/27698 for changes under testing/web-platform/tests
Whiteboard: [domsecurity-active] → [domsecurity-active], [wptsync upstream]
Upstream PR merged by moz-wptsync-bot
Keywords: leave-open
Whiteboard: [domsecurity-active], [wptsync upstream] → [domsecurity-active]
Pushed by fbraun@mozilla.com:
https://hg.mozilla.org/integration/autoland/rev/cffeff2a2803
make sanitize/sanitizeToString param's non-optional r=ckerschb,emilio

The stack that was meant to be pushed consisted of two diffs. The first one changes the behavior and the second one the change in tests.
If only one is pushed, then we either get unexpected failures or unexpected passes. This is what happens here.

Why only one was pushed, is completely unclear to me though :/
Looking.

Flags: needinfo?(fbraun)
Pushed by fbraun@mozilla.com:
https://hg.mozilla.org/integration/autoland/rev/705c898dae6b
make sanitize/sanitizeToString param's non-optional r=ckerschb,emilio
https://hg.mozilla.org/integration/autoland/rev/f4f1cc7c4456
update WPT for optional sanitize arguments r=ckerschb
Created web-platform-tests PR https://github.com/web-platform-tests/wpt/pull/27757 for changes under testing/web-platform/tests
Status: REOPENED → RESOLVED
Closed: 4 years ago3 years ago
Resolution: --- → FIXED
Target Milestone: 83 Branch → 88 Branch
Whiteboard: [domsecurity-active] → [domsecurity-active], [wptsync upstream]
Upstream PR merged by moz-wptsync-bot
Upstream PR merged by moz-wptsync-bot
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: