Steps to replicate the issue:
- In GlobalPreferences, enable "Show preview without reloading the page" and click Save
- In Preferences, uncheck "Show preview without reloading the page" after checking "Set a local exception for this global preference" below it, and click Save
- Start editing a page and click "Show diff" or "Show preview"
What happens?:
The preview or diff appears without reloading the page (i.e. live preview is on).
What should have happened instead?:
Clicking the button navigates to a new page (live preview is off).
Other information:
mw.user.options.get('uselivepreview') is set to the expected 0, but the module mediawiki.action.edit.preview is nonetheless loaded. This suggests $this->userOptionsLookup->getOption( $user, 'uselivepreview' ) here is not working as expected.