Closed
Bug 704171
Opened 13 years ago
Closed 13 years ago
Remove the no-argument form of requestAnimationFrame
Categories
(Core :: DOM: Core & HTML, defect)
Tracking
()
RESOLVED
FIXED
mozilla11
People
(Reporter: bzbarsky, Assigned: bzbarsky)
References
Details
(Keywords: addon-compat, dev-doc-complete)
Attachments
(2 files)
19.54 KB,
patch
|
Gavin
:
review+
roc
:
review+
|
Details | Diff | Splinter Review |
11.92 KB,
patch
|
roc
:
review+
|
Details | Diff | Splinter Review |
It's not going to get specced, and I don't believe it's used much if at all. Once that's done, we can work on canceling animation requests.
Assignee | ||
Comment 1•13 years ago
|
||
https://mxr.mozilla.org/addons/search?string=requestAnimationFrame%28%29 says there are 4 addons using the no-argument form at the moment.... Could we proactively contact those? Looks like in one of the 4 this lives in a test; the other 3 use the same animation manager library.
Assignee | ||
Comment 2•13 years ago
|
||
I guess the other option is to not do this removal and instead just implement the unprefixed version without this capability (to deal with that library specifically), but then we have two different code paths and so forth....
Keywords: addon-compat
Assignee | ||
Updated•13 years ago
|
Keywords: dev-doc-needed
Assignee | ||
Comment 3•13 years ago
|
||
Looks like converting our existing consumers here will be simpler once bug 647518 is fixed.... but fixing that bug is simpler if the code in this bug is gone first. So I'm going to do this first, then add cancelation, then go back and simplify the code here.
Comment 4•13 years ago
|
||
The Add-ons MXR isn't very reliable at the moment, so we should follow the normal validation -> compat bump process. I can request validation to be added for this when it hits the Aurora channel.
Assignee | ||
Comment 5•13 years ago
|
||
Well, if we have something more reliable, can we do that check, please? If there's a significant number of addons affected, I can change the implementation strategy to mitigate the compat impact, possibly, but it would be good to know that now and not in January!
Comment 6•13 years ago
|
||
(In reply to Boris Zbarsky (:bz) from comment #5) > Well, if we have something more reliable We don't. I've been trying to get the Add-ons MXR fixed on bug 663885, but it's taking a long time. > If there's a significant number of addons affected, I can change the > implementation strategy to mitigate the compat impact, possibly. I doubt many add-ons use this function. If there are more than the ones brought up by MXR, they shouldn't be more than a handful. Detecting a function call with no arguments is something we can easily do with our compatibility validation. So, if developers have an alternate way to do what they've been doing thus far, I say go for it.
Assignee | ||
Comment 7•13 years ago
|
||
There will absolutely be an alternate way of doing things, especially once bug 647518 is also fixed.
Assignee | ||
Comment 8•13 years ago
|
||
Attachment #576543 -
Flags: review?(gavin.sharp)
Assignee | ||
Comment 9•13 years ago
|
||
Assignee | ||
Updated•13 years ago
|
Attachment #576543 -
Flags: review?(roc)
Assignee | ||
Updated•13 years ago
|
Attachment #576544 -
Flags: review?(roc)
Assignee | ||
Updated•13 years ago
|
Whiteboard: [need review]
Comment 10•13 years ago
|
||
Comment on attachment 576543 [details] [diff] [review] part 1. Stop using the no-argument form of mozRequestAnimationFrame in our chrome. >diff --git a/layout/base/tests/test_bug607529.html b/layout/base/tests/test_bug607529.html >- var eventsHappening = false; > var callbacksHappening = false; callbacksHappening can also be removed. >diff --git a/toolkit/content/widgets/browser.xml b/toolkit/content/widgets/browser.xml >+ <method name="sample"> Add a "nsIFrameRequestCallback implementation" comment right above this?
Attachment #576543 -
Flags: review?(gavin.sharp) → review+
Attachment #576543 -
Flags: review?(roc) → review+
Attachment #576544 -
Flags: review?(roc) → review+
Assignee | ||
Comment 11•13 years ago
|
||
https://hg.mozilla.org/integration/mozilla-inbound/rev/2db300a6241d https://hg.mozilla.org/integration/mozilla-inbound/rev/0d33f892f63a
Flags: in-testsuite-
Whiteboard: [need review]
Target Milestone: --- → mozilla11
Comment 12•13 years ago
|
||
https://hg.mozilla.org/mozilla-central/rev/2db300a6241d https://hg.mozilla.org/mozilla-central/rev/0d33f892f63a
Status: NEW → RESOLVED
Closed: 13 years ago
Resolution: --- → FIXED
Assignee | ||
Comment 13•13 years ago
|
||
I filed bug 706528 on cleaning up the remaining mozBeforePaint bits we have left.
Comment 14•12 years ago
|
||
Updated docs: https://developer.mozilla.org/en/DOM/window.requestAnimationFrame And mentioned on Firefox 11 for developers.
Keywords: dev-doc-needed → dev-doc-complete
Updated•5 years ago
|
Component: DOM → DOM: Core & HTML
You need to log in
before you can comment on or make changes to this bug.
Description
•