From 2f7f41533bf3059bba55b206282080fc70a3eec8 Mon Sep 17 00:00:00 2001 From: Luca Casonato Date: Tue, 10 May 2022 02:31:35 +0200 Subject: [PATCH] fix(ext/web): brand check in `performance.timeOrigin` (#14550) --- ext/web/15_performance.js | 1 + tools/wpt/expectation.json | 4 +--- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/ext/web/15_performance.js b/ext/web/15_performance.js index 07fa2a01db..d1437c8d7a 100644 --- a/ext/web/15_performance.js +++ b/ext/web/15_performance.js @@ -333,6 +333,7 @@ } get timeOrigin() { + webidl.assertBranded(this, PerformancePrototype); return timeOrigin; } diff --git a/tools/wpt/expectation.json b/tools/wpt/expectation.json index 1c402903e5..6e733792c4 100644 --- a/tools/wpt/expectation.json +++ b/tools/wpt/expectation.json @@ -1178,14 +1178,12 @@ "idlharness.any.html": [ "Performance interface: existence and properties of interface object", "Performance interface: existence and properties of interface prototype object", - "Performance interface: attribute timeOrigin", "Performance interface: default toJSON operation on performance", "Window interface: attribute performance" ], "idlharness.any.worker.html": [ "Performance interface: existence and properties of interface object", "Performance interface: existence and properties of interface prototype object", - "Performance interface: attribute timeOrigin", "Performance interface: default toJSON operation on performance", "WorkerGlobalScope interface: attribute performance", "WorkerGlobalScope interface: self must inherit property \"performance\" with the proper type" @@ -4635,4 +4633,4 @@ "idlharness.https.any.worker.html": true, "idlharness-shadowrealm.window.html": false } -} +} \ No newline at end of file