// `this.contentWindow` or `this.browsingContext` will throw. // The `sendQuery` call in the parent will already have been // rejected when the actor was destroyed, so there's no need to // reject our promise or log an additional error. return; } let result = lazy.PageThumbUtils.shouldStoreContentThumbnail( this.contentWindow, this.browsingContext.docShell ); resolve(result); }) ); } case "Browser:Thumbnail:GetOriginalURL": { /** * Remote GetOriginalURL request handler for PageThumbs. */ let channel = this.browsingContext.docShell.currentDocumentChannel; let channelError = lazy.PageThumbUtils.isChannelErrorResponse(channel); let originalURL; try { originalURL = channel.originalURI.spec; } catch (ex) {} return { channelError, originalURL }; } } return undefined; } } PK