First scenario:
- Type a phrase, then convert it to an external link.
- Save the post.
- Open the post for editing and click the previously inserted link to edit it.
- Without closing the link inspector, click on 'Save changes'.
It hangs, not responding to anything except refreshing the page.
The stack trace is unusually long:
Uncaught TypeError: Cannot read property 'focus' of undefinedve.ce.Surface.focus Uncaught TypeError: Cannot read property 'top' of undefined Uncaught TypeError: Cannot read property 'ownerDocument' of undefined Sizzle.contains OO.ui.contains ve.ce.Surface.showSelectionState ve.ce.Surface.showModelSelection ve.ce.Surface.onModelSelect ve.ce.Surface.activate (anonymous function) (anonymous function) fire self.fireWith deferred.(anonymous function) (anonymous function) fire self.add promise.always OO.ui.WindowManager.closeWindow OO.ui.WindowManager.removeWindows OO.ui.WindowManager.clearWindows OO.ui.WindowManager.destroy ve.ui.LinearContext.destroy ve.ui.Surface.destroy ve.init.Target.clearSurfaces ve.init.Target.destroy mw.flow.ui.VisualEditorWidget.destroy mw.flow.ui.EditorSwitcherWidget.destroy mw.flow.ui.EditorWidget.destroy mw.flow.ui.EditPostWidget.destroy (anonymous function) oo.EventEmitter.emit (anonymous function) (anonymous function) fire self.fireWith (anonymous function) fire self.fireWith deferred.(anonymous function) fire self.fireWith (anonymous function) fire self.fireWith (anonymous function) deferred.(anonymous function) (anonymous function) fire self.fireWith done callback
Scenario 2 (a milder case - it does not hang)
- Insert an external link - not word(s), just a link. Save.
- Re-open the post for editing - click on the link to edit.
- Without closing the link inspector - click on 'Save changes'
The following is displayed, but the post is saved and all windows are closed properly.
Uncaught TypeError: Cannot read property 'focus' of undefined
Uncaught TypeError: Cannot read property 'top' of undefined