Closed Bug 1996471 Opened 1 year ago Closed 23 days ago

Frequent browser/components/tabbrowser/test/browser/tabs/browser_tab_splitview_contextmenu.js | single tracking bug

Categories

(Firefox :: Tabbed Browser: Split View, defect, P5)

defect

Tracking

()

RESOLVED FIXED
161 Branch
Tracking Status
firefox149 --- fixed
firefox150 --- fixed
firefox161 --- fixed

People

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

References

Details

(Keywords: intermittent-failure, intermittent-testcase, Whiteboard: [collect_confirm_failure][fidefe-splitview])

Attachments

(3 external files)

Filed by: chorotan [at] mozilla.com
Parsed log: https://treeherder.mozilla.org/logviewer?job_id=533008002&repo=autoland&task=YzPpecdeTa-sZXW4hIMwFA.0
Full log: https://firefox-ci-tc.services.mozilla.com/api/queue/v1/task/YzPpecdeTa-sZXW4hIMwFA/runs/0/artifacts/public/logs/live_backing.log


[task 2025-10-26T16:26:30.926+00:00] 16:26:30     INFO - TEST-PASS | browser/components/tabbrowser/test/browser/tabs/browser_tab_splitview_contextmenu.js | context menu is initially closed - "closed" == "closed" - 
[task 2025-10-26T16:26:30.926+00:00] 16:26:30     INFO - Buffered messages finished
[task 2025-10-26T16:26:30.926+00:00] 16:26:30     INFO - TEST-UNEXPECTED-FAIL | browser/components/tabbrowser/test/browser/tabs/browser_tab_splitview_contextmenu.js | Test timed out - 
[task 2025-10-26T16:26:30.926+00:00] 16:26:30     INFO - GECKO(6783) | Completed ShutdownLeaks collections in process 6783
[task 2025-10-26T16:26:30.927+00:00] 16:26:30     INFO - TEST-START | Shutdown
[task 2025-10-26T16:26:30.927+00:00] 16:26:30     INFO - Browser Chrome Test Summary
[task 2025-10-26T16:26:30.927+00:00] 16:26:30     INFO - Passed:  4866
[task 2025-10-26T16:26:30.927+00:00] 16:26:30     INFO - Failed:  1
[task 2025-10-26T16:26:30.927+00:00] 16:26:30     INFO - Todo:    0
[task 2025-10-26T16:26:30.927+00:00] 16:26:30     INFO - Mode:    e10s
[task 2025-10-26T16:26:30.927+00:00] 16:26:30     INFO - *** End BrowserChrome Test Results ***
[task 2025-10-26T16:26:30.927+00:00] 16:26:30     INFO - GECKO(6783) | Exiting due to channel error.
[task 2025-10-26T16:26:30.928+00:00] 16:26:30     INFO - GECKO(6783) | Exiting due to channel error.
[task 2025-10-26T16:26:30.928+00:00] 16:26:30     INFO - GECKO(6783) | Exiting due to channel error.
[task 2025-10-26T16:26:30.928+00:00] 16:26:30     INFO - GECKO(6783) | Exiting due to channel error.
[task 2025-10-26T16:26:30.928+00:00] 16:26:30     INFO - GECKO(6783) | Exiting due to channel error.
[task 2025-10-26T16:26:30.928+00:00] 16:26:30     INFO - GECKO(6783) | Exiting due to channel error.
[task 2025-10-26T16:26:30.928+00:00] 16:26:30     INFO - GECKO(6783) | Exiting due to channel error.
[task 2025-10-26T16:26:30.928+00:00] 16:26:30     INFO - GECKO(6783) | Exiting due to channel error.
[task 2025-10-26T16:26:30.928+00:00] 16:26:30     INFO - GECKO(6783) | Exiting due to channel error.
[task 2025-10-26T16:26:30.929+00:00] 16:26:30     INFO - GECKO(6783) | Exiting due to channel error.
[task 2025-10-26T16:26:30.929+00:00] 16:26:30     INFO - GECKO(6783) | Exiting due to channel error.
[task 2025-10-26T16:26:30.929+00:00] 16:26:30     INFO - GECKO(6783) | Exiting due to channel error.
[task 2025-10-26T16:26:30.929+00:00] 16:26:30     INFO - GECKO(6783) | Exiting due to channel error.
[task 2025-10-26T16:26:30.929+00:00] 16:26:30     INFO - GECKO(6783) | Exiting due to channel error.
[task 2025-10-26T16:26:30.929+00:00] 16:26:30     INFO - GECKO(6783) | Exiting due to channel error.
[task 2025-10-26T16:26:30.929+00:00] 16:26:30     INFO - GECKO(6783) | Exiting due to channel error.
[task 2025-10-26T16:26:30.929+00:00] 16:26:30     INFO - TEST-INFO | Main app process: exit 0
[task 2025-10-26T16:26:30.929+00:00] 16:26:30     INFO - TEST-UNEXPECTED-FAIL | browser/components/tabbrowser/test/browser/tabs/browser_tab_splitview_contextmenu.js | Application shut down (without crashing) in the middle of a test!
[task 2025-10-26T16:26:30.929+00:00] 16:26:30     INFO - TEST-INFO took 44299ms
[task 2025-10-26T16:26:30.930+00:00] 16:26:30     INFO - runtests.py | Application ran for: 0:07:29.471193
[task 2025-10-26T16:26:30.930+00:00] 16:26:30     INFO - zombiecheck | Reading PID log: /var/folders/5x/4r988k813hd4r6s73wt05gk00000jb/T/tmpb372v74ypidlog
[task 2025-10-26T16:26:30.930+00:00] 16:26:30     INFO - ==> process 6783 launched child process 6786
[task 2025-10-26T16:26:30.930+00:00] 16:26:30     INFO - ==> process 6783 launched child process 6787
[task 2025-10-26T16:26:30.930+00:00] 16:26:30     INFO - ==> process 6783 launched child process 6788

