From 2d3415b2bee903766747fdb6b9bdfd93d090af10 Mon Sep 17 00:00:00 2001 From: "sfraser%netscape.com" Date: Mon, 31 Mar 2003 19:08:00 +0000 Subject: [PATCH] Fix for bug 199320 -- random composer crashes. Remove code that set the editor as a refCon on a controller which was created in JS, because it's unnecessary, and because the JS has no callbacks that allow it to null out the refCon when that editor is destroyed, leading to stale references which crash XPConnect. r=brade, sr=kin, a=asa. git-svn-id: svn://10.0.0.236/trunk@140456 18797224-902f-48f8-a5cc-f745e15eee43 --- mozilla/editor/ui/composer/content/editor.js | 8 -------- 1 file changed, 8 deletions(-) diff --git a/mozilla/editor/ui/composer/content/editor.js b/mozilla/editor/ui/composer/content/editor.js index 14b57467f55..1d1e0a60fc7 100644 --- a/mozilla/editor/ui/composer/content/editor.js +++ b/mozilla/editor/ui/composer/content/editor.js @@ -378,14 +378,6 @@ var gEditorDocumentObserver = // Things for just the Web Composer application if (IsWebComposer()) { - // Get the window command controller created in SetupComposerWindowCommands() - if (gComposerWindowControllerID) - { - try { - var controller = window.controllers.getControllerById(gComposerWindowControllerID); - controller.setCommandRefCon(editor); - } catch (e) {} - } // Call EditorSetDefaultPrefsAndDoctype first so it gets the default author before initing toolbars EditorSetDefaultPrefsAndDoctype();