WebKit Bugzilla
New
Browse
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
RESOLVED FIXED
49963
V8 binding for DOMTimeStamp should be Number, not Date
https://bugs.webkit.org/show_bug.cgi?id=49963
Summary
V8 binding for DOMTimeStamp should be Number, not Date
John Knottenbelt
Reported
2010-11-23 03:04:41 PST
The W3C DOM Level 3 Core TR currently differs from standard practice in that the TR states that DOMTimeStamp should be bound to a Date object in ECMAScript (
http://www.w3.org/TR/DOM-Level-3-Core/core.html#Core-DOMTimeStamp
). Initially, I had thought that JSC in WebKit needed to change (
https://bugs.webkit.org/show_bug.cgi?id=49589
), but in practice, most existing implementations bind DOMTimeStamp to a Number. This was observed on what-wg before (
http://www.mail-archive.com/whatwg@lists.whatwg.org/msg13626.html
) and an intention was made to change the DOM Core 3 so that DOMTimeStamp be bound to a number for ECMAScript (
http://www.w3.org/TR/DOM-Level-3-Events/#changes-DOMLevel2to3Changes
): "Event.timeStamp is now a Number in the ECMAScript binding; a proposed correction to make the same change in [DOM3 Core] is forthcoming." The action is here:
http://www.w3.org/2008/webapps/track/actions/417
So, the V8 WebKit binding for DOMTimeStamp should be changed from Date to Number.
Attachments
Patch
(4.73 KB, patch)
2010-11-26 06:31 PST
,
John Knottenbelt
no flags
Details
Formatted Diff
Diff
View All
Add attachment
proposed patch, testcase, etc.
John Knottenbelt
Comment 1
2010-11-23 06:48:40 PST
DOMTimeStamp has now moved out to Web IDL - the current development version of DOM Core can be found at
http://dvcs.w3.org/hg/domcore/raw-file/tip/Overview.html
And the development version of Web IDL can be found here:
http://dev.w3.org/2006/webapi/WebIDL/#common-DOMTimeStamp
John Knottenbelt
Comment 2
2010-11-26 06:31:32 PST
Created
attachment 74931
[details]
Patch
WebKit Commit Bot
Comment 3
2010-11-30 06:21:02 PST
The commit-queue encountered the following flaky tests while processing
attachment 74931
[details]
: compositing/iframes/overlapped-nested-iframes.html fast/workers/storage/use-same-database-in-page-and-workers.html Please file bugs against the tests. These tests were authored by
dumi@chromium.org
and
simon.fraser@apple.com
. The commit-queue is continuing to process your patch.
WebKit Commit Bot
Comment 4
2010-11-30 07:11:40 PST
The commit-queue encountered the following flaky tests while processing
attachment 74931
[details]
: inspector/elements-panel-xhtml-structure.xhtml Please file bugs against the tests. These tests were authored by
apavlov@chromium.org
and
pfeldman@chromium.org
. The commit-queue is continuing to process your patch.
WebKit Commit Bot
Comment 5
2010-11-30 07:14:51 PST
Comment on
attachment 74931
[details]
Patch Clearing flags on attachment: 74931 Committed
r72912
: <
http://trac.webkit.org/changeset/72912
>
WebKit Commit Bot
Comment 6
2010-11-30 07:14:56 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.
Top of Page
Format For Printing
XML
Clone This Bug