Bug 19117 - Setting storage items named the same as built-in properties has issues
Summary: Setting storage items named the same as built-in properties has issues
Status: NEW
Alias: None
Product: WebKit
Classification: Unclassified
Component: WebCore Misc. (show other bugs)
Version: 528+ (Nightly build)
Hardware: Mac OS X 10.5
: P2 Normal
Assignee: Nobody
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-05-18 16:38 PDT by Brady Eidson
Modified: 2009-05-31 03:01 PDT (History)
2 users (show)

See Also:


Attachments
layout-test-style example that shows the problem for all properties (3.35 KB, text/html)
2008-05-18 16:39 PDT, Brady Eidson
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Brady Eidson 2008-05-18 16:38:47 PDT
While implementing the fix for https://bugs.webkit.org/show_bug.cgi?id=19111 I noticed this.

Setting `sessionStorage.getItem = "someValue";` should fail, for example, even though it's perfectly valid to do `sessionStorage.setItem("getItem", "someValue");`

I'm going to fix this after 19111, and the layout test I have that demonstrates this will be attached shortly.
Comment 1 Brady Eidson 2008-05-18 16:39:21 PDT
Created attachment 21222 [details]
layout-test-style example that shows the problem for all properties
Comment 2 Jeremy Orlow 2009-05-31 03:01:48 PDT
FYI I asked a very similar question on WhatWG (coincidentally) recently: http://lists.whatwg.org/htdig.cgi/whatwg-whatwg.org/2009-May/019915.html