Skip to content

Gate sheet blocker insertion on native peers#4502

Open
shai-almog wants to merge 3 commits intomasterfrom
codex/add-background-component-to-block-events
Open

Gate sheet blocker insertion on native peers#4502
shai-almog wants to merge 3 commits intomasterfrom
codex/add-background-component-to-block-events

Conversation

@shai-almog
Copy link
Collaborator

Motivation

  • The sheet blocker component should only be added when there are native peer components that can receive native pointer events, to avoid inserting an unnecessary component into the hierarchy.
  • The repository already tracks native peers via Form.activePeerCount, which can be used to detect when a blocker is required.
  • The BrowserComponent instrumentation test previously included extra label content that was not necessary to exercise the native-event blocking scenario.

Description

  • Add a guard in ensureSheetBlocker(...) to consult Form.activePeerCount and remove the blocker if there are no active native peers, and to only create/insert the blocker when peers are present.
  • Introduce SHEET_BLOCKER_PROPERTY and SHEET_LAYER_PROPERTY client property usage for sheet plumbing and ensure the blocker is inserted at the correct index relative to the sheet layer.
  • Simplify BrowserComponentScreenshotTest by removing the extra Label content and only showing the Sheet to exercise the native-event blocking case.

Testing

  • No automated tests were executed as part of this change.
  • The BrowserComponent instrumentation test was updated to exercise the sheet-over-browser scenario but was not run locally or in CI as part of this PR.
  • Recommend running the instrumentation/CI suite (or the core unit tests per repo guidance) to validate behavior in native environments.

Codex Task

@shai-almog
Copy link
Collaborator Author

shai-almog commented Feb 7, 2026

Android screenshot updates

Compared 30 screenshots: 29 matched, 1 error.

  • graphics-fill-triangle — comparison error. Comparison error: PNG chunk truncated before CRC while processing: /home/runner/work/_temp/cn1ss-Qx4MTx/graphics-fill-triangle.png

    No preview available for this screenshot.
    Full-resolution PNG saved as graphics-fill-triangle.png in workflow artifacts.

Native Android coverage

  • 📊 Line coverage: 7.16% (3632/50711 lines covered) [HTML preview] (artifact android-coverage-report, jacocoAndroidReport/html/index.html)
    • Other counters: instruction 5.58% (17826/319385), branch 2.73% (847/31063), complexity 3.32% (987/29687), method 5.84% (808/13824), class 9.53% (174/1825)
    • Lowest covered classes
      • kotlin.collections.kotlin.collections.ArraysKt___ArraysKt – 0.00% (0/6327 lines covered)
      • kotlin.collections.unsigned.kotlin.collections.unsigned.UArraysKt___UArraysKt – 0.00% (0/2384 lines covered)
      • org.jacoco.agent.rt.internal_b6258fc.asm.org.jacoco.agent.rt.internal_b6258fc.asm.ClassReader – 0.00% (0/1519 lines covered)
      • kotlin.collections.kotlin.collections.CollectionsKt___CollectionsKt – 0.00% (0/1148 lines covered)
      • org.jacoco.agent.rt.internal_b6258fc.asm.org.jacoco.agent.rt.internal_b6258fc.asm.MethodWriter – 0.00% (0/923 lines covered)
      • kotlin.sequences.kotlin.sequences.SequencesKt___SequencesKt – 0.00% (0/712 lines covered)
      • kotlin.text.kotlin.text.StringsKt___StringsKt – 0.00% (0/623 lines covered)
      • org.jacoco.agent.rt.internal_b6258fc.asm.org.jacoco.agent.rt.internal_b6258fc.asm.Frame – 0.00% (0/564 lines covered)
      • kotlin.collections.kotlin.collections.ArraysKt___ArraysJvmKt – 0.00% (0/495 lines covered)
      • kotlinx.coroutines.kotlinx.coroutines.JobSupport – 0.00% (0/423 lines covered)

@github-actions
Copy link

github-actions bot commented Feb 7, 2026

✅ Continuous Quality Report

Test & Coverage

Static Analysis

Generated automatically by the PR CI workflow.

@shai-almog
Copy link
Collaborator Author

shai-almog commented Feb 8, 2026

iOS screenshot updates

Compared 30 screenshots: 29 matched, 1 updated.

  • BrowserComponent — updated screenshot. Screenshot differs (1206x2622 px, bit depth 8).

    BrowserComponent
    Preview info: Preview provided by instrumentation.
    Full-resolution PNG saved as BrowserComponent.png in workflow artifacts.

Benchmark Results

  • VM Translation Time: 293 seconds
  • Compilation Time: 298 seconds

Detailed Performance Metrics

Metric Duration
Build Time Statistics
Setup & Unzip 24710 ms
Extract Extensions 18 ms
Google Services Setup 2 ms
Scan Classes 525 ms
Extract Libs 1117 ms
Inject Build Hints 47 ms
Generate Unit Tests 3 ms
Generate Stubs 1237 ms
Compile Stubs 2200 ms
Generate Icons 1076 ms
Prepare ParparVM 157 ms
ParparVM Execution 169285 ms
Post-VM Setup 194 ms
CocoaPods 4424 ms
Finalize 27 ms
Total Time 205024 msMaven Overhead : 88000 ms
CocoaPods Install (Script) 1000 ms
Simulator Boot 131000 ms
Simulator Boot (Run) 3000 ms
App Install 13000 ms
App Launch 10000 ms
Test Execution 138000 ms

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

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant