Name Description Size
docs 1
jar.mn 268
moz.build 734
OpenGraphPageData.jsm Collects Open Graph (https://opengraphprotocol.org/) related data from a page. 1529
PageDataChild.jsm The actor responsible for monitoring a page for page data. 3049
PageDataParent.jsm Receives messages from PageDataChild and passes them to the PageData service. 1680
PageDataSchema.jsm The list of page data collectors. These should be sorted in order of specificity, if the same piece of data is provided by two collectors then the earlier wins. Collectors must provide a `collect` function which will be passed the document object and should return the PageData structure. The function may be asynchronous if needed. The data returned need not be valid, collectors should return whatever they can and then we drop anything that is invalid once all data is joined. 6832
PageDataService.jsm @typedef {object} PageData A set of discovered from a page. Other than the `data` property this is the schema at `browser/components/pagedata/schemas/general.schema.json`. @property {string} url The page's url. @property {number} date The epoch based timestamp for when the data was discovered. @property {string} siteName The page's friendly site name. @property {string} image The page's image. @property {object} data The map of data found which may be empty if no data was found. The key in map is from the `PageDataSchema.DATA_TYPE` enumeration. The values are in the format defined by the schemas at `browser/components/pagedata/schemas`. 5876
SchemaOrgPageData.jsm Finds the values for a given property. See https://html.spec.whatwg.org/multipage/microdata.html#values for the parsing spec TODO: Currently this will find item properties of inner-items. Need to use itemscope as a boundary. @param {Element} element The item scope. @param {string} prop The property to find. @returns {any[]} The value of the property. 4352
schemas 6
tests 2
TwitterPageData.jsm Collects Twitter card (https://developer.twitter.com/en/docs/twitter-for-websites/) related data from a page. 1221
.eslintrc.js 1021