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

Changeset 243238 in webkit


Ignore:
Timestamp:
Mar 20, 2019, 2:22:08 PM (7 years ago)
Author:
Joseph Pecoraro
Message:

Web Inspector: Timelines - Export fails for MediaTimelineRecords with originator DOM Node - Cannot serialize cyclic structure
https://bugs.webkit.org/show_bug.cgi?id=196027

Reviewed by Timothy Hatcher.

  • UserInterface/Models/MediaTimelineRecord.js:

(WI.MediaTimelineRecord.prototype.toJSON):
Remove the originator since that is a WI.DOMNode and cannot
be JSON serialized.

Location:
trunk/Source/WebInspectorUI
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WebInspectorUI/ChangeLog

    r243226 r243238  
     12019-03-20  Joseph Pecoraro  <pecoraro@apple.com>
     2
     3        Web Inspector: Timelines - Export fails for MediaTimelineRecords with originator DOM Node - Cannot serialize cyclic structure
     4        https://bugs.webkit.org/show_bug.cgi?id=196027
     5
     6        Reviewed by Timothy Hatcher.
     7
     8        * UserInterface/Models/MediaTimelineRecord.js:
     9        (WI.MediaTimelineRecord.prototype.toJSON):
     10        Remove the originator since that is a WI.DOMNode and cannot
     11        be JSON serialized.
     12
    1132019-03-20  Devin Rousso  <drousso@apple.com>
    214
  • trunk/Source/WebInspectorUI/UserInterface/Models/MediaTimelineRecord.js

    r243024 r243238  
    5050        // FIXME: DOMNode
    5151
     52        // Don't include the DOMEvent's originator.
     53        let domEvent = this._domEvent;
     54        if (domEvent && domEvent.originator) {
     55            domEvent = Object.shallowCopy(domEvent);
     56            domEvent.originator = undefined;
     57        }
     58
    5259        return {
    5360            type: this.type,
    5461            eventType: this._eventType,
    5562            timestamp: this.startTime,
    56             domEvent: this._domEvent,
     63            domEvent,
    5764            isLowPower: this._isLowPower,
    5865        };
Note: See TracChangeset for help on using the changeset viewer.