[user-timing] Not throw when known names are used as marks in a worker
User timing's mark() was throwing when called with a well-known name
inside a worker. According to the spec and tests, it should only throw
in such a case on the main thread.
This CL aligns our implementation with the spec.
Change-Id: Idb43038105301a41cd7d2c676ca1fc401a684058
Reviewed-on: https://chromium-review.googlesource.com/c/1373830
Reviewed-by: Nicolás Peña Moreno <npm@chromium.org>
Commit-Queue: Yoav Weiss <yoavweiss@chromium.org>
Cr-Original-Commit-Position: refs/heads/master@{#615946}
Cr-Mirrored-From: https://chromium.googlesource.com/chromium/src
Cr-Mirrored-Commit: e70befeb6f52583e03d157f37a7a264c655e50d5
2 files changed