diff --git a/mozilla/content/events/src/nsEventStateManager.cpp b/mozilla/content/events/src/nsEventStateManager.cpp index 2a959a1231d..37882181dde 100644 --- a/mozilla/content/events/src/nsEventStateManager.cpp +++ b/mozilla/content/events/src/nsEventStateManager.cpp @@ -1410,7 +1410,8 @@ nsEventStateManager::BeginTrackingDragGesture(nsPresContext* aPresContext, #ifdef CLICK_HOLD_CONTEXT_MENUS // fire off a timer to track click-hold - CreateClickHoldTimer ( aPresContext, inDownFrame, inDownEvent ); + if (nsContentUtils::GetBoolPref("ui.click_hold_context_menus", PR_TRUE)) + CreateClickHoldTimer ( aPresContext, inDownFrame, inDownEvent ); #endif } diff --git a/mozilla/modules/libpref/src/init/all.js b/mozilla/modules/libpref/src/init/all.js index 190af29c15d..b541779d408 100644 --- a/mozilla/modules/libpref/src/init/all.js +++ b/mozilla/modules/libpref/src/init/all.js @@ -1335,6 +1335,7 @@ pref("intl.keyboard.per_window_layout", false); // Mac specific preference defaults pref("browser.drag_out_of_frame_style", 1); pref("ui.key.saveLink.shift", false); // true = shift, false = meta +pref("ui.click_hold_context_menus", true); // default font name (in UTF8)