Skip to content

fix: sync missing changes from upstream PRs #201660 and #127083#65

Merged
Adi1231234 merged 1 commit intomain-with-fixesfrom
fix/sync-missing-pr-changes
Mar 16, 2026
Merged

fix: sync missing changes from upstream PRs #201660 and #127083#65
Adi1231234 merged 1 commit intomain-with-fixesfrom
fix/sync-missing-pr-changes

Conversation

@Adi1231234
Copy link
Copy Markdown
Owner

Changes

Two fixes identified during a line-by-line audit of all upstream PRs against main-with-fixes:

1. RemoteAuth: pass session name to store.save instead of full path (upstream PR wwebjs#201660)

store.save was passing path.join(this.dataPath, this.sessionName) - a full filesystem path - instead of just this.sessionName. All other store.* calls (sessionExists, extract, delete) already pass this.sessionName directly, so this was an inconsistency that would cause RemoteAuth store implementations to receive the wrong value.

2. Client: register framenavigated listener before calling inject() (upstream PR wwebjs#127083)

The framenavigated listener was registered after inject() was called. This creates a race: if a page navigation occurs during the initial inject(), the listener isn't set up yet and the re-injection won't happen. The fix registers the listener first, then calls inject().

…127083

- RemoteAuth: pass session name directly to store.save instead of full
  path (fixes PR wwebjs#201660 - path.join was passing the full filesystem
  path instead of just the session identifier)

- Client: register framenavigated listener before calling inject() so
  any page navigation that occurs during initialization is captured
  (fixes PR wwebjs#127083 ordering issue)
@Adi1231234 Adi1231234 merged commit b334317 into main-with-fixes Mar 16, 2026
4 checks passed
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