mirror of
https://repo.dactyloidae.xyz/Dactyloidae/UXP.git
synced 2026-09-06 15:58:39 +09:00
Issue #2053 - Part 4a: Align IsPerformanceTimingAttribute to user-timing spec
Based on https://bugzilla.mozilla.org/show_bug.cgi?id=1772417
This commit is contained in:
parent
3b57ba1415
commit
4fc9cde7c1
5 changed files with 32 additions and 26 deletions
|
|
@ -52,7 +52,8 @@ already_AddRefed<PerformanceMark> PerformanceMark::Constructor(
|
|||
return nullptr;
|
||||
}
|
||||
|
||||
if (performance->IsPerformanceTimingAttribute(aMarkName)) {
|
||||
if (performance->IsGlobalObjectWindow() &&
|
||||
performance->IsPerformanceTimingAttribute(aMarkName)) {
|
||||
aRv.ThrowTypeError<MSG_PMO_INVALID_TIMING_ATTR>();
|
||||
return nullptr;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue