Open Bug 2082304 Opened 1 month ago Updated 5 days ago

handle processing instructions during sanitization

Categories

(Core :: DOM: Security, task)

task

Tracking

()

ASSIGNED

People

(Reporter: helmut, Assigned: helmut)

References

(Depends on 1 open bug, Blocks 2 open bugs)

Details

Attachments

(1 external file)

Now that the HTML parser can produce ProcessingInstruction nodes (bug 2053472 / the PI parser), the Sanitizer must handle them. Implement the "sanitize" ProcessingInstruction step (SanitizeChildren step 1.4 in dom/security/sanitizer/Sanitizer.cpp, currently a TODO left by bug 2044714): remove a PI when the processingInstructions allow list lacks its target or the removeProcessingInstructions list contains it, handled separately from comments.

Also make the <template for> patch path reachable under sanitize-while-parsing (dom.security.sanitizer.while-parsing), where appends currently route through SanitizedAppendElement and bypass patching. WPT: template-for-sanitizer-config.html from https://github.com/web-platform-tests/wpt/pull/63320.

Implement the sanitize ProcessingInstruction step (SanitizeChildren step
1.4), previously a TODO from bug 2044714, now that the HTML parser can
produce ProcessingInstruction nodes: remove a PI when the
processingInstructions allow list lacks its target or the
removeProcessingInstructions list contains it, handled separately from
comments.

Attachment #9661209 - Attachment description: WIP: Bug 2082304 - Sanitizer: remove disallowed processing instructions → Bug 2082304 - Sanitizer: remove disallowed processing instructions
Assignee: nobody → helmut
Attachment #9661209 - Attachment description: Bug 2082304 - Sanitizer: remove disallowed processing instructions → Bug 2082304 - Sanitizer: remove disallowed processing instructions r=keithamus
Status: UNCONFIRMED → ASSIGNED
Ever confirmed: true
Component: about:logins → DOM: Security
Product: Firefox → Core
Depends on: 2053472
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: