Created attachment 334895 [details] [diff] [review] Proposed solution to avoid the js error and return consistent result
Comment on attachment 334895 [details] [diff] [review] Proposed solution to avoid the js error and return consistent result >--- toolkit/content/widgets/editor_orig.xml 2008-04-03 01:15:03.000000000 +0200 >+++ toolkit/content/widgets/editor.xml 2008-08-21 17:02:01.459890163 +0200 >- var editor = this.editingSession.getEditorForWindow(containingWindow); >- return editor.QueryInterface(Components.interfaces.nsIHTMLEditor); >+ var editor = this.getEditor(containingWindow); >+ return editor ? editor.QueryInterface(Components.interfaces.nsIHTMLEditor) : editor; Return null explicitly instead of "editor"? r=me with that.
Attachment #334895 - Flags: review+
Assignee: nobody → TheSeer
Status: UNCONFIRMED → NEW
Ever confirmed: true
Version: unspecified → Trunk
You need to log in before you can comment on or make changes to this bug.