Page MenuHomePhabricator

Mobile preferences: Notifications section is not clickable: No infusion data found
Closed, ResolvedPublicBUG REPORT

Description

Steps to replicate the issue (include links if applicable):

What happens?:

The Notifications section didn't open, with errors thrown:

Uncaught Error: No infusion data found: mw-input-wpecho-subscriptions-web-edit-user-page

What should have happened instead?:

The Notifications section opened and usable.

Software version (skip for WMF-hosted wikis like Wikipedia):

Other information (browser name/version, screenshots, etc.):

Event Timeline

Change 915803 had a related patch set uploaded (by Func; author: Func):

[mediawiki/core@master] preferences: Skip altering non-infusable checkbox widgets

https://gerrit.wikimedia.org/r/915803

Change 915803 merged by jenkins-bot:

[mediawiki/core@master] preferences: Skip altering non-infusable checkbox widgets

https://gerrit.wikimedia.org/r/915803

I went ahead and merged this in since it fixes production errors; the upshot is that we're now left with quite a few checkboxes in mobile preferences. since many are not infusible, which is why I wasn't infusing them in the first place. I'm working on another patch to add back in the old behavior for non-infusible checkboxes.

Change 917401 had a related patch set uploaded (by Jsn.sherman; author: Jsn.sherman):

[mediawiki/core@master] preferences: vary mobilelayout toggle/checbox sync

https://gerrit.wikimedia.org/r/917401

I went ahead and merged this in since it fixes production errors; the upshot is that we're now left with quite a few checkboxes in mobile preferences. since many are not infusible, which is why I wasn't infusing them in the first place. I'm working on another patch to add back in the old behavior for non-infusible checkboxes.

Hum... Only checkboxes in the checkMatrixWidget are not infusable; for some other random checkboxes, that's because the checkboxElement was replaced during infusion, so it references to an element outside of the DOM tree. And unfortunately, in my test environment, all preferences are global so they have already been infused before insertToggles(), so no change during infusion, then I am not able to spot this issue testing commit c1b1c6f81...

Change 917401 abandoned by Jsn.sherman:

[mediawiki/core@master] preferences: vary mobile toggle/checkbox sync

Reason:

issue resolved in Iad4022ecaef6877fd5a8fdd0b277c3c8e7c3baaa

https://gerrit.wikimedia.org/r/917401

Change 917732 had a related patch set uploaded (by Func; author: Func):

[mediawiki/core@REL1_40] preferences: Follow-up to commit b2062d11

https://gerrit.wikimedia.org/r/917732

Change 917732 merged by jenkins-bot:

[mediawiki/core@REL1_40] preferences: Follow-up to commit b2062d11

https://gerrit.wikimedia.org/r/917732