Page MenuHomePhabricator

[Client error] TypeError: searchBoxes.forEach is not a function
Closed, ResolvedPublic2 Estimated Story PointsBUG REPORT

Description

List of steps to reproduce (step by step, including full links if applicable):

  • JS Search is not available to older browsers e.g. Chrome 42.

What happens?:
137 errors in last 12hrs https://logstash.wikimedia.org/app/dashboards#/doc/logstash-*/logstash-2021.10.14?id=4Rojf3wB1RMACsoSBE6q
In older browsers you can't use forEach on a NodeList

What should have happened instead?:
We should use Array.prototype.forEach.call inside resources/skins.vector.js/searchLoader.js

Event Timeline

bwang removed bwang as the assignee of this task.Oct 18 2021, 5:55 PM
bwang added a subscriber: bwang.

Change 731788 had a related patch set uploaded (by Bernard Wang; author: Bernard Wang):

[mediawiki/skins/Vector@master] Avoid calling forEach on searchbox NodeList for older browsers

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

Change 731788 merged by jenkins-bot:

[mediawiki/skins/Vector@master] Avoid calling forEach on searchbox NodeList for older browsers

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

I'll verify this one in logstash when its deployed (Wednesday)

After the train this seems to be trailing off

Screen Shot 2021-10-21 at 10.31.50 AM.png (214×854 px, 6 KB)