Index: /FCKeditor/branches/features/floating_dialog/editor/_source/internals/fckdialog.js
===================================================================
--- /FCKeditor/branches/features/floating_dialog/editor/_source/internals/fckdialog.js	(revision 1247)
+++ /FCKeditor/branches/features/floating_dialog/editor/_source/internals/fckdialog.js	(revision 1248)
@@ -24,5 +24,5 @@
 var FCKDialog = ( function()
 {
-	var topDialog ;
+//	var topDialog ;
 	var baseZIndex ;
 	var cover ;
@@ -84,6 +84,8 @@
 		OpenDialog : function( dialogName, dialogTitle, dialogPage, width, height, customValue, parentWindow, resizable )
 		{
+/*
 			if ( !topDialog )
 				this.DisplayMainCover() ;
+*/
 
 			// Setup the dialog info to be passed to the dialog.
@@ -103,5 +105,5 @@
 			// IFRAMEs, like the dialog, so the current selection must be saved to
 			// be restored in the dialog code.
-			if ( FCKBrowserInfo.IsIE && !topDialog )
+			if ( FCKBrowserInfo.IsIE /* && !topDialog */ )
 			{
 				var editorDocument = currentInstance.EditorDocument ;
@@ -135,4 +137,8 @@
 			var dialog = topDocument.createElement( 'iframe' ) ;
 			dialog.src = FCKConfig.BasePath + 'fckdialog.html' ;
+
+			// Dummy URL for testing whether the code in fckdialog.js alone leaks memory.
+			// dialog.src = 'http://www.skype.com';
+
 			dialog.frameBorder = 0 ;
 			dialog.allowTransparency = true ;
@@ -154,7 +160,7 @@
 
 			// Keep record of the dialog's parent/child relationships.
-			dialog._ParentDialog = topDialog ;
-			topDialog = dialog ;
-		},
+			// dialog._ParentDialog = topDialog ;
+			// topDialog = dialog ;
+		}
 
 		/**
@@ -162,4 +168,5 @@
 		 * Called when the top dialog is closed.
 		 */
+/*
 		OnDialogClose : function( dialogWindow )
 		{
@@ -174,5 +181,5 @@
 			else
 			{
-				this.HideMainCover() ;
+//				this.HideMainCover() ;
 				topDialog = null ;
 				this.SelectionData = null ;
@@ -236,4 +243,5 @@
 			return cover ;
 		}
+*/
 	} ;
 } )() ;
Index: /FCKeditor/branches/features/floating_dialog/editor/fckdialog.html
===================================================================
--- /FCKeditor/branches/features/floating_dialog/editor/fckdialog.html	(revision 1247)
+++ /FCKeditor/branches/features/floating_dialog/editor/fckdialog.html	(revision 1248)
@@ -27,5 +27,5 @@
 		<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
 		<meta name="robots" content="noindex, nofollow" />
-		<script type="text/javascript">
+		<!-- script type="text/javascript">
 
 // Get the dialog arguments and the dialog frame from parent window
@@ -90,8 +90,8 @@
 {
 	// Start the throbber timer.
-	Throbber.Show( 1000 ) ;
+	// Throbber.Show( 1000 ) ;
 
 	RefreshContainerSize() ;
-	LoadInnerDialog() ;
+	// LoadInnerDialog() ;
 
 	FCKTools.DisableSelection( document.body ) ;
@@ -102,6 +102,6 @@
 
 	// Connect mousemove and mouseup events from dialog frame and outer window to dialog dragging logic.
-	DnD.RegisterHandlers( window ) ;
-	DnD.RegisterHandlers( args.TopWindow ) ;
+	// DnD.RegisterHandlers( window ) ;
+	// DnD.RegisterHandlers( args.TopWindow ) ;
 
 	// Disable the previous dialog if it exists.
@@ -115,9 +115,9 @@
 			{
 				var blockerFrame = currentParent.contentWindow.document.getElementById( 'blocker' ) ;
+				/*
 				if ( blockerFrame.readyState == 'complete' )
 					DnD.RegisterHandlers( blockerFrame.contentWindow ) ;
 				else
 				{
-					/*
 					blockerFrame.onreadystatechange = function()
 					{
@@ -126,6 +126,6 @@
 						DnD.RegisterHandlers( this.contentWindow ) ;
 					}
-					*/
 				}
+				*/
 				currentParent = currentParent._ParentDialog ;
 			}
@@ -136,5 +136,5 @@
 			while ( currentParent )
 			{
-				DnD.RegisterHandlers( currentParent.contentWindow ) ;
+				// DnD.RegisterHandlers( currentParent.contentWindow ) ;
 				currentParent = currentParent._ParentDialog ;
 			}
@@ -143,4 +143,5 @@
 
 	// If this is the only dialog on screen, enable the background cover.
+	/*
 	if ( FCKBrowserInfo.IsIE && !FCKBrowserInfo.IsIE7 )
 	{
@@ -150,5 +151,4 @@
 		else
 		{
-		/*
 			blockerFrame.onreadystatechange = function()
 			{
@@ -157,7 +157,7 @@
 				DnD.RegisterHandlers( this.contentWindow ) ;
 			}
-		*/
-		}
-	}
+		}
+	}
+	*/
 }
 
@@ -180,5 +180,5 @@
 		return ;
 
-	Throbber.Hide() ;
+	// Throbber.Hide() ;
 
 	var frmMain = document.getElementById('frmMain') ;
@@ -200,5 +200,5 @@
 	RefreshContainerSize();
 
-	DnD.RegisterHandlers( innerWindow ) ;
+	// DnD.RegisterHandlers( innerWindow ) ;
 	
 	innerWindow.focus() ;
@@ -329,5 +329,5 @@
 	// Points the src to a non-existent location to avoid loading errors later, in case the dialog
 	// haven't been completed loaded at this point.
-	document.getElementById( 'frmMain' ).src = FCKTools.GetVoidUrl() ;
+	// document.getElementById( 'frmMain' ).src = FCKTools.GetVoidUrl() ;
 
 	if ( !dontFireChange && !FCK.EditMode )
@@ -485,8 +485,10 @@
 // DisableContextMenu( document ) ;
 
+/*
 window.onresize = function( e )
 {
 	RefreshContainerSize() ;
-}
+	}
+*/
 
 if ( FCKBrowserInfo.IsIE )
@@ -497,5 +499,5 @@
 			oTabs[t] = null ;
 
-		editor = null ;
+		args = editor = FCK = FCKTools = FCKDomTools = FCKDialog = FCKConfig = FCKBrowserInfo = null ;
 	}
 	window.attachEvent( "onbeforeunload", Window_OnBeforeUnload ) ;
@@ -511,4 +513,5 @@
 
 // Drad-and-drop handler.
+/*
 var DnD = (function()
 {
@@ -625,4 +628,5 @@
 	}
 })() ;
+*/
 
 /**
@@ -655,4 +659,5 @@
 }
 
+/*
 var Throbber =
 {
@@ -688,13 +693,13 @@
 	}
 } ;
-
-		</script>
+*/
+		</script -->
 	</head>
-	<body onload="Init();" class="DialogBody">
+	<body onload="" class="DialogBody">
 		<div class="contents" id="contents">
 			<div id="header">
 				<div id="TitleArea" class="DialogTitle DialogTitleBorder">
 					<script type="text/javascript">
-document.write( args.Title ) ;
+// document.write( args.Title ) ;
 					</script>
 					<div id="closeButton" onclick="Cancel();"></div>
@@ -733,5 +738,5 @@
 		<div class="cover" id="cover" style="display:none"></div>
 		<div id="throbberBlock" style="position: absolute; z-index: 10; text-align: center; font-size: 9px;"></div>
-		<script type="text/javascript">
+		<!-- script type="text/javascript">
 			// Set the class name for language direction.
 			document.body.className += ' ' + editor.FCKLang.Dir ;
@@ -740,5 +745,6 @@
 			cover.style.backgroundColor = FCKConfig.BackgroundBlockerColor ;
 			FCKDomTools.SetOpacity( cover, FCKConfig.BackgroundBlockerOpacity ) ;
-		</script>
+			alert( 'I am not running this!' ) ;
+		</script -->
 	</body>
 </html>
