From: Cheng Zhao Date: Wed, 29 Apr 2015 09:57:16 +0000 (+0800) Subject: Chaning src of webview should always do a load X-Git-Tag: v0.25.2~9 X-Git-Url: http://git.khamidou.com/?a=commitdiff_plain;h=23afffa46d6cfdb0763f776ce04503e0be46abbf;p=electron.git Chaning src of webview should always do a load Previously changing src to the same value won't have any effect, which does not follow the behavior of browsers. --- diff --git a/atom/renderer/lib/web-view/web-view-attributes.coffee b/atom/renderer/lib/web-view/web-view-attributes.coffee index e4b5dcb4..05bd6141 100644 --- a/atom/renderer/lib/web-view/web-view-attributes.coffee +++ b/atom/renderer/lib/web-view/web-view-attributes.coffee @@ -138,10 +138,7 @@ class SrcAttribute extends WebViewAttribute setupMutationObserver: -> @observer = new MutationObserver (mutations) => for mutation in mutations - oldValue = mutation.oldValue - newValue = @getValue() - return if oldValue isnt newValue - @handleMutation oldValue, newValue + @handleMutation mutation.oldValue, @getValue() params = attributes: true, attributeOldValue: true,