Skip to content

Commit

Permalink
Friendly iframes: install registerElement polyfill (ampproject#5172)
Browse files Browse the repository at this point in the history
  • Loading branch information
dvoytenko authored Sep 22, 2016
1 parent 92f42c8 commit c75bcc7
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions src/service/extensions-impl.js
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,8 @@ import {cssText} from '../../build/css';
import {dev, rethrowAsync} from '../log';
import {getMode} from '../mode';
import {fromClass, setParentWindow} from '../service';
import installCustomElements from
'document-register-element/build/document-register-element.node';
import {installImg} from '../../builtins/amp-img';
import {installPixel} from '../../builtins/amp-pixel';
import {installStyles} from '../style-installer';
Expand Down Expand Up @@ -610,9 +612,8 @@ function copyBuiltinElementsToChildWindow(childWin) {

/**
* Install polyfills in the child window (friendly iframe).
* @param {!Window} unusedChildWin
* @param {!Window} childWin
*/
function installPolyfillsInChildWindow(unusedChildWin) {
// TODO(dvoytenko): polyfill APIs in the childWin as needed. At the very
// least, it will be a `registerElement` API.
function installPolyfillsInChildWindow(childWin) {
installCustomElements(childWin);
}

0 comments on commit c75bcc7

Please sign in to comment.