Closed
Bug 1226333
Opened 10 years ago
Closed 10 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•10 years ago
|
||
Bug 1226333 - Add tests for async window flushing. r=billm
| Reporter | ||
Updated•10 years ago
|
Blocks: e10s-tests
| Reporter | ||
Comment 2•10 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•10 years ago
|
||
| Reporter | ||
Comment 4•10 years ago
|
||
| Reporter | ||
Comment 5•10 years ago
|
||
| Reporter | ||
Comment 6•10 years ago
|
||
| Reporter | ||
Comment 7•10 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•10 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•10 years ago
|
||
| Reporter | ||
Comment 10•10 years ago
|
||
| Reporter | ||
Comment 11•10 years ago
|
||
| Reporter | ||
Comment 12•10 years ago
|
||
| Reporter | ||
Comment 13•10 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•10 years ago
|
||
| Reporter | ||
Comment 15•10 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•10 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•10 years ago
|
||
https://hg.mozilla.org/integration/fx-team/rev/1a8e8ab6ee3dacc69e865879a4eb6739904d57b1
Bug 1226333 - Add tests for async window flushing. r=billm.
Comment 19•10 years ago
|
||
| bugherder | ||
Status: NEW → RESOLVED
Closed: 10 years ago
status-firefox45:
--- → fixed
Resolution: --- → FIXED
Target Milestone: --- → Firefox 45
| Reporter | ||
Comment 20•9 years ago
|
||
| bugnotes | ||
You need to log in
before you can comment on or make changes to this bug.
Description
•