Skip to content

fix init of browser & os details for questions #6738

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

Merged
merged 1 commit into from
Jun 26, 2025

Conversation

escattone
Copy link
Contributor

@escattone escattone commented Jun 25, 2025

While working on mozilla/sumo#2397, I discovered that the initialization of the browser and OS details was failing for Firefox questions because the AAQSystemInfo JS class was looking for desktop rather than firefox in the URL for creating new questions. Also, the details should only be initialized for mobile if the user is on a mobile device, and for desktop if on a desktop device, but when changing desktop to firefox, the details would be initialized when asking a question for Firefox Focus on a desktop OS because firefox was found in focus-firefox. I wrapped each of the cases with /.../ to resolve that and ensure complete matching.

@emilghittasv Do we already have an issue for this? I couldn't find one, but before I create one I thought I'd ask you.

@emilghittasv
Copy link
Collaborator

@escattone

I had the impression that we already have something filled for this but couldn't find it. I've submitted mozilla/sumo#2409 for this.

@akatsoulas akatsoulas merged commit 5685c6b into mozilla:main Jun 26, 2025
2 checks passed
@escattone escattone deleted the fix-init-browser-os-details branch June 26, 2025 15:21
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.

3 participants