summaryrefslogtreecommitdiffstats
path: root/extensions
diff options
context:
space:
mode:
authorlazyboy <lazyboy@chromium.org>2015-04-29 16:45:10 -0700
committerCommit bot <commit-bot@chromium.org>2015-04-29 23:45:42 +0000
commit17ecc984877ad47bec944291220f4dfb7e8780d1 (patch)
tree16a2821c0267103b166e4fa7ebb977d9401c0198 /extensions
parent908e43770ab94c7d5bcc97f0cbbea9e676a9ba6c (diff)
downloadchromium_src-17ecc984877ad47bec944291220f4dfb7e8780d1.zip
chromium_src-17ecc984877ad47bec944291220f4dfb7e8780d1.tar.gz
chromium_src-17ecc984877ad47bec944291220f4dfb7e8780d1.tar.bz2
<webview> custom element should be plain HTMLElement, not <object> element.
BUG=None Test=None, internal only change. Review URL: https://codereview.chromium.org/1110053003 Cr-Commit-Position: refs/heads/master@{#327620}
Diffstat (limited to 'extensions')
-rw-r--r--extensions/renderer/resources/guest_view/guest_view_container.js6
1 files changed, 3 insertions, 3 deletions
diff --git a/extensions/renderer/resources/guest_view/guest_view_container.js b/extensions/renderer/resources/guest_view/guest_view_container.js
index 5b6a736..cf0e309 100644
--- a/extensions/renderer/resources/guest_view/guest_view_container.js
+++ b/extensions/renderer/resources/guest_view/guest_view_container.js
@@ -59,7 +59,7 @@ GuestViewContainer.registerElement = function(guestViewContainerType) {
// Create the 'guest' property to track new GuestViews and always listen for
// their resizes.
GuestViewContainer.prototype.setupGuestProperty = function() {
- Object.defineProperty(this, 'guest', {
+ $Object.defineProperty(this, 'guest', {
get: function() {
return privates(this).guest;
}.bind(this),
@@ -184,7 +184,7 @@ GuestViewContainer.prototype.setupAttributes = function() {};
// Registers the browser plugin <object> custom element. |viewType| is the
// name of the specific guestview container (e.g. 'webview').
function registerBrowserPluginElement(viewType) {
- var proto = Object.create(HTMLObjectElement.prototype);
+ var proto = $Object.create(HTMLElement.prototype);
proto.createdCallback = function() {
this.setAttribute('type', 'application/browser-plugin');
@@ -220,7 +220,7 @@ function registerBrowserPluginElement(viewType) {
// |guestViewContainerType| is the type of guestview container
// (e.g.WebViewImpl).
function registerGuestViewElement(guestViewContainerType) {
- var proto = Object.create(HTMLElement.prototype);
+ var proto = $Object.create(HTMLElement.prototype);
proto.createdCallback = function() {
new guestViewContainerType(this);