Closed
Bug 1356786
Opened 8 years ago
Closed 8 years ago
Add waitUntil in browser_webconsole_shows_reqs_in_netmonitor.js
Categories
(DevTools :: Console, defect, P1)
DevTools
Console
Tracking
(firefox52 wontfix, firefox-esr52 wontfix, firefox53 wontfix, firefox54 fixed, firefox55 fixed)
People
(Reporter: rickychien, Assigned: rickychien)
References
Details
(Keywords: intermittent-failure, Whiteboard: [netmonitor])
Attachments
(1 file)
Fix intermittent issue in bug 1307800. Let's add this waitUntil to wait and see whether it fixes the intermittent error in browser_webconsole_shows_reqs_in_netmonitor.js.
Comment hidden (mozreview-request) |
Assignee | ||
Comment 2•8 years ago
|
||
I suspect that intermittent happens since we don't wait for network request arrived and gStore.getState().requests.requests.size hasn't increased to 1. So adding a waitUntil() could fix this issue.
Comment 3•8 years ago
|
||
mozreview-review |
Comment on attachment 8858506 [details]
Bug 1356786 - Add waitUntil in browser_webconsole_shows_reqs_in_netmonitor.js
https://reviewboard.mozilla.org/r/130480/#review133148
::: devtools/client/webconsole/test/browser_webconsole_shows_reqs_in_netmonitor.js:68
(Diff revision 1)
> -
> let { gStore, windowRequire } = monitor.panelWin;
> - let Actions = windowRequire("devtools/client/netmonitor/src/actions/index");
> let { getSortedRequests } = windowRequire("devtools/client/netmonitor/src/selectors/index");
>
> - gStore.dispatch(Actions.batchEnable(false));
> + yield waitUntil(() => gStore.getState().requests.requests.size > 0);
Why do we have to re-enable batch actions to fix the intermittent ?
Attachment #8858506 -
Flags: review?(ntim.bugs) → review+
Assignee | ||
Comment 4•8 years ago
|
||
mozreview-review |
Comment on attachment 8858506 [details]
Bug 1356786 - Add waitUntil in browser_webconsole_shows_reqs_in_netmonitor.js
https://reviewboard.mozilla.org/r/130480/#review133150
::: devtools/client/webconsole/test/browser_webconsole_shows_reqs_in_netmonitor.js:68
(Diff revision 1)
> -
> let { gStore, windowRequire } = monitor.panelWin;
> - let Actions = windowRequire("devtools/client/netmonitor/src/actions/index");
> let { getSortedRequests } = windowRequire("devtools/client/netmonitor/src/selectors/index");
>
> - gStore.dispatch(Actions.batchEnable(false));
> + yield waitUntil(() => gStore.getState().requests.requests.size > 0);
I just think that waitUntil() will wait for network requests so that make this disable batching to becom useless. No matter actions are sync or async, in the end we still need to wait getState().requests.requests.size > 0.
I hope that sounds reasonable to you:)
Pushed by rchien@mozilla.com:
https://hg.mozilla.org/integration/autoland/rev/176e3dc6dc94
Add waitUntil in browser_webconsole_shows_reqs_in_netmonitor.js r=ntim
Comment 6•8 years ago
|
||
bugherder |
Status: ASSIGNED → RESOLVED
Closed: 8 years ago
status-firefox55:
--- → fixed
Resolution: --- → FIXED
Target Milestone: --- → Firefox 55
Updated•8 years ago
|
Iteration: --- → 55.3 - Apr 17
Flags: qe-verify?
Priority: P3 → P1
Whiteboard: [netmonitor]
Comment 7•8 years ago
|
||
No occurrences of bug 1307800 on trunk since 15-April :)
status-firefox52:
--- → wontfix
status-firefox53:
--- → wontfix
status-firefox54:
--- → affected
status-firefox-esr52:
--- → affected
Comment 8•8 years ago
|
||
bugherder uplift |
Flags: in-testsuite+
Updated•8 years ago
|
Flags: qe-verify? → qe-verify-
Updated•8 years ago
|
Updated•7 years ago
|
Product: Firefox → DevTools
You need to log in
before you can comment on or make changes to this bug.
Description
•