Fix LinkedIn first-page GraphQL variable replay#84
Open
Chkhikvadze wants to merge 1 commit into
Open
Conversation
…les after #1252 Attemp Task: a3e0c926-c041-4cf7-9b2f-1e5feadff8cb
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.
Problem
LinkedIn Sync Now kept failing on newer first-page messaging GraphQL contracts because the extension replayed captured pagination/window values as if they were reusable.
Root cause
The contract capture treated cursor, countBefore/countAfter, and timestamp-like fields as static captured values. For first-page replay this can resend stale pagination cursors or stale message windows, causing LinkedIn HTTP 400s even after the live request contract is captured.
Fix
Validation
uv run pytest -q→ 425 passednode chrome-extension/test_background.mjs→ 221 passed, 0 failedKnown gaps/blockers
This does not bypass LinkedIn auth/session expiry. If
/voyager/api/meis redirected/rejected or the browser is logged out/challenged, the operator still needs to refresh the live browser session.Production expectation
Safe to review/land as a focused extension replay hardening fix. It changes only reusable GraphQL contract rendering/diagnostics and does not replay or store cookies, authorization headers, CSRF values, or raw cursor values.