W3C home > Mailing lists > Public > whatwg@whatwg.org > February 2015

[whatwg] Event loop processing model, and current time

From: Simon Fraser <smfr@me.com>
Date: Mon, 23 Feb 2015 16:57:46 -0800
Message-id: <8889EF69-B4AC-4E61-A72B-BFDB51DBD453@me.com>
To: whatwg <whatwg@whatwg.org>
https://html.spec.whatwg.org/multipage/webappapis.html#processing-model-9 says:

1. Let now be the value that would be returned by the Performance object's now() method
2. Let docs be the list of Document objects associated with the event loop in question…
4. For each fully active Document in docs, run the resize steps for that Document, passing in now as the timestamp

This makes no sense, as performance.now() is per-document (it’s relative to the document start time), so passing the same value to all documents in the browsing context is bogus.

What may be intended is to “freeze” the performance.now() time in all documents before processing those documents, but give each document its own performance.now() time.

Received on Tuesday, 24 February 2015 00:59:46 UTC

This archive was generated by hypermail 2.4.0 : Wednesday, 22 January 2020 17:00:27 UTC