Closed Bug 876268 Opened 12 years ago Closed 12 years ago

Permanent orange: TEST-UNEXPECTED-FAIL | c:\talos-slave\test\build\mozmill\tabmail\test-tabmail-customize.js | test-tabmail-customize.js::teardownModule

Categories

(Thunderbird :: Toolbars and Tabs, defect)

defect
Not set
normal

Tracking

(Not tracked)

RESOLVED FIXED
Thunderbird 24.0

People

(Reporter: tessarakt, Assigned: aceman)

References

Details

(Keywords: intermittent-failure)

Attachments

(1 file, 1 obsolete file)

TEST-UNEXPECTED-FAIL | /home/cltbld/talos-slave/test/build/mozmill/tabmail/test-tabmail-customize.js | test-tabmail-customize.js::teardownModule SUMMARY-UNEXPECTED-FAIL | test-tabmail-customize.js | test-tabmail-customize.js::teardownModule EXCEPTION: window is not defined at: EventUtils.js line 228 synthesizeMouse EventUtils.js 228 MozMillController.prototype.mouseEvent controller.js 515 MozMillController.prototype.click controller.js 531 wrapperFunc test-window-helpers.js 1017 CustomizeDialogHelper_restoreDefaultButtons test-customization-helpers.js 101 teardownModule test-tabmail-customize.js 32 teardownModule test-folder-display-helpers.js 326 Runner.prototype.wrapper frame.js 577 Runner.prototype._runTestModule frame.js 674 Runner.prototype.runTestModule frame.js 698 Runner.prototype.runTestDirectory frame.js 522 runTestDirectory frame.js 704 Bridge.prototype._execFunction server.js 179 Bridge.prototype.execFunction server.js 183
http://mxr.mozilla.org/comm-central/source/mail/test/resources/mozmill/mozmill/extension/resource/stdlib/EventUtils.js#225 When !aWindow holds, synthesizeMouse tries to take the global variable window instead. But this is not defined. Is there any way this can work? Who is supposed to put it in EventUtils.js's scope? Do script loaded with Cu.import have access to a caller's scope?! The call is from a function in controller.js: http://mxr.mozilla.org/comm-central/source/mail/test/resources/mozmill/mozmill/extension/resource/modules/controller.js#514 Apparently element.ownerDocument.defaultView is null in those cases. So we have two different problems here: 1. synthesizeMouse relying on a window property of the global object. 2. MozMillController.prototype.mouseEvent passing a null value. See also https://bugzilla.mozilla.org/show_bug.cgi?id=876089#c23
(In reply to Jens Müller from comment #1) > So we have two different problems here: > 1. synthesizeMouse relying on a window property of the global object. > 2. MozMillController.prototype.mouseEvent passing a null value. And of course: 3. Why is element.ownerDocument.defaultView null at that point? Is that something we can safely ignore?
Interesting: http://mxr.mozilla.org/comm-central/source/mail/test/resources/mozmill/patches/eventUtils.patch Apparently, this was turned into a module (or is turned into a module by this patch), and at that point someone noticed that the window has to be passed in. Btw, this patch is used here: http://mxr.mozilla.org/comm-central/source/mail/test/resources/mozmill/scripts/sync_dependencies.py#49 . I don't really understand what it is used for ...
(In reply to Jens Müller from comment #3) > I don't really understand what it is used > for ... I do now - semi-automatic update from the latest upstream version.
The test fails permanently on Linux and Windows (but not OS X) since May 22, commit 72bf76257a34. But it is more probably that something changed in mozilla-central at that time (between Wed May 22 13:22:06 2013 PDT and Wed May 22 06:55:09 2013 PDT) as seen at https://tbpl.mozilla.org/?tree=Thunderbird-Trunk.
Status: UNCONFIRMED → NEW
Ever confirmed: true
The actual failure is a few lines above the window one: Test Failure: a != b: 'wrapper-menubar-items,wrapper-spring13693112290111' != 'menubar-items,spring'. TEST-UNEXPECTED-FAIL | c:\talos-slave\test\build\mozmill\tabmail\test-tabmail-customize.js | test-tabmail-customize.js::test_redirects_toolbarbutton_drops TEST-START | c:\talos-slave\test\build\mozmill\tabmail\test-tabmail-customize.js | teardownModule Step Pass: {"function": "controller.click()"} Test Failure: window is not defined Using a link like this also helps: http://clicky.visophyte.org/tools/arbpl-mozmill-standalone/?log=http://ftp.mozilla.org/pub/mozilla.org/thunderbird/nightly/2013/05/2013-05-23-03-09-40-comm-central/comm-central_win7_test-mozmill-bm72-tests1-windows-build20.txt.gz (this test is right at the bottom though!) A slightly narrower regression range, is that it was something in mozilla-central, is most likely in this range: http://hg.mozilla.org/mozilla-central/pushloghtml?fromchange=6066b9d92032&tochange=00b264c7cced (obtained via looking at the nightly build results, and a bit of luck with the Win64 builder still having info there).
Maybe Mike can help us here. The line that is failing now is: http://hg.mozilla.org/comm-central/annotate/b63bf044ddcc/mail/test/mozmill/shared-modules/test-customization-helpers.js#l107 and it looks like there's be a "wrapper-" prefix to all the elements, which this code has: http://hg.mozilla.org/comm-central/annotate/b63bf044ddcc/mail/test/mozmill/tabmail/test-tabmail-customize.js#l95 but its strange we seem to require this elsewhere now?
Flags: needinfo?(mconley)
A "wrapper-" prefix is added to toolbar elements when they are in the customize dialog. But I haven't yet checked if that is what happens here.
Correct - when we enter customize mode, all toolbar items and buttons are wrapped in toolbarpaletteitem nodes and those nodes are given the ID wrapper-[original item ID]. So if you're still seeing those wrapper nodes, it means that we've not yet properly exited customization mode by the time we do the element ID comparison.
Flags: needinfo?(mconley)
Attached patch patch (obsolete) — Splinter Review
This fixes it for me. Must be applied on top of patch in bug 871266 (so that the customize dialog has a windowType). Tessarakt, can you confirm the fix?
Assignee: nobody → acelists
Status: NEW → ASSIGNED
Attachment #757177 - Flags: review?(mconley)
Attachment #757177 - Flags: feedback?(blog)
Attached patch patch v2Splinter Review
OK, this new version also fixes all the other customize failures seen on https://tbpl.mozilla.org/?tree=Thunderbird-Trunk : TEST-UNEXPECTED-FAIL | C:\talos-slave\test\build\mozmill\message-header\test-header-toolbar.js | test-header-toolbar.js::test_customize_header_toolbar_check_default TEST-UNEXPECTED-FAIL | C:\talos-slave\test\build\mozmill\message-header\test-header-toolbar.js | test-header-toolbar.js::test_customize_header_toolbar_reorder_buttons TEST-UNEXPECTED-FAIL | C:\talos-slave\test\build\mozmill\message-header\test-header-toolbar.js | test-header-toolbar.js::test_customize_header_toolbar_separate_window TEST-UNEXPECTED-FAIL | C:\talos-slave\test\build\mozmill\message-header\test-header-toolbar.js | test-header-toolbar.js::test_customize_header_toolbar_remove_buttons TEST-UNEXPECTED-FAIL | C:\talos-slave\test\build\mozmill\message-header\test-header-toolbar.js | test-header-toolbar.js::test_customize_header_toolbar_dialog_style TEST-UNEXPECTED-FAIL | C:\talos-slave\test\build\mozmill\message-header\test-header-toolbar.js | test-header-toolbar.js::test_customize_header_toolbar_change_button_style
Attachment #757177 - Attachment is obsolete: true
Attachment #757177 - Flags: review?(mconley)
Attachment #757177 - Flags: feedback?(blog)
Attachment #757181 - Flags: review?(mconley)
Attachment #757181 - Flags: feedback?(blog)
Depends on: 871266
Attachment #757181 - Flags: review?(mbanner)
Comment on attachment 757181 [details] [diff] [review] patch v2 Review of attachment 757181 [details] [diff] [review]: ----------------------------------------------------------------- Looks fine to me, and try server looks better as well.
Attachment #757181 - Flags: review?(mconley)
Attachment #757181 - Flags: review?(mbanner)
Attachment #757181 - Flags: review+
Attachment #757181 - Flags: feedback?(blog)
Flags: in-testsuite+
Target Milestone: --- → Thunderbird 24.0
Status: ASSIGNED → RESOLVED
Closed: 12 years ago
Resolution: --- → FIXED
I think this may have actually created a new orange on Mac: TEST-START | /Users/cltbld/talos-slave/test/build/mozmill/folder-widget/test-message-filters.js | test_customize_toolbar_doesnt_double_get_mail_menu Step Pass: {"function": "controller.click()"} Test Failure: Timeout waiting for popup to open TEST-UNEXPECTED-FAIL | /Users/cltbld/talos-slave/test/build/mozmill/folder-widget/test-message-filters.js | test-message-filters.js::test_customize_toolbar_doesnt_double_get_mail_menu SUMMARY-UNEXPECTED-FAIL | test-message-filters.js | test-message-filters.js::test_customize_toolbar_doesnt_double_get_mail_menu EXCEPTION: Timeout waiting for popup to open at: utils.js line 447 TimeoutError utils.js 447 waitFor utils.js 485 wait_for_popup_to_open test-folder-display-helpers.js 1361 check_getAllNewMsgMenu test-message-filters.js 107 test_customize_toolbar_doesnt_double_get_mail_menu test-message-filters.js 120 Runner.prototype.wrapper frame.js 582 Runner.prototype._runTestModule frame.js 652 Runner.prototype.runTestModule frame.js 698 Runner.prototype.runTestDirectory frame.js 522 runTestDirectory frame.js 704 Bridge.prototype._execFunction server.js 179 Bridge.prototype.execFunction server.js 183
I think it was caused by the patch in bug 871266. Please wait a bit with the backout.
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: