Skip to content

Report detached Android popup content-rule blocks to the child navigation delegate - #66

Open
tifroz wants to merge 4 commits into
skiptools:mainfrom
tifroz:tifroz/route-popup-content-rule-block
Open

tifroz wants to merge 4 commits into
skiptools:mainfrom
tifroz:tifroz/route-popup-content-rule-block

Conversation

@tifroz

@tifroz tifroz commented Nov 25, 2026 •

Copy link
Copy Markdown
Contributor
  • REQUIRED: I have signed the Contributor Agreement
  • REQUIRED: I have tested my change locally with swift test
  • OPTIONAL: I have tested my change on an iOS simulator or device
  • OPTIONAL: I have tested my change on an Android emulator or device

  • AI was used to generate or assist with generating this PR. Please specify below how you used AI to help you, and what steps you have taken to manually verify the changes.

Codex generated the code & the unit tests, validated manually from a SkipFuse app


A content rule can reject a popup’s first main-frame navigation before the child is mounted. SkipWeb currently forwards that event to the opener with only the URL. When several children open the same URL, the opener cannot identify which child was blocked. A client tracking those children can then report a second block when its pending-window timer expires.

Only Android calls SkipWebNavigationDelegate.webEngineDidBlockContentRuleNavigation(_:to:). The child delegate receives its engine and the rejected destination after a content rule blocks a detached popup’s main-frame navigation. Returning true consumes the notification. Returning false (the default) forwards it to the opener’s callback. Once the child mounts, its own WebView receives subsequent blocks.

@tifroz tifroz changed the title Route detached Android popup content-rule blocks to the child handler Report detached Android popup content-rule blocks to the child navigation delegate Nov 25, 2026
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.

1 participant