Skip to content

Add "Abort the credential request" algorithm#462

Open
marcoscaceres wants to merge 4 commits intomainfrom
abort_handler
Open

Add "Abort the credential request" algorithm#462
marcoscaceres wants to merge 4 commits intomainfrom
abort_handler

Conversation

@marcoscaceres
Copy link
Collaborator

@marcoscaceres marcoscaceres commented Feb 4, 2026

Closes #435

This algorithm is used to handle aborting the credential request when:

  • The associated AbortSignal is aborted.
  • The document becomes non-fully active.
  • The iframe handling the request is destroyed.

The following tasks have been completed:

Implementation commitment:

  • WebKit (link to issue)
  • Chromium (link to issue)
  • Gecko (link to issue)

Documentation and checks

  • Affects privacy
  • Affects security
  • Pinged MDN
  • Updated Explainer
  • Updated digitalcredentials.dev

Preview | Diff

Copy link
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 adds the "Abort the credential request" algorithm to handle cleanup and promise rejection when a credential request needs to be aborted. The PR specifically addresses issue #435 regarding execution context destruction by implementing monitoring for when a document becomes non-fully active and the associated abort logic.

Changes:

  • Added an algorithm to monitor when a document stops being fully active and trigger abort
  • Implemented the "abort the credential request" algorithm to handle state transitions and UI cleanup
  • Defined proper error handling flow through the existing "complete credential request with error" algorithm

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

marcoscaceres and others added 3 commits February 23, 2026 15:13
This algorithm is used to handle aborting the credential request
when:

* The associated AbortSignal is aborted.
* The document becomes non-fully active.
* The iframe handling the request is destroyed.
Co-authored-by: Mohamed Amir Yosef <[email protected]>
Co-authored-by: Mohamed Amir Yosef <[email protected]>
@marcoscaceres marcoscaceres added the agenda+ Add to the weekly agenda label Feb 23, 2026
Copy link
Contributor

@mohamedamir mohamedamir left a comment

Choose a reason for hiding this comment

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

Thanks a lot!
Look great!

@marcoscaceres
Copy link
Collaborator Author

@hlflanagan @wseltzer, we think this is ready to merge. 🙏

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

Labels

agenda+ Add to the weekly agenda

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Describe what happens when execution context is destroyed

7 participants