Closed Bug 1385238 Opened 7 years ago Closed 7 years ago

Need to update execution budget when background state changes

Categories

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

enhancement
Not set
normal

Tracking

()

RESOLVED FIXED
mozilla56
Tracking Status
firefox56 --- fixed

People

(Reporter: farre, Assigned: farre)

References

Details

Attachments

(1 file, 2 obsolete files)

No description provided.
Assignee: nobody → afarre
Blocks: 1377766
Don't really know what happened here, this is really important for budgeting throttling to work correctly.
Attachment #8891309 - Flags: review?(bkelly)
Attachment #8891309 - Attachment is obsolete: true
Attachment #8891309 - Flags: review?(bkelly)
Attachment #8891314 - Flags: review?(bkelly)
Comment on attachment 8891314 [details] [diff] [review] 0001-Bug-1385238-Reset-execution-budget-when-background-s.patch Review of attachment 8891314 [details] [diff] [review]: ----------------------------------------------------------------- r=me with comments addressed. ::: dom/base/TimeoutManager.cpp @@ +1156,5 @@ > MOZ_ALWAYS_SUCCEEDS(MaybeSchedule(nextTimeout->When())); > } > } > + > + mExecutionBudget = GetMaxBudget(mWindow.IsBackgroundInternal()); Please move this to the top of the method. Otherwise it won't be in effect when we call MaybeSchedule() when a window moves to the foreground.
Attachment #8891314 - Flags: review?(bkelly) → review+
r+ carrying over from previous.
Attachment #8891314 - Attachment is obsolete: true
Attachment #8891414 - Flags: review+
Keywords: checkin-needed
Pushed by ryanvm@gmail.com: https://hg.mozilla.org/integration/mozilla-inbound/rev/270ed5e9ce20 Reset execution budget when background state changes. r=bkelly
Keywords: checkin-needed
Status: NEW → RESOLVED
Closed: 7 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla56
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: