Steps to reproduce:
- Add the following code to your common.js:
mw.loader.using( 'ext.visualEditor.desktopArticleTarget.init' ).done( function() { mw.libs.ve.addPlugin( function() { console.log( 'VE plugin' ); } ); } );
- Start editing VE by
a) Opening it from read view in the same tab.
b) Opening it in a new tab and immediately switch to that tab.
c) Opening it in a new tab, wait, and switch to that tab later.
- Open the console.
Expected result:
The log entry "VE plugin" is always visible.
Actual result (at least in Firefox):
a) and b) as expected, but in c) the log entry (and actually all VE plugins from user scripts) is missing.