Changeset 90819 in webkit


Ignore:
Timestamp:
Jul 12, 2011 7:53:20 AM (13 years ago)
Author:
podivilov@chromium.org
Message:

Web Inspector: Cancelling an empty edit fails.
https://bugs.webkit.org/show_bug.cgi?id=64351

Reviewed by Pavel Feldman.

  • inspector/front-end/ResourceView.js:

(WebInspector.EditableResourceSourceFrame.prototype.cancelEditing):

Location:
trunk/Source/WebCore
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WebCore/ChangeLog

    r90818 r90819  
     12011-07-12  Pavel Podivilov  <podivilov@chromium.org>
     2
     3        Web Inspector: Cancelling an empty edit fails.
     4        https://bugs.webkit.org/show_bug.cgi?id=64351
     5
     6        Reviewed by Pavel Feldman.
     7
     8        * inspector/front-end/ResourceView.js:
     9        (WebInspector.EditableResourceSourceFrame.prototype.cancelEditing):
     10
    1112011-07-12  Pavel Podivilov  <podivilov@chromium.org>
    212
  • trunk/Source/WebCore/inspector/front-end/ResourceView.js

    r90389 r90819  
    143143        this._clearIncrementalUpdateTimer();
    144144        const majorChange = false;
    145         this.resource.setContent(this._viewerState.textModelContent, majorChange);
     145        if (this._viewerState)
     146            this.resource.setContent(this._viewerState.textModelContent, majorChange);
    146147        WebInspector.SourceFrame.prototype.cancelEditing.call(this);
    147148    },
Note: See TracChangeset for help on using the changeset viewer.