Closed Bug 1585954 Opened 6 years ago Closed 6 years ago

Intermittent browser/components/search/test/browser/browser_searchbar_openpopup.js | Test timed out | Uncaught exception received from previously timed out test - at chrome://mochitests/content/browser/browser/components/search/test/browser/browser_search

Categories

(Firefox :: Search, defect, P2)

defect

Tracking

()

RESOLVED FIXED
Firefox 71
Tracking Status
firefox-esr60 --- unaffected
firefox-esr68 --- unaffected
firefox67 --- unaffected
firefox68 --- unaffected
firefox69 --- unaffected
firefox70 --- unaffected
firefox71 --- fixed

People

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

References

Details

(Keywords: intermittent-failure, regression, Whiteboard: fixed by bug 1586232)

Filed by: rmaries [at] mozilla.com
Parsed log: https://treeherder.mozilla.org/logviewer.html#?job_id=269590940&repo=mozilla-central
Full log: https://queue.taskcluster.net/v1/task/Y2iw77TzSeWdl-xOTFHmOQ/runs/0/artifacts/public/logs/live_backing.log


[task 2019-10-03T11:15:05.246Z] 11:15:05 INFO - TEST-START | browser/components/search/test/browser/browser_searchbar_openpopup.js
[task 2019-10-03T11:16:35.357Z] 11:16:35 INFO - TEST-PASS | browser/components/search/test/browser/browser_searchbar_openpopup.js | Should have selected all of the text -
[task 2019-10-03T11:16:35.358Z] 11:16:35 INFO - Leaving test bound focus_change_closes_popup
[task 2019-10-03T11:16:35.358Z] 11:16:35 INFO - Entering test bound focus_change_closes_small_popup
[task 2019-10-03T11:16:35.358Z] 11:16:35 INFO - Buffered messages finished
[task 2019-10-03T11:16:35.358Z] 11:16:35 INFO - TEST-UNEXPECTED-FAIL | browser/components/search/test/browser/browser_searchbar_openpopup.js | Test timed out -
[task 2019-10-03T11:16:35.358Z] 11:16:35 INFO - GECKO(2200) | [Child 8996, Main Thread] WARNING: NS_ENSURE_SUCCESS(rv, rv) failed with result 0x80070057: file z:/build/build/src/dom/base/ThirdPartyUtil.cpp, line 217
[task 2019-10-03T11:16:35.358Z] 11:16:35 INFO - Search engine removed: testEngine.xml
[task 2019-10-03T11:16:35.358Z] 11:16:35 INFO - GECKO(2200) | [Child 8996, Main Thread] WARNING: NS_ENSURE_SUCCESS(rv, rv) failed with result 0x80070057: file z:/build/build/src/dom/base/ThirdPartyUtil.cpp, line 217
[task 2019-10-03T11:16:35.359Z] 11:16:35 INFO - GECKO(2200) | [Child 8996, Main Thread] WARNING: NS_ENSURE_SUCCESS(rv, rv) failed with result 0x80070057: file z:/build/build/src/dom/base/ThirdPartyUtil.cpp, line 217
[task 2019-10-03T11:16:35.397Z] 11:16:35 INFO - GECKO(2200) | MEMORY STAT | vsize 2104343MB | vsizeMaxContiguous 65853019MB | residentFast 305MB | heapAllocated 78MB
[task 2019-10-03T11:16:35.397Z] 11:16:35 INFO - TEST-OK | browser/components/search/test/browser/browser_searchbar_openpopup.js | took 90145ms

This looks like a regression from Megabar, the code in the test is:

  gURLBar.focus();

  let promise = promiseEvent(searchPopup, "popupshown");
  // For some reason sending the mouse event immediately doesn't open the popup.
  SimpleTest.executeSoon(() => {
    EventUtils.synthesizeMouseAtCenter(searchIcon, {});
  });
  await promise;

So we're focussing the megabar and then clicking in the middle of the searchIcon. However, the screenshot shows that the Megabar is now covering the search icon...

I suspect this is only intermittent since there's an animation time when focussing the megabar - sometimes we win the race and click the button before megabar finishes expanding.

I guess bug 1586386 might be fixing this?

Depends on: 1586386
Priority: P5 → P2

(In reply to Mark Banner (:standard8) from comment #4)

This looks like a regression from Megabar, the code in the test is:

  gURLBar.focus();

  let promise = promiseEvent(searchPopup, "popupshown");
  // For some reason sending the mouse event immediately doesn't open the popup.
  SimpleTest.executeSoon(() => {
    EventUtils.synthesizeMouseAtCenter(searchIcon, {});
  });
  await promise;

So we're focussing the megabar and then clicking in the middle of the searchIcon. However, the screenshot shows that the Megabar is now covering the search icon...

I suspect this is only intermittent since there's an animation time when focussing the megabar - sometimes we win the race and click the button before megabar finishes expanding.

I guess bug 1586386 might be fixing this?

Bug 1586232 fixed this by disabling megabar expansion for this test: https://searchfox.org/mozilla-central/rev/7cc0f0e89cb40e43bf5c96906f13d44705401042/browser/components/search/test/browser/browser_searchbar_openpopup.js#63-65

Status: NEW → RESOLVED
Closed: 6 years ago
Depends on: 1586232
Resolution: --- → FIXED
Whiteboard: fixed by bug 1586232
Assignee: nobody → dao+bmo
Target Milestone: --- → Firefox 71
No longer depends on: 1586386
You need to log in before you can comment on or make changes to this bug.