chromium/third_party/blink/web_tests/plugins/webview-plugin-type-change.html

<!doctype HTML>
<style>
  #plugin {
    width: 150px;
    height: 150px;
    border: 1px solid black;
  }
</style>
<embed id="plugin" background-color="red"></embed>
<script>
onload = function() {
    document.getElementById('plugin').setAttribute('type', 'application/x-webkit-test-webplugin');
}
</script>