New issue
Advanced search Search tips
Note: Color blocks (like or ) mean that a user may not be available. Tooltip shows the reason.

Issue 651797 link

Starred by 3 users

Issue metadata

Status: Fixed
Owner: ----
Closed: Oct 2016
Cc:
Components:
EstimatedDays: ----
NextAction: ----
OS: ----
Pri: 3
Type: Bug



Sign in to add a comment

Performance should have a serializer (toJSON)

Project Member Reported by foolip@chromium.org, Sep 30 2016

Issue description

https://w3c.github.io/hr-time/#the-performance-interface

JSON.stringify(performance) does something useful (?) in Edge and Firefox, but returns '{}' in Chrome and Safari.
 
Cc: igrigo...@chromium.org panicker@chromium.org
Project Member

Comment 3 by bugdroid1@chromium.org, Oct 19 2016

The following revision refers to this bug:
  https://chromium.googlesource.com/chromium/src.git/+/fb6c988e174e59fed729751deabe71fbb470b1a3

commit fb6c988e174e59fed729751deabe71fbb470b1a3
Author: martijn <martijn@martijnc.be>
Date: Wed Oct 19 17:20:38 2016

Add serializers for
 - window.performance
 - window.performance.navigation
 - window.performance.memory

BUG= 651797 

Review-Url: https://chromiumcodereview.appspot.com/2422913002
Cr-Commit-Position: refs/heads/master@{#426231}

[modify] https://crrev.com/fb6c988e174e59fed729751deabe71fbb470b1a3/third_party/WebKit/LayoutTests/fast/dom/Window/window-properties-performance-expected.txt
[modify] https://crrev.com/fb6c988e174e59fed729751deabe71fbb470b1a3/third_party/WebKit/LayoutTests/fast/dom/Window/window-properties-performance.html
[modify] https://crrev.com/fb6c988e174e59fed729751deabe71fbb470b1a3/third_party/WebKit/LayoutTests/virtual/stable/webexposed/global-interface-listing-expected.txt
[modify] https://crrev.com/fb6c988e174e59fed729751deabe71fbb470b1a3/third_party/WebKit/LayoutTests/webexposed/global-interface-listing-expected.txt
[modify] https://crrev.com/fb6c988e174e59fed729751deabe71fbb470b1a3/third_party/WebKit/Source/core/timing/Performance.cpp
[modify] https://crrev.com/fb6c988e174e59fed729751deabe71fbb470b1a3/third_party/WebKit/Source/core/timing/Performance.h
[modify] https://crrev.com/fb6c988e174e59fed729751deabe71fbb470b1a3/third_party/WebKit/Source/core/timing/Performance.idl
[modify] https://crrev.com/fb6c988e174e59fed729751deabe71fbb470b1a3/third_party/WebKit/Source/core/timing/PerformanceNavigation.cpp
[modify] https://crrev.com/fb6c988e174e59fed729751deabe71fbb470b1a3/third_party/WebKit/Source/core/timing/PerformanceNavigation.h
[modify] https://crrev.com/fb6c988e174e59fed729751deabe71fbb470b1a3/third_party/WebKit/Source/core/timing/PerformanceNavigation.idl

Comment 4 by foolip@chromium.org, Oct 19 2016

Cc: mart...@martijnc.be
Status: Fixed (was: Untriaged)
Fixed by martijn@martijnc.be

Sign in to add a comment