Summary: Intermittent [tier 2] browser/components/tabbrowser/test/browser/tabs/browser_tab_splitview_contextmenu.js | single tracking bug → Frequent browser/components/tabbrowser/test/browser/tabs/browser_tab_splitview_contextmenu.js | single tracking bug

hey Kelly, could this frequent failure come from Bug 1995543?

Flags: needinfo?(kcochrane)
Flags: needinfo?(kcochrane)
Whiteboard: [collect_confirm_failure] → [collect_confirm_failure][fidefe-splitview]
Component: Tabbed Browser → Tabbed Browser: Split View
Status: NEW → RESOLVED
Closed: 10 months ago
Resolution: --- → INCOMPLETE

Updates MutationObserver arguments to ensure that the observers get called when the mutation condition holds.

This test was failing intermittently and caused an unrelated patch of mine (bug 2015874) to be backed out. I couldn't figure out why or whether my patch might be causing problems to this test. However, I was able to consistently reproduce this test's timeouts on Windows on firefox-main without any of my patches.

Even with this fix, it seems that bug 1994508 is still present, resulting in intermittent issues on macOS 10.15. I'm keeping this test skipped for that version and keeping that bug open.

  1. MutationObserver monitors child elements using childList, not children
  2. The "remove split view from group" menu item is tricky because the l10n engine changes the label attribute from "Remove from Groups" to "Remove from Group" but there are two mutation observers: this test, and the menuitem itself. The menuitem has a mutation observer that reflects label attribute changes to its .menu-text child's text content, but there is a risk that this test's mutation observer runs before the menuitem. In order to ensure that the test can always see changes to the textContent, it was not enough to just use characterData because the text is updated on a child element. Both characterData and subtree seemed to consistently pick up changes to the menuitem text.
Assignee: nobody → sthompson
Pushed by sthompson@mozilla.com: https://github.com/mozilla-firefox/firefox/commit/31e369ffd27a https://hg.mozilla.org/integration/autoland/rev/d73f71b3d144 fixes for intermittent browser_tab_splitview_contextmenu.js r=kcochrane,tabbrowser-reviewers

