Open Bug 1723899 Opened 3 years ago Updated 2 years ago

Intermittent browser/base/content/test/siteIdentity/browser_identityPopup_focus.js | learn more option for custom roots is focused - Got null, expected [object XULTextElement]

Categories

(Firefox :: Site Identity, defect, P3)

defect

Tracking

()

People

(Reporter: intermittent-bug-filer, Unassigned)

Details

(Keywords: intermittent-failure, leave-open, Whiteboard: [stockwell disabled][stockwell unknown])

Attachments

(1 file)

Filed by: malexandru [at] mozilla.com
Parsed log: https://treeherder.mozilla.org/logviewer?job_id=347333686&repo=mozilla-central
Full log: https://firefox-ci-tc.services.mozilla.com/api/queue/v1/task/UTbtK_YfQW-mkDsEIfK5ng/runs/0/artifacts/public/logs/live_backing.log


[task 2021-08-04T04:37:02.107Z] 04:37:02     INFO - TEST-START | browser/base/content/test/siteIdentity/browser_identityPopup_focus.js
[task 2021-08-04T04:37:03.391Z] 04:37:03     INFO - GECKO(3987) | ###!!! [Parent][RunMessage] Error: Channel closing: too late to send/recv, messages will be lost
[task 2021-08-04T04:37:04.328Z] 04:37:04     INFO - GECKO(3987) | -----------------------------------------------------
[task 2021-08-04T04:37:04.328Z] 04:37:04     INFO - GECKO(3987) | Suppressions used:
[task 2021-08-04T04:37:04.328Z] 04:37:04     INFO - GECKO(3987) |   count      bytes template
[task 2021-08-04T04:37:04.328Z] 04:37:04     INFO - GECKO(3987) |      13        416 nsComponentManagerImpl
[task 2021-08-04T04:37:04.328Z] 04:37:04     INFO - GECKO(3987) |       2        288 libfontconfig.so
[task 2021-08-04T04:37:04.328Z] 04:37:04     INFO - GECKO(3987) | -----------------------------------------------------
[task 2021-08-04T04:37:04.767Z] 04:37:04     INFO - GECKO(3987) | ###!!! [Parent][RunMessage] Error: Channel closing: too late to send/recv, messages will be lost
[task 2021-08-04T04:37:04.768Z] 04:37:04     INFO - GECKO(3987) | ###!!! [Parent][RunMessage] Error: Channel closing: too late to send/recv, messages will be lost
[task 2021-08-04T04:37:06.178Z] 04:37:06     INFO - GECKO(3987) | -----------------------------------------------------
[task 2021-08-04T04:37:06.179Z] 04:37:06     INFO - GECKO(3987) | Suppressions used:
[task 2021-08-04T04:37:06.179Z] 04:37:06     INFO - GECKO(3987) |   count      bytes template
[task 2021-08-04T04:37:06.180Z] 04:37:06     INFO - GECKO(3987) |      13        416 nsComponentManagerImpl
[task 2021-08-04T04:37:06.181Z] 04:37:06     INFO - GECKO(3987) |       2        288 libfontconfig.so
[task 2021-08-04T04:37:06.182Z] 04:37:06     INFO - GECKO(3987) | -----------------------------------------------------
[task 2021-08-04T04:37:06.239Z] 04:37:06     INFO - TEST-INFO | started process screentopng
[task 2021-08-04T04:37:06.913Z] 04:37:06     INFO - TEST-INFO | screentopng: exit 0
[task 2021-08-04T04:37:06.913Z] 04:37:06     INFO - Buffered messages logged at 04:37:02
[task 2021-08-04T04:37:06.914Z] 04:37:06     INFO - Entering test bound testIdentityPopupFocusClick
[task 2021-08-04T04:37:06.915Z] 04:37:06     INFO - Buffered messages logged at 04:37:03
[task 2021-08-04T04:37:06.916Z] 04:37:06     INFO - TEST-PASS | browser/base/content/test/siteIdentity/browser_identityPopup_focus.js | undefined assertion name - 
[task 2021-08-04T04:37:06.917Z] 04:37:06     INFO - Leaving test bound testIdentityPopupFocusClick
[task 2021-08-04T04:37:06.917Z] 04:37:06     INFO - Entering test bound testIdentityPopupFocusKeyboard
[task 2021-08-04T04:37:06.918Z] 04:37:06     INFO - Buffered messages logged at 04:37:04
[task 2021-08-04T04:37:06.922Z] 04:37:06     INFO - TEST-PASS | browser/base/content/test/siteIdentity/browser_identityPopup_focus.js | urlbar should be focused - 
[task 2021-08-04T04:37:06.922Z] 04:37:06     INFO - TEST-PASS | browser/base/content/test/siteIdentity/browser_identityPopup_focus.js | undefined assertion name - 
[task 2021-08-04T04:37:06.923Z] 04:37:06     INFO - Leaving test bound testIdentityPopupFocusKeyboard
[task 2021-08-04T04:37:06.933Z] 04:37:06     INFO - Entering test bound testSiteSecurityTabOrder
[task 2021-08-04T04:37:06.933Z] 04:37:06     INFO - Buffered messages logged at 04:37:05
[task 2021-08-04T04:37:06.933Z] 04:37:06     INFO - TEST-PASS | browser/base/content/test/siteIdentity/browser_identityPopup_focus.js | urlbar should be focused - 
[task 2021-08-04T04:37:06.933Z] 04:37:06     INFO - TEST-PASS | browser/base/content/test/siteIdentity/browser_identityPopup_focus.js | undefined assertion name - 
[task 2021-08-04T04:37:06.934Z] 04:37:06     INFO - Buffered messages finished
[task 2021-08-04T04:37:06.934Z] 04:37:06     INFO - TEST-UNEXPECTED-FAIL | browser/base/content/test/siteIdentity/browser_identityPopup_focus.js | learn more option for custom roots is focused - Got null, expected [object XULTextElement]
[task 2021-08-04T04:37:06.934Z] 04:37:06     INFO - Stack trace:
[task 2021-08-04T04:37:06.935Z] 04:37:06     INFO - chrome://mochikit/content/browser-test.js:test_is:1371
[task 2021-08-04T04:37:06.935Z] 04:37:06     INFO - chrome://mochitests/content/browser/browser/base/content/test/siteIdentity/browser_identityPopup_focus.js:testSiteSecurityTabOrder/<:87
[task 2021-08-04T04:37:06.953Z] 04:37:06     INFO - Not taking screenshot here: see the one that was previously logged
[task 2021-08-04T04:37:06.953Z] 04:37:06     INFO - TEST-UNEXPECTED-FAIL | browser/base/content/test/siteIdentity/browser_identityPopup_focus.js | more info button is focused - Got [object XULElement], expected [object XULElement]
[task 2021-08-04T04:37:06.953Z] 04:37:06     INFO - Stack trace:
[task 2021-08-04T04:37:06.953Z] 04:37:06     INFO - chrome://mochikit/content/browser-test.js:test_is:1371
[task 2021-08-04T04:37:06.953Z] 04:37:06     INFO - chrome://mochitests/content/browser/browser/base/content/test/siteIdentity/browser_identityPopup_focus.js:testSiteSecurityTabOrder/<:101
[task 2021-08-04T04:37:06.954Z] 04:37:06     INFO - Not taking screenshot here: see the one that was previously logged
[task 2021-08-04T04:37:06.956Z] 04:37:06     INFO - TEST-UNEXPECTED-FAIL | browser/base/content/test/siteIdentity/browser_identityPopup_focus.js | back button is focused - Got [object XULTextElement], expected [object XULElement]
[task 2021-08-04T04:37:06.957Z] 04:37:06     INFO - Stack trace:
[task 2021-08-04T04:37:06.958Z] 04:37:06     INFO - chrome://mochikit/content/browser-test.js:test_is:1371
[task 2021-08-04T04:37:06.958Z] 04:37:06     INFO - chrome://mochitests/content/browser/browser/base/content/test/siteIdentity/browser_identityPopup_focus.js:testSiteSecurityTabOrder/<:118
[task 2021-08-04T04:37:06.959Z] 04:37:06     INFO - Leaving test bound testSiteSecurityTabOrder
[task 2021-08-04T04:37:06.959Z] 04:37:06     INFO - GECKO(3987) | ###!!! [Parent][RunMessage] Error: Channel closing: too late to send/recv, messages will be lost
[task 2021-08-04T04:37:06.960Z] 04:37:06     INFO - GECKO(3987) | ###!!! [Parent][RunMessage] Error: Channel closing: too late to send/recv, messages will be lost
[task 2021-08-04T04:37:06.974Z] 04:37:06     INFO - GECKO(3987) | MEMORY STAT | vsize 20975824MB | residentFast 1513MB
[task 2021-08-04T04:37:06.975Z] 04:37:06     INFO - TEST-OK | browser/base/content/test/siteIdentity/browser_identityPopup_focus.js | took 4356ms
[task 2021-08-04T04:37:06.975Z] 04:37:06     INFO - checking window state
[task 2021-08-04T04:37:06.976Z] 04:37:06     INFO - TEST-START | browser/base/content/test/siteIdentity/browser_identity_UI.js

Frequent failure, maybe a regression from bug 1613705?

Severity: S4 → --
Flags: needinfo?(pbz)
Priority: P5 → --

Aryx is right, this looks to have appeared after bug 1613705 landed: Link
Paul, could you please take a look?

:zbraniecki, could this be a regression of Bug 1613705? Do you think this test could suffer from the same type of race conditions you fixed in https://phabricator.services.mozilla.com/D116792?

Given that it only fails for a very specific flavor, we could also consider disabling it.

Flags: needinfo?(pbz) → needinfo?(zbraniecki)

yeah, it may be a race condition in result of the l10n microtask fix!

Flags: needinfo?(zbraniecki)
Flags: needinfo?(pbz)

Update:
There have been 29 failures within the last 7 days:
• 26 failures on Linux 18.04 x64 WebRender asan opt
• 3 failures on linux1804-64-tsan-qr opt
Recent failure log: https://treeherder.mozilla.org/logviewer?job_id=348457220&repo=autoland&lineNumber=2743

[task 2021-08-15T00:07:55.158Z] 00:07:55     INFO - TEST-START | browser/base/content/test/siteIdentity/browser_identityPopup_focus.js
[task 2021-08-15T00:07:59.213Z] 00:07:59     INFO - TEST-INFO | started process screentopng
[task 2021-08-15T00:07:59.538Z] 00:07:59     INFO - TEST-INFO | screentopng: exit 0
[task 2021-08-15T00:07:59.538Z] 00:07:59     INFO - Buffered messages logged at 00:07:55
[task 2021-08-15T00:07:59.538Z] 00:07:59     INFO - Entering test bound testIdentityPopupFocusClick
[task 2021-08-15T00:07:59.539Z] 00:07:59     INFO - Buffered messages logged at 00:07:56
[task 2021-08-15T00:07:59.543Z] 00:07:59     INFO - TEST-PASS | browser/base/content/test/siteIdentity/browser_identityPopup_focus.js | undefined assertion name - 
[task 2021-08-15T00:07:59.543Z] 00:07:59     INFO - Leaving test bound testIdentityPopupFocusClick
[task 2021-08-15T00:07:59.544Z] 00:07:59     INFO - Entering test bound testIdentityPopupFocusKeyboard
[task 2021-08-15T00:07:59.544Z] 00:07:59     INFO - Buffered messages logged at 00:07:57
[task 2021-08-15T00:07:59.544Z] 00:07:59     INFO - TEST-PASS | browser/base/content/test/siteIdentity/browser_identityPopup_focus.js | urlbar should be focused - 
[task 2021-08-15T00:07:59.544Z] 00:07:59     INFO - TEST-PASS | browser/base/content/test/siteIdentity/browser_identityPopup_focus.js | undefined assertion name - 
[task 2021-08-15T00:07:59.544Z] 00:07:59     INFO - Leaving test bound testIdentityPopupFocusKeyboard
[task 2021-08-15T00:07:59.544Z] 00:07:59     INFO - Entering test bound testSiteSecurityTabOrder
[task 2021-08-15T00:07:59.545Z] 00:07:59     INFO - Buffered messages logged at 00:07:58
[task 2021-08-15T00:07:59.545Z] 00:07:59     INFO - TEST-PASS | browser/base/content/test/siteIdentity/browser_identityPopup_focus.js | urlbar should be focused - 
[task 2021-08-15T00:07:59.545Z] 00:07:59     INFO - TEST-PASS | browser/base/content/test/siteIdentity/browser_identityPopup_focus.js | undefined assertion name - 
[task 2021-08-15T00:07:59.545Z] 00:07:59     INFO - Buffered messages finished
[task 2021-08-15T00:07:59.545Z] 00:07:59     INFO - TEST-UNEXPECTED-FAIL | browser/base/content/test/siteIdentity/browser_identityPopup_focus.js | learn more option for custom roots is focused - Got null, expected [object XULTextElement]
[task 2021-08-15T00:07:59.546Z] 00:07:59     INFO - Stack trace:
[task 2021-08-15T00:07:59.546Z] 00:07:59     INFO - chrome://mochikit/content/browser-test.js:test_is:1364
[task 2021-08-15T00:07:59.546Z] 00:07:59     INFO - chrome://mochitests/content/browser/browser/base/content/test/siteIdentity/browser_identityPopup_focus.js:testSiteSecurityTabOrder/<:87
[task 2021-08-15T00:07:59.546Z] 00:07:59     INFO - Not taking screenshot here: see the one that was previously logged
[task 2021-08-15T00:07:59.546Z] 00:07:59     INFO - TEST-UNEXPECTED-FAIL | browser/base/content/test/siteIdentity/browser_identityPopup_focus.js | more info button is focused - Got [object XULElement], expected [object XULElement]
[task 2021-08-15T00:07:59.546Z] 00:07:59     INFO - Stack trace:
[task 2021-08-15T00:07:59.546Z] 00:07:59     INFO - chrome://mochikit/content/browser-test.js:test_is:1364
[task 2021-08-15T00:07:59.546Z] 00:07:59     INFO - chrome://mochitests/content/browser/browser/base/content/test/siteIdentity/browser_identityPopup_focus.js:testSiteSecurityTabOrder/<:101
[task 2021-08-15T00:07:59.546Z] 00:07:59     INFO - Not taking screenshot here: see the one that was previously logged
[task 2021-08-15T00:07:59.547Z] 00:07:59     INFO - TEST-UNEXPECTED-FAIL | browser/base/content/test/siteIdentity/browser_identityPopup_focus.js | back button is focused - Got [object XULTextElement], expected [object XULElement]
[task 2021-08-15T00:07:59.547Z] 00:07:59     INFO - Stack trace:
[task 2021-08-15T00:07:59.547Z] 00:07:59     INFO - chrome://mochikit/content/browser-test.js:test_is:1364
[task 2021-08-15T00:07:59.547Z] 00:07:59     INFO - chrome://mochitests/content/browser/browser/base/content/test/siteIdentity/browser_identityPopup_focus.js:testSiteSecurityTabOrder/<:118
[task 2021-08-15T00:07:59.547Z] 00:07:59     INFO - Leaving test bound testSiteSecurityTabOrder
[task 2021-08-15T00:07:59.547Z] 00:07:59     INFO - GECKO(2254) | MEMORY STAT | vsize 130551903MB | residentFast 2192MB
[task 2021-08-15T00:07:59.548Z] 00:07:59     INFO - TEST-OK | browser/base/content/test/siteIdentity/browser_identityPopup_focus.js | took 4362ms
[task 2021-08-15T00:07:59.624Z] 00:07:59     INFO - checking window state
[task 2021-08-15T00:07:59.732Z] 00:07:59     INFO - TEST-START | browser/base/content/test/siteIdentity/browser_identity_UI.js
QA Whiteboard: [stockwell needswork:owner]
Assignee: nobody → pbz
Status: NEW → ASSIGNED
Flags: needinfo?(pbz)

Adding polling to the test, to wait for the element to gain focus, doesn't fix the intermittent failure. It seems that we actually don't focus the "learn more" link sometimes. Currently investigating if this could be a bug in the PanelMultiView implementation. I'm also wondering if the focus call could fail because l10n isn't complete and there isn't any label content to focus.

Severity: -- → S4
Priority: -- → P3
Pushed by pzuhlcke@mozilla.com:
https://hg.mozilla.org/integration/autoland/rev/9b90288e5659
Disable browser_identityPopup_focus on linux asan, tsan and verify. r=prathiksha
Status: ASSIGNED → RESOLVED
Closed: 3 years ago
Resolution: --- → FIXED
Target Milestone: --- → 93 Branch
Status: RESOLVED → REOPENED
QA Whiteboard: [stockwell needswork:owner]
Keywords: leave-open
Resolution: FIXED → ---
Whiteboard: [stockwell disabled][stockwell needswork:owner]
Target Milestone: 93 Branch → ---
Flags: needinfo?(pbz)

Failure rate is rather low now. I'm unassigning for now.

Assignee: pbz → nobody
Status: REOPENED → NEW
Flags: needinfo?(pbz)
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: