### Eclipse Workspace Patch 1.0
#P wordpress-trunk
Index: wp-includes/js/thickbox/thickbox.js
===================================================================
--- wp-includes/js/thickbox/thickbox.js	(revision 12548)
+++ wp-includes/js/thickbox/thickbox.js	(working copy)
@@ -284,6 +284,14 @@
 	return false;
 }
 
+function tb_overlay_bind() {
+	jQuery("#TB_overlay").click(tb_remove);
+}
+
+function tb_overlay_unbind() {	
+	jQuery("#TB_overlay").unbind("click",tb_remove);
+}
+
 function tb_position() {
 var isIE6 = typeof document.body.style.maxHeight === "undefined";
 jQuery("#TB_window").css({marginLeft: '-' + parseInt((TB_WIDTH / 2),10) + 'px', width: TB_WIDTH + 'px'});
Index: wp-includes/js/swfupload/handlers.dev.js
===================================================================
--- wp-includes/js/swfupload/handlers.dev.js	(revision 12548)
+++ wp-includes/js/swfupload/handlers.dev.js	(working copy)
@@ -24,6 +24,7 @@
 }
 
 function uploadStart(fileObj) {
+	(window.dialogArguments || opener || parent || top).tb_overlay_unbind();	
 	return true;
 }
 
@@ -42,6 +43,7 @@
 	// Move the progress bar to 100%
 	jQuery('.bar', item).remove();
 	jQuery('.progress', item).hide();
+	(window.dialogArguments || opener || parent || top).tb_overlay_bind();
 
 	// Old style: Append the HTML returned by the server -- thumbnail and form inputs
 	if ( isNaN(serverData) || !serverData ) {
