Skip to content

Bump built-in dompurify#319947

Merged
mjbvz merged 1 commit into
mainfrom
dev/mjbvz/regional-catshark
Jun 4, 2026
Merged

Bump built-in dompurify#319947
mjbvz merged 1 commit into
mainfrom
dev/mjbvz/regional-catshark

Conversation

@mjbvz
Copy link
Copy Markdown
Collaborator

@mjbvz mjbvz commented Jun 4, 2026

No description provided.

Copilot AI review requested due to automatic review settings June 4, 2026 16:03
@mjbvz mjbvz self-assigned this Jun 4, 2026
@mjbvz mjbvz enabled auto-merge June 4, 2026 16:03
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR updates VS Code’s vendored DOMPurify copy under src/vs/base/browser/dompurify/ from 3.2.7 to 3.4.8, including runtime JS, TypeScript typings, and the component governance manifest.

Changes:

  • Updated dompurify.js to DOMPurify 3.4.8 (includes upstream security hardening and new config behaviors).
  • Updated dompurify.d.ts to match 3.4.8 types (notably function-based ADD_TAGS / ADD_ATTR, and new ADD_FORBID_CONTENTS + TRUSTED_TYPES_POLICY: null).
  • Updated cgmanifest.json metadata (tag/commit/version) for the new upstream version.
Show a summary per file
File Description
src/vs/base/browser/dompurify/dompurify.js Vendored DOMPurify runtime updated to 3.4.8; includes new Trusted Types and clobbering/template-safety logic.
src/vs/base/browser/dompurify/dompurify.d.ts Typings updated to match 3.4.8 surface area and config options.
src/vs/base/browser/dompurify/cgmanifest.json Updated component governance metadata (commit/tag/version) for DOMPurify 3.4.8.

Copilot's findings

Files not reviewed (1)
  • src/vs/base/browser/dompurify/dompurify.js: Language not supported
  • Files reviewed: 1/3 changed files
  • Comments generated: 2

Comment on lines +417 to +426
window.DocumentFragment;
const HTMLTemplateElement = window.HTMLTemplateElement,
Node = window.Node,
Element = window.Element,
NodeFilter = window.NodeFilter,
_window$NamedNodeMap = window.NamedNodeMap;
_window$NamedNodeMap === void 0 ? window.NamedNodeMap || window.MozNamedAttrMap : _window$NamedNodeMap;
window.HTMLFormElement;
const DOMParser = window.DOMParser,
trustedTypes = window.trustedTypes;
var purify = createDOMPurify();

export { purify as default };
//# sourceMappingURL=purify.es.mjs.map No newline at end of file
@mjbvz mjbvz merged commit 19cce30 into main Jun 4, 2026
26 checks passed
@mjbvz mjbvz deleted the dev/mjbvz/regional-catshark branch June 4, 2026 16:40
@vs-code-engineering vs-code-engineering Bot added this to the 1.124.0 milestone Jun 4, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants