Bug 1884172 - Use x-moz-nativeimage when copying screenshots to clipboard. r=mconley

Differential Revision: https://phabricator.services.mozilla.com/D204256
This commit is contained in:
Niklas Baumgardner
2024-03-12 14:22:34 +00:00
parent 13c680f4d2
commit 1993607fe7
3 changed files with 86 additions and 44 deletions

View File

@@ -97,14 +97,16 @@ export class ScreenshotsComponentChild extends JSWindowActorChild {
case "Screenshots:Download":
this.requestDownloadScreenshot(event.detail.region);
break;
case "Screenshots:OverlaySelection":
case "Screenshots:OverlaySelection": {
let { hasSelection } = event.detail;
this.sendOverlaySelection({ hasSelection });
break;
case "Screenshots:RecordEvent":
}
case "Screenshots:RecordEvent": {
let { eventName, reason, args } = event.detail;
this.recordTelemetryEvent(eventName, reason, args);
break;
}
case "Screenshots:ShowPanel":
this.showPanel();
break;