MCPcopy
hub / github.com/ampproject/amphtml / addContextToIframe

Method addContextToIframe

3p/ampcontext.js:314–317  ·  view source on GitHub ↗

* Takes the current name on the window, and attaches it to * the name of the iframe. * @param {HTMLIFrameElement} iframe The iframe we are adding the context to.

(iframe)

Source from the content-addressed store, hash-verified

312 * @param {HTMLIFrameElement} iframe The iframe we are adding the context to.
313 */
314 addContextToIframe(iframe) {
315 // TODO(alanorozco): consider the AMP_CONTEXT_DATA case
316 iframe.name = dev().assertString(this.cachedFrameName_);
317 }
318
319 /**
320 * Notifies the parent document of no content available inside embed.

Callers

nothing calls this directly

Calls 2

devFunction · 0.90
assertStringMethod · 0.80

Tested by

no test coverage detected