Skip to content

Modernize Handlebars and improve security documentation in sandbox sample#1621

Open
RinZ27 wants to merge 1 commit intoGoogleChrome:mainfrom
RinZ27:fix/upgrade-handlebars-and-security-notes
Open

Modernize Handlebars and improve security documentation in sandbox sample#1621
RinZ27 wants to merge 1 commit intoGoogleChrome:mainfrom
RinZ27:fix/upgrade-handlebars-and-security-notes

Conversation

@RinZ27
Copy link
Copy Markdown
Contributor

@RinZ27 RinZ27 commented Feb 2, 2026

Addressing the discussion in #1615 regarding modernized dependencies and security clarity.

Changes

  • Handlebars Upgrade: Updated the sandboxed Handlebars library from 1.0.0.beta.6 to 4.7.8 (minified). This addresses potential legacy vulnerabilities and brings the sample up to modern standards.
  • Security Documentation: Added a comment in mainpage.js explaining the use of * as targetOrigin in postMessage. As discussed, the chrome-extension:// scheme is not supported by the web-standard postMessage API for origin filtering, making the wildcard necessary for extension-to-sandbox communication.

These updates ensure the sample remains functional while providing better technical context for developers.

Fixes #1615 (partially, regarding Handlebars and documentation).

@GoogleChrome GoogleChrome deleted a comment from joshimarlavid Feb 8, 2026
dkocich

This comment was marked as spam.

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.

Modernizing the sandbox sample: Handlebars update and messaging hardening

3 participants