Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code | Sign in
(10987)

Issue 4833042: Fixes to the wire protocol of get local and session storage item

Can't Edit
Can't Publish+Mail
Start Review
Created:
12 years, 9 months ago by Nayeem
Modified:
12 years, 8 months ago
Reviewers:
Eran, berrada, shs
CC:
webdriver-eng_google.com, simonstewart
Base URL:
http://selenium.googlecode.com/svn/trunk/
Visibility:
Public.

Patch Set 1 #

Patch Set 2 : Modifying the url #

Total comments: 2

Patch Set 3 : Reviewers' comment addressed #

Patch Set 4 : Removed the previous comments. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+27 lines, -24 lines) Patch
M java/client/src/org/openqa/selenium/remote/HttpCommandExecutor.java View 1 2 3 3 chunks +12 lines, -10 lines 0 comments Download
M java/server/src/org/openqa/selenium/remote/server/DriverServlet.java View 1 2 3 2 chunks +15 lines, -14 lines 0 comments Download

Messages

Total messages: 17
Nayeem
12 years, 9 months ago (2011-07-28 20:50:05 UTC) #1
Eran
I'm not really sure why this change is needed - and from the comments in ...
12 years, 9 months ago (2011-07-29 13:52:08 UTC) #2
berrada
The get and delete mapper operate separately and iPhone supports WebStorage using the same wire ...
12 years, 9 months ago (2011-07-29 16:48:45 UTC) #3
Nayeem
12 years, 9 months ago (2011-07-29 21:33:03 UTC) #4
Nayeem
On 2011/07/29 21:33:03, Nayeem wrote: The problem was not actually with get/remove issue. There was ...
12 years, 9 months ago (2011-07-29 21:44:10 UTC) #5
berrada
LGTM So the problem was that session_storage/:key was overriding session_storage/size on the client side. Thanks ...
12 years, 9 months ago (2011-07-29 21:44:34 UTC) #6
Eran
Please make the changes in wire.py, run it to re-generate the wiki page and update ...
12 years, 9 months ago (2011-08-01 11:53:54 UTC) #7
Nayeem
Done. wire.py does not currently have the documentation on the protocols of HTML5. I will ...
12 years, 9 months ago (2011-08-02 17:46:06 UTC) #8
Nayeem
12 years, 9 months ago (2011-08-02 17:52:47 UTC) #9
Eran
Hi, I've had a chat with Simon about this, he proposed an even simpler scheme: ...
12 years, 9 months ago (2011-08-04 13:52:02 UTC) #10
Nayeem
Hi, /session/:sessionId/local_**storage is currently used to get all keys of the localStorage, so it will ...
12 years, 9 months ago (2011-08-04 15:49:20 UTC) #11
shs_google.com
You know that we get to define what gets returned, right? :) In a RESTish ...
12 years, 9 months ago (2011-08-04 15:55:58 UTC) #12
Nayeem
Hi, I understand now. We can follow this approach to define this data structure. But ...
12 years, 8 months ago (2011-08-07 21:26:06 UTC) #13
Eran
Touching the wire protocol is rarely simple :) I understand the pain, however, we're getting ...
12 years, 8 months ago (2011-08-08 17:05:53 UTC) #14
berrada
I'm not convinced this is the right approach either. The solution proposed is instead of ...
12 years, 8 months ago (2011-08-08 21:36:09 UTC) #15
berrada
*Ping* Simon, as I explained to Eran earlier, I'm not convinced this is the right ...
12 years, 8 months ago (2011-08-10 18:59:11 UTC) #16
berrada
12 years, 8 months ago (2011-08-10 18:59:18 UTC) #17
*Ping*

Simon, as I explained to Eran earlier, I'm not convinced this is the right
approach because every request to getKeys() and getSize() will do more work than
actually required. Injecting JS in a browser is more expensive than adding a
wire command. 

FYI, Nayeem is leaving on Friday so it'd great if he could get his code in
before.


On 2011/08/08 21:36:09, berrada wrote:
> I'm not convinced this is the right approach either. The solution proposed is
> instead of adding another wire command, combine the two commands to get the
size
> and get the keys into one wire. But this will result into slower performance
for
> drivers because the cost associated to executing JS is higher than the cost to
> adding a wire command.
> 
> Let's chat after tomorrow's team meeting.
> 
> On 2011/08/08 17:05:53, Eran wrote:
> > Touching the wire protocol is rarely simple :)
> > I understand the pain, however, we're getting towards making WebDriver a
> > standard and the wire protocol is an essential part of this standard, so
it's
> > important we get it right.
> > I'll be happy to quickly review these changes to the wire protocol
separately,
> > as to not block other changes.
Sign in to reply to this message.

Powered by Google App Engine
RSS Feeds Recent Issues | This issue
This is Rietveld f62528b