WebKit Bugzilla
New
Browse
Search+
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
RESOLVED FIXED
196458
Remove legacy webkitRequestAnimationFrame time quirk
https://bugs.webkit.org/show_bug.cgi?id=196458
Summary
Remove legacy webkitRequestAnimationFrame time quirk
Simon Fraser (smfr)
Reported
2019-04-01 12:47:33 PDT
We should remove m_useLegacyTimeBase from webkitRequestAnimationFrame() (and eventually remove webkitRequestAnimationFrame altogether).
Attachments
Patch
(5.41 KB, patch)
2019-04-02 12:36 PDT
,
Chris Dumez
no flags
Details
Formatted Diff
Diff
Patch
(5.86 KB, patch)
2019-04-02 12:37 PDT
,
Chris Dumez
no flags
Details
Formatted Diff
Diff
Patch
(5.80 KB, patch)
2019-04-03 09:22 PDT
,
Chris Dumez
no flags
Details
Formatted Diff
Diff
Show Obsolete
(2)
View All
Add attachment
proposed patch, testcase, etc.
Radar WebKit Bug Importer
Comment 1
2019-04-01 12:48:24 PDT
<
rdar://problem/49490207
>
Chris Dumez
Comment 2
2019-04-02 12:36:17 PDT
Created
attachment 366524
[details]
Patch
Chris Dumez
Comment 3
2019-04-02 12:37:26 PDT
Created
attachment 366525
[details]
Patch
Said Abou-Hallawa
Comment 4
2019-04-02 15:51:52 PDT
Comment on
attachment 366525
[details]
Patch View in context:
https://bugs.webkit.org/attachment.cgi?id=366525&action=review
> Source/WebCore/dom/ScriptedAnimationController.cpp:-219 > - if (callback->m_useLegacyTimeBase) > - callback->handleEvent(legacyHighResNowMs); > - else > - callback->handleEvent(highResNowMs);
This change will conflict with my patch in
https://bugs.webkit.org/show_bug.cgi?id=177484
. But this is fine I will resolve the conflict if this patches before mine. Actually this code is confusing and it is good that we are going to remove it.
Simon Fraser (smfr)
Comment 5
2019-04-02 17:41:20 PDT
Comment on
attachment 366525
[details]
Patch View in context:
https://bugs.webkit.org/attachment.cgi?id=366525&action=review
> Source/WebCore/page/DOMWindow.cpp:1707 > + if (auto* document = this->document()) > + document->addConsoleMessage(MessageSource::JS, MessageLevel::Warning, "webkitRequestAnimationFrame() is deprecated and will be removed. Please use requestAnimationFrame() instead."_s);
Maybe this should be logged only once per document per load?
Chris Dumez
Comment 6
2019-04-02 18:23:48 PDT
(In reply to Simon Fraser (smfr) from
comment #5
)
> Comment on
attachment 366525
[details]
> Patch > > View in context: >
https://bugs.webkit.org/attachment.cgi?id=366525&action=review
> > > Source/WebCore/page/DOMWindow.cpp:1707 > > + if (auto* document = this->document()) > > + document->addConsoleMessage(MessageSource::JS, MessageLevel::Warning, "webkitRequestAnimationFrame() is deprecated and will be removed. Please use requestAnimationFrame() instead."_s); > > Maybe this should be logged only once per document per load?
Do we have any precedent for doing this? I thought we usually logged on every call.
Simon Fraser (smfr)
Comment 7
2019-04-02 18:46:57 PDT
(In reply to Chris Dumez from
comment #6
)
> (In reply to Simon Fraser (smfr) from
comment #5
) > > Comment on
attachment 366525
[details]
> > Patch > > > > View in context: > >
https://bugs.webkit.org/attachment.cgi?id=366525&action=review
> > > > > Source/WebCore/page/DOMWindow.cpp:1707 > > > + if (auto* document = this->document()) > > > + document->addConsoleMessage(MessageSource::JS, MessageLevel::Warning, "webkitRequestAnimationFrame() is deprecated and will be removed. Please use requestAnimationFrame() instead."_s); > > > > Maybe this should be logged only once per document per load? > > Do we have any precedent for doing this? I thought we usually logged on > every call.
static bool firstTime = true; if (firstTime && context().scriptExecutionContext()) { context().scriptExecutionContext()->addConsoleMessage(MessageSource::JS, MessageLevel::Warning, "AudioBufferSourceNode 'looping' attribute is deprecated. Use 'loop' instead."_s); firstTime = false; }
Chris Dumez
Comment 8
2019-04-02 18:53:35 PDT
(In reply to Simon Fraser (smfr) from
comment #7
)
> (In reply to Chris Dumez from
comment #6
) > > (In reply to Simon Fraser (smfr) from
comment #5
) > > > Comment on
attachment 366525
[details]
> > > Patch > > > > > > View in context: > > >
https://bugs.webkit.org/attachment.cgi?id=366525&action=review
> > > > > > > Source/WebCore/page/DOMWindow.cpp:1707 > > > > + if (auto* document = this->document()) > > > > + document->addConsoleMessage(MessageSource::JS, MessageLevel::Warning, "webkitRequestAnimationFrame() is deprecated and will be removed. Please use requestAnimationFrame() instead."_s); > > > > > > Maybe this should be logged only once per document per load? > > > > Do we have any precedent for doing this? I thought we usually logged on > > every call. > > static bool firstTime = true; > if (firstTime && context().scriptExecutionContext()) { > > context().scriptExecutionContext()->addConsoleMessage(MessageSource::JS, > MessageLevel::Warning, "AudioBufferSourceNode 'looping' attribute is > deprecated. Use 'loop' instead."_s); > firstTime = false; > }
Ugh, this relies on a static which means it would survive loads and potentially not log when it should.
Chris Dumez
Comment 9
2019-04-03 09:22:26 PDT
Created
attachment 366613
[details]
Patch
WebKit Commit Bot
Comment 10
2019-04-03 10:27:25 PDT
Comment on
attachment 366613
[details]
Patch Clearing flags on attachment: 366613 Committed
r243810
: <
https://trac.webkit.org/changeset/243810
>
WebKit Commit Bot
Comment 11
2019-04-03 10:27:27 PDT
All reviewed patches have been landed. Closing bug.
Note
You need to
log in
before you can comment on or make changes to this bug.
Top of Page
Format For Printing
XML
Clone This Bug