diff options
author | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-04-19 01:13:27 +0000 |
---|---|---|
committer | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-04-19 01:13:27 +0000 |
commit | 40a355a42d4a9444dc753c04c6608dade2f06a23 (patch) | |
tree | 871fc667d2de662f171103ce5ec067014ef85e61 /js/xpconnect/tests/browser/browser_dead_object.js | |
parent | Adding upstream version 124.0.1. (diff) | |
download | firefox-40a355a42d4a9444dc753c04c6608dade2f06a23.tar.xz firefox-40a355a42d4a9444dc753c04c6608dade2f06a23.zip |
Adding upstream version 125.0.1.upstream/125.0.1
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'js/xpconnect/tests/browser/browser_dead_object.js')
-rw-r--r-- | js/xpconnect/tests/browser/browser_dead_object.js | 11 |
1 files changed, 4 insertions, 7 deletions
diff --git a/js/xpconnect/tests/browser/browser_dead_object.js b/js/xpconnect/tests/browser/browser_dead_object.js index b8b2dd0688..a79b46bc36 100644 --- a/js/xpconnect/tests/browser/browser_dead_object.js +++ b/js/xpconnect/tests/browser/browser_dead_object.js @@ -19,13 +19,10 @@ add_task(async function test() { let { TestUtils } = ChromeUtils.importESModule( "resource://testing-common/TestUtils.sys.mjs" ); - let promise = TestUtils.topicObserved( - "inner-window-nuked", - (subject, data) => { - let id = subject.QueryInterface(Ci.nsISupportsPRUint64).data; - return id == args.innerWindowId; - } - ); + let promise = TestUtils.topicObserved("inner-window-nuked", subject => { + let id = subject.QueryInterface(Ci.nsISupportsPRUint64).data; + return id == args.innerWindowId; + }); content.location = "http://mochi.test:8888/"; await promise; return Cu.isDeadWrapper(doc); |