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

Changeset 278853 in webkit


Ignore:
Timestamp:
Jun 14, 2021, 5:46:19 PM (5 years ago)
Author:
Patrick Angle
Message:

[REGRESSION: r276616] Uncaught Exception: TypeError: undefined is not an object (evaluating 'this._setupCodeMirror.getValue')
​https://bugs.webkit.org/show_bug.cgi?id=226995

Reviewed by Devin Rousso.

Audit test groups share a single setup editor for all their test cases, leaving individual test cases without
their own setup editor. In this case, we should not attempt to save the setup script for every test, and instead
allow the instance of AuditTestGroupContentView that does have a setup editor to save the script.

  • UserInterface/Views/AuditTestContentView.js:

(WI.AuditTestContentView.prototype.saveEditedData):

Location:
trunk/Source/WebInspectorUI
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WebInspectorUI/ChangeLog

    r278785 r278853  
     12021-06-14  Patrick Angle  <pangle@apple.com>
     2
     3        [REGRESSION: r276616] Uncaught Exception: TypeError: undefined is not an object (evaluating 'this._setupCodeMirror.getValue')
     4        https://bugs.webkit.org/show_bug.cgi?id=226995
     5
     6        Reviewed by Devin Rousso.
     7
     8        Audit test groups share a single setup editor for all their test cases, leaving individual test cases without
     9        their own setup editor. In this case, we should not attempt to save the setup script for every test, and instead
     10        allow the instance of `AuditTestGroupContentView` that does have a setup editor to save the script.
     11
     12        * UserInterface/Views/AuditTestContentView.js:
     13        (WI.AuditTestContentView.prototype.saveEditedData):
     14
    1152021-06-11  Patrick Angle  <pangle@apple.com>
    216
  • trunk/Source/WebInspectorUI/UserInterface/Views/AuditTestContentView.js

    r276616 r278853  
    318318    {
    319319        console.assert(this.representedObject.editable, this.representedObject);
    320         this.representedObject.setup = this._setupCodeMirror.getValue().trim();
     320        if (this._setupCodeMirror)
     321            this.representedObject.setup = this._setupCodeMirror.getValue().trim();
    321322    }
    322323
Note: See TracChangeset for help on using the changeset viewer.