Repository navigation
fix(ios): read CapacitorCookies/CapacitorHttp isEnabled from injected global - #8689
Merged
Merged
Conversation
2 of 9 tasks
OS-ruimoreiramendes
marked this pull request as ready for review
October 29, 2026 17:40
ItsChaceD
requested changes
Oct 29, 2026
ItsChaceD
left a comment
Contributor
There was a problem hiding this comment.
Same as #8688 , can we remove the checks here:
capacitor/ios/Sources/Capacitor/WebViewDelegationHandler.swift
Lines 283 to 293 in 3672545
Contributor
Author
Yeah makes sense, they are dead code now that the prompts are gone. |
OS-ruimoreiramendes
requested review from
alexgerardojacinto,
andredestro,
jcesarmobile,
markemer and
theproducer
October 30, 2026 13:05
ItsChaceD
approved these changes
Oct 30, 2026
alexgerardojacinto
approved these changes
Oct 30, 2026
2 of 9 tasks
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description
Replace the two sync
window.prompt()calls innative-bridge.jsat document-start with reads from a static global injected in the existing.atDocumentStartWKUserScript:Both values come from static plugin config and are already known natively before the page loads.
Ref: https://outsystemsrd.atlassian.net/browse/RMET-5581
Change Type
Rationale / Problems Fixed
Ref #8664
Tests or Reproductions
runJavaScriptTextInputPanelWithPromptdoes not fire during cold launch after the fix.window.CapacitorNativeConfigreflects the plugin config correctly (verified with bothenabled: trueandfalse).document.cookieget/set still goes through the prompt delegate, unchanged.Platforms Affected