Changeset 222171 in webkit


Ignore:
Timestamp:
Sep 18, 2017 11:56:39 AM (7 years ago)
Author:
webkit@devinrousso.com
Message:

Web Inspector: REGRESSION(r221901): Single frame recordings don't reset the recording navigation item
https://bugs.webkit.org/show_bug.cgi?id=176893

Reviewed by Matt Baker.

  • UserInterface/Controllers/CanvasManager.js:

(WI.CanvasManager.prototype.recordingFinished):
Set the _recordingCanvas to null whenever a recording has finished and been sent to the
frontend. It is also necessary to do this inside stopRecording, as it is possible for the
user to start and stop a recording before any actions are recorded, meaning that no
recording would be sent to the frontend and this function will never get called.

Location:
trunk/Source/WebInspectorUI
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WebInspectorUI/ChangeLog

    r222137 r222171  
     12017-09-18  Devin Rousso  <webkit@devinrousso.com>
     2
     3        Web Inspector: REGRESSION(r221901): Single frame recordings don't reset the recording navigation item
     4        https://bugs.webkit.org/show_bug.cgi?id=176893
     5
     6        Reviewed by Matt Baker.
     7
     8        * UserInterface/Controllers/CanvasManager.js:
     9        (WI.CanvasManager.prototype.recordingFinished):
     10        Set the `_recordingCanvas` to null whenever a recording has finished and been sent to the
     11        frontend. It is also necessary to do this inside `stopRecording`, as it is possible for the
     12        user to start and stop a recording before any actions are recorded, meaning that no
     13        recording would be sent to the frontend and this function will never get called.
     14
    1152017-09-17  Nikita Vasilyev  <nvasilyev@apple.com>
    216
  • trunk/Source/WebInspectorUI/UserInterface/Controllers/CanvasManager.js

    r221901 r222171  
    149149        // Called from WI.CanvasObserver.
    150150
     151        this._recordingCanvas = null;
     152
    151153        let canvas = this._canvasIdentifierMap.get(canvasIdentifier);
    152154        console.assert(canvas);
Note: See TracChangeset for help on using the changeset viewer.