Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(844)

Unified Diff: extensions/renderer/resources/guest_view/web_view_attributes.js

Issue 928623002: <webview> + <extensionview>: Generalize setValueIgnoreMutation (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « extensions/renderer/resources/guest_view/extension_view_attributes.js ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: extensions/renderer/resources/guest_view/web_view_attributes.js
diff --git a/extensions/renderer/resources/guest_view/web_view_attributes.js b/extensions/renderer/resources/guest_view/web_view_attributes.js
index b566696c70adcf39b32ea5fa55a02e467bd4832f..ee1cb7edf22b8e72888045a2a109a59a9ecba7f7 100644
--- a/extensions/renderer/resources/guest_view/web_view_attributes.js
+++ b/extensions/renderer/resources/guest_view/web_view_attributes.js
@@ -35,7 +35,7 @@ WebViewAttribute.prototype.setValue = function(value) {
// Changes the attribute's value without triggering its mutation handler.
WebViewAttribute.prototype.setValueIgnoreMutation = function(value) {
this.ignoreMutation = true;
- this.webViewImpl.element.setAttribute(this.name, value || '');
+ this.setValue(value);
this.ignoreMutation = false;
}
@@ -211,9 +211,7 @@ SrcAttribute.prototype.setValueIgnoreMutation = function(value) {
// observer |observer|, and then get handled even though we do not want to
// handle this mutation.
this.observer.takeRecords();
- this.ignoreMutation = true;
- this.webViewImpl.element.setAttribute(this.name, value || '');
- this.ignoreMutation = false;
+ WebViewAttribute.prototype.setValueIgnoreMutation.call(this, value);
}
SrcAttribute.prototype.handleMutation = function(oldValue, newValue) {
« no previous file with comments | « extensions/renderer/resources/guest_view/extension_view_attributes.js ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698