[Webkit-unassigned] [Bug 62316] New: IndexedDB add() should fail if value is Error or Function
bugzilla-daemon at webkit.org
bugzilla-daemon at webkit.org
Wed Jun 8 13:27:07 PDT 2011
https://bugs.webkit.org/show_bug.cgi?id=62316
Summary: IndexedDB add() should fail if value is Error or
Function
Product: WebKit
Version: 528+ (Nightly build)
Platform: Unspecified
OS/Version: Unspecified
Status: UNCONFIRMED
Severity: Normal
Priority: P2
Component: New Bugs
AssignedTo: webkit-unassigned at lists.webkit.org
ReportedBy: pilgrim at chromium.org
Created an attachment (id=96470)
--> (https://bugs.webkit.org/attachment.cgi?id=96470&action=review)
test case
http://dvcs.w3.org/hg/IndexedDB/raw-file/tip/Overview.html#value-construct states "Conforming user agents must support any value supported by the structured clone algorithm [HTML5]." http://www.whatwg.org/specs/web-apps/current-work/#safe-passing-of-structured-data states that objects of type Error or Function, or host objects such as DOM nodes, should throw. To test this, I create an objectstore and attempt to add several records with values of these types (new Error(), new Function(), document.createElement('span'), etc.).
Expected behavior: add() function should throw with each invalid type
Actual behavior: add() function throws on host objects such as DOM nodes, but it unexpectedly allows Error and Function objects as values
Test case attached.
--
Configure bugmail: https://bugs.webkit.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
More information about the webkit-unassigned
mailing list