feat: add page context helper for custom URL handling in Visual Builder#605
Conversation
🔒 Security Scan Results
⏱️ SLA Breach Summary
✅ BUILD PASSED - All security checks passed |
Coverage Report
File Coverage
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
🔒 Security Scan Results
⏱️ SLA Breach Summary
✅ BUILD PASSED - All security checks passed |
| visualBuilderPostMessage?.send<IPageContextPostMessageEvent>( | ||
| VisualBuilderPostMessageEvents.PAGE_CONTEXT, | ||
| { entryUid: context.entryUid, contentTypeUid: context.contentTypeUid } | ||
| ); | ||
| } | ||
| } |
There was a problem hiding this comment.
Add catch if postMessage fail here
There was a problem hiding this comment.
Yes have addressed this in latest commit
Address PR review feedback: the visualBuilderPostMessage send in setPageContext was fire-and-forget, so a rejected promise would surface as an unhandled rejection. Add a .catch that logs the failure via PublicLogger.error. Also add setPageContext test coverage for the Config write, the in-iframe send, the non-iframe skip, and the new send-failure path. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
🔒 Security Scan Results
⏱️ SLA Breach Summary
✅ BUILD PASSED - All security checks passed |
No description provided.