Closed Bug 1878858 Opened 2 years ago Closed 2 years ago

perma comm/mail/test/browser/content-tabs/browser_aboutSupport.js | String "undefined" should not be on the content tab's page - false == true

Categories

(Thunderbird :: Upstream Synchronization, defect, P5)

defect

Tracking

(thunderbird_esr115 unaffected)

RESOLVED FIXED
124 Branch
Tracking Status
thunderbird_esr115 --- unaffected

People

(Reporter: intermittent-bug-filer, Assigned: mkmelin)

References

Details

(Keywords: intermittent-failure, intermittent-testcase)

Attachments

(3 files)

Confirmed by local backout this is from bug 1826412. Specifically https://hg.mozilla.org/mozilla-central/rev/a5f0b8602ce1
I don't understand why.
Adding https://hg.mozilla.org/mozilla-central/diff/a5f0b8602ce17980ab43e5e46e7bff4f4bf6a844/toolkit/content/aboutSupport.js to mail/components/about-support/content/aboutSupport.js doesn't help, though it should probably be done.

See Also: → 1826412

Maybe Thunderbird builds are missing some ifdef for something. xref bug 1877660.

Tom, any ideas of what might be missing?

Flags: needinfo?(tom)
See Also: → 1877660

I'm sorry, I am not terribly familiar with these bits. My best guesses to trial/error would be:

It looks like it's saying "Undefined" shouldn't appear anywhere on about:support, but now it is". Does opening about:support on Thunderbird Nightly show you where it's saying "undefined"? Presumably in the new field I added - "Font Visibility Debug Info"

Prehaps the code I added in nsIGfxBase needs additional ifdefs/cases for Thunderbird, so it doesn't show up as undefined?

Flags: needinfo?(tom)
Attached image image.png

Screenshot

I would think it's not the test that is wrong, but showing a real issue (of some sort, like is gpu detection not working due to some ifdef?).

That patch (mine) doesn't do anything to GPU detection... If backout is showing that https://hg.mozilla.org/mozilla-central/rev/a5f0b8602ce1 is the source of the issue, I would try isolating it further. Specifically, does removing the row I added to the about:support page fix things?

Unfortunately that doesn't help.
But your suggestion made me explore this a bit more. This is the offending line: https://hg.mozilla.org/mozilla-central/rev/a5f0b8602ce1#l5.12 - if i remove it things are fine. The very odd thing here is that prop by itself is not a problem...
I found a "fix". It looks like something is only available properly on 2nd/3rd access.

Does this ring any bells? ^^^

Flags: needinfo?(tom)

No, I don't know why that would happen... (Although I'm far from experienced in XPCOM.) Maybe if there was multi-threaded access...? Although I don't think that's happening here. The relevant code is all here...

You could try doing something simpler in GetFontVisibilityDeterminationStr, like copying how GetContentBackend(nsAString& aContentBackend) just assigns a string, and seeing if that changes the behavior...

Flags: needinfo?(tom)

I think this line should be fontVisibilityDeterminationStr: "supportFontDetermination", since the L10n string is called support-font-determination not font-determination. That fixes the test.

I can confirm that, thanks!

Assignee: nobody → mkmelin+mozilla
Attachment #9378937 - Attachment description: WIP: Bug 1878858 - Fix permafailing comm/mail/test/browser/content-tabs/browser_aboutSupport.js for Thunderbird. → Bug 1878858 - Fix fontVisibilityDeterminationStr. r=tjr
Pushed by mkmelin@iki.fi: https://hg.mozilla.org/integration/autoland/rev/193e6982f5a1 Fix fontVisibilityDeterminationStr. r=tjr
Status: NEW → RESOLVED
Closed: 2 years ago
Resolution: --- → FIXED
Target Milestone: --- → 124 Branch
Attachment #9381946 - Attachment description: Bug 1878858 - Port bug 1826412 (add supportFontDetermination to about:support). r=#thunderbird-reviewers → Bug 1878858 - Port bug 1826412: add supportFontDetermination to about:support. r=freaktechnik

Pushed by mkmelin@iki.fi:
https://hg.mozilla.org/comm-central/rev/970b0125b6a7
Port bug 1826412: add supportFontDetermination to about:support. r=freaktechnik

You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: