Skip to content

Add Blackbox challenge UI mount, challengeContainer config, and collect() before session id#109787

Open
westi wants to merge 1 commit intotrunkfrom
safe-542-add-challenge-widget-to-current-wpcom-integration-points
Open

Add Blackbox challenge UI mount, challengeContainer config, and collect() before session id#109787
westi wants to merge 1 commit intotrunkfrom
safe-542-add-challenge-widget-to-current-wpcom-integration-points

Conversation

@westi
Copy link
Copy Markdown
Contributor

@westi westi commented Apr 1, 2026

  • Render empty #blackbox-challenge-root on login when blackbox-login is enabled
  • Pass challengeContainer via data-challenge-container on the Blackbox script tag
  • Call Blackbox.collect() before getSessionId() on password login submit
  • Extend Window types and add jsdom unit tests for ordering and edge cases

Made-with: Cursor

…ct() before session id

- Render empty #blackbox-challenge-root on login when blackbox-login is enabled
- Pass challengeContainer via data-challenge-container on the Blackbox script tag
- Call Blackbox.collect() before getSessionId() on password login submit
- Extend Window types and add jsdom unit tests for ordering and edge cases

Made-with: Cursor
@matticbot
Copy link
Copy Markdown
Contributor

This PR modifies the release build for the following Calypso Apps:

For info about this notification, see here: PCYsg-OT6-p2

  • help-center

To test WordPress.com changes, run install-plugin.sh $pluginSlug safe-542-add-challenge-widget-to-current-wpcom-integration-points on your sandbox.

@westi westi self-assigned this Apr 1, 2026
@westi westi requested review from bateszi and dbecher April 1, 2026 22:15
@matticbot matticbot added [Status] Needs Review The PR is ready for review. This also triggers e2e canary tests and wp-desktop tests automatically. labels Apr 1, 2026
@westi westi marked this pull request as ready for review April 1, 2026 22:15
@westi westi requested a review from a team as a code owner April 1, 2026 22:15
}

try {
await runBlackboxCollect();
Copy link
Copy Markdown

Choose a reason for hiding this comment

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

I think you can just change window.Blackbox.getSessionId() below to window.Blackbox.collect(), and then return result.sessionId.

I suppose we're not actually checking the result for a challenge here and blocking the login submission yet?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

[Status] Needs Review The PR is ready for review. This also triggers e2e canary tests and wp-desktop tests automatically.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants