Closed Bug 1674895 Opened 4 years ago Closed 4 years ago

Intermittent comm/mail/test/browser/message-header/browser_phishingBar.js | rejection: can't access property "getElementsByTagName", msgFrame.contentDocument is null - stack: getBodyElement@chrome://openpgp/content/ui/enigmailMessengerOverlay.js:1372:5

Categories

(Thunderbird :: General, defect, P5)

defect

Tracking

(thunderbird_esr78 fixed)

RESOLVED FIXED
84 Branch
Tracking Status
thunderbird_esr78 --- fixed

People

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

Details

(Keywords: intermittent-failure)

Attachments

(2 files, 1 obsolete file)

Component: Add-Ons: General → General

I can't seem to be able to reproduce this locally, but I'll keep investigating as I might have been the culprit of this test failure.

Attached patch bug1674895_phishbar.patch (obsolete) — Splinter Review

Doesn't fix the problem, but with this applied running --verify works. And then the problem does show for me locally. (./mach test --headless --verify comm/mail/test/browser/message-header/browser_phishingBar.js)

Assignee: nobody → mkmelin+mozilla
Attachment #9185281 - Flags: review?(alessandro)
Assignee: mkmelin+mozilla → nobody
Comment on attachment 9185281 [details] [diff] [review] bug1674895_phishbar.patch Review of attachment 9185281 [details] [diff] [review]: ----------------------------------------------------------------- Yup, this makes the test fail consistently
Attachment #9185281 - Flags: review?(alessandro) → review+

Fixing the issue on top of your initial patch.

I'm not sure why but it seems that the messageParse() method runs 3 times during the testing of the scam notification.
I wonder if that's a sign of a deeper issue and we're running some opengpg methods when we shouldn't.

Assignee: nobody → alessandro
Attachment #9185281 - Attachment is obsolete: true
Status: NEW → ASSIGNED
Attachment #9185879 - Flags: review?(mkmelin+mozilla)
Comment on attachment 9185879 [details] [diff] [review] bug1674895_phishbar.patch Review of attachment 9185879 [details] [diff] [review]: ----------------------------------------------------------------- ::: mail/extensions/openpgp/content/ui/enigmailMessengerOverlay.js @@ +1370,5 @@ > // Thunderbird > let msgFrame = document.getElementById("messagepane"); > + if (!msgFrame || !msgFrame.contentDocument) { > + return bodyElement; > + } I'll adjust it slightly to just drop the body element declaration
Attachment #9185879 - Flags: review?(mkmelin+mozilla) → review+

Pushed by mkmelin@iki.fi:
https://hg.mozilla.org/comm-central/rev/869f3bb00de0
make browser_phishingBar.js pass when with --verify. r=aleca

Status: ASSIGNED → RESOLVED
Closed: 4 years ago
Resolution: --- → FIXED
Target Milestone: --- → 84 Branch

Comment on attachment 9185879 [details] [diff] [review]
bug1674895_phishbar.patch

[Triage Comment]
Test-related changes; the UI code changes are minimal and improve error detection for the test.

Attachment #9185879 - Flags: approval-comm-esr78+

Test passes locally on esr78 with this change.

Attachment #9187781 - Flags: review?(mkmelin+mozilla)
Attachment #9187781 - Flags: review?(mkmelin+mozilla) → review+
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: