tor-browser

The Tor Browser
git clone https://git.dasho.dev/tor-browser.git
Log | Files | Refs | README | LICENSE

LinkPreviewParent.sys.mjs (454B)


      1 /* This Source Code Form is subject to the terms of the Mozilla Public
      2 * License, v. 2.0. If a copy of the MPL was not distributed with this
      3 * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
      4 
      5 /**
      6 * JSWindowActor to pass data between LinkPreview singleton and content pages.
      7 */
      8 export class LinkPreviewParent extends JSWindowActorParent {
      9  async fetchPageData(url) {
     10    return this.sendQuery("LinkPreview:FetchPageData", { url });
     11  }
     12 }