W3C home > Mailing lists > Public > public-web-perf@w3.org > January 2015

Re: Clarification of issue in User Timing spec

From: Eli Perelman <eperelman@mozilla.com>
Date: Wed, 28 Jan 2015 11:36:34 -0600
Message-ID: <CABvvSwcatPk1JHy2cPg_439NfTrJCfsKVmJTyiaZvpA6uEe7Jw@mail.gmail.com>
To: public-web-perf <public-web-perf@w3.org>
My mistake, the link to the mentioned bug is correct, but the actual bug
number is 760851.

https://bugzilla.mozilla.org/show_bug.cgi?id=760851

Eli Perelman
Mozilla

On Wed, Jan 28, 2015 at 11:33 AM, Eli Perelman <eperelman@mozilla.com>
wrote:

> In the *Exceptions* section of the User Timing spec for the mark method,
> it states:
>
> "Throws a SYNTAX_ERR exception if the markName argument is the same name
> as an attribute in the PerformanceTiming interface."
>
> In Gecko we implemented bug 1047878 [1] out-of-spec and added `toJSON` to
> the PerformanceTiming interface to get a JSON version of the timing
> attributes. Following this reasoning, then `toJSON` being a
> PerformanceTiming attribute may need to throw a SYNTAX_ERR when used as a
> performance marker name:
>
> performance.mark('toJSON');
>
> So we need some clarification of the spec to determine whether all
> attributes of the PerformanceTiming interface should throw if used as
> marker names, or only those specifically defined by the spec.
>
> Thanks!
>
> [1] https://bugzilla.mozilla.org/show_bug.cgi?id=760851
>
> Eli Perelman
> Mozilla
>
Received on Wednesday, 28 January 2015 17:37:05 UTC

This archive was generated by hypermail 2.3.1 : Wednesday, 28 January 2015 17:37:06 UTC