I recently added a window.onerror handler to a web application. The handler posts the details of the error — as much as the handler exposes — to my server, so I can see what kinds of errors users are seeing. The problem is that I’m seeing a lot of these:
ReferenceError: Can't find variable: imenu_title
ReferenceError: Can't find variable: imenu_list_id
The user agent for these is consistently an iPhone, for example:
Mozilla/5.0 (iPhone; CPU iPhone OS 5_1_1 like Mac OS X) AppleWebKit/534.46 (KHTML, like Gecko) Mobile/9B206
I don’t have any code that uses those variables, and I’m suspicious that the errors are actually coming from some kind of extension installed on some user’s iPhone browser. Can anybody recognize these and point me in the right direction?
No way to not have these errors happen, but they most likely will not effect how your page works in the browser. For more information about getting useful error reports, see https://stackoverflow.com/questions/8528005/are-there-any-tools-for-automatically-reporting-errors-from-client-side-javascri