Wit the AC from T181638: "Remember selection for future searches" feature for AdvancedSearch, the checkbox for storing the current namespace selection is always present. However, the namespace selection can only be stored when the user is logged in, otherwise, the checkbox will be ignored. This will be confusing for non-logged in users when AdvancedSearch comes out of beta and is available for all users.
- The checkbox "Remember selection for future searches" is only shown to non-anonymous users.
Tip for fixing:
Make advancedSearch depend on mw.user and check mw.user.isAnon()