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

Unified Diff: third_party/WebKit/Source/modules/storage/InspectorDOMStorageAgent.cpp

Issue 1739613002: DevTools: validate protocol input parameters. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebaselined a test. Created 4 years, 10 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
Index: third_party/WebKit/Source/modules/storage/InspectorDOMStorageAgent.cpp
diff --git a/third_party/WebKit/Source/modules/storage/InspectorDOMStorageAgent.cpp b/third_party/WebKit/Source/modules/storage/InspectorDOMStorageAgent.cpp
index 5c6d22da8d0bc85677eac8fd289660a6933c3946..1d8740913f7eb307fa82a7f92b5b1751807bc58c 100644
--- a/third_party/WebKit/Source/modules/storage/InspectorDOMStorageAgent.cpp
+++ b/third_party/WebKit/Source/modules/storage/InspectorDOMStorageAgent.cpp
@@ -193,12 +193,6 @@ void InspectorDOMStorageAgent::didDispatchDOMStorageEvent(const String& key, con
StorageArea* InspectorDOMStorageAgent::findStorageArea(ErrorString* errorString, PassOwnPtr<protocol::DOMStorage::StorageId> storageId, LocalFrame*& targetFrame)
{
- if (!storageId->hasSecurityOrigin() || !storageId->hasIsLocalStorage()) {
- if (errorString)
- *errorString = "Invalid storageId format";
- return nullptr;
- }
-
String securityOrigin = storageId->getSecurityOrigin();
bool isLocalStorage = storageId->getIsLocalStorage();

Powered by Google App Engine
This is Rietveld 408576698