Commit ed8473e7 authored by Andrea Giammarchi's avatar Andrea Giammarchi Committed by Winsley

Issue 6827 - Issue reporter data overlay doesn't include screenshot

parent 3e05c9af
......@@ -106,6 +106,7 @@ document.addEventListener("DOMContentLoaded", () =>
{
showDataOverlay.hidden = false;
reportWithScreenshot(xmlReport, {screenshot: $("io-highlighter")});
const element = $("#showDataValue");
element.textContent = serializeReportData(xmlReport);
element.focus();
......@@ -164,9 +165,11 @@ function serializeReportData(xmlReport)
function reportWithScreenshot(xmlReport, stepsData)
{
const {edited, data} = stepsData.screenshot;
const element = xmlReport.createElement("screenshot");
const element = $("screenshot", xmlReport.documentElement) ||
xmlReport.createElement("screenshot");
element.setAttribute("edited", edited);
element.textContent = data;
const proc = browser.i18n.getMessage("issueReporter_processing_screenshot");
element.textContent = data || `data:image/png;base64,...${proc}...`;
xmlReport.documentElement.appendChild(element);
return xmlReport;
}
......
......@@ -91,5 +91,8 @@
},
"issueReporter_data_gathering_tab": {
"message": "<strong>Note:</strong> An additional tab will temporarily open so the page you are on won't be affected by the Issue Reporter."
},
"issueReporter_processing_screenshot": {
"message": "processing"
}
}
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment