Closed Bug 1320235 Opened 8 years ago Closed 8 years ago

test timer flood scenario

Categories

(Core :: DOM: Core & HTML, defect)

defect
Not set
normal

Tracking

()

RESOLVED FIXED
mozilla53
Tracking Status
firefox52 --- fixed
firefox53 --- fixed

People

(Reporter: bkelly, Assigned: bkelly)

References

Details

Attachments

(1 file, 1 obsolete file)

We should add a timer flood test in order exercising the improvements from bug 1300659. This code is too fragile and could easily regress in the future without a test running in automation.
This tests that we can load iframes, perform network requests, and requestAnimationFrame() calls during a timer flood. Try build with test on current tree: https://treeherder.mozilla.org/#/jobs?repo=try&revision=09b55c260f590845da700e3ebb3f664f087fe2c2 Try build with test on tree with bug 1300659 effectively backed out. This should show that the test times out or crashes without our timer improvements. https://treeherder.mozilla.org/#/jobs?repo=try&revision=925d3869763b96eeccb35ed9e1b76e5df41185a9
Comment on attachment 8814283 [details] [diff] [review] Test that the browser continues to function during timer floods. r=bz Boris, can you review this test? It basically triggers an exponential timer flood and then tries to do various things: 1. Load some frames 2. Perform some network requests 3. Run some requestAnimationFrame() callbacks The previous try runs show this passes with current tree, but times out without the anti-flood timer patches (that have already landed).
Flags: needinfo?(bzbarsky)
Comment on attachment 8814283 [details] [diff] [review] Test that the browser continues to function during timer floods. r=bz r=me but maybe add a comment about running rAF for 5s in the line that does the 5*60 bit?
Flags: needinfo?(bzbarsky)
Attachment #8814283 - Flags: review+
Added comments. Also, I switched the flood window to be a child iframe. I don't want this test to suddenly work just because separate windows are in a different process, etc. I discussed this with Boris in IRC and he was ok with it. New try: https://treeherder.mozilla.org/#/jobs?repo=try&revision=db8b2cc548ab89eb9976059ab6df38e2b57f38fc Try with timer flood protections removed: https://treeherder.mozilla.org/#/jobs?repo=try&revision=44ec12461b8229db1f620be95ba2e579b9c1c39e
Attachment #8814283 - Attachment is obsolete: true
Attachment #8814962 - Flags: review+
Pushed by bkelly@mozilla.com: https://hg.mozilla.org/integration/mozilla-inbound/rev/9907f708f3fb Test that the browser continues to function during timer floods. r=bz
Status: ASSIGNED → RESOLVED
Closed: 8 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla53
Component: DOM → DOM: Core & HTML
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: