[Global] Update refs to UI.actionRegistry

Bug: 1006759
Change-Id: I72e02ac9ec54c7d8a1edc8b3d4cb471dff7fde7c
Reviewed-on: https://chromium-review.googlesource.com/c/devtools/devtools-frontend/+/2019136
Commit-Queue: Paul Lewis <[email protected]>
Reviewed-by: Tim van der Lippe <[email protected]>
diff --git a/front_end/ui/ContextMenu.js b/front_end/ui/ContextMenu.js
index f500d2c..830fb3d 100644
--- a/front_end/ui/ContextMenu.js
+++ b/front_end/ui/ContextMenu.js
@@ -163,7 +163,7 @@
    * @param {boolean=} optional
    */
   appendAction(actionId, label, optional) {
-    const action = UI.actionRegistry.action(actionId);
+    const action = self.UI.actionRegistry.action(actionId);
     if (!action) {
       if (!optional) {
         console.error(`Action ${actionId} was not defined`);