Title: [131570] trunk/Source/WebCore
Revision
131570
Author
[email protected]
Date
2012-10-17 02:42:26 -0700 (Wed, 17 Oct 2012)

Log Message

Web Inspector: When dirty uiSourceCode is saved to disk from scripts navigator context menu working copy is not committed.
https://bugs.webkit.org/show_bug.cgi?id=99555

Reviewed by Yury Semikhatsky.

Save As context menu handler now commits working copy for dirty UISourceCodes.

* inspector/front-end/HandlerRegistry.js:

Modified Paths

Diff

Modified: trunk/Source/WebCore/ChangeLog (131569 => 131570)


--- trunk/Source/WebCore/ChangeLog	2012-10-17 09:27:41 UTC (rev 131569)
+++ trunk/Source/WebCore/ChangeLog	2012-10-17 09:42:26 UTC (rev 131570)
@@ -1,5 +1,16 @@
 2012-10-17  Vsevolod Vlasov  <[email protected]>
 
+        Web Inspector: When dirty uiSourceCode is saved to disk from scripts navigator context menu working copy is not committed.
+        https://bugs.webkit.org/show_bug.cgi?id=99555
+
+        Reviewed by Yury Semikhatsky.
+
+        Save As context menu handler now commits working copy for dirty UISourceCodes.
+
+        * inspector/front-end/HandlerRegistry.js:
+
+2012-10-17  Vsevolod Vlasov  <[email protected]>
+
         Web Inspector: Stylesheets saved with FileManager are not saved to disk when edited from Elements panel.
         https://bugs.webkit.org/show_bug.cgi?id=99554
 

Modified: trunk/Source/WebCore/inspector/front-end/HandlerRegistry.js (131569 => 131570)


--- trunk/Source/WebCore/inspector/front-end/HandlerRegistry.js	2012-10-17 09:27:41 UTC (rev 131569)
+++ trunk/Source/WebCore/inspector/front-end/HandlerRegistry.js	2012-10-17 09:42:26 UTC (rev 131570)
@@ -141,6 +141,7 @@
                 var uiSourceCode = /** @type {WebInspector.UISourceCode} */ contentProvider;
                 if (uiSourceCode.isDirty()) {
                     doSave(forceSaveAs, uiSourceCode.workingCopy());
+                    uiSourceCode.commitWorkingCopy(function() { });
                     return;
                 }
             }
_______________________________________________
webkit-changes mailing list
[email protected]
http://lists.webkit.org/mailman/listinfo/webkit-changes

Reply via email to