[Webkit-unassigned] [Bug 137287] New: For a sandboxed Date object: ""+date !== date.toString()

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Tue Sep 30 22:15:03 PDT 2014


           Summary: For a sandboxed Date object: ""+date !==
           Product: WebKit
           Version: 528+ (Nightly build)
          Platform: Unspecified
        OS/Version: Unspecified
            Status: NEW
          Severity: Normal
          Priority: P2
         Component: WebCore JavaScript
        AssignedTo: webkit-unassigned at lists.webkit.org
        ReportedBy: will at thimbleby.net

Created an attachment (id=238997)
 --> (https://bugs.webkit.org/attachment.cgi?id=238997&action=review)
Sandboxed date string conversion test case.

Given a sandboxing iFrame, after creating a Date object from the sandbox, calling date.toString() gives a different result to calling ""+date.

The automatic conversion of the date to a string when appended to a string is wrong:
""+date === 1412140297227

See attachment with test case.

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