Title: [125753] branches/chromium/1229/Source/WebCore/inspector/front-end/HandlerRegistry.js
Revision
125753
Author
[email protected]
Date
2012-08-16 00:28:43 -0700 (Thu, 16 Aug 2012)

Log Message

Merge 125668 - Web Inspector: [REGRESSION] "save as" of edited source in developer mode fails to update saved file
https://bugs.webkit.org/show_bug.cgi?id=94074

Reviewed by Pavel Feldman.

Added dirty flag check when saving uiSourceCode to save working copy in this case.

* inspector/front-end/HandlerRegistry.js:
(WebInspector.HandlerRegistry.prototype.appendApplicableItems.save):
(WebInspector.HandlerRegistry.prototype.appendApplicableItems):

BUG=141180
[email protected]
Review URL: https://chromiumcodereview.appspot.com/10828339

Modified Paths

Diff

Modified: branches/chromium/1229/Source/WebCore/inspector/front-end/HandlerRegistry.js (125752 => 125753)


--- branches/chromium/1229/Source/WebCore/inspector/front-end/HandlerRegistry.js	2012-08-16 07:18:45 UTC (rev 125752)
+++ branches/chromium/1229/Source/WebCore/inspector/front-end/HandlerRegistry.js	2012-08-16 07:28:43 UTC (rev 125753)
@@ -127,6 +127,13 @@
 
         function save(forceSaveAs)
         {
+            if (contentProvider instanceof WebInspector.UISourceCode) {
+                var uiSourceCode = /** @type {WebInspector.UISourceCode} */ contentProvider;
+                if (uiSourceCode.isDirty()) {
+                    doSave(forceSaveAs, uiSourceCode.workingCopy());
+                    return;
+                }
+            }
             contentProvider.requestContent(doSave.bind(this, forceSaveAs));
         }
 
_______________________________________________
webkit-changes mailing list
[email protected]
http://lists.webkit.org/mailman/listinfo/webkit-changes

Reply via email to