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 11069 92 %
jar.mn 1233 -
metrics.yaml 14538 -
moz.build 631 -
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 13545 86 %
screenshots-buttons.css position about 4px above the container ensuring overlap with toolbar/chrome 1179 -
screenshots-buttons.js Focus the last used button. This will default to the visible page button. @param {string} buttonToFocus 3309 98 %
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. 7579 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 95 %
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. 61771 95 %
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 45571 93 %
tests -