Title: [90819] trunk/Source/WebCore
Revision
90819
Author
[email protected]
Date
2011-07-12 07:53:20 -0700 (Tue, 12 Jul 2011)

Log 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):

Modified Paths

Diff

Modified: trunk/Source/WebCore/ChangeLog (90818 => 90819)


--- trunk/Source/WebCore/ChangeLog	2011-07-12 14:49:33 UTC (rev 90818)
+++ trunk/Source/WebCore/ChangeLog	2011-07-12 14:53:20 UTC (rev 90819)
@@ -1,5 +1,15 @@
 2011-07-12  Pavel Podivilov  <[email protected]>
 
+        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):
+
+2011-07-12  Pavel Podivilov  <[email protected]>
+
         Web Inspector: make TextViewerDelegate methods implementations public in SourceFrame.
         https://bugs.webkit.org/show_bug.cgi?id=64353
 

Modified: trunk/Source/WebCore/inspector/front-end/ResourceView.js (90818 => 90819)


--- trunk/Source/WebCore/inspector/front-end/ResourceView.js	2011-07-12 14:49:33 UTC (rev 90818)
+++ trunk/Source/WebCore/inspector/front-end/ResourceView.js	2011-07-12 14:53:20 UTC (rev 90819)
@@ -142,7 +142,8 @@
     {
         this._clearIncrementalUpdateTimer();
         const majorChange = false;
-        this.resource.setContent(this._viewerState.textModelContent, majorChange);
+        if (this._viewerState)
+            this.resource.setContent(this._viewerState.textModelContent, majorChange);
         WebInspector.SourceFrame.prototype.cancelEditing.call(this);
     },
 
_______________________________________________
webkit-changes mailing list
[email protected]
http://lists.webkit.org/mailman/listinfo.cgi/webkit-changes

Reply via email to