Closed Bug 1209791 Opened 9 years ago Closed 9 years ago

TEST-UNEXPECTED-FAIL | /builds/slave/test/build/tests/mozmill/content-tabs/test-content-tab.js | test-content-tab.js::test_content_tab_onbeforeunload

Categories

(Thunderbird :: Toolbars and Tabs, defect)

defect
Not set
normal

Tracking

(thunderbird43 unaffected, thunderbird44 fixed, thunderbird45 fixed)

RESOLVED FIXED
Thunderbird 45.0
Tracking Status
thunderbird43 --- unaffected
thunderbird44 --- fixed
thunderbird45 --- fixed

People

(Reporter: aleth, Assigned: aleth)

Details

(Keywords: intermittent-failure, regression)

Attachments

(1 file, 2 obsolete files)

EXCEPTION: Timeout waiting for modal dialog to open
https://dxr.mozilla.org/comm-central/source/mail/test/mozmill/content-tabs/test-content-tab.js#162

Looks like this is caused by bug 636905.
Keywords: regression
Thanks for investigating this. So you suspect the onbeforeunload event is not run, therefore we do not get a dialog (probably containing the event.returnValue text). We could probably interact with the tab to fix the test. But do we need to test this that event? I could not find any use of it in the base code. There is only a comment at http://mxr.mozilla.org/comm-central/source/mail/base/content/tabmail.xml#697.
Component: General → Toolbars and Tabs
OS: Unspecified → All
Hardware: Unspecified → All
Version: unspecified → Trunk
Ask a peer of the code whether the test can be disabled? Otherwise you'd probably fix it like so: https://hg.mozilla.org/mozilla-central/rev/ef432f51a591
Assignee: nobody → aleth
Status: NEW → ASSIGNED
Comment on attachment 8669191 [details] [diff] [review]
TEST-UNEXPECTED-FAIL | /builds/slave/test/build/tests/mozmill/content-tabs/test-content-tab.js | test-content-tab.js::test_content_tab_onbeforeunload

Review of attachment 8669191 [details] [diff] [review]:
-----------------------------------------------------------------

As our code does mention the possibility of running the onbeforeunload event, I am not sure if we have some code that needs to run always, not only if we interacted with the tab. We may need to make this pref global for the app (in defaults.js) unless we audit all potential users of it.
So f+ that this fixes the particular test, but it still needs to be decided if this is the right way to do it.
Attachment #8669191 - Flags: review?(richard.marti)
Attachment #8669191 - Flags: review?(mkmelin+mozilla)
Attachment #8669191 - Flags: review?(acelists)
Attachment #8669191 - Flags: feedback+
Comment on attachment 8669191 [details] [diff] [review]
TEST-UNEXPECTED-FAIL | /builds/slave/test/build/tests/mozmill/content-tabs/test-content-tab.js | test-content-tab.js::test_content_tab_onbeforeunload

I'm far away to be able to review code in tests, so removing me. I've never wrote a test and can't say if something is correct or wrong.

Magnus surely is the correct person to review this.
Attachment #8669191 - Flags: review?(richard.marti)
The question was not about the test but about tabs needing onbeforeunload event always.
Also for this question, I don't know enough to say what this change would imply.
Comment on attachment 8669191 [details] [diff] [review]
TEST-UNEXPECTED-FAIL | /builds/slave/test/build/tests/mozmill/content-tabs/test-content-tab.js | test-content-tab.js::test_content_tab_onbeforeunload

Review of attachment 8669191 [details] [diff] [review]:
-----------------------------------------------------------------

Looks reasonable I think. Please also clearUserPref after the test is done.
Attachment #8669191 - Flags: review?(mkmelin+mozilla) → review+
(In reply to Magnus Melin from comment #8)
> Looks reasonable I think. Please also clearUserPref after the test is done.

That's not needed afaik, each test runs in a fresh environment.
No, in mozmill all tests in a directory run in the same environment. Each test directory starts fresh.
(In reply to :aceman from comment #10)
> No, in mozmill all tests in a directory run in the same environment. Each
> test directory starts fresh.

Thanks! I guess it's only for xpcshell then.
Attachment #8669191 - Attachment is obsolete: true
Attachment #8672254 - Flags: review+
Attachment #8672254 - Attachment is obsolete: true
What is the status of this bug? thunderbird-tree-status says it is checkin-needed, but it doesn't seem so.
Flags: needinfo?(aleth)
https://hg.mozilla.org/comm-central/rev/071eec01aca961c0d603b94c41a89a17645f4af6
Bug 1209791 - TEST-UNEXPECTED-FAIL | /builds/slave/test/build/tests/mozmill/content-tabs/test-content-tab.js | test-content-tab.js::test_content_tab_onbeforeunload. r=mkmelin a=aleth
(In reply to Philipp Kewisch [:Fallen] from comment #14)
> What is the status of this bug? thunderbird-tree-status says it is
> checkin-needed, but it doesn't seem so.

The tree was closed...
Status: ASSIGNED → RESOLVED
Closed: 9 years ago
Flags: needinfo?(aleth)
Resolution: --- → FIXED
Target Milestone: --- → Thunderbird 45.0
Attachment #8672255 - Flags: approval-comm-aurora?
Comment on attachment 8672255 [details] [diff] [review]
TEST-UNEXPECTED-FAIL | /builds/slave/test/build/tests/mozmill/content-tabs/test-content-tab.js | test-content-tab.js::test_content_tab_onbeforeunload

https://hg.mozilla.org/releases/comm-aurora/rev/5e0f8ffa1acb
Attachment #8672255 - Flags: approval-comm-aurora? → approval-comm-aurora+
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: