Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix opening two signin windows from WebChannel connection #982

Merged

Conversation

ryanjduffy
Copy link

After #978 , we were adding two WebChannel listeners on app.replay.io causing two windows to be opened when using the app.replay.io sign in button. Only one of the two windows would work for sign in so sometimes the user would click the right one and sometimes not.

The solution is to prevent adding a second listener when the devtools.recordreplay.recordingsUrl preference matches either of the regex domains.

@ryanjduffy ryanjduffy requested a review from jazzdan March 18, 2024 18:12
@ryanjduffy
Copy link
Author

Verified this with this branch build: macOS-gecko-20240318-055106fcfc99-4a8e18719042.dmg

registerWebChannel(localUrl);

function registerWebChannel(url) {
console.log("Registering WebChannel for", url);
Copy link

Choose a reason for hiding this comment

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

I'm guessing these console logs don't end up polluting the users pane because they run in a separate browser process?

Copy link
Author

Choose a reason for hiding this comment

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

Correct. They only log to the browser console and not the web page's console.

@ryanjduffy ryanjduffy merged commit 1348403 into webreplay-release Mar 18, 2024
1 check passed
@ryanjduffy ryanjduffy deleted the ryan/scs-2060-replay-gecko-sign-in-difficulty branch March 18, 2024 18:37
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.

2 participants