| Index: extensions/renderer/resources/guest_view/web_view.js
|
| diff --git a/extensions/renderer/resources/guest_view/web_view.js b/extensions/renderer/resources/guest_view/web_view.js
|
| index 4b6774222213046c8128674f41df8732bdcb967e..ff8c6718e1ffc70bdeea1379d05f32f33eea7bf2 100644
|
| --- a/extensions/renderer/resources/guest_view/web_view.js
|
| +++ b/extensions/renderer/resources/guest_view/web_view.js
|
| @@ -61,14 +61,16 @@ WebViewImpl.setupElement = function(proto) {
|
|
|
| // Initiates navigation once the <webview> element is attached to the DOM.
|
| WebViewImpl.prototype.onElementAttached = function() {
|
| - this.attributes[WebViewConstants.ATTRIBUTE_SRC].parse();
|
| + for (var i in this.attributes) {
|
| + this.attributes[i].attach();
|
| + }
|
| };
|
|
|
| // Resets some state upon detaching <webview> element from the DOM.
|
| WebViewImpl.prototype.onElementDetached = function() {
|
| this.guest.destroy();
|
| for (var i in this.attributes) {
|
| - this.attributes[i].reset();
|
| + this.attributes[i].detach();
|
| }
|
| };
|
|
|
|
|