diff --git a/front_end/resources/DOMStorageModel.js b/front_end/resources/DOMStorageModel.js index 5ae324581e..7c56cf821d 100644 --- a/front_end/resources/DOMStorageModel.js +++ b/front_end/resources/DOMStorageModel.js @@ -151,6 +151,9 @@ export class DOMStorageModel extends SDK.SDKModel.SDKModel { for (const isLocal of [true, false]) { const key = this._storageKey(origin, isLocal); const storage = this._storages[key]; + if (!storage) { + return; + } storage.clear(); } this._removeOrigin(origin);