Page MenuHomePhabricator

SecurePoll: Adding/removing a candidate refreshes entire page
Closed, ResolvedPublicBUG REPORT

Description

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

  • Google chrome only
  • Create a poll (or enter poll creation / edit interface)
  • Add or remove an Option

What happens?:
The entire page refreshes. (No data is lost.)
This occurs no matter the poll type.

What should have happened instead?:
It should have added the candidate more quietly.

Event Timeline

Restricted Application added a subscriber: Aklapper. · View Herald Transcript
jrbs triaged this task as Low priority.Oct 3 2025, 6:54 PM

To clarify, does this bug happen before or after clicking "Edit Poll"?

To clarify, does this bug only occur for certain types of polls such as STV?

To clarify, how does one "add a candidate"? By adding a question to the poll?

(Basically, would like to add some details to the steps to reproduce to make it clearer.)

jrbs updated the task description. (Show Details)

To clarify, does this bug happen before or after clicking "Edit Poll"?

After, on the poll creation / edit screen.

To clarify, does this bug only occur for certain types of polls such as STV?

No, seems to be all of them

To clarify, how does one "add a candidate"? By adding a question to the poll?

I should have said "option". Basically clicking "Add another option" or "Delete option" causes the refresh.

(Basically, would like to add some details to the steps to reproduce to make it clearer.)

All good, hopefully this and the little screen recording helps.

Thanks for those additional details.

Unable to reproduce on localhost using latest alpha branches. Was this bug encountered on votewiki, which may be using a slightly older version of mediawiki? Does this bug occur when trying it in a different browser? (i.e. maybe your browser extensions are involved)

I tried skins vector and vector-2022, poll types approval vote and histogram range, and browsers Firefox and Edge.

It's reproducible on master. Only in Chrome.

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

[mediawiki/core@master] htmlform: Load ooui before infusing field cloner buttons

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

Novem_Linguae assigned this task to Func.
Novem_Linguae removed Func as the assignee of this task.
Novem_Linguae added a subscriber: Func.

Re-opening until the whole patch chain merges.

Change #1205720 merged by jenkins-bot:

[mediawiki/core@master] htmlform: Load ooui before infusing field cloner buttons

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

Novem_Linguae assigned this task to Func.

Change #1214182 had a related patch set uploaded (by Reedy; author: Func):

[mediawiki/core@REL1_45] htmlform: Load ooui before infusing field cloner buttons

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

Change #1214185 had a related patch set uploaded (by Reedy; author: Func):

[mediawiki/core@REL1_44] htmlform: Load ooui before infusing field cloner buttons

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

Change #1214189 had a related patch set uploaded (by Reedy; author: Func):

[mediawiki/core@REL1_43] htmlform: Load ooui before infusing field cloner buttons

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

Change #1214185 merged by jenkins-bot:

[mediawiki/core@REL1_44] htmlform: Load ooui before infusing field cloner buttons

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

Change #1214182 merged by jenkins-bot:

[mediawiki/core@REL1_45] htmlform: Load ooui before infusing field cloner buttons

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

Change #1214189 merged by jenkins-bot:

[mediawiki/core@REL1_43] htmlform: Load ooui before infusing field cloner buttons

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