Skip to content

Conversation

@marcoscaceres
Copy link
Member

@marcoscaceres marcoscaceres commented Oct 17, 2025

The 'apply orientation lock' algorithm monitors if documents stop being fully active during parallel execution, but was missing equivalent monitoring for document visibility state changes.

This creates inconsistency where:

  • Common safety checks prevent hidden documents from starting locks
  • Parallel steps monitor fully-active state changes
  • But parallel steps don't monitor hidden state changes

This fix adds monitoring for documents becoming hidden during parallel orientation lock processing, with consistent AbortError rejection.

Fixes #256

The following tasks have been completed:

  • Modified Web platform tests (link to pull request)

Implementation commitment:


Preview | Diff

The 'apply orientation lock' algorithm monitors if documents stop being
fully active during parallel execution, but was missing equivalent
monitoring for document visibility state changes.

This creates inconsistency where:
- Common safety checks prevent hidden documents from starting locks
- Parallel steps monitor fully-active state changes
- But parallel steps don't monitor hidden state changes

This fix adds monitoring for documents becoming hidden during parallel
orientation lock processing, with consistent AbortError rejection.

Fixes #256
@marcoscaceres marcoscaceres requested a review from Copilot October 17, 2025 06:49
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

Adds monitoring for documents transitioning to hidden during the parallel steps of the "apply orientation lock" algorithm, aligning behavior with existing fully-active monitoring and ensuring consistent AbortError rejections.

  • Add a new step to abort and reject the pending lock promise if the document’s visibility state becomes "hidden".
  • Keep behavior consistent with the existing fully-active check by rejecting with AbortError and aborting the steps.

Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.

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.

Does orienation lock should be aborted or ignore when document is hidden in pararel step of 8.3?

2 participants