Skip to content

Commit 8b303fa

Browse files
author
Mykola Tryshnivskyy
committed
FIX: [MHA-646] Check local storage command format in WD server
1 parent 327ac91 commit 8b303fa

File tree

2 files changed

+5
-2
lines changed

2 files changed

+5
-2
lines changed

.gitignore

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,3 +20,6 @@ report/*
2020
/WebDriver.target.mk
2121
/WebDriverTest.target.mk
2222
*.log
23+
WD.*
24+
desktop/
25+
flip/

src/chrome/test/webdriver/webdriver_server.cc

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -277,10 +277,10 @@ void InitCallbacks(Dispatcher* dispatcher,
277277
dispatcher->Add<HTML5LocationCommand>("/session/*/location");
278278
dispatcher->Add<LocalStorageCommand>("/session/*/local_storage");
279279
dispatcher->Add<LocalStorageSizeCommand>("/session/*/local_storage/size");
280-
dispatcher->Add<LocalStorageKeyCommand>("/session/*/local_storage/key*");
280+
dispatcher->Add<LocalStorageKeyCommand>("/session/*/local_storage/key/*");
281281
dispatcher->Add<SessionStorageCommand>("/session/*/session_storage");
282282
dispatcher->Add<SessionStorageSizeCommand>("/session/*/session_storage/size");
283-
dispatcher->Add<SessionStorageKeyCommand>("/session/*/session_storage/key*");
283+
dispatcher->Add<SessionStorageKeyCommand>("/session/*/session_storage/key/*");
284284

285285
// Since the /session/* is a wild card that would match the above URIs, this
286286
// line MUST be after all other webdriver command callbacks.

0 commit comments

Comments
 (0)