Bug 1170258 - Cache UUID module for context menus (rs=Mossop)
authorBill McCloskey <billm@mozilla.com>
Wed, 02 Mar 2016 12:56:51 -0800
changeset 286516 c3e97c1f281977eb73c9c99490b6d600878c7fdd
parent 286515 99420f88d57e3b469964ff3e48c691246146b628
child 286517 e978b825517d6d06d1071d179d5f0d89a069733c
push id30050
push usercbook@mozilla.com
push dateThu, 03 Mar 2016 10:54:59 +0000
treeherdermozilla-central@2b5237c178ea [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersMossop
bugs1170258
milestone47.0a1
first release with
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
Bug 1170258 - Cache UUID module for context menus (rs=Mossop)
addon-sdk/source/lib/sdk/context-menu.js
--- a/addon-sdk/source/lib/sdk/context-menu.js
+++ b/addon-sdk/source/lib/sdk/context-menu.js
@@ -62,18 +62,19 @@ const OVERFLOW_POPUP_CLASS = "addon-cont
 
 // Holds private properties for API objects
 var internal = ns();
 
 // A little hacky but this is the last process ID that last opened the context
 // menu
 var lastContextProcessId = null;
 
+var uuidModule = require('./util/uuid');
 function uuid() {
-  return require('./util/uuid').uuid().toString();
+  return uuidModule.uuid().toString();
 }
 
 function getScheme(spec) {
   try {
     return URL(spec).scheme;
   }
   catch(e) {
     return null;