⚠ Archived content — this site is no longer maintained.   Current WebKit documentation is at docs.webkit.org.

Changeset 267464 in webkit


Ignore:
Timestamp:
Sep 22, 2020, 9:47:42 PM (6 years ago)
Author:
commit-queue@webkit.org
Message:

Web Inspector: Change InspectorAnimationAgent->startTracking to not error on repeated calls
https://bugs.webkit.org/show_bug.cgi?id=216385

Patch by Patrick Angle <Patrick Angle> on 2020-09-22
Reviewed by Devin Rousso.

InpsectorAnimationAgent now mirrors the behavior of other timeline agents by no longer returning an error on a
repeated invocation of startTracking.

  • inspector/agents/InspectorAnimationAgent.cpp:

(WebCore::InspectorAnimationAgent::startTracking):

Location:
trunk/Source/WebCore
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WebCore/ChangeLog

    r267463 r267464  
     12020-09-22  Patrick Angle  <pangle@apple.com>
     2
     3        Web Inspector: Change `InspectorAnimationAgent->startTracking` to not error on repeated calls
     4        https://bugs.webkit.org/show_bug.cgi?id=216385
     5
     6        Reviewed by Devin Rousso.
     7
     8        InpsectorAnimationAgent now mirrors the behavior of other timeline agents by no longer returning an error on a
     9        repeated invocation of `startTracking`.
     10
     11        * inspector/agents/InspectorAnimationAgent.cpp:
     12        (WebCore::InspectorAnimationAgent::startTracking):
     13
    1142020-09-22  Antti Koivisto  <antti@apple.com>
    215
  • trunk/Source/WebCore/inspector/agents/InspectorAnimationAgent.cpp

    r266885 r267464  
    341341{
    342342    if (m_instrumentingAgents.trackingAnimationAgent() == this)
    343         return makeUnexpected("Animation domain already tracking"_s);
     343        return { };
    344344
    345345    m_instrumentingAgents.setTrackingAnimationAgent(this);
Note: See TracChangeset for help on using the changeset viewer.