Iframe placeholders, security and resizing
commitd5d75e70536ec3dd67149d9281ca210b3ffbb95a
authormdjones <mdjones@chromium.org>
Mon, 6 Apr 2015 19:48:47 +0000 (6 12:48 -0700)
committerCommit bot <commit-bot@chromium.org>
Mon, 6 Apr 2015 20:03:08 +0000 (6 20:03 +0000)
treeda841e204f4392b4ad90787f88f7f7df87385152
parent7faf645e3ebfe310cfbd5b2dbc5b459e4af93cb2
Iframe placeholders, security and resizing

This change adds javascript to fill in the YouTube placeholders
created by the distiller. the content security policy now allows
for iframes from all sources (distiller closely controls which
iframes are allowed). Some css has also been added to appropriately
resize these iframes when the page is resized.

This change will not work correctly by itself, it depends on the
following CL to work correctly:

https://codereview.chromium.org/1015463004

BUG=468862

Review URL: https://codereview.chromium.org/880983007

Cr-Commit-Position: refs/heads/master@{#323934}
components/dom_distiller/content/dom_distiller_viewer_source.cc
components/dom_distiller/content/dom_distiller_viewer_source.h
components/dom_distiller/core/css/distilledpage.css
components/dom_distiller/core/javascript/dom_distiller_viewer.js