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

Stringify webchannel event details on Thunderbird as well as Firefox #17528

Merged
merged 1 commit into from
Sep 10, 2024

Conversation

chenba
Copy link
Contributor

@chenba chenba commented Sep 4, 2024

Originally this was opened to run CI for #17518. But due to time zone differences, FxA fixed the issue that was causing the test failures here. See #17518 for its original description.

closes FXA-10411

@chenba chenba requested a review from a team as a code owner September 4, 2024 20:42
@clouserw
Copy link
Member

clouserw commented Sep 5, 2024

re-running from failed

@clouserw
Copy link
Member

clouserw commented Sep 6, 2024

maybe a rebase? I'm not sure why it would be timing out

… well as Firefox

Because:

- the Gecko team want to [remove the webchannel whitelist preference](https://bugzilla.mozilla.org/show_bug.cgi?id=1275612), and
- we want to stop using `general.useragent.compatMode.firefox` to add Firefox/x.y to Thunderbird's user-agent string

This commit:

- changes the user-agent parsing code to detect Thunderbird, and
- uses that to fix a block which breaks webchannels on Thunderbird
@@ -122,8 +122,9 @@ function formatEventDetail(win, eventDetail) {
// See https://bugzilla.mozilla.org/show_bug.cgi?id=1275616 and
// https://bugzilla.mozilla.org/show_bug.cgi?id=1238128
if (
(userAgent.isFirefoxDesktop() || userAgent.isFirefoxAndroid()) &&
userAgent.browser.version >= 50
Copy link
Contributor Author

Choose a reason for hiding this comment

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

@darktrojan the test failures were caused by the removal of the browser version condition. I've restored it to the predicate, as my attempt at updating the related code became more time consuming than I expected, and this is a quicker fix.

Copy link
Contributor

Choose a reason for hiding this comment

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

Really? Everything passed when I rebased it. That's weird. Oh well, as long as it works, and it appears to work.

Thanks!

@chenba chenba changed the title [CI ONLY] Stringify webchannel event details on Thunderbird as well as Firefox Stringify webchannel event details on Thunderbird as well as Firefox Sep 10, 2024
@chenba
Copy link
Contributor Author

chenba commented Sep 10, 2024

@LZoog or @clouserw r? I need a r+ to merge

Copy link
Contributor

@vbudhram vbudhram left a comment

Choose a reason for hiding this comment

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

@chenba Thanks!

@chenba chenba merged commit 50e88d0 into main Sep 10, 2024
25 checks passed
@chenba chenba deleted the tb-strigify-webchannel branch September 10, 2024 20:33
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.

4 participants