]> source.dussan.org Git - vaadin-framework.git/commitdiff
[merge from 6.7] #7855 - Screen goes blank when detaching an Embedded component displ...
authorAutomerge <automerge@vaadin.com>
Mon, 19 Mar 2012 15:28:39 +0000 (15:28 +0000)
committerAutomerge <automerge@vaadin.com>
Mon, 19 Mar 2012 15:28:39 +0000 (15:28 +0000)
svn changeset:23264/svn branch:6.8

src/com/vaadin/terminal/gwt/client/ui/VEmbedded.java

index 17a95388b99ad18f993b801847264e66d745382c..2c3115c5edfbe78f50b00f2a1ed4c99e2ab633df 100644 (file)
@@ -395,8 +395,14 @@ public class VEmbedded extends HTML implements Paintable {
             // Force browser to fire unload event when component is detached
             // from the view (IE doesn't do this automatically)
             if (browserElement != null) {
-                DOM.setElementAttribute(browserElement, "src",
-                        "javascript:false");
+                /*
+                 * src was previously set to javascript:false, but this was not
+                 * enough to overcome a bug when detaching an iframe with a pdf
+                 * loaded in IE9. about:blank seems to cause the adobe reader
+                 * plugin to unload properly before the iframe is removed. See
+                 * #7855
+                 */
+                DOM.setElementAttribute(browserElement, "src", "about:blank");
             }
         }
         super.onDetach();