Name Description Size Coverage
content -
fileHelpers.mjs macOS and Linux have a max filename of 255. Windows allows 259 as the total path length so we have to calculate the max filename length if the download directory exists. Otherwise, Windows allows 255 character filenames in the filepicker. @param {string} downloadDir The current download directory or null @returns {number} The max filename length 11156 92 %
jar.mn 1233 -
metrics.yaml 15141 -
moz.build 580 -
overlay -
overlayHelpers.mjs Gets the rect for an element if getBoundingClientRect exists @param ele The element to get the rect from @returns The bounding client rect of the element or null 15017 86 %
screenshots-buttons.css position about 4px above the container ensuring overlap with toolbar/chrome 2758 -
screenshots-buttons.js The element that click events bubble to, whichever mode is rendered. 7375 96 %
screenshots-preview.css 642 -
screenshots-preview.html 774 -
screenshots-preview.mjs If the image is complete and the height is greater than 0, we can resolve. Otherwise wait for a load event on the image and resolve then. @returns {Promise<string>} Resolves that resolves to the preview image src once the image is loaded. 7605 97 %
ScreenshotsHelperChild.sys.mjs This class is used to get the dimensions of hovered elements within iframes. The main content process cannot get the dimensions of elements within iframes so a message will be send to this actor to get the dimensions of the element for a given point inside the iframe. 1509 -
ScreenshotsOverlayChild.sys.mjs The Screenshots overlay is inserted into the document's anonymous content container (see dom/webidl/Document.webidl). This container gets cleared automatically when the document navigates. To retrieve the AnonymousContent instance, use the `content` getter. 67570 -
ScreenshotsSelectionModes.sys.mjs What the Screenshots overlay is being used for. The selection UI is shared, but the action buttons, telemetry and region clamping differ per mode. 463 -
ScreenshotsUtils.sys.mjs Clamps dimensions to fit within MAX_CAPTURE_DIMENSION and MAX_CAPTURE_AREA constraints. @param {number} width - The width to potentially crop @param {number} height - The height to potentially crop @returns {object} Object with: - width: The cropped width - height: The cropped height - cropped: Boolean indicating if any cropping occurred 51791 -
tests -