Index: Source/WebCore/inspector/front-end/HandlerRegistry.js |
=================================================================== |
--- Source/WebCore/inspector/front-end/HandlerRegistry.js (revision 125752) |
+++ Source/WebCore/inspector/front-end/HandlerRegistry.js (working copy) |
@@ -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)); |
} |