summaryrefslogtreecommitdiffstats
path: root/toolkit/content/aboutSupport.js
diff options
context:
space:
mode:
authorwolfbeast <mcwerewolf@wolfbeast.com>2020-02-20 11:01:30 +0100
committerwolfbeast <mcwerewolf@wolfbeast.com>2020-04-14 12:47:23 +0200
commit28f0155307b8182653e31c1dd969828bbb0249f0 (patch)
treec06d36755c1567a4bfe36164617eb09862d25dc6 /toolkit/content/aboutSupport.js
parent11ede8724228309bf0e7d99097159d461e7d9693 (diff)
downloadUXP-28f0155307b8182653e31c1dd969828bbb0249f0.tar
UXP-28f0155307b8182653e31c1dd969828bbb0249f0.tar.gz
UXP-28f0155307b8182653e31c1dd969828bbb0249f0.tar.lz
UXP-28f0155307b8182653e31c1dd969828bbb0249f0.tar.xz
UXP-28f0155307b8182653e31c1dd969828bbb0249f0.zip
Issue #1383 - Remove "Copy raw data to clipboard" button
This resolves #1383
Diffstat (limited to 'toolkit/content/aboutSupport.js')
-rw-r--r--toolkit/content/aboutSupport.js39
1 files changed, 0 insertions, 39 deletions
diff --git a/toolkit/content/aboutSupport.js b/toolkit/content/aboutSupport.js
index 4e58bbef9..f49172230 100644
--- a/toolkit/content/aboutSupport.js
+++ b/toolkit/content/aboutSupport.js
@@ -564,42 +564,6 @@ function sortedArrayFromObject(obj) {
return tuples;
}
-function copyRawDataToClipboard(button) {
- if (button)
- button.disabled = true;
- try {
- Troubleshoot.snapshot(function (snapshot) {
- if (button)
- button.disabled = false;
- let str = Cc["@mozilla.org/supports-string;1"].
- createInstance(Ci.nsISupportsString);
- str.data = JSON.stringify(snapshot, undefined, 2);
- let transferable = Cc["@mozilla.org/widget/transferable;1"].
- createInstance(Ci.nsITransferable);
- transferable.init(getLoadContext());
- transferable.addDataFlavor("text/unicode");
- transferable.setTransferData("text/unicode", str, str.data.length * 2);
- Cc["@mozilla.org/widget/clipboard;1"].
- getService(Ci.nsIClipboard).
- setData(transferable, null, Ci.nsIClipboard.kGlobalClipboard);
-#ifdef MOZ_WIDGET_ANDROID
- // Present a toast notification.
- let message = {
- type: "Toast:Show",
- message: stringBundle().GetStringFromName("rawDataCopied"),
- duration: "short"
- };
- Services.androidBridge.handleGeckoMessage(message);
-#endif
- });
- }
- catch (err) {
- if (button)
- button.disabled = false;
- throw err;
- }
-}
-
function getLoadContext() {
return window.QueryInterface(Ci.nsIInterfaceRequestor)
.getInterface(Ci.nsIWebNavigation)
@@ -912,9 +876,6 @@ function setupEventListeners() {
$("reset-box-button").addEventListener("click", function(event) {
ResetProfile.openConfirmationDialog(window);
});
- $("copy-raw-data-to-clipboard").addEventListener("click", function(event) {
- copyRawDataToClipboard(this);
- });
$("copy-to-clipboard").addEventListener("click", function(event) {
copyContentsToClipboard();
});