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
This commit is contained in:
@@ -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();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user