firefox-beta Uplift Approval Request

  • User impact if declined: No user impact for this patch alone. However, this patch needs to land before bug 2015874, and bug 2015874 is a prerequisite for a number of patches for the Tab Notes feature that will be available in Firefox Labs in 149.
  • Code covered by automated testing: yes
  • Fix verified in Nightly: yes
  • Needs manual QE test: no
  • Steps to reproduce for manual QE testing: This patch only fixes an automated test
  • Risk associated with taking this patch: low
  • Explanation of risk level: This patch only fixes an automated test
  • String changes made/needed: No
  • Is Android affected?: no
Attachment #9548247 - Flags: approval-mozilla-beta?

Updates MutationObserver arguments to ensure that the observers get called when the mutation condition holds.

This test was failing intermittently and caused an unrelated patch of mine (bug 2015874) to be backed out. I couldn't figure out why or whether my patch might be causing problems to this test. However, I was able to consistently reproduce this test's timeouts on Windows on firefox-main without any of my patches.

Even with this fix, it seems that bug 1994508 is still present, resulting in intermittent issues on macOS 10.15. I'm keeping this test skipped for that version and keeping that bug open.

  1. MutationObserver monitors child elements using childList, not children
  2. The "remove split view from group" menu item is tricky because the l10n engine changes the label attribute from "Remove from Groups" to "Remove from Group" but there are two mutation observers: this test, and the menuitem itself. The menuitem has a mutation observer that reflects label attribute changes to its .menu-text child's text content, but there is a risk that this test's mutation observer runs before the menuitem. In order to ensure that the test can always see changes to the textContent, it was not enough to just use characterData because the text is updated on a child element. Both characterData and subtree seemed to consistently pick up changes to the menuitem text.

Original Revision: https://phabricator.services.mozilla.com/D284736

Resolution: INCOMPLETE → FIXED
Attachment #9548247 - Flags: approval-mozilla-beta? → approval-mozilla-beta+

A patch has been attached on this bug, which was already closed. Filing a separate bug will ensure better tracking. If this was not by mistake and further action is needed, please alert the appropriate party. (Or: if the patch doesn't change behavior -- e.g. landing a test case, or fixing a typo -- then feel free to disregard this message)

Hmm, so treeherder ran macOS 10.15 x86_64 and macOS 14.70 x86_64 on autoland https://treeherder.mozilla.org/jobs?repo=autoland&revision=d73f71b3d1445752515fe9fb25bcd920b508018b

Beta failure is in macOS 15.3 aarch64. It sounds like I may need to restore the test skip for "os == 'mac' && os_version == '15.30' && arch == 'aarch64'"

Also remove the macOS 15.30 aarch64 skip-if from bug 2023967, a blanket skip for the new arm workers.

This test started failing on Windows the week of Aug 16, 2026 (see comment 37)

Flags: needinfo?(sthompson)
Pushed by fqueze@mozilla.com: https://github.com/mozilla-firefox/firefox/commit/baa998d0ad9a https://hg.mozilla.org/integration/autoland/rev/1f5356af37ef Close the tab hover preview before browser_tab_splitview_contextmenu.js moves the tab strip, r=tabbrowser-reviewers,sthompson.
Pushed by abutkovits@mozilla.com: https://github.com/mozilla-firefox/firefox/commit/0603017f99e0 https://hg.mozilla.org/integration/autoland/rev/a8c4b624e46c Revert "Bug 1996471 - Close the tab hover preview before browser_tab_splitview_contextmenu.js moves the tab strip, r=tabbrowser-reviewers,sthompson."
Pushed by fqueze@mozilla.com: https://github.com/mozilla-firefox/firefox/commit/2ef604e724f5 https://hg.mozilla.org/integration/autoland/rev/051c0a4377be Close the tab hover preview before browser_tab_splitview_contextmenu.js moves the tab strip, r=tabbrowser-reviewers,sthompson.
Status: REOPENED → RESOLVED
Closed: 10 months ago → 23 days ago
Resolution: --- → FIXED
Target Milestone: --- → 161 Branch

Clearing the needinfo request since this test failure bug has been resolved.

For more information, please visit BugBot documentation.

Flags: needinfo?(sthompson)
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: