Closed
Bug 1418184
Opened 7 years ago
Closed 7 years ago
Use BrowserTestUtils.waitForEvent in browser/components/sessionstore/test/
Categories
(Firefox :: General, defect, P3)
Firefox
General
Tracking
()
RESOLVED
FIXED
Firefox 59
Tracking | Status | |
---|---|---|
firefox59 | --- | fixed |
People
(Reporter: arai, Assigned: arai)
References
Details
Attachments
(1 file)
(deleted),
patch
|
Felipe
:
review+
|
Details | Diff | Splinter Review |
https://treeherder.mozilla.org/#/jobs?repo=try&revision=dc35b181a4a55c0bd3cca8a19346ff224545a649&selectedJob=143221643
> FAIL | browser/components/sessionstore/test/browser_crashedTabs.js | Should have closed the tab
it's because of the TabClose event is fired and the promise gets resolved before the tab actually gets closed.
it should wait for the tab gets closed.
then, in bug 1416446, I'm going to make BrowserTestUtils.waitForEvent to do so, and the promiseEvent in browser/components/sessionstore/test/head.js can be replaced with it.
Assignee | ||
Comment 1•7 years ago
|
||
I'll ask review after bug 1416446 (since this patch highly depends on the behavior changed there
Assignee | ||
Comment 2•7 years ago
|
||
Comment on attachment 8929708 [details] [diff] [review]
Use BrowserTestUtils.waitForEvent in browser/components/sessionstore/test/.
after bug 1193394, the test needs to wait for the next event tick after each event handler gets called, before proceeding to the remaining part.
because otherwise the remaining part will be executed too early, compared to current behavior, and UI etc is not yet ready.
then, BrowserTestUtils.waitForEvent is going to be modified to do so, in bug 1416153.
so, instead of modifying promiseEvent, I changed those consumers to use BrowserTestUtils.waitForEvent.
Attachment #8929708 -
Flags: review?(felipc)
Assignee | ||
Comment 3•7 years ago
|
||
(In reply to Tooru Fujisawa [:arai] from comment #2)
> then, BrowserTestUtils.waitForEvent is going to be modified to do so, in bug
> 1416153.
> so, instead of modifying promiseEvent, I changed those consumers to use
> BrowserTestUtils.waitForEvent.
sorry, I pointed wrong bug.
it's bug 1416446, not bug 1416153.
Updated•7 years ago
|
Attachment #8929708 -
Flags: review?(felipc) → review+
Updated•7 years ago
|
Priority: -- → P3
Assignee | ||
Comment 5•7 years ago
|
||
sorry, I forgot to update dependency.
it's also blocked by bug 1421113 (the last patch there)
I'll land this once those gets fixed.
Depends on: 1421113
Flags: needinfo?(arai.unmht)
Assignee | ||
Comment 6•7 years ago
|
||
moved the patch to bug 1424074.
Comment 7•7 years ago
|
||
Cool, thanks!
Pushed by arai_a@mac.com:
https://hg.mozilla.org/integration/mozilla-inbound/rev/935dcd1ea40c
Use BrowserTestUtils.waitForEvent in browser/components/sessionstore/test/. r=felipe
Assignee | ||
Comment 9•7 years ago
|
||
https://hg.mozilla.org/integration/mozilla-inbound/rev/935dcd1ea40cb1b32a1bca067a3e8f422fa8fbef
Bug 1418184 - Use BrowserTestUtils.waitForEvent in browser/components/sessionstore/test/. r=felipe
Comment 10•7 years ago
|
||
Backout by dluca@mozilla.com:
https://hg.mozilla.org/integration/mozilla-inbound/rev/847ed3d5357c
Backed out changeset 935dcd1ea40c for failing browser-chrome's browser/base/content/test/permissions/browser_temporary_permissions_expiry.js on Windows 7 debug without e10s r=backout on a CLOSED TREE
Comment 11•7 years ago
|
||
Backed out changeset 56343b0de5c2 (bug 1424083) for failing browser-chrome's browser/base/content/test/permissions/browser_temporary_permissions_expiry.js on Windows 7 debug without e10s r=backout on a CLOSED TREE
Failure push: https://treeherder.mozilla.org/#/jobs?repo=mozilla-inbound&revision=1c819b56fe973b077d64737db186b066850e1197
Failure log: https://hg.mozilla.org/integration/mozilla-inbound/rev/a73f5a62f971efb9afa3b2e70b5d01b447ba3ed3
Backout: https://hg.mozilla.org/integration/mozilla-inbound/rev/847ed3d5357c6120f39c27b9198550c222b4d2b1
Flags: needinfo?(arai.unmht)
Assignee | ||
Updated•7 years ago
|
Flags: needinfo?(arai.unmht)
Assignee | ||
Comment 12•7 years ago
|
||
https://hg.mozilla.org/integration/mozilla-inbound/rev/8d1a1a8c9a420279e3b667bef15ebf863ccf556d
Bug 1418184 - Use BrowserTestUtils.waitForEvent in browser/components/sessionstore/test/. r=felipe
Comment 13•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
•