Please use ChromeUtils.now instead of Cu.now

10 views
Skip to first unread message

Florian Quèze

unread,
Aug 27, 2025, 9:03:38 AMAug 27
to firefox-dev@mozilla.org Dev
To make ChromeUtils.addProfilerMarker easier to use, I recently added a ChromeUtils.now method returning the same value as Cu.now, but available in all chrome privileged scripts, including chrome workers. (https://bugzilla.mozilla.org/show_bug.cgi?id=1982887).

Usage of Cu.now has been replaced with ChromeUtils.now throughout the tree (https://bugzilla.mozilla.org/show_bug.cgi?id=1983606) and I have now removed the Cu.now implementation (https://bugzilla.mozilla.org/show_bug.cgi?id=1985100).

If you have in flight patches that use Cu.now, please update them to use ChromeUtils.now instead.

--
Florian Quèze
Reply all
Reply to author
Forward
0 new messages