Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(139)

Unified Diff: Source/WebCore/inspector/front-end/HandlerRegistry.js

Issue 10828339: Merge 125668 - Web Inspector: [REGRESSION] "save as" of edited source in developer mode fails to up… (Closed) Base URL: http://svn.webkit.org/repository/webkit/branches/chromium/1229/
Patch Set: Created 8 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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));
}
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698