mirror of
https://github.com/mozilla/gecko-dev.git
synced 2025-11-05 02:39:10 +02:00
- add fetch in child process - DOM parsing only once - check content-type to be text/html before fetching content - add custom request header x-firefox-ai so publisher has option to allow/disallow the fetch request - more fetch safeguards(max content-length) may come in the near future Differential Revision: https://phabricator.services.mozilla.com/D240654
12 lines
454 B
JavaScript
12 lines
454 B
JavaScript
/* This Source Code Form is subject to the terms of the Mozilla Public
|
|
* License, v. 2.0. If a copy of the MPL was not distributed with this
|
|
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
|
|
|
|
/**
|
|
* JSWindowActor to pass data between LinkPreview singleton and content pages.
|
|
*/
|
|
export class LinkPreviewParent extends JSWindowActorParent {
|
|
async fetchPageData(url) {
|
|
return this.sendQuery("LinkPreview:FetchPageData", { url });
|
|
}
|
|
}
|