| Index: third_party/WebKit/Source/devtools/front_end/persistence/Persistence.js
|
| diff --git a/third_party/WebKit/Source/devtools/front_end/persistence/Persistence.js b/third_party/WebKit/Source/devtools/front_end/persistence/Persistence.js
|
| index d22a345776ca9a6fa31024670452ecdc51bef5ad..8ecf83d5bcbaa8e205c2249b067f278813c19941 100644
|
| --- a/third_party/WebKit/Source/devtools/front_end/persistence/Persistence.js
|
| +++ b/third_party/WebKit/Source/devtools/front_end/persistence/Persistence.js
|
| @@ -135,6 +135,14 @@ Persistence.Persistence = class extends Common.Object {
|
| if (!binding || binding[Persistence.Persistence._muteWorkingCopy])
|
| return;
|
| var other = binding.network === uiSourceCode ? binding.fileSystem : binding.network;
|
| + if (!uiSourceCode.isDirty()) {
|
| + binding[Persistence.Persistence._muteWorkingCopy] = true;
|
| + other.resetWorkingCopy();
|
| + binding[Persistence.Persistence._muteWorkingCopy] = false;
|
| + this._contentSyncedForTest();
|
| + return;
|
| + }
|
| +
|
| var target = Bindings.NetworkProject.targetForUISourceCode(binding.network);
|
| if (target.isNodeJS()) {
|
| var newContent = uiSourceCode.workingCopy();
|
|
|