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

Unified Diff: third_party/WebKit/Source/devtools/front_end/sdk/ServiceWorkerManager.js

Issue 2569683003: DevTools: remove deleted registrations from the SW list if a newer version is available. (Closed)
Patch Set: test fixed Created 4 years 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 | « third_party/WebKit/Source/devtools/front_end/resources/ServiceWorkersView.js ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/Source/devtools/front_end/sdk/ServiceWorkerManager.js
diff --git a/third_party/WebKit/Source/devtools/front_end/sdk/ServiceWorkerManager.js b/third_party/WebKit/Source/devtools/front_end/sdk/ServiceWorkerManager.js
index 712f1ea512f7f17713a0d8cc0a5208e6d060818a..6fe0efe49445a809b28625091d7c82630726dd80 100644
--- a/third_party/WebKit/Source/devtools/front_end/sdk/ServiceWorkerManager.js
+++ b/third_party/WebKit/Source/devtools/front_end/sdk/ServiceWorkerManager.js
@@ -509,6 +509,14 @@ SDK.ServiceWorkerRegistration = class {
return this._isRedundant() && (!this.errors.length || this._deleting);
}
+ /**
+ * @return {boolean}
+ */
+ canBeRemoved() {
+ return this.isDeleted || this._deleting;
+ }
+
+
clearErrors() {
this._fingerprint = Symbol('fingerprint');
this.errors = [];
« no previous file with comments | « third_party/WebKit/Source/devtools/front_end/resources/ServiceWorkersView.js ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698