Skip to content

Fix lookup with turnstile challenge#1283

Open
mvasilak wants to merge 10 commits intozotero:masterfrom
mvasilak:fix-lookup-with-turnstile-challenge
Open

Fix lookup with turnstile challenge#1283
mvasilak wants to merge 10 commits intozotero:masterfrom
mvasilak:fix-lookup-with-turnstile-challenge

Conversation

@mvasilak
Copy link
Copy Markdown
Contributor

@mvasilak mvasilak commented May 3, 2026

Adds hiden turnstile chalenge resolution.
Based on zotero/zotero#5890

@mvasilak mvasilak force-pushed the fix-lookup-with-turnstile-challenge branch from bae61e8 to 34d0af3 Compare May 3, 2026 10:07
@mvasilak mvasilak requested a review from michalrentka May 3, 2026 10:07

// MARK: - Browser Challenges

/// Decide whether a non-success response is a bot challenge that can be cleared in a hidden web view.
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Comments in this browser challenge section are a bit unrelated to actual WebViewhandler. They provide additional info for current issue, but if you read them in a few months, they don't really make sense here. In this case you're just returning nil, you don't "decide whether a non-success response is a bot challenge". "default returns nil so sendRequest behaves as before." is not a great comment either, because what is "before" when you don't have the context of this PR? Sure, you can look up the PR when checking git blame, but these comments just look confusing.

Copy link
Copy Markdown
Contributor Author

@mvasilak mvasilak May 4, 2026

Choose a reason for hiding this comment

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

You are right, the generated comments are too verbose and in many cases unnecessary. Check ac143c0

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

Labels

None yet

Development

Successfully merging this pull request may close these issues.

2 participants