diff --git a/toolkit/components/viewconfig/content/config.js b/toolkit/components/viewconfig/content/config.js
index 8a7ef3d8217..f1286bdfb31 100644
--- a/toolkit/components/viewconfig/content/config.js
+++ b/toolkit/components/viewconfig/content/config.js
@@ -477,6 +477,9 @@ function updateContextMenu()
copyDisabled = false;
}
+ var copyPref = document.getElementById("copyPref");
+ copyPref.setAttribute("disabled", copyDisabled);
+
var copyName = document.getElementById("copyName");
copyName.setAttribute("disabled", copyDisabled);
@@ -502,6 +505,12 @@ function updateContextMenu()
document.getElementById("unlockSelected").hidden = !isLocked;
}
+function copyPref()
+{
+ var pref = gPrefView[view.selection.currentIndex];
+ gClipboardHelper.copyString(pref.prefCol + ';' + pref.valueCol);
+}
+
function copyName()
{
gClipboardHelper.copyString(gPrefView[view.selection.currentIndex].prefCol);
diff --git a/toolkit/components/viewconfig/content/config.xul b/toolkit/components/viewconfig/content/config.xul
index e8af53bcffe..d5ad00285c6 100644
--- a/toolkit/components/viewconfig/content/config.xul
+++ b/toolkit/components/viewconfig/content/config.xul
@@ -56,6 +56,7 @@
+