From 23afffa46d6cfdb0763f776ce04503e0be46abbf Mon Sep 17 00:00:00 2001 From: Cheng Zhao Date: Wed, 29 Apr 2015 17:57:16 +0800 Subject: [PATCH] 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. --- atom/renderer/lib/web-view/web-view-attributes.coffee | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/atom/renderer/lib/web-view/web-view-attributes.coffee b/atom/renderer/lib/web-view/web-view-attributes.coffee index e4b5dcb45b..05bd614120 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,