Index: extensions/renderer/resources/guest_view/extension_view_attributes.js |
diff --git a/extensions/renderer/resources/guest_view/extension_view_attributes.js b/extensions/renderer/resources/guest_view/extension_view_attributes.js |
index d4bc0d61ec573a3e6635558c66ff4e2dbce9a819..e71d2eac3e0821bb360703463beec652cd97ea61 100644 |
--- a/extensions/renderer/resources/guest_view/extension_view_attributes.js |
+++ b/extensions/renderer/resources/guest_view/extension_view_attributes.js |
@@ -37,7 +37,7 @@ ExtensionViewAttribute.prototype.setValue = function(value) { |
// Changes the attribute's value without triggering its mutation handler. |
ExtensionViewAttribute.prototype.setValueIgnoreMutation = function(value) { |
this.ignoreMutation = true; |
- this.extensionViewImpl.element.setAttribute(this.name, value || ''); |
+ this.setValue(value); |
this.ignoreMutation = false; |
} |
@@ -80,9 +80,7 @@ SrcAttribute.prototype.__proto__ = ExtensionViewAttribute.prototype; |
SrcAttribute.prototype.setValueIgnoreMutation = function(value) { |
this.observer.takeRecords(); |
- this.ignoreMutation = true; |
- this.extensionViewImpl.element.setAttribute(this.name, value || ''); |
- this.ignoreMutation = false; |
+ ExtensionViewAttribute.prototype.setValueIgnoreMutation.call(this, value); |
} |
SrcAttribute.prototype.handleMutation = function(oldValue, newValue) { |