Closed
Bug 1226333
Opened 9 years ago
Closed 9 years ago
Add tests for async window flushing
Categories
(Firefox :: Session Restore, defect)
Firefox
Session Restore
Tracking
()
RESOLVED
FIXED
Firefox 45
Tracking | Status | |
---|---|---|
firefox45 | --- | fixed |
People
(Reporter: mconley, Unassigned)
References
(Blocks 2 open bugs)
Details
Attachments
(2 files)
Bug 1171708 gave us asynchronous window flushing for window close. Some tests were written, but those tests failed intermittently. We should figure out why the tests fail intermittently and reland them.
Reporter | ||
Comment 1•9 years ago
|
||
Bug 1226333 - Add tests for async window flushing. r=billm
Reporter | ||
Updated•9 years ago
|
Blocks: e10s-tests
Reporter | ||
Comment 2•9 years ago
|
||
Comment on attachment 8689689 [details] MozReview Request: Bug 1226333 - Add tests for async window flushing. r=billm. Review request updated; see interdiff: https://reviewboard.mozilla.org/r/25689/diff/1-2/
Attachment #8689689 -
Attachment description: MozReview Request: Bug 1226333 - Add tests for async window flushing. r=billm → MozReview Request: Bug 1226333 - Add tests for async window flushing.
Reporter | ||
Comment 3•9 years ago
|
||
https://treeherder.mozilla.org/#/jobs?repo=try&revision=34bcc9ee3db7
Reporter | ||
Comment 4•9 years ago
|
||
https://treeherder.mozilla.org/#/jobs?repo=try&revision=a1e75e6e6f3d
Reporter | ||
Comment 5•9 years ago
|
||
https://treeherder.mozilla.org/#/jobs?repo=try&revision=c67eb506ae0b
Reporter | ||
Comment 6•9 years ago
|
||
https://treeherder.mozilla.org/#/jobs?repo=try&revision=2ae2be89920d
Reporter | ||
Comment 7•9 years ago
|
||
Comment on attachment 8689689 [details] MozReview Request: Bug 1226333 - Add tests for async window flushing. r=billm. Review request updated; see interdiff: https://reviewboard.mozilla.org/r/25689/diff/2-3/
Attachment #8689689 -
Attachment description: MozReview Request: Bug 1226333 - Add tests for async window flushing. → MozReview Request: Bug 1226333 - Add tests for async window flushing. r=billm.
Reporter | ||
Comment 8•9 years ago
|
||
Finally got these to not fail intermittently. The key was to set the state in the parent to send the browser to example.com in test_remove_uninteresting_window (see the interdiff: https://reviewboard.mozilla.org/r/25689/diff/2-3/). billm, you already signed off on this, but it got backed out due to the failures. Now that I've fixed them, still feel okay signing off on this?
Flags: needinfo?(wmccloskey)
Reporter | ||
Comment 9•9 years ago
|
||
https://treeherder.mozilla.org/#/jobs?repo=try&revision=eb83cf3ba517
Reporter | ||
Comment 10•9 years ago
|
||
https://treeherder.mozilla.org/#/jobs?repo=try&revision=33aa7900312f
Reporter | ||
Comment 11•9 years ago
|
||
https://treeherder.mozilla.org/#/jobs?repo=try&revision=0261deb3d8ef
Reporter | ||
Comment 12•9 years ago
|
||
https://treeherder.mozilla.org/#/jobs?repo=try&revision=d5c28d708e2a
Reporter | ||
Comment 13•9 years ago
|
||
Okay, I finally understand what's happening here. My patch adds this pref, browser.sessionstore.debug.no_auto_updates, which tries to side-step potential races by having the parent ignore non-flush, non-final updates from the child. The problem with that is that if a message comes up from the child and is ignored, *the child still thinks it sent it*, so further updates from the child (from a flush, for example) won't include the data that it thinks it had already sent. I believe the solution is to move the browser.sessionstore.debug.no_auto_updates pref from SessionStore.jsm into content-sessionStore.js, where it will just prevent us from setting timeouts (and cancel pending timeouts) on the MessageQueue until re-enabled.
Flags: needinfo?(wmccloskey)
Reporter | ||
Comment 14•9 years ago
|
||
https://treeherder.mozilla.org/#/jobs?repo=try&revision=4a6aab7b8f9d
Reporter | ||
Comment 15•9 years ago
|
||
Comment on attachment 8689689 [details] MozReview Request: Bug 1226333 - Add tests for async window flushing. r=billm. Review request updated; see interdiff: https://reviewboard.mozilla.org/r/25689/diff/3-4/
Attachment #8689689 -
Flags: review?(wmccloskey)
Reporter | ||
Comment 16•9 years ago
|
||
Comment on attachment 8689689 [details] MozReview Request: Bug 1226333 - Add tests for async window flushing. r=billm. Review request updated; see interdiff: https://reviewboard.mozilla.org/r/25689/diff/4-5/
Comment on attachment 8689689 [details] MozReview Request: Bug 1226333 - Add tests for async window flushing. r=billm. https://reviewboard.mozilla.org/r/25689/#review24559 Thanks for tracking this down!
Attachment #8689689 -
Flags: review?(wmccloskey) → review+
Reporter | ||
Comment 18•9 years ago
|
||
https://hg.mozilla.org/integration/fx-team/rev/1a8e8ab6ee3dacc69e865879a4eb6739904d57b1 Bug 1226333 - Add tests for async window flushing. r=billm.
Comment 19•9 years ago
|
||
bugherder |
https://hg.mozilla.org/mozilla-central/rev/1a8e8ab6ee3d
Status: NEW → RESOLVED
Closed: 9 years ago
status-firefox45:
--- → fixed
Resolution: --- → FIXED
Target Milestone: --- → Firefox 45
Reporter | ||
Comment 20•8 years ago
|
||
bugnotes |
http://people.mozilla.org/~mconley2/bugnotes/bug-1226333.html
You need to log in
before you can comment on or make changes to this bug.
Description
•