Bug 73125

Summary: StorageEvent.key should not be nullable
Product: WebKit Reporter: Kentaro Hara <haraken>
Component: DOMAssignee: Kentaro Hara <haraken>
Status: RESOLVED FIXED    
Severity: Normal CC: abarth, dominicc, ojan, sam, webkit.review.bot
Priority: P2    
Version: 528+ (Nightly build)   
Hardware: Unspecified   
OS: Unspecified   
Bug Depends on:    
Bug Blocks: 71685    
Attachments:
Description Flags
test cases
none
Patch none

Kentaro Hara
Reported 2011-11-25 05:03:32 PST
Created attachment 116600 [details] test cases Currently, document.createEvent('StorageEvent').key is evaluated as null. However, the spec (http://www.whatwg.org/specs/web-apps/current-work/#storageevent) says that StorageEvent.key is not a nullable type, and thus document.createEvent('StorageEvent').key should be '' (an empty string). I attached test cases. The results of the test cases are as follows: According to the spec: document.createEvent('StorageEvent').key => "" document.createEvent('StorageEvent').oldValue => "null" document.createEvent('StorageEvent').newValue => "null" document.createEvent('StorageEvent').url => "" Chromium 16.0.912.41 beta (WebKit r100218): document.createEvent('StorageEvent').key => "null" document.createEvent('StorageEvent').oldValue => "null" document.createEvent('StorageEvent').newValue => "null" document.createEvent('StorageEvent').url => "" Opera 11.52: document.createEvent('StorageEvent').key => "undefined" document.createEvent('StorageEvent').oldValue => "undefined" document.createEvent('StorageEvent').newValue => "undefined" document.createEvent('StorageEvent').url => "" Firefox 8.0.1: (Not implemented) IE 9.0.8.112: (Not implemented) In this way, all browsers behave differently. Therefore I think that it is reasonable for WebKit to follow the spec.
Attachments
test cases (409 bytes, text/html)
2011-11-25 05:03 PST, Kentaro Hara
no flags
Patch (8.10 KB, patch)
2011-11-25 05:31 PST, Kentaro Hara
no flags
Kentaro Hara
Comment 1 2011-11-25 05:31:59 PST
WebKit Review Bot
Comment 2 2011-11-30 00:08:02 PST
Comment on attachment 116605 [details] Patch Clearing flags on attachment: 116605 Committed r101453: <http://trac.webkit.org/changeset/101453>
WebKit Review Bot
Comment 3 2011-11-30 00:08:07 PST
All reviewed patches have been landed. Closing bug.
Note You need to log in before you can comment on or make changes to this bug.