Closed
Bug 1418183
Opened 7 years ago
Closed 7 years ago
Wait for the next event tick before resolving Promise for history event in browser/components/sessionstore/test/browser_async_remove_tab.js
Categories
(Firefox :: General, defect)
Firefox
General
Tracking
()
RESOLVED
FIXED
Firefox 59
Tracking | Status | |
---|---|---|
firefox59 | --- | fixed |
People
(Reporter: arai, Assigned: arai)
References
Details
Attachments
(1 file)
https://treeherder.mozilla.org/#/jobs?repo=try&revision=a256f95712e8844d888ec18891822e949bc85c6d&selectedJob=143961950
> FAIL | browser/components/sessionstore/test/browser_async_remove_tab.js | Found an unexpected tab at the end of test run: jar:file:///builds/worker/workspace/build/application/firefox/browser/omni.ja!/chrome/browser/content/browser/aboutRobots.xhtml
It waits for OnHistoryReplaceEntry, and removes the tab, but when the OnHistoryReplaceEntry is called, the tab is not ready for removing, and promiseRemoveTab(tab) doesn't remove the tab. that results in leaving the tab opened.
the test should wait for the tab to get ready before resolving promise in OnHistoryReplaceEntry.
Assignee | ||
Comment 1•7 years ago
|
||
similar to other promise related tests, this also needs to wait for the next event tick.
Attachment #8929346 -
Flags: review?(dtownsend)
Comment 2•7 years ago
|
||
(In reply to Tooru Fujisawa [:arai] from comment #0)
> https://treeherder.mozilla.org/#/
> jobs?repo=try&revision=a256f95712e8844d888ec18891822e949bc85c6d&selectedJob=1
> 43961950
> > FAIL | browser/components/sessionstore/test/browser_async_remove_tab.js | Found an unexpected tab at the end of test run: jar:file:///builds/worker/workspace/build/application/firefox/browser/omni.ja!/chrome/browser/content/browser/aboutRobots.xhtml
>
> It waits for OnHistoryReplaceEntry, and removes the tab, but when the
> OnHistoryReplaceEntry is called, the tab is not ready for removing, and
> promiseRemoveTab(tab) doesn't remove the tab. that results in leaving the
> tab opened.
>
> the test should wait for the tab to get ready before resolving promise in
> OnHistoryReplaceEntry.
What about the tab isn't ready?
Comment 3•7 years ago
|
||
Comment on attachment 8929346 [details] [diff] [review]
Wait for the next event tick before resolving Promise for history event in browser/components/sessionstore/test/browser_async_remove_tab.js
Review of attachment 8929346 [details] [diff] [review]:
-----------------------------------------------------------------
Let's see how this does in automation.
Attachment #8929346 -
Flags: review?(dtownsend) → review+
Assignee | ||
Comment 4•7 years ago
|
||
https://hg.mozilla.org/integration/mozilla-inbound/rev/280e6695b89da9da70db5ecc0d97aac064306d2f
Bug 1418183 - Wait for the next event tick before resolving Promise for history event in browser/components/sessionstore/test/browser_async_remove_tab.js r=mossop
Comment 5•7 years ago
|
||
bugherder |
Status: ASSIGNED → RESOLVED
Closed: 7 years ago
status-firefox59:
--- → fixed
Resolution: --- → FIXED
Target Milestone: --- → Firefox 59
You need to log in
before you can comment on or make changes to this bug.
Description
•