HTMLIFrameElement.getManifest()

Warning: Removed in Firefox 65.

The getManifest() method of the HTMLIFrameElement interface retrieves the manifest of an app loaded in the browser <iframe> and returns it as JSON.

Syntax

instanceOfHTMLIframeElement.getManifest().then(function(json) { ... });

Parameters

None.

Return value

A promise that resolves to a JSON object representation of the loaded app's manifest.

Examples

var browser = document.querySelector('iframe');

browser.addEventListener('mozbrowserloadend',function() {
  var request = browser.getManifest().then(function(json) {
    console.log(json);
  });
});

Specification

Not part of any specification.

Browser compatibility

Supported since Firefox 47, in chrome code only. Removed completely in Firefox 65.

Unlikely ever to be supported in other browsers.

See also

Document Tags and Contributors

Contributors to this page: chrisdavidmills, fscholz
Last updated by: chrisdavidmills,