Steps to replicate the issue (include links if applicable):
- Use skin that not add any HTML element with the id #mw-content-subtitle
- Try to save veaction=edit form
What happens?:
When finishing to save in save popup, in the last step (clicking "visualeditor-savedialog-title-save"button) - the popup just freezing
What should have happened instead?:
The popup would close
Software version (skip for WMF-hosted wikis like Wikipedia):
- MW Version 1.40
- Visual Editor from branch 1.40
Other information (browser name/version, screenshots, etc.):
The problem is because ve.init.mw.ArticleTarget.prototype.replacePageContent calling mw.util.addSubtitle which throwing error if no #mw-content-subtitle found.
It can be solved by code side, using catch or something - or #mw-content-subtitle requirment should be listed here