Closed
Bug 1314959
Opened 7 years ago
Closed 6 years ago
Turn on pref for requestIdleCallback
Categories
(Core :: DOM: Core & HTML, defect)
Tracking
()
RESOLVED
FIXED
mozilla55
Tracking | Status | |
---|---|---|
firefox55 | --- | fixed |
People
(Reporter: farre, Assigned: farre)
References
Details
(Keywords: dev-doc-complete)
Attachments
(1 file)
841 bytes,
patch
|
Details | Diff | Splinter Review |
No description provided.
Assignee | ||
Updated•7 years ago
|
Assignee: nobody → afarre
Updated•6 years ago
|
Keywords: dev-doc-needed
Assignee | ||
Comment 1•6 years ago
|
||
Bug 1315260, Bug 1313989, Bug 1313864 have all been fixed, which was what was stopping us from shipping requestIdleCallback. Bug 1318720 is still remaining, but I'm not sure how important that is to fix that before shipping requestIdleCallback. Any thoughts Ben?
Flags: needinfo?(bkelly)
Attachment #8840463 -
Flags: review?(bugs)
Comment 2•6 years ago
|
||
(In reply to Andreas Farre [:farre] from comment #1) > Bug 1318720 is still remaining, but I'm not sure how important that is to > fix that before shipping requestIdleCallback. This is a compat issue, but we could still probably ship as long as we fix it soonish. IMO anyway.
Flags: needinfo?(bkelly)
Comment 3•6 years ago
|
||
Bug 1318720 feels like reasonable important since it is a spec violation and other browsers don't behave that way (IIRC).
Comment 4•6 years ago
|
||
Is Bug 1318720 somehow hard to implement? In my mind it feels rather simple. One could for example mark requests with some generation and not ever execute requests which has higher generation than the current one.
Comment 5•6 years ago
|
||
Comment on attachment 8840463 [details] [diff] [review] 0001-Bug-1314959-Enable-requestIdleCallback-by-default.-r.patch I think I'd like to see the previous comment answered and Bug 1318720 possibly fixed before reviewing this.
Flags: needinfo?(afarre)
Attachment #8840463 -
Flags: review?(bugs)
Assignee | ||
Comment 6•6 years ago
|
||
(In reply to Olli Pettay [:smaug] (pto-ish for couple of days) from comment #4) > Is Bug 1318720 somehow hard to implement? In my mind it feels rather simple. > One could for example mark requests with some generation and not ever > execute requests which has higher generation than the current one. I'm going to set a "chaining limit", based on the id generator in nsGlobalWindow, in the executor and only allow requests with lower id to be executed. And whenever execution/idle dispatch stops due to that I'll set a timeout handler to the deadline of the last idle period to start dispatching again. So no, not that hard.
Flags: needinfo?(afarre)
Comment 7•6 years ago
|
||
Seems like we'll block on bug 1318720 here so setting dependency.
Depends on: 1318720
Pushed by afarre@mozilla.com: https://hg.mozilla.org/integration/mozilla-inbound/rev/3ec06476d730 Enable requestIdleCallback by default. r=smaug
Comment 9•6 years ago
|
||
bugherder |
https://hg.mozilla.org/mozilla-central/rev/3ec06476d730
Status: NEW → RESOLVED
Closed: 6 years ago
status-firefox55:
--- → fixed
Resolution: --- → FIXED
Target Milestone: --- → mozilla55
Assignee | ||
Comment 11•6 years ago
|
||
I would really want to say yes to this, but that means that uplifting bug 1318720 as well. Hmm, I thought that there was more. Ok, that might actually be doable.
Flags: needinfo?(afarre)
Comment 12•6 years ago
|
||
I'll leave it up to you but if we're confident enough to turn this on in 54 I'm happy to hear it.
Flags: needinfo?(afarre)
Assignee | ||
Comment 13•6 years ago
|
||
Decided to not uplift, forgot to clear needinfo.
Flags: needinfo?(afarre)
Comment 14•6 years ago
|
||
The documentation for this API had already been written but it has been updated some and now reflects that the API was enabled by default in Firefox 55. Pages updated: https://developer.mozilla.org/en-US/docs/Web/API/Background_Tasks_API https://developer.mozilla.org/en-US/docs/Web/API/Window/requestIdleCallback https://developer.mozilla.org/en-US/docs/Web/API/Window/cancelIdleCallback https://developer.mozilla.org/en-US/docs/Web/API/IdleDeadline https://developer.mozilla.org/en-US/docs/Web/API/IdleDeadline/didTimeout https://developer.mozilla.org/en-US/docs/Web/API/IdleDeadline/timeRemaining https://developer.mozilla.org/en-US/Firefox/Releases/55
Keywords: dev-doc-needed → dev-doc-complete
Updated•4 years ago
|
Component: DOM → DOM: Core & HTML
You need to log in
before you can comment on or make changes to this bug.
Description
•