Closed Bug 1731587 Opened 3 years ago Closed 3 years ago

[sanitizer] implement comments handling, remove string api & adjust exceptions to match wpt

Categories

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

enhancement

Tracking

()

RESOLVED FIXED
95 Branch
Tracking Status
firefox95 --- fixed

People

(Reporter: freddy, Assigned: freddy)

References

Details

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

Attachments

(1 file)

No description provided.
Status: NEW → ASSIGNED
Whiteboard: [domsecurity-active]
Summary: [sanitizer] implement comments & custom-element handling → [sanitizer] implement comments handling, remove string api & adjust exceptions to match wpt

This patch combines three relatively small changes:

  1. Removing string-based APIs
    -- Adjusting the Sanitize() function, its WebIDl definition etc. to only
    accept Document/DocumentFragment
  2. Parse allowComments from the Sanitizer constructor and pass into the
    underlying nsTreeSanitizer
  3. Ensure that exceptions and error cases align with current wpt
Pushed by fbraun@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/891f007ad684 [sanitizer] Remove string-based APIs, handle HTML comments, align exceptions with wpt r=hsivonen

Backed out changeset 891f007ad684 (Bug 1731587) for causing mochitest plain failures in mochitest/test_sanitizer_api.html
Backout link: https://hg.mozilla.org/integration/autoland/rev/b1d30f0415a442a17cd96f891530ce78f325377f
Push with failures, failure log.

Flags: needinfo?(fbraun)
Pushed by fbraun@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/0b2dfad8e6c5 [sanitizer] Remove string-based APIs, handle HTML comments, align exceptions with wpt r=hsivonen
Created web-platform-tests PR https://github.com/web-platform-tests/wpt/pull/31088 for changes under testing/web-platform/tests
Whiteboard: [domsecurity-active] → [domsecurity-active], [wptsync upstream]
Upstream PR merged by moz-wptsync-bot
Status: ASSIGNED → RESOLVED
Closed: 3 years ago
Resolution: --- → FIXED
Target Milestone: --- → 95 Branch
Flags: needinfo?(fbraun)
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: