Page MenuHomePhabricator

TypeError: childAnchorTags.forEach is not a function
Closed, InvalidPublicPRODUCTION ERROR

Description

Error
normalized_message
TypeError: childAnchorTags.forEach is not a function
exception.trace
at MutationObserver.observe.attributes  <anonymous>:1:3808
Impact

There have been ~70 such errors in the last 12 hours.

Notes
  1. AFAICT all such errors are from clients with the following UA:

Mozilla/5.0 (Linux; Android 6.0; Le X509 Build/DHXOSOP5801911241S ) AppleWebKit/537.36 (KHTML, like Gecko) JioBrowser/1.4.7 Chrome/49.0.2623.91 Mobile Safari/537.36

i.e. Jio Browser running on an LeTv Le 1s

  1. Supporting the above, neither MediaWiki code search nor Global Search return (relevant) results

Event Timeline

Jdlrobson subscribed.

Chrome/49.0.2623.91 does not support ES5 and forEach is an ES5 function. Given no matches on global search and mediawiki code search I tend to ignore these (by filtering on user agent) on the assumption they will go away when we support ES5 everywhere.

Decline?

(Removed Instrument-ClientError as that's used for issues in the instrumentation and this doesn't seem to be that)

Krinkle subscribed.

Given no matches on global search and mediawiki code search I tend to ignore these (by filtering on user agent) on the assumption they will go away when we support ES5 everywhere.

That happened in 2017 (T128115). Given it has no matches in our code bases, our startup feature test doesn't affect whether this third party code runs or not.

Also, the fact that our instrumentation is running in this Chrome 49 browser means it did pass our startup feature test. Chrome 49 is ES5-compliant, and does support Array.forEach. The problem is most likely not whether forEach exists, but rather whether their childAnchorTags variable holds an array or